/* ============================================
   LAYOUT STYLES
   ============================================ */

/* Header */
header {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    justify-content: center;
}

nav li {
    display: inline-block;
}

nav a {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-fast);
}

nav a:hover {
    background-color: var(--color-background-alt);
}

/* Main content */
main {
    padding: 0;
    width: 100%;
}

/* Container for normal sections (not hero) */
section:not(#hero) {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ============================================
   HERO SECTION - FULL SCREEN
   ============================================ */

#hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background image carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark overlay to improve text readability */
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
                 0 0 15px rgba(0, 0, 0, 0.7);
    color: #bfdbfe; /* Even lighter blue for better visibility */
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
                 0 0 15px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    color: #f0f0f0; /* Brighter white */
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    text-shadow: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-text);
    transform: translateY(-2px);
}

/* ============================================
   OTHER SECTIONS
   ============================================ */

/* Sections (other sections have normal padding) */
section:not(#hero) {
    padding: var(--spacing-lg) var(--spacing-md);
}

section h2 {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-background-alt);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--color-secondary);
}

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */

/* Mobile (adjustments for small screens) */
@media (max-width: 767px) {
    .hero-content {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-sm);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    :root {
        --font-size-h1: 4rem;
        --font-size-h2: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --font-size-h1: 5rem;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
}
