/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s var(--ease-premium);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--black);
    font-weight: 800;
    font-size: 1.5rem;
}
.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-premium);
    letter-spacing: -0.01em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--black);
    transform: translateY(-1px);
}

.nav-cta {
    background: var(--gradient-premium);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s var(--ease-premium);
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity 0.3s var(--ease-premium);
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-cta:hover::before {
    opacity: 1;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

/* Logo Image Styles */
.logo-image {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}


.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.2s ease;
}

.nav-cta {
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--black);
    border-radius: 1px;
    transition: all 0.25s ease;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 14px;
}

.hamburger-line:nth-child(2) {
    top: 21px;
}

.hamburger-line:nth-child(3) {
    top: 28px;
}

/* Clean X Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-container {
        justify-content: space-between;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -90%;
        width: 60%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 50px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        padding: 12px 16px;
        margin-bottom: 4px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        color: var(--gray-800);
        display: block;
        transition: all 0.2s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-link:hover {
        color: var(--black);
        background: var(--gray-50);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        margin-top: 16px;
        padding: 12px 20px;
        text-align: center;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-cta:hover {
        transform: none;
        background: var(--gray-800);
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Enhanced tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .nav-cta {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Logo responsive styles */
@media (max-width: 768px) {
    .logo-image {
        height: 32px;
    }
}