/* infra.day Styles */

:root {
    /* Color Palette */
    --cream-primary: #F4EDE4;
    --cream-light: #FFFDF8;
    --cream-mid: #D8D0C6;
    --teal-primary: #3D8B8B;
    --teal-light: #6FA6A6;
    --sage-green: #8BA888;
    --lavender: #B8A9D4;
    --coral: #D4896A;
    --gold: #E8C547;
    --navy: #2B3A67;
    --dark-navy: #1E2638;

    /* Typography */
    --font-display: 'Lora', serif;
    --font-body: 'Crimson Text', serif;
    --font-accent: 'DM Sans', sans-serif;
    --font-mono: 'Inter', sans-serif;

    /* Neomorphic shadows */
    --shadow-light: -8px -8px 16px rgba(255, 255, 255, 0.8);
    --shadow-dark: 8px 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-combined: -8px -8px 16px rgba(255, 255, 255, 0.8), 8px 8px 16px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-primary);
    color: var(--dark-navy);
    overflow-x: hidden;
    position: relative;
}

/* Paper Canvas Background with Texture */
.paper-canvas {
    position: relative;
    min-height: 100vh;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.02) 1px,
            rgba(0, 0, 0, 0.02) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.02) 1px,
            rgba(0, 0, 0, 0.02) 2px
        );
    background-color: var(--cream-primary);
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.section-hero {
    position: relative;
    justify-content: flex-start;
    padding-top: 100px;
}

.hero-card {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--sage-green);
    font-style: italic;
    font-weight: 400;
}

/* Watercolor Landscape */
.watercolor-landscape {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 300px;
    margin-top: 60px;
    opacity: 0;
    animation: fadeInLandscape 1.5s ease-out 0.3s forwards;
}

@keyframes fadeInLandscape {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sky-wash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(184, 169, 212, 0.2) 0%, rgba(232, 197, 71, 0.1) 50%, transparent 100%);
    border-radius: 20px;
}

.hill {
    position: absolute;
    bottom: 0;
    border-radius: 50% / 30%;
    opacity: 0.7;
}

.hill-1 {
    left: 5%;
    width: 45%;
    height: 60%;
    background: linear-gradient(135deg, rgba(139, 168, 136, 0.5), rgba(61, 139, 139, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hill-2 {
    left: 35%;
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, rgba(212, 137, 106, 0.4), rgba(184, 169, 212, 0.3));
    animation: float 7s ease-in-out 1s infinite;
}

.hill-3 {
    right: 10%;
    width: 40%;
    height: 55%;
    background: linear-gradient(135deg, rgba(232, 197, 71, 0.35), rgba(139, 168, 136, 0.3));
    animation: float 8s ease-in-out 0.5s infinite;
}

.town-silhouette {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background:
        linear-gradient(to bottom, transparent 60%, rgba(30, 38, 56, 0.3) 60%);
    clip-path: polygon(
        10% 100%, 15% 70%, 20% 85%, 25% 60%, 30% 75%, 35% 50%, 40% 70%,
        45% 55%, 50% 40%, 55% 55%, 60% 70%, 65% 50%, 70% 75%, 75% 60%,
        80% 85%, 85% 70%, 90% 100%
    );
}

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

/* Neomorphic Cards */
.neo-card {
    background: var(--cream-primary);
    border-radius: 20px;
    padding: 60px;
    max-width: 700px;
    width: 100%;
    box-shadow: var(--shadow-combined);
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin: 20px;
    transition: all 0.4s ease;
    animation: slideInCard 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neo-card:hover {
    box-shadow:
        -12px -12px 24px rgba(255, 255, 255, 0.9),
        12px 12px 24px rgba(0, 0, 0, 0.12);
}

.water-card { animation-delay: 0.2s; }
.electrical-card { animation-delay: 0.2s; }
.roads-card { animation-delay: 0.2s; }
.stat-card { animation-delay: 0.4s; }
.close-card { animation-delay: 0.2s; }

/* Section Headings */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin-bottom: 20px;
}

.section-heading-italic {
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

/* Section Body Text */
.section-body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--dark-navy);
    margin-bottom: 40px;
    letter-spacing: 0.2px;
}

/* Watercolor Illustrations */
.watercolor-illustration {
    width: 100%;
    max-width: 500px;
    margin: 40px auto 0;
    opacity: 0;
    animation: fadeInIllustration 1.2s ease-out 0.5s forwards;
}

@keyframes fadeInIllustration {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.wc-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(-4px -4px 8px rgba(255, 255, 255, 0.6))
            drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.05));
}

.flow-path {
    transition: opacity 0.4s ease;
}

/* Water Section */
.section-water {
    background:
        radial-gradient(circle at 20% 50%, rgba(61, 139, 139, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 169, 212, 0.05) 0%, transparent 50%);
}

.water-illustration {
    margin-top: 40px;
}

/* Electrical Section */
.section-electrical {
    background:
        radial-gradient(circle at 50% 20%, rgba(232, 197, 71, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 70%, rgba(43, 58, 103, 0.05) 0%, transparent 50%);
}

/* Roads Section */
.section-roads {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-card {
    min-width: 100%;
}

.stat-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--teal-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: var(--sage-green);
    text-align: center;
    font-weight: 500;
}

/* Close Section */
.section-close {
    background:
        linear-gradient(135deg, rgba(184, 169, 212, 0.08) 0%, rgba(61, 139, 139, 0.08) 100%);
}

.colophon-mark {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 600;
    color: var(--coral);
    margin-top: 30px;
    text-align: center;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }

    .neo-card {
        padding: 40px 25px;
        border-radius: 15px;
    }

    .stat-group {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .watercolor-landscape {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 30px 15px;
    }

    .neo-card {
        padding: 30px 20px;
        margin: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .section-body {
        font-size: 0.95rem;
    }

    .watercolor-landscape {
        height: 200px;
        margin-top: 30px;
    }
}

/* Scroll animations */
.section {
    opacity: 0;
    animation: fadeInSection 0.6s ease-out forwards;
}

.section-water { animation-delay: 0.1s; }
.section-electrical { animation-delay: 0.2s; }
.section-roads { animation-delay: 0.3s; }
.section-close { animation-delay: 0.4s; }

@keyframes fadeInSection {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    .neo-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
