/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    /* Brand Colors - Organic Valley Green */
    --color-primary: #4A7C2C;
    --color-primary-light: #6B9D4A;
    --color-primary-dark: #2D5016;
    
    --color-accent: #8B7355;
    --color-accent-light: #D4A574;
    
    --color-network-farm: #6B9D4A;
    --color-network-distribution: #8B7355;
    --color-network-connection: #B8D4A0;
    
    --color-white: #FFFFFF;
    --color-gray-50: #F7FAFC;
    --color-background: linear-gradient(135deg, #F7FAFC 0%, #FFFFFF 100%);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background: var(--color-background);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

/* ===========================
   Logo Container
   =========================== */
.logo-container {
    animation: fadeIn 1s ease-in;
}

.ov-logo {
    max-width: 300px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .ov-logo {
        max-width: 200px;
    }
}

/* ===========================
   Title Container
   =========================== */
.title-container {
    text-align: center;
    animation: fadeInUp 1.2s ease-in;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: -1px;
    margin: 0;
}

@media (max-width: 768px) {
    .main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* ===========================
   Network Visualization Container
   =========================== */
.network-container {
    width: 100%;
    max-width: 900px;
    animation: fadeIn 1.5s ease-in;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

#network-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   SVG Network Styles
   =========================== */
.network-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-node:hover circle {
    r: 12;
}

.network-connection {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-in forwards;
}

.node-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

