/* =========================================================
   ZUKTI TECH
   HEADER.CSS
========================================================= */


/* =========================================================
   MANROPE
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --header-blue: #1557e8;
    --header-blue-hover: #0d4fd6;

    --header-dark: #071126;
    --header-text: #101827;
    --header-muted: #64748b;

    --header-white: #ffffff;

    --header-transition:
        0.32s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: "Manrope", sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   SITE HEADER

   DESKTOP FLOATING SPACING:
   TOP   = 48px
   LEFT  = 48px
   RIGHT = 48px
========================================================= */

.site-header {
    position: fixed;

    top: 48px;
    left: 0;

    width: 100%;

    z-index: 1000;

    pointer-events: none;

    transition:
        top var(--header-transition),
        background-color var(--header-transition),
        box-shadow var(--header-transition);
}

.site-header > * {
    pointer-events: auto;
}


/* =========================================================
   FLOATING HEADER
========================================================= */

.header-inner {
    position: relative;

    /* 48px LEFT + 48px RIGHT */
    width: calc(100% - 96px);
    max-width: none;

    min-height: 88px;

    margin: 0 auto;

    padding: 0 30px;

    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(15, 23, 42, 0.045);

    border-radius: 18px;

    box-shadow:
        0 16px 45px rgba(15, 23, 42, 0.10),
        0 3px 12px rgba(15, 23, 42, 0.035);

    transition:
        width var(--header-transition),
        min-height var(--header-transition),
        padding var(--header-transition),
        border-radius var(--header-transition),
        border-color var(--header-transition),
        box-shadow var(--header-transition),
        background-color var(--header-transition);
}


/* =========================================================
   SCROLLED HEADER
   FULL-WIDTH BANNER
========================================================= */

.site-header.scrolled {
    top: 0;

    background: #ffffff;

    box-shadow:
        0 5px 25px rgba(15, 23, 42, 0.08);
}

.site-header.scrolled .header-inner {
    width: 100%;

    min-height: 72px;

    margin: 0;

    padding-left: 50px;
    padding-right: 50px;

    background: #ffffff;

    border: 0;
    border-radius: 0;

    box-shadow: none;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    color: var(--header-dark);

    text-decoration: none;
}


/* =========================================================
   LOGO
========================================================= */

.brand-logo {
    display: block;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    object-fit: contain;

    transition:
        width var(--header-transition),
        height var(--header-transition),
        transform 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.03);
}

.site-header.scrolled .brand-logo {
    width: 46px;
    height: 46px;
}


/* =========================================================
   BRAND NAME
========================================================= */

.brand-name {
    display: flex;
    flex-direction: column;

    margin-left: 14px;

    line-height: 1;
}


/* ZUKTI */

.brand-name span {
    display: block;

    color: var(--header-dark);

    font-size: 20px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.055em;
}


/* TECH */

.brand-name small {
    display: block;

    margin-top: 7px;

    padding-left: 1px;

    color: var(--header-blue);

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.34em;
}


/* Scrolled brand */

.site-header.scrolled .brand-name {
    margin-left: 12px;
}

.site-header.scrolled .brand-name span {
    font-size: 18px;
}

.site-header.scrolled .brand-name small {
    margin-top: 5px;

    font-size: 9px;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.desktop-nav {
    position: static;

    display: flex;
    align-items: center;

    gap: 38px;

    margin-left: auto;
    margin-right: 40px;

    transform: none;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 0;

    color: var(--header-text);

    font-size: 15px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}

.nav-link:hover {
    color: var(--header-blue);
}


/* =========================================================
   NAV UNDERLINE
========================================================= */

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 2px;

    border-radius: 20px;

    background: var(--header-blue);

    transform: translateX(-50%);

    transition:
        width 0.25s ease;
}

.nav-link:hover::after {
    width: 22px;
}

.nav-link.active {
    color: var(--header-blue);
}

.nav-link.active::after {
    width: 22px;
}


/* =========================================================
   START PROJECT CTA
========================================================= */

.header-cta {
    min-height: 58px;

    padding: 0 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 17px;

    flex-shrink: 0;

    border-radius: 11px;

    background: var(--header-blue);

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    box-shadow:
        0 10px 28px rgba(21, 87, 232, 0.20);

    transition:
        min-height var(--header-transition),
        padding var(--header-transition),
        border-radius var(--header-transition),
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.header-cta:hover {
    background: var(--header-blue-hover);

    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(21, 87, 232, 0.28);
}


/* =========================================================
   CTA ARROW
========================================================= */

.cta-arrow {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    transition:
        transform 0.25s ease;
}

.header-cta:hover .cta-arrow {
    transform: translateX(5px);
}


/* Scrolled CTA */

.site-header.scrolled .header-cta {
    min-height: 48px;

    padding-left: 22px;
    padding-right: 22px;

    border-radius: 8px;
}


/* =========================================================
   SCROLLED NAV SPACING
========================================================= */

.site-header.scrolled .desktop-nav {
    margin-right: 32px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    width: 46px;
    height: 46px;

    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-left: 12px;
    padding: 0;

    border: 0;

    border-radius: 9px;

    background: transparent;

    cursor: pointer;

    transition:
        background-color 0.25s ease;
}

.menu-toggle:hover {
    background: rgba(21, 87, 232, 0.07);
}


/* Hamburger lines */

.menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    border-radius: 20px;

    background: var(--header-dark);

    transform-origin: center;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   HAMBURGER OPEN
========================================================= */

.menu-toggle.active span:nth-child(1),
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2),
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3),
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 50%;

    width: calc(100% - 48px);

    visibility: hidden;
    opacity: 0;

    transform:
        translateX(-50%)
        translateY(-10px);

    pointer-events: none;

    transition:
        visibility 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.mobile-menu.active,
