/* Page Background */
* {
    padding: 0;
    margin: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #ff9966, #ff5e62, #9b59b6);
    overflow-x: hidden;

}

/* ===== Global Header ===== */
.header {
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    /* fixed instead of sticky */
    top: 0;
    left: 0;
    z-index: 999;
    background: transparent;
    /* starts transparent */
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* When scrolled */
.header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0px;
    /* slightly smaller padding when scrolled */
}

/* Logo */
.logo img {
    height: 25px;
    width: auto;
}

/* Navigation */
.navigation {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    text-decoration: none;
    color: #6b7280;
    font-size: 16px;
    /* gray text for inactive */
    position: relative;
    padding: 5px 10px;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;

    transition: all 0.3s ease;
}

.nav-link.active {
    background: #0c1120;
    color: #fff;
}

/* Inactive underline */
.nav-link:not(.active)::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 4px;
    transition: background 0.3s;
}

/* background rising effect */
.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #0c1120;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    z-index: -1;
    /* behind text & underline */
}

/* hover & active states */
.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after {
    background: #0c1120;
}


/* Contact Button */
.contact-btn {
    background: #fff;
    color: #6d28d9;
    /* purple text */
    padding: 2px 5px;
    border: 1px solid #6d28d9;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Purple circle with white arrow inside */
.contact-btn i {
    background: #6d28d9;
    color: #fff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transform: rotate(-45deg);
    /* arrow tilted */
}

/* Hover effect */
.contact-btn:hover {
    background: #f5f3ff;
    /* light purple tint */
    border-color: #5b21b6;
    color: #5b21b6;
}

.contact-btn:hover i {
    background: #5b21b6;
}


/******************* Footer   */
/* General Footer Styling */
.footer {
    background: #1d1d1d;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 0;
}

/* Top Subscribe */
.footer-top {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #ff9068, #fd746c, #a044ff, #6a11cb);
    color: white;
}

.footer-top h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.subscribe-box {
    display: inline-flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.subscribe-box input {
    border: none;
    padding: 12px 15px;
    outline: none;
    font-size: 14px;
    width: 250px;
}

.subscribe-box button {
    background: linear-gradient(to right, #a044ff, #6a11cb);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Middle Section */
.footer-middle {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding: 50px 60px;
    border: 1px solid #333;
    border-radius: 0 0 20px 20px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

/* Project CTA */
.project-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-cta a {
    background: linear-gradient(to right, #a044ff, #6a11cb, #2575fc);
    padding: 15px 40px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
}

/* Social Icons */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    margin-right: 10px;
    text-decoration: none;
}

/* Bottom Copyright */
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #ccc;
}

/* pop up card */
.popup {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 500px;
    background-color: #ffffff;
    background-image: url(../images/Background.png);
    background-size: cover;
    background-position: center;
    transform: translate(-50%, -50%);
    padding: 30px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    z-index: 1000;
    text-align: center;
    /* font-family: "Poppins", sans-serif; */
}

/* Heading */
.pop-up-heading {
    font-size: 36px;
    font-weight: 700;
    color: #004080;
    /* Theme orange */
    margin-bottom: 15px;
}

/* Paragraph */
.pop-up-para {
    color: #000;
    /* Olive green */
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Button */
.close-btn {
    background-color: #000;
    /* Olive green */
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
}

.close-btn:hover {
    background-color: #004080;
}

/********************* whatsapp container */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    text-align: right;
    height: 60px;
    z-index: 9999;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.whatsapp-container i {
    font-size: 48px;
    color: #25D366;
    justify-content: flex-end;
    animation: whatsappbeat 1.5s infinite;
    transition: transform 0.3s ease;
}