/* ---------- VARIABLES ---------- */
/* ---------- VARIABLES ---------- */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --text-dark: #053e16;
    --bg-light: #ffffff;
    --text-light: #ffffff;
}

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- BODY ---------- */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    animation: fadeInBody 1.2s forwards;
}

/* Fade-in animation */
@keyframes fadeInBody {
    to { opacity: 1; }
}

/* ---------- HEADER ---------- */
header {
    background: var(--bg-light);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s, transform 0.3s;
}

header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

header img {
    height: 60px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Underline animation for nav links */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -4px;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ---------- HERO SECTION ---------- */
.hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border-radius: 0 0 50% 50% / 0 0 20% 20%;
    position: relative;
    overflow: hidden;
    animation: heroBackground 10s infinite alternate;
}

/* Animated gradient for hero */
@keyframes heroBackground {
    0% { background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%); }
    50% { background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%); }
    100% { background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeUp 1.2s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeUp 1.5s ease forwards;
}

.hero .cta-button {
    background: var(--text-light);
    color: var(--primary-dark);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    animation: fadeUp 1.8s ease forwards;
}

.hero .cta-button:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Fade-up animation */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- GALLERY SECTION ---------- */
.gallery {
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
    padding: 60px 10%;
}

.gallery h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    animation: fadeUp 1s ease forwards;
}

.gallery p {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 40px;
    animation: fadeUp 1.2s ease forwards;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
}

.gallery-item {
    width: 100%;
    max-width: 350px;
    height: 230px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(1deg);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--bg-light);
    text-align: center;
    padding: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    transition: color 0.3s, transform 0.3s;
}

footer p:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
