* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a365d;
    --secondary: #2c5282;
    --accent: #3182ce;
    --light: #ebf8ff;
    --text: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.wave-icon {
    width: 32px;
    height: 20px;
    color: var(--accent);
    animation: waveFloat 2.5s ease-in-out infinite;
}

.wave-icon path {
    animation: waveFlow 1.8s ease-in-out infinite;
    transform-origin: 50% 50%;
}

.wave-icon path:nth-child(1) {
    animation-delay: 0s;
}

.wave-icon path:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(1deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(2px) rotate(-1deg);
    }
}

@keyframes waveFlow {
    0%, 100% {
        transform: translateX(0) scaleY(1);
        opacity: 1;
    }
    25% {
        transform: translateX(2px) scaleY(0.95);
        opacity: 0.9;
    }
    50% {
        transform: translateX(0) scaleY(1);
        opacity: 1;
    }
    75% {
        transform: translateX(-2px) scaleY(0.95);
        opacity: 0.9;
    }
}

.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    font-size: 0.9375rem;
    transition: color 0.2s;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: var(--accent);
    background: var(--light);
}

.nav-menu a.active {
    color: var(--accent);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.875rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--white);
}

/* Lazy Loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        margin-top: 8px;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }
}
