/* ==========================================================================
   Fantastic Responsive Navigation
   Modern, sleek navigation with smooth animations
   ========================================================================== */

/* Navigation Container */
.fantastic-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.fantastic-nav.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(255, 107, 53, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand/Logo */
.nav-brand {
    z-index: 10001;
}

.brand-link {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-text {
    color: #ffffff;
    transition: all 0.3s ease;
}

.brand-accent {
    color: #ff6b35;
    transition: all 0.3s ease;
}

.brand-link:hover .brand-text {
    color: #ff6b35;
}

.brand-link:hover .brand-accent {
    color: #ffffff;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.nav-text {
    position: relative;
    z-index: 2;
}

.nav-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item:hover .nav-hover-effect {
    transform: scaleX(1);
}

.nav-item.active {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, #ff6b35, #ff8555);
    color: #ffffff !important;
    margin-left: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.nav-cta .nav-hover-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover .hamburger-line {
    background: #ff6b35;
}

.mobile-toggle.active {
    opacity: 0;
    pointer-events: none;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure nav container elements don't show through mobile overlay */
.nav-container {
    position: relative;
    z-index: 1;
}

/* When mobile menu is open, hide the main nav container content */
body:has(.mobile-menu-overlay.active) .nav-container .nav-brand,
body:has(.mobile-menu-overlay.active) .nav-container .nav-menu {
    opacity: 0;
    visibility: hidden;
}

.mobile-menu {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-brand {
    font-size: 2rem;
    font-weight: 900;
}

.mobile-brand .brand-text {
    color: #ffffff;
}

.mobile-brand .brand-accent {
    color: #ff6b35;
}

.mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: #ff6b35;
    transform: rotate(90deg);
}

.close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ff6b35;
    top: 50%;
    left: 50%;
    transition: background 0.3s ease;
}

.mobile-close:hover .close-line {
    background: #ffffff;
}

.close-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.mobile-menu-overlay.active .mobile-nav-item {
    animation: slideInLeft 0.5s ease forwards;
}

.mobile-menu-overlay.active .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-item:hover {
    color: #ff6b35;
    padding-left: 2rem;
    border-bottom-color: rgba(255, 107, 53, 0.3);
}

.mobile-nav-item.active {
    color: #ff6b35;
    border-bottom-color: rgba(255, 107, 53, 0.5);
}

.mobile-nav-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover .mobile-nav-icon {
    transform: translateX(10px);
}

.mobile-nav-cta {
    background: linear-gradient(135deg, #ff6b35, #ff8555);
    color: #ffffff !important;
    border-radius: 12px;
    border: none;
    margin-top: 1rem;
}

.mobile-nav-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.mobile-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-social a:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    transform: translateY(-5px);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .brand-link {
        font-size: 1.5rem;
    }
    
    .mobile-menu {
        padding: 1.5rem;
    }
    
    .mobile-nav-item {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        padding: 1.2rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .brand-link {
        font-size: 1.3rem;
    }
    
    .mobile-menu {
        padding: 1rem;
    }
    
    .mobile-social a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Smooth Scroll Offset for Fixed Nav */
html {
    scroll-padding-top: 80px;
}
