/* Import soft rounded font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&display=swap');

/* Prevent layout shift for header logo */
.header-logo {
    min-height: 32px;
}

/* Reset margins to ensure header is flush with top */
html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

header {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide old floating header elements */
.logo-header,
.floating-header {
    display: none !important;
}

/* Professional Header Styles */
.site-header {
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 10000 !important;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(213, 207, 200, 0.08);
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 1px 0 rgba(213, 207, 200, 0.06);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.85;
}

.header-logo-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.header-logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #F5F0EB;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: lowercase;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    visibility: visible;
    opacity: 1;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Header Actions (Sign in / Download buttons) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    outline: none;
}

.header-btn-signin {
    background: transparent;
    color: #D5CFC8;
    border: 1px solid rgba(213, 207, 200, 0.2);
}

.header-btn-signin:hover {
    background: rgba(213, 207, 200, 0.05);
    border-color: rgba(213, 207, 200, 0.3);
    color: #F5F0EB;
}

.header-btn-download {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: 1px solid transparent;
}

.header-btn-download:hover {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* User Avatar Menu (when logged in) */
.header-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(213, 207, 200, 0.15);
    border-radius: 100px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #D5CFC8;
}

.header-user-trigger:hover {
    background: rgba(213, 207, 200, 0.05);
    border-color: rgba(213, 207, 200, 0.25);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: rgba(10, 31, 36, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 220, 203, 0.1);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 10002;
}

.header-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 12px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(230, 220, 203, 0.1);
    margin: 4px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #D5CFC8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #fafafa;
}

.user-dropdown-item svg {
    opacity: 0.7;
}

/* Dropdown Container */
.header-nav-dropdown {
    position: relative;
    z-index: 10001;
}

.header-nav-link {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: #B5AFA8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.header-nav-link:hover {
    background: transparent;
    color: #F5F0EB;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -2px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(213, 207, 200, 0.1);
    border-radius: 12px;
    padding: 10px 8px 8px 8px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.2s ease-out, 
                visibility 0.2s ease-out,
                transform 0.2s ease-out;
    pointer-events: none;
    z-index: 10001 !important;
}

.header-nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Keep dropdown visible when hovering directly over it - critical for maintaining hover */
.header-nav-dropdown .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Ensure dropdown container maintains hover state */
.header-nav-dropdown:hover .dropdown-menu,
.header-nav-dropdown .dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: transparent;
}

.dropdown-item:hover .dropdown-title {
    color: #F5F0EB;
}

.dropdown-item:hover .dropdown-icon {
    color: #F5F0EB;
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(213, 207, 200, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
    color: #D5CFC8;
}

.dropdown-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.dropdown-title {
    color: #F5F0EB;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.dropdown-desc {
    color: #958F88;
    font-size: 12px;
    line-height: 1.3;
}

.dropdown-trigger svg {
    transition: transform 0.2s ease;
}

.header-nav-dropdown:hover .dropdown-trigger svg {
    transform: rotate(180deg);
}

.header-nav-link svg {
    display: none;
}

.header-nav-link.primary {
    background: transparent;
    color: #F5F0EB;
}

.header-nav-link.primary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px;
    color: #D5CFC8;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle:hover {
    background: transparent;
    color: #F5F0EB;
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Dropdown */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(213, 207, 200, 0.08);
    padding: 16px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    pointer-events: none;
}

.mobile-nav-menu.show {
    display: block;
    max-height: 400px;
    padding: 16px 24px;
    pointer-events: auto;
}

.mobile-nav-menu .header-nav-link {
    width: 100%;
    margin-bottom: 8px;
    justify-content: flex-start;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.mobile-nav-menu .header-nav-link:last-child {
    margin-bottom: 0;
}

.mobile-nav-menu .header-nav-link:hover,
.mobile-nav-menu .header-nav-link:active {
    background: transparent;
    color: #F5F0EB;
}

/* Main content spacing removed - hero section handles its own spacing */

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 64px;
    }
    
    .header-logo-icon {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
    
    .header-logo-text {
        font-size: 18px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-menu {
        top: 80px;
    }
    
    
    /* Mobile dropdown - expand inline */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        height: 56px;
    }
    
    .header-logo-icon {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    
    .header-logo-text {
        font-size: 16px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .mobile-nav-menu {
        top: 48px;
    }
    
}

/* ============================================
   UNIFIED FOOTER STYLES
   Matches the header's dark color scheme
   ============================================ */

.site-footer {
    padding: 64px 32px 32px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 48px 32px;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.footer-column-title {
    font-size: 13px;
    font-weight: 600;
    color: #F5F0EB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.footer-link {
    font-size: 14px;
    color: #B5AFA8;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.8;
}

.footer-link:hover {
    color: #F5F0EB;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 13px;
    color: #B5AFA8;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 48px 24px 24px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 20px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

