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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.container {
    width: 100%;
    max-width: 100%;
}

/* Hero Section */
.hero {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 50%, #fefce8 100%);
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
    gap: 30px;
}

.brand-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -2px;
    position: absolute;
    top: 60px;
    left: 60px;
    z-index: 10;
}

.infrastructure-svg {
    width: 90%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

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

.svg-layer {
    transition: opacity 0.5s ease;
}

.svg-layer.below-ground {
    opacity: 0.3;
}

.svg-layer.below-ground.visible {
    opacity: 1;
}

/* SVG Elements */
.building {
    transition: stroke-width 0.3s ease, filter 0.3s ease;
}

.building:hover {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.bridge {
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.bridge:hover {
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.6));
}

.power-line {
    transition: stroke 0.3s ease;
}

.pole {
    transition: fill 0.3s ease, r 0.3s ease;
}

.pole:hover {
    r: 10px;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.pipe {
    transition: stroke 0.3s ease;
}

.pipe:hover {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.pipe-valve {
    transition: fill 0.3s ease, r 0.3s ease;
}

.pipe-valve:hover {
    r: 12px;
}

.cable {
    transition: stroke 0.3s ease;
}

.cable:hover {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.cable-node {
    transition: fill 0.3s ease, r 0.3s ease;
}

.cable-node:hover {
    r: 11px;
}

.tunnel {
    transition: stroke 0.3s ease;
}

.tunnel:hover {
    filter: drop-shadow(0 0 8px rgba(107, 114, 128, 0.6));
}

.tunnel-stop {
    transition: fill 0.3s ease, r 0.3s ease;
}

.tunnel-stop:hover {
    r: 10px;
}

.gas-line {
    transition: stroke 0.3s ease;
}

.gas-line:hover {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
}

.gas-node {
    transition: fill 0.3s ease, r 0.3s ease;
}

.gas-node:hover {
    r: 10px;
}

.labels {
    transition: opacity 0.5s ease;
}

.labels.visible {
    opacity: 1;
}

.label-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: #1e293b;
    pointer-events: none;
    text-anchor: middle;
}

.toggle-btn {
    padding: 12px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: absolute;
    bottom: 60px;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.toggle-btn:active {
    transform: translateY(0px);
}

/* Categories/Bento Section */
#categories {
    padding: 80px 40px;
    background-color: #f5f7fa;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -1px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 0 auto;
    max-width: 1200px;
}

.bento-cell {
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    border-top: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bento-cell:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bento-cell.power-category {
    border-top-color: #f59e0b;
}

.bento-cell.water-category {
    border-top-color: #3b82f6;
}

.bento-cell.transport-category {
    border-top-color: #22c55e;
}

.bento-cell.comm-category {
    border-top-color: #8b5cf6;
}

.bento-cell.gas-category {
    border-top-color: #22c55e;
}

.bento-cell.waste-category {
    border-top-color: #6b7280;
}

.cell-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
}

.bento-cell h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.bento-cell p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.stat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1e293b;
    margin-top: 20px;
}

/* Content Section */
.content-section {
    padding: 80px 40px;
    background-color: #ffffff;
}

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

.content-card {
    padding: 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #fefce8 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.content-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.content-card p {
    color: #6b7280;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Statistics Section */
.stats-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #fefce8 50%, #ffffff 100%);
}

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

.stat-card {
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 3px solid #3b82f6;
}

.stat-card:nth-child(2) {
    border-bottom-color: #8b5cf6;
}

.stat-card:nth-child(3) {
    border-bottom-color: #22c55e;
}

.stat-card:nth-child(4) {
    border-bottom-color: #f59e0b;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.stat-label {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Explore Section */
.explore-section {
    padding: 80px 40px;
    background-color: #f5f7fa;
}

.layer-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.layer-btn {
    padding: 12px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layer-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.layer-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.layer-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-info p {
    color: #6b7280;
    font-size: 1rem;
    text-align: center;
}

/* Footer */
.footer {
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    text-align: center;
    border-top: 4px solid #3b82f6;
}

.footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 16px;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2rem;
        top: 40px;
        left: 40px;
    }

    .hero-content {
        padding: 20px;
        gap: 20px;
    }

    #categories,
    .content-section,
    .stats-section,
    .explore-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .layer-controls {
        gap: 12px;
    }

    .layer-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .toggle-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .infrastructure-svg {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.5rem;
        top: 20px;
        left: 20px;
    }

    #categories,
    .content-section,
    .stats-section,
    .explore-section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .bento-cell {
        padding: 24px;
    }

    .content-card {
        padding: 24px;
    }

    .stat-card {
        padding: 24px;
    }

    .footer {
        padding: 40px 16px;
    }
}

/* Smooth Scroll and Transitions */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #3b82f6;
}
