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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@keyframes colorShift {
    0%, 100% {
        color: #1e5a7a;
    }
    50% {
        color: #00a8cc;
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8fc 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(30, 90, 122, 0.1);
    animation: fadeInDown 0.6s ease-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h1 {
    color: #1e5a7a;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1e5a7a 0%, #00a8cc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #1e5a7a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a8cc, #1e5a7a);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #00a8cc;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1e5a7a;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4eef5 50%, #c0e8f0 100%);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e5a7a;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #00a8cc;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Wave Dividers */
.wave {
    display: block;
    width: 100%;
    height: 120px;
    margin-bottom: -1px;
    animation: waveAnimation 3s ease-in-out infinite;
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 1s;
}

/* Article Section */
.article-section {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
}

.main-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.main-article p {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.05rem;
    text-align: justify;
}

.main-article h2 {
    color: #1e5a7a;
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #00a8cc;
    animation: slideInLeft 0.6s ease-out;
}

.main-article h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a8cc, #1e5a7a);
    animation: slideInLeft 0.8s ease-out forwards;
}

.article-link {
    color: #00a8cc;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.article-link:hover {
    color: #1e5a7a;
    border-bottom: 2px solid #1e5a7a;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e5a7a 0%, #0f3a52 100%);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #ffffff 0%, #f0f8fc 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(30, 90, 122, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .main-article p {
        font-size: 1rem;
        text-align: left;
    }

    .main-article h2 {
        font-size: 1.5rem;
        margin: 2rem 0 0.8rem;
    }

    .wave {
        height: 80px;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo h1 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-article {
        padding: 0 1rem;
    }

    .main-article h2 {
        font-size: 1.3rem;
    }

    .wave {
        height: 60px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .main-article p {
        animation: fadeInUp 0.6s ease-out;
    }

    .main-article h2 {
        animation: slideInLeft 0.6s ease-out;
    }
}
