/* Define color theme as CSS variables */
:root {
    --poseidon-1: #012030;
    --poseidon-2: #13678A;
    --poseidon-3: #45C4B0;
    --poseidon-4: #9AEBA3;
    --poseidon-5: #DAFDBA;
}

/* Color Theme Swatches using variables */
.poseidon-1-hex { color: var(--poseidon-1); }
.poseidon-2-hex { color: var(--poseidon-2); }
.poseidon-3-hex { color: var(--poseidon-3); }
.poseidon-4-hex { color: var(--poseidon-4); }
.poseidon-5-hex { color: var(--poseidon-5); }

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

body {
    background: linear-gradient(135deg, var(--poseidon-1) 0%, #001a24 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--poseidon-5);
    min-height: 100vh;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--poseidon-1) 0%, var(--poseidon-2) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, var(--poseidon-3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, var(--poseidon-2) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--poseidon-5);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--poseidon-4);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.demo-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(69, 196, 176, 0.1);
    border: 1px solid var(--poseidon-3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.indicator-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--poseidon-3);
}

.indicator-pulse {
    width: 8px;
    height: 8px;
    background: var(--poseidon-3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Demo Section */
.demo-section {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--poseidon-4);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--poseidon-5);
    opacity: 0.8;
    font-weight: 300;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.inner-block {
    background: linear-gradient(145deg, 
        var(--poseidon-2) 0%, 
        #0e5a7a 30%, 
        #0c4f6b 70%, 
        #094660 100%
    );
    border-radius: 16px;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(69, 196, 176, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.inner-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--poseidon-3) 20%, 
        var(--poseidon-4) 50%, 
        var(--poseidon-3) 80%, 
        transparent 100%
    );
    box-shadow: 
        0 0 20px rgba(69, 196, 176, 0.6),
        0 0 40px rgba(69, 196, 176, 0.3),
        0 2px 8px rgba(69, 196, 176, 0.4);
    border-radius: 16px 16px 0 0;
}

@keyframes glow {
    from {
        opacity: 0.8;
        box-shadow: 
            0 0 20px rgba(69, 196, 176, 0.6),
            0 0 40px rgba(69, 196, 176, 0.3),
            0 2px 8px rgba(69, 196, 176, 0.4);
    }
    to {
        opacity: 1;
        box-shadow: 
            0 0 30px rgba(69, 196, 176, 0.8),
            0 0 60px rgba(69, 196, 176, 0.4),
            0 4px 12px rgba(69, 196, 176, 0.6);
    }
}

.inner-block:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 64px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(69, 196, 176, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    border-color: rgba(69, 196, 176, 0.6);
}

.inner-block:hover::before {
    animation-duration: 1.5s;
    box-shadow: 
        0 0 40px rgba(69, 196, 176, 1),
        0 0 80px rgba(69, 196, 176, 0.6),
        0 6px 16px rgba(69, 196, 176, 0.8);
}

.block-one, .block-two {
    color: var(--poseidon-1);
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.block-one::before, .block-two::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.block-one:hover::before, .block-two:hover::before {
    left: 100%;
}

.block-one {
    background: linear-gradient(135deg, var(--poseidon-4), #85d9a3, var(--poseidon-4));
    box-shadow: 
        0 4px 16px rgba(154, 235, 163, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.block-two {
    background: linear-gradient(135deg, var(--poseidon-5), #e8ffcf, var(--poseidon-5));
    box-shadow: 
        0 4px 16px rgba(218, 253, 186, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.block-one:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 32px rgba(154, 235, 163, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.block-two:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 32px rgba(218, 253, 186, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--poseidon-1);
    border-top: 1px solid rgba(69, 196, 176, 0.2);
    margin-top: 4rem;

    a.github-link {
        display: flex;
        align-items: center;
        justify-content: center;

        svg {
            margin-left: 5px;
        }
    }
}

.footer p {
    color: var(--poseidon-4);
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer a {
    color: var(--poseidon-3);
    text-decoration: none;
    transition: color 0.3s ease;
}


.footer a:hover {
    color: var(--poseidon-4);
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .demo-section {
        padding: 3rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .demo-section {
        padding: 2.5rem 1rem;
    }
    
    .inner-block {
        padding: 1.25rem;
    }
    
    .block-one, .block-two {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 2rem 0.75rem;
    }
    
    .demo-section {
        padding: 2rem 0.75rem;
    }
    
    .demo-indicator {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}