:root {
    --soft-blue: #7cb9e8; /* Calming, healthy sky blue */
    --soft-yellow: #fdf2a1; /* Gentle, happy sun yellow */
    --accent-blue: #5da9e9;
    --deep-blue: #34495e;
    --text-color: #444;
    --bg-light: #f4f9ff; /* Very airy, light background */
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
    font-weight: 300;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--deep-blue);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('images/main.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Wind Blowing Effect */
@keyframes flowerWind {
    0% { transform: rotate(0deg) skewX(0deg); }
    15% { transform: rotate(2deg) skewX(3deg); }
    35% { transform: rotate(-1.5deg) skewX(-2deg); }
    55% { transform: rotate(2.5deg) skewX(4deg); }
    75% { transform: rotate(-1deg) skewX(-1deg); }
    100% { transform: rotate(0deg) skewX(0deg); }
}

.maintain-badge {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    background: var(--soft-yellow);
    color: var(--deep-blue);
    padding: 12px 25px;
    display: inline-block;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    overflow: hidden; /* Ensures text stays within badge bounds */
}

.wind-text {
    display: inline-block;
    transform-origin: bottom center; /* Like a flower stem */
    animation: flowerWind 8s ease-in-out infinite;
}

.credits {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.credits a {
    color: var(--soft-yellow);
    text-decoration: none;
    font-weight: 600;
}

/* Info Section */
.info-section {
    padding: 120px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.intro-text p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.4;
    color: var(--deep-blue);
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 6px solid transparent;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-box {
    border-bottom-color: var(--soft-blue);
}

.book-box {
    border-bottom-color: var(--soft-yellow);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.info-img {
    width: auto;
    height: 400px; /* Fixed height for consistency */
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 30px;
    object-fit: contain; /* Ensures the whole image is visible without cropping */
    background: transparent;
}

@media (max-width: 768px) {
    .info-img {
        height: 300px;
    }
}

.info-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Link and Button styles */
a.accent-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a.accent-link:hover {
    color: var(--deep-blue);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.btn-primary {
    background-color: var(--soft-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 185, 232, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 185, 232, 0.6);
}

.btn-secondary {
    background-color: var(--soft-yellow);
    color: var(--deep-blue);
    box-shadow: 0 4px 15px rgba(253, 242, 161, 0.4);
}

.btn-secondary:hover {
    background-color: #f7e360;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 242, 161, 0.6);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    background: var(--soft-blue);
    color: var(--deep-blue);
}

footer .footer-links {
    margin-top: 25px;
}

footer a {
    color: var(--deep-blue);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* Scroll Animation Initial States */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

.fade-in-left {
    transform: translateX(-100px);
}

.fade-in-right {
    transform: translateX(100px);
}

.fade-in-up {
    transform: translateY(50px);
}

/* Visible State (Triggered by JS) */
.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsiveness */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .intro-text {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 30px 20px;
    }
    
    .intro-text p {
        font-size: 1.3rem;
    }
    
    footer a {
        display: block;
        margin: 10px 0;
    }
}