.mobile-menu.open {
    visibility: visible;
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);

    pointer-events: auto;
}


/* =========================================================
   MOBILE NAV PANEL
========================================================= */

.mobile-menu nav {
    width: 100%;

    display: flex;
    flex-direction: column;

    padding: 12px;

    border: 1px solid rgba(15, 23, 42, 0.06);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.98);

    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.15);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   MOBILE LINKS
========================================================= */

.mobile-menu nav > a:not(.mobile-cta) {
    width: 100%;

    display: flex;
    align-items: center;

    padding: 15px;

    border-radius: 9px;

    color: var(--header-text);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.mobile-menu nav > a:not(.mobile-cta):hover {
    color: var(--header-blue);

    background: rgba(21, 87, 232, 0.06);
}

.mobile-menu nav > a.active:not(.mobile-cta) {
    color: var(--header-blue);

    background: rgba(21, 87, 232, 0.07);
}


/* =========================================================
   MOBILE CTA
========================================================= */

.mobile-cta {
    min-height: 52px;

    margin-top: 8px;
    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 9px;

    background: var(--header-blue);

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 0.25s ease;
}

.mobile-cta:hover {
    background: var(--header-blue-hover);
}


/* =========================================================
   MEDIUM DESKTOP
   Keep 48px side margins
========================================================= */

@media (max-width: 1400px) {

    .header-inner {
        width: calc(100% - 96px);

        padding-left: 26px;
        padding-right: 26px;
    }

    .desktop-nav {
        gap: 28px;

        margin-right: 28px;
    }

    .nav-link {
        font-size: 14px;
    }

    .header-cta {
        min-height: 52px;

        padding-left: 20px;
        padding-right: 20px;

        font-size: 13px;
    }

    .site-header.scrolled .header-inner {
        width: 100%;

        padding-left: 30px;
        padding-right: 30px;
    }

}


/* =========================================================
   SMALLER DESKTOP
   Reduce sides slightly to avoid crowding
========================================================= */

@media (max-width: 1120px) {

    .header-inner {
        width: calc(100% - 64px);

        padding-left: 20px;
        padding-right: 20px;
    }

    .desktop-nav {
        gap: 20px;

        margin-right: 20px;
    }

    .nav-link {
        font-size: 13px;
    }

    .brand-logo {
        width: 47px;
        height: 47px;
    }

    .brand-name {
        margin-left: 10px;
    }

    .brand-name span {
        font-size: 17px;
    }

    .brand-name small {
        font-size: 8px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    /*
     * Tablet:
     * 32px top
     * 24px left/right
     */

    .site-header {
        top: 32px;
    }


    /* Floating header */

    .header-inner {
        width: calc(100% - 48px);

        min-height: 74px;

        padding: 0 18px;

        border-radius: 14px;
    }


    /* Scrolled banner */

    .site-header.scrolled {
        top: 0;
    }

    .site-header.scrolled .header-inner {
        width: 100%;

        min-height: 66px;

        padding: 0 20px;

        border-radius: 0;
    }


    /* Logo */

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .site-header.scrolled .brand-logo {
        width: 42px;
        height: 42px;
    }


    /* Brand */

    .brand-name {
        margin-left: 11px;
    }

    .brand-name span {
        font-size: 18px;
    }

    .brand-name small {
        margin-top: 5px;

        font-size: 9px;
    }


    /* Hide desktop navigation */

    .desktop-nav {
        display: none;
    }


    /* Show hamburger */

    .menu-toggle {
        display: flex;
    }


    /* CTA */

    .header-cta {
        min-height: 47px;

        margin-left: auto;

        padding: 0 17px;

        font-size: 12px;
    }


    /* Mobile menu */

    .mobile-menu {
        width: calc(100% - 48px);
    }

    .site-header.scrolled .mobile-menu {
        width: calc(100% - 24px);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    /*
     * Mobile:
     * 16px top
     * 12px left/right
     */

    .site-header {
        top: 16px;
    }


    /* Floating */

    .header-inner {
        width: calc(100% - 24px);

        min-height: 68px;

        padding: 0 13px;

        border-radius: 12px;
    }


    /* Scrolled banner */

    .site-header.scrolled {
        top: 0;
    }

    .site-header.scrolled .header-inner {
        width: 100%;

        min-height: 62px;

        padding: 0 14px;

        border-radius: 0;
    }


    /* Logo */

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .site-header.scrolled .brand-logo {
        width: 39px;
        height: 39px;
    }


    /* Brand */

    .brand-name {
        margin-left: 10px;
    }

    .brand-name span {
        font-size: 16px;
    }

    .brand-name small {
        margin-top: 4px;

        font-size: 8px;

        letter-spacing: 0.3em;
    }


    /* Hide desktop CTA */

    .header-cta {
        display: none;
    }


    /* Hamburger */

    .menu-toggle {
        width: 42px;
        height: 42px;

        margin-left: auto;
    }


    /* Dropdown */

    .mobile-menu {
        width: calc(100% - 24px);
    }

    .site-header.scrolled .mobile-menu {
        width: calc(100% - 16px);

        top: calc(100% + 8px);
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .brand-logo {
        width: 39px;
        height: 39px;
    }

    .brand-name {
        margin-left: 8px;
    }

    .brand-name span {
        font-size: 15px;
    }

    .brand-name small {
        font-size: 7px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .site-header,
    .header-inner,
    .brand-logo,
    .brand-name,
    .brand-name span,
    .brand-name small,
    .desktop-nav,
    .nav-link,
    .nav-link::after,
    .header-cta,
    .cta-arrow,
    .menu-toggle,
    .menu-toggle span,
    .mobile-menu {
        transition: none !important;
    }

}