/* ---------------- Grid background ---------------- */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    background: #ffffff;
    background-image: radial-gradient(#eee 1px, transparent 1px);
    background-size: 15px 15px;
    font-family: 'Fraunces', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
}

body {
    overflow-y: hidden;
    padding-top: 0; /* Let hero section handle its own top padding */
}

#content {
    position: relative;
    z-index: 10;
    min-height: 200vh; /* Ensure enough scrollable content */
    padding-bottom: 60px; /* Space for fixed footer */
    
    /* Sophisticated layered background - Override body background */
    background-color: #f6f9ff !important; /* Base color: Very light blue-tinted white */
    background-image: 
        /* Overlay gradient: Linear from top to bottom */
        linear-gradient(to bottom, 
            rgba(255, 255, 255, 0.7) 0%, 
            rgba(255, 255, 255, 0.9) 100%),
        /* Primary radial gradient: Large blue glow at top-right */
        radial-gradient(ellipse 1200px 600px at 80% -10%, 
            rgba(27, 77, 228, 0.08) 0%, 
            transparent 60%),
        /* Secondary radial gradient: Smaller blue accent at bottom-left */
        radial-gradient(ellipse 800px 400px at 20% 120%, 
            rgba(27, 77, 228, 0.03) 0%, 
            transparent 50%),
        /* Grid pattern: Very fine repeating lines */
        linear-gradient(rgba(28, 45, 90, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 45, 90, 0.04) 1px, transparent 1px) !important;
    background-size: 
        100% 100%,  /* Overlay gradient */
        1200px 600px,  /* Primary radial gradient */
        800px 400px,   /* Secondary radial gradient */
        48px 48px,     /* Grid pattern horizontal */
        48px 48px !important;     /* Grid pattern vertical */
    background-position: 
        0 0,        /* Overlay gradient */
        80% -10%,   /* Primary radial gradient */
        20% 120%,   /* Secondary radial gradient */
        0 0,        /* Grid pattern horizontal */
        0 0 !important;        /* Grid pattern vertical */
    background-attachment: fixed !important;
    
    /* Gentle pulsing animation */
    animation: gentle-pulse 8s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

#scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 15;
    pointer-events: none;
}

#twinkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    overflow: hidden;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    --size: 0px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: hsl(var(--hue) 80% 70%);
    box-shadow: 0 0 6px 2px hsla(var(--hue), 80%, 70%, 0.8);
    animation: fall linear infinite;
    opacity: 0.8;
}

.shooting-star::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 2px;
    height: 120px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, hsla(var(--hue),80%,70%,0) 0%, hsla(var(--hue),80%,70%,1) 100%);
    pointer-events: none;
}

.star {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background-image: url('./assets/twinkle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: twinkle 3s ease-in-out infinite;
    pointer-events: none;
}   

@keyframes twinkle {
    0%, 100% { transform: scale(0.8); }
    50% { transform: scale(1.3); }
}

@keyframes fall {
    0% { transform: translateY(-10vh); }
    100% { transform: translateY(110vh); }
}

/* New section styles */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
}

.section-title {
    font-family: 'Fraunces', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: 'Fraunces', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}