:root {
    --color-primary-teal: #159E8A;
    --color-primary-navy: #2c4a6e;
    --color-accent-red: #e63946;
    --color-bg-light: #f8fafb;
    --color-bg-dark: #1a2332;
    --color-text-dark: #2c4a6e;
    --color-text-light: #ffffff;
    --color-border: rgba(26, 155, 142, 0.2);
}

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

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #4a5568 100%);
    background-size: 200% 200%;
    animation: gradientFlow 20s ease infinite;
    color: var(--color-text-dark);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(26, 155, 142, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(212, 174, 52, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(44, 74, 110, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.landing-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.content-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .content-wrapper {
        overflow: visible;
    }
}

.hero-section {
    position: absolute;
    top: 2rem;
    padding-top: 3rem;
    padding-left: 3rem;
    left: 2rem;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.logo {
    height: 180px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.map-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    padding: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.map-wrapper.mobile-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#pipeline-map {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.location {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location:hover circle {
    filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.location:hover text {
    font-weight: 600;
    font-size: 16px;
}

.location circle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location text {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    fill: var(--color-text-dark);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    paint-order: stroke fill;
    stroke: rgba(205, 205, 205, 0.95);
    stroke-width: 5px;
    stroke-linejoin: round;
}

.pipeline {
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pipeline:hover {
    stroke-width: 8;
    filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 4px currentColor) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.flow-particle {
    filter: drop-shadow(0 0 4px currentColor);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.river {
    opacity: 0.25;
}

footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 300;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

footer a {
    color: var(--color-primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgba(75, 116, 32, 0.8);
}

@media (max-width: 1024px) {
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .map-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        top: 0;
        left: 0;
        padding-left: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .logo {
        height: 80px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .map-wrapper {
        display: block;
        height: 100vh;
        width: 100vw;
        padding: 0;
        overflow: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }
    
    .map-wrapper::before {
        content: '';
        position: absolute;
        left: 105%;
        width: 1px;
        height: 100vh;
        scroll-snap-align: center;
        pointer-events: none;
    }
    
    #pipeline-map {
        max-width: none;
        max-height: none;
        display: block;
        height: 100vh;
        width: 180vw;
    }
    
    .content-wrapper {
        padding: 0;
        gap: 0;
    }
    
    .location text {
        font-size: 11px;
        stroke-width: 4px;
    }
    
    footer {
        font-size: 0.75rem;
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        top: 0;
        left: 0;
        padding-left: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .logo {
        height: 80px;
        margin-bottom: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .map-wrapper {
        display: block;
        height: 100vh;
        width: 100vw;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }
    
    .map-wrapper::before {
        content: '';
        position: absolute;
        left: 105%;
        width: 1px;
        height: 100vh;
        scroll-snap-align: center;
        pointer-events: none;
    }
    
    #pipeline-map {
        max-width: none;
        max-height: none;
        display: block;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    .location text {
        font-size: 9px;
        stroke-width: 3px;
    }
    
    footer {
        font-size: 0.7rem;
        padding: 0.8rem 0;
    }
}
