/* Header Styles */
.nav-logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
}

.nav-logo span {
    color: var(--color-secondary);
}

header {
    background-image: url('heroimage.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 731px;
}

.header-content {
    background: linear-gradient(#FFFFFF70, #8F8F8F73);
    /* backdrop-filter: blur(5px);  */
    /* -webkit-backdrop-filter: blur(5px); */
    background-blend-mode: soft-light;
    max-width: 1168px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 130px auto 0 auto;
    padding: 50px 100px;
    border-radius: 30px;
}

header h1 {
    color: var(--color-black);
}

header p {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-black);
    margin: 0px 0 30px 0;
}

.logo {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-secondary);
    display: inline-block;
}

.header-nav{
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(212, 208, 208, 0.32));
    backdrop-filter: blur(5px); /* Adds the blur effect */
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
    height: 111px;
    border-radius: 100px;
    display: flex;
    padding: 0 50px;
    animation: fadeScaleUp 1s ease-out;
}

.header-nav .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin-bottom: 0;
}

.nav-links li {
    margin-left: var(--space-xl);
}

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 400;
    transition: color var(--transition-base);
    /* padding: 5px 0; */
}

.nav-links a:hover {
    color: var(--color-secondary);
    border-bottom: 3px solid #ED170A;
}

.header-nav .btn {
    padding: 9px 22px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 31.5px;
    font-size: 16;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    text-align: center;
}

.header-nav .btn:hover {
    color: var(--color-white);
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-cta{
    padding: 12px 29px;
    background-color: #1E1E1E;
    color: var(--color-white);
    border: none;
    border-radius: 31.5px;
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    animation: floatReveal 1s ease-out;
}

.hero-cta:hover {
    background-color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}


/* Navigation */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.mobile-menu {
    display: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
}

.mobile-nav-links{
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-logo img{
        max-width: 80%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-md);
        z-index: 9999;
    }

    /* ============================
    MOBILE NAV MENU - OPEN/CLOSE
    ============================ */

    .mobile-nav-links {
        display: flex;
        flex-direction: column;

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: var(--space-lg);
        box-shadow: var(--shadow-md);
        z-index: 9999;
        border-radius: 50px;

        /* Hidden */
        pointer-events: none;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);

        transition:
            max-height 0.45s ease,
            opacity 0.35s ease,
            transform 0.45s ease,
            visibility 0s linear 0.45s;    /* delay visibility OFF */
    }

    .mobile-nav-links.active {
        pointer-events: auto;
        visibility: visible;
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);

        transition:
            max-height 0.45s ease,
            opacity 0.35s ease,
            transform 0.45s ease,
            visibility 0s linear 0s;       /* visibility ON immediately */
    }

    /* ============================
    LIST ITEM ANIMATION
    ============================ */

    .mobile-nav-links li {
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    /* When opening */
    .mobile-nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger IN (open) */
    .mobile-nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
    .mobile-nav-links.active li:nth-child(2) { transition-delay: 0.10s; }
    .mobile-nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
    .mobile-nav-links.active li:nth-child(4) { transition-delay: 0.20s; }
    .mobile-nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
    .mobile-nav-links.active li:nth-child(6) { transition-delay: 0.30s; }
    .mobile-nav-links.active li:nth-child(7) { transition-delay: 0.35s; }
    .mobile-nav-links.active li:nth-child(8) { transition-delay: 0.40s; }
    .mobile-nav-links.active li:nth-child(9) { transition-delay: 0.45s; }

    /* Stagger OUT (closing) */
    .mobile-nav-links li:nth-child(1) { transition-delay: 0.45s; }
    .mobile-nav-links li:nth-child(2) { transition-delay: 0.40s; }
    .mobile-nav-links li:nth-child(3) { transition-delay: 0.35s; }
    .mobile-nav-links li:nth-child(4) { transition-delay: 0.30s; }
    .mobile-nav-links li:nth-child(5) { transition-delay: 0.25s; }
    .mobile-nav-links li:nth-child(6) { transition-delay: 0.20s; }
    .mobile-nav-links li:nth-child(7) { transition-delay: 0.15s; }
    .mobile-nav-links li:nth-child(8) { transition-delay: 0.10s; }
    .mobile-nav-links li:nth-child(9) { transition-delay: 0.05s; }

    .nav-links li {
        margin: var(--space-sm) 0;
    }


    .mobile-menu {
        display: block;
    }

    header {
        padding: 20px 0 40px 0;
        height: 678px;
    }

    .header-content{
        backdrop-filter: initial;
        margin: 100px auto 0 auto;
    }

    .header-nav{
        padding: 0;
    }

    .header-nav .btn{
        padding: 7 20px;
        font-size: 12px;
    }

    .header-nav{
        height: 80px;
    }
}

@media (max-width: 430px) {

    .header-content{
        padding: 0!important;
    }

    .hero-cta{
        font-weight: 400;
    }

    header p{
        font-size: 18px;
    }
}

/* Hamberg */

/* HAMBURGER ICON */
.hamburger {
    position: relative;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: left center;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: right center;
}
.hamburger span:nth-child(3) { bottom: 0; }

/* Shrinking animation */
.hamburger.shrink span:nth-child(1),
.hamburger.shrink span:nth-child(3) {
    width: 0%;
}

.hamburger.shrink span:nth-child(2) {
    width: 0%;
    left: auto;
    right: 0;
}

/* Cross (X) animation */
.hamburger.cross span:nth-child(1),
.hamburger.cross span:nth-child(3) {
    top: 50%;
    width: 100%;
    left: 0;
    transform-origin: center center;
}

.hamburger.cross span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}
.hamburger.cross span:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
}

.hamburger.cross span:nth-child(2) {
    opacity: 0;
}



/* Desktop Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 27px;
    left: 0;
    background-color: var(--color-white);
    list-style: none;
    padding: 0 0;
    /* border-radius: 10px; */
    box-shadow: var(--shadow-md);
    min-width: 250px;
    display: none; /* Hidden by default */
    flex-direction: column;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 15px;
    transition: background var(--transition-base);
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--color-secondary);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: flex;
}


.dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown > a {
    display: flex;
    align-items: center;
}

.dropdown-icon {
    width: 31px;
    height: 31px;
    margin-top: 2px; /* fine-tune vertical alignment */
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Dropdown Styles */
@media screen and (max-width: 768px) {
    .mobile-nav-links .mobile-dropdown {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mobile-nav-links .mobile-dropdown > a {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-nav-links .mobile-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
        margin-top: 10px;
    }
    
    .mobile-nav-links .mobile-dropdown.open .mobile-dropdown-menu {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-nav-links .mobile-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .mobile-nav-links .mobile-dropdown-menu li {
        margin: 0;
    }
    
    .mobile-nav-links .mobile-dropdown-menu a {
        color: var(--color-primary);
        padding: 10px 0;
        font-size: 16px;
    }
    
    .mobile-nav-links .mobile-dropdown-menu a:hover {
        background: transparent;
        color: var(--color-secondary);
    }
}

.nav-links li a[href*="soumission"] {
    background: linear-gradient(135deg, #EF233C 0%, #D41E36 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.nav-links li a[href*="soumission"]:hover {
    background: linear-gradient(135deg, #ff4a63 0%, #EF233C 100%);
    transform: translateY(-2px);
}
