body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #fdf6e3 0%, #e0c3fc 50%, #a1c4fd 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 80px 20px 40px 20px;
    background: rgba(255,255,255,0.7);
    animation: fadeInDown 1s ease;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: slideInLeft 1.2s cubic-bezier(.77,0,.18,1) 0.2s backwards;
}

header p {
    font-size: 1.3rem;
    color: #555;
    animation: slideInRight 1.2s cubic-bezier(.77,0,.18,1) 0.4s backwards;
}

main section {
    margin: 40px auto;
    max-width: 600px;
    padding: 30px;
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

main section.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 30px 10px 10px 10px;
    color: #fff;
    background: rgba(0,0,0,0.2);
    font-size: 1rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 1.2s backwards;
}

html {
    scroll-behavior: smooth;
}

/* Responsive Navigation */
nav {
    text-align: center;
    margin-bottom: 20px;
}
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 30px;
    flex-wrap: wrap;
}
.nav-links li {
    display: inline;
}
.nav-links a {
    text-decoration: none;
    color: #2c5364;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s;
}
.nav-links a:hover,
.nav-links a:focus {
    background: #6a11cb;
    color: #fff;
}

/* Responsive Section Content */
.section-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #fff;
}

.section-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s, transform 0.8s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-img.full-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s, opacity 0.8s;
    opacity: 0;
    transform: scale(0.98);
}

.animated-section.visible .section-img.fade-in-left {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: fadeInLeftImg 1s;
}
.animated-section.visible .section-img.fade-in-up {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: fadeInUpImg 1s;
}
.animated-section.visible .section-img.fade-in-right {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: fadeInRightImg 1s;
}

.animated-section.visible .section-img.fade-in-left,
.animated-section.visible .section-img.fade-in-up,
.animated-section.visible .section-img.fade-in-right {
    opacity: 1;
    transform: scale(1);
}

.section-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 24px 24px 24px;
    background: linear-gradient(0deg, rgba(30,30,40,0.85) 60%, rgba(30,30,40,0.2) 100%, transparent 100%);
    color: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.section-text h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Keyframes */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes fadeInLeftImg {
    from { opacity: 0; transform: translateX(-60px) scale(0.9);}
    to { opacity: 1; transform: translateX(0) scale(1);}
}
@keyframes fadeInUpImg {
    from { opacity: 0; transform: translateY(60px) scale(0.9);}
    to { opacity: 1; transform: translateY(0) scale(1);}
}
@keyframes fadeInRightImg {
    from { opacity: 0; transform: translateX(60px) scale(0.9);}
    to { opacity: 1; transform: translateX(0) scale(1);}
}

/* Responsive */
@media (max-width: 900px) {
    .section-content {
        max-width: 98vw;
    }
    .section-img.full-img {
        height: auto;
    }
    header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 700px) {
    .section-content {
        margin: 20px 0;
        border-radius: 12px;
    }
    .section-img.full-img {
        height: auto;
        border-radius: 0;
    }
    .section-text {
        padding: 14px 8px 10px 8px;
        font-size: 1rem;
        border-radius: 0 0 12px 12px;
    }
    header {
        padding: 40px 10px 20px 10px;
    }
    header h1 {
        font-size: 1.4rem;
    }
    .nav-links {
        gap: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .section-img.full-img {
        height: auto;
    }
    .section-text h2 {
        font-size: 1.1rem;
    }
    .section-text p {
        font-size: 0.95rem;
    }
    footer {
        font-size: 0.9rem;
        padding: 18px 5px 5px 5px;
    }
}