/* Modern Header Styles - Linktree Inspired */

:root {
    --ebony: #1E2330;
    --canopy-green: #D2E823;
    --pastel-green: #42E661;
    --soft-purple: #8B5CF6;
    --bright-orange: #F97316;
    --gradient-green: linear-gradient(135deg, #D2E823 0%, #42E661 100%);
}

/* Modern Header */
.modern-header {
    background: rgba(30, 35, 48, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    border-bottom: 1px solid rgba(210, 232, 35, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo Styles */
.header-left {
    flex: 0 0 auto;
}

.logo-modern a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #D2E823 0%, #42E661 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation Menu */
.header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

/* Hide mobile menu actions on desktop */
.mobile-menu-divider,
.mobile-menu-actions {
    display: none;
}

.nav-menu-modern {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu-modern li {
    margin: 0;
}

.nav-menu-modern a {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-menu-modern a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(210, 232, 35, 0.1) 0%, rgba(66, 230, 97, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-menu-modern a:hover {
    color: #D2E823;
    transform: translateY(-2px);
}

.nav-menu-modern a:hover::before {
    opacity: 1;
}

/* Header Right - CTA Button */
.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #D2E823 0%, #42E661 100%);
    color: #1E2330;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(210, 232, 35, 0.3);
    position: relative;
    overflow: hidden;
}

.header-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(210, 232, 35, 0.4);
}

.header-cta-btn:hover::before {
    left: 100%;
}

.header-cta-btn svg {
    transition: transform 0.3s ease;
}

.header-cta-btn:hover svg {
    transform: translateX(3px);
}

/* Header Portal Icon */
.header-portal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(210, 232, 35, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-portal-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(210, 232, 35, 0.1) 0%, rgba(66, 230, 97, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-portal-icon:hover {
    background: rgba(210, 232, 35, 0.15);
    border-color: rgba(210, 232, 35, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 232, 35, 0.2);
}

.header-portal-icon:hover::before {
    opacity: 1;
}

.header-portal-icon svg {
    color: #D2E823;
    stroke: #D2E823;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.header-portal-icon:hover svg {
    transform: scale(1.1);
}

/* Mobile Menu Wrapper */
.mobile-menu-wrapper {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #D2E823;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10002;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: linear-gradient(135deg, #D2E823 0%, #42E661 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 968px) {
    /* Hide desktop menu */
    .header-center {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(30, 35, 48, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
        z-index: 99999 !important;
        display: flex !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }

    /* When menu is active/open */
    .header-center.active {
        left: 0 !important;
        opacity: 1 !important;
    }

    /* Loading spinner overlay */
    .header-center::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 50px !important;
        height: 50px !important;
        margin: -25px 0 0 -25px !important;
        border: 3px solid rgba(210, 232, 35, 0.2) !important;
        border-top-color: #D2E823 !important;
        border-radius: 50% !important;
        animation: menuSpinner 0.8s linear infinite !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 100 !important;
    }

    .header-center.loading::before {
        opacity: 1 !important;
    }

    @keyframes menuSpinner {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Backdrop blur effect animation */
    .header-center::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: radial-gradient(circle at center, rgba(210, 232, 35, 0.05), transparent 70%) !important;
        opacity: 0 !important;
        animation: pulseGlow 2s ease-in-out infinite !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }

    .header-center.active::after {
        opacity: 1 !important;
    }

    @keyframes pulseGlow {
        0%, 100% { opacity: 0.3; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(1.05); }
    }
    
    /* Menu items styling */
    .nav-menu-modern {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 2rem 1.5rem !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        display: flex !important;
        list-style: none !important;
    }

    .nav-menu-modern li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(0) !important;
        opacity: 0;
        animation: slideInMenu 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .header-center.active .nav-menu-modern li:nth-child(1) { animation-delay: 0.4s; }
    .header-center.active .nav-menu-modern li:nth-child(2) { animation-delay: 0.5s; }
    .header-center.active .nav-menu-modern li:nth-child(3) { animation-delay: 0.6s; }
    .header-center.active .nav-menu-modern li:nth-child(4) { animation-delay: 0.7s; }

    @keyframes slideInMenu {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-menu-modern a {
        font-family: 'Inter', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        padding: 1rem 1.5rem !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        border-radius: 12px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(210, 232, 35, 0.15) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .nav-menu-modern a::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(210, 232, 35, 0.1), transparent) !important;
        transition: left 0.5s ease !important;
    }

    .nav-menu-modern a:hover::before,
    .nav-menu-modern a:active::before {
        left: 100% !important;
    }

    .nav-menu-modern a:hover,
    .nav-menu-modern a:active {
        background: rgba(210, 232, 35, 0.15) !important;
        border-color: rgba(210, 232, 35, 0.4) !important;
        transform: translateX(5px) !important;
        color: #D2E823 !important;
    }

    /* Mobile menu action buttons container */
    .mobile-menu-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1.5rem 2rem !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        opacity: 0;
        animation: slideInMenu 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .header-center.active .mobile-menu-actions {
        animation-delay: 0.8s;
    }

    /* Primary button - Get Started */
    .mobile-menu-btn-primary {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 1rem 2rem !important;
        background: linear-gradient(135deg, #D2E823 0%, #42E661 100%) !important;
        color: #1E2330 !important;
        text-decoration: none !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 4px 20px rgba(210, 232, 35, 0.3) !important;
        border: none !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .mobile-menu-btn-primary::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
        transition: left 0.5s ease !important;
    }

    .mobile-menu-btn-primary:active::before {
        left: 100% !important;
    }

    .mobile-menu-btn-primary:active {
        transform: scale(0.98) !important;
        box-shadow: 0 6px 25px rgba(210, 232, 35, 0.4) !important;
    }

    .mobile-menu-btn-primary svg {
        transition: transform 0.3s ease !important;
    }

    .mobile-menu-btn-primary:active svg {
        transform: translateX(3px) !important;
    }

    /* Secondary button - Login */
    .mobile-menu-btn-secondary {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 1rem 2rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        border: 1px solid rgba(210, 232, 35, 0.3) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .mobile-menu-btn-secondary::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, rgba(210, 232, 35, 0.1) 0%, rgba(66, 230, 97, 0.1) 100%) !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }

    .mobile-menu-btn-secondary:active {
        background: rgba(210, 232, 35, 0.15) !important;
        border-color: rgba(210, 232, 35, 0.5) !important;
        transform: scale(0.98) !important;
        color: #D2E823 !important;
    }

    .mobile-menu-btn-secondary:active::before {
        opacity: 1 !important;
    }

    .mobile-menu-btn-secondary svg {
        color: #D2E823 !important;
        stroke: #D2E823 !important;
    }

    /* Divider line */
    .mobile-menu-divider {
        width: 100% !important;
        max-width: 400px !important;
        height: 1px !important;
        background: linear-gradient(90deg, transparent, rgba(210, 232, 35, 0.3), transparent) !important;
        margin: 1rem auto !important;
        opacity: 0;
        animation: fadeIn 0.5s ease forwards;
    }

    .header-center.active .mobile-menu-divider {
        animation-delay: 0.75s;
    }

    @keyframes fadeIn {
        from { 
            opacity: 0;
            transform: scaleX(0);
        }
        to { 
            opacity: 1;
            transform: scaleX(1);
        }
    }

    /* Show mobile menu wrapper and toggle */
    .mobile-menu-wrapper {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Hide desktop buttons */
    .header-cta-btn,
    .header-portal-icon {
        display: none !important;
    }

    /* Header adjustments */
    .header-nav {
        padding: 0.75rem 0 !important;
    }

    .logo-title {
        font-size: 1.25rem !important;
    }

    .logo-subtitle {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Skip to main content accessibility */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background: #D2E823;
    color: #1E2330;
    text-decoration: none;
    font-weight: 600;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
}

/* Adjust main content for fixed header */
main {
    margin-top: 80px;
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===================================
   MODERN FOOTER
   =================================== */

.modern-footer {
    background: rgba(20, 25, 38, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(210, 232, 35, 0.1);
    padding: 80px 0 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo-icon svg {
    animation: logoFloat 3s ease-in-out infinite;
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #D2E823 0%, #42E661 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #D2E823;
    margin: 0;
    letter-spacing: -0.01em;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #D2E823;
}

.footer-menu li a:hover {
    color: #D2E823;
    padding-left: 20px;
}

.footer-menu li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Contact Info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-link:hover {
    background: rgba(210, 232, 35, 0.08);
    border-color: rgba(210, 232, 35, 0.3);
    transform: translateX(5px);
}

.contact-link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(210, 232, 35, 0.2) 0%, rgba(66, 230, 97, 0.2) 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-link-icon svg {
    color: #D2E823;
    stroke: #D2E823;
}

.footer-contact-link > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #D2E823;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 60px 0 0;
        text-align: center;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        justify-content: center;
    }

    .footer-description {
        text-align: center;
    }

    .footer-links {
        text-align: center;
        align-items: center;
    }

    .footer-menu {
        align-items: center;
    }

    .footer-menu li a {
        text-align: center;
    }

    /* Center contact info section */
    .footer-contact-info {
        text-align: center;
        align-items: center;
    }

    .footer-contact-items {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .footer-contact-link {
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding: 16px;
        transform: none !important;
    }

    .footer-contact-link:hover {
        transform: translateY(-3px) !important;
    }

    .footer-contact-link > div:last-child {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .contact-label {
        text-align: center;
    }

    .contact-value {
        text-align: center;
        word-break: break-word;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.25rem;
    }

    .footer-logo-icon svg {
        width: 40px;
        height: 40px;
    }

    .footer-contact-link {
        padding: 10px;
    }

    .contact-link-icon {
        width: 36px;
        height: 36px;
    }
}
