/* ===== GLOBAL FIXES ===== */
html {
    overflow-y: auto; /* Enable vertical scrolling to reveal content below hero */
    scrollbar-gutter: stable; /* Fix for scrollbar jumping during page transitions */
    max-height: none; /* Allow page to grow with content */
}

body {
    overflow-x: hidden;
    padding-top: 0; /* Removed padding to eliminate gap between header and hero */
}

/* Disable transitions temporarily during page load */
.no-transitions * {
    transition: none !important;
}

/* Fix for header */
header {
    height: 80px; /* Match height in navigation.css */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Added shadow for better separation */
}

header nav {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

/* Fix for all sections to prevent overlap - exclude hero */
section:not(.simple-hero) {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    overflow: visible;
    clear: both;
}

/* ===== HERO SECTION FIXES ===== */
/* Hero section fixes are now handled by hero-styles.css */
/* These rules have been moved to hero-styles.css for better organization */

/* Platform section fixes */
.dual-platform {
    padding: 10rem 0; /* Increased padding */
    z-index: 2;
    margin-top: 6rem; /* Further increased margin at the top */
    position: relative;
}

/* Add spacing before dual platform section */
.dual-platform::before {
    content: '';
    display: block;
    height: 80px; /* Doubled spacing height */
    width: 100%;
    position: absolute;
    top: -80px;
    left: 0;
}

.platform-grid {
    position: relative;
    z-index: 5;
    gap: 2rem;
}

.platform-card {
    margin: 1rem;
    z-index: 5;
}

/* CTA section fixes */
.cta-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

/* Footer fixes */
footer {
    padding: 6rem 0 2rem;
    position: relative;
    z-index: 2;
}

/* Container fixes */
.container {
    position: relative;
    z-index: 5;
    overflow: visible;
}

/* Mobile menu fixes */
.nav-links {
    z-index: 1001;
}

/* ===== ACCESSIBILITY FIXES ===== */
/* Accessibility Improvements */

/* Skip to content link - hidden until focused */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary, #4A6B63);
    color: white;
    padding: 10px 15px;
    z-index: 9999;
    transition: top 0.3s ease;
    font-family: var(--font-secondary, 'Montserrat', sans-serif);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--color-accent, #FFB74D);
}

/* Ensure proper color contrast for text */
.portal-section p {
    color: #333;
}

/* Choose Your Experience Section */
.choose-experience-section {
    padding-top: 6rem !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 2;
    clear: both;
}

/* ===== RESPONSIVE FIXES ===== */
/* Ensure proper stacking on small screens */
@media (max-width: 768px) {
    .simple-hero-container {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .portal-sections {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Improve mobile navigation */
    .nav-links {
        width: 100%;
        max-width: 280px;
    }
    
    /* Ensure buttons are properly sized */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Media queries for responsive fixes */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* Removed padding to match desktop */
    }
    
    .platform-grid {
        width: 90%;
        max-width: 500px;
        padding: 0;
    }
    
    .platform-card {
        width: 100%;
        margin: 1rem 0;
    }
    
    section {
        padding: 6rem 0; /* Keep decent padding on mobile */
    }
    
    /* Hero mobile styles are now handled by compact-hero.css */
    
    .dual-platform {
        padding: 7rem 0;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .platform-card {
        padding: 2rem 1rem;
    }
}
