:root {
    --primary-color: #004d40; /* Deep Teal - representing lush landscapes */
    --secondary-color: #ffb300; /* Warm Gold - representing sunlight and heritage */
    --accent-color: #d84315; /* Spiced Orange - for highlight/contrast */
    --text-dark: #212121;
    --text-light: #f8f8f8;
    --bg-light: #f4f7f6; /* Off-white for clean sections */
    --bg-dark: #00362a; /* Darker teal for footer/header contrast */
    --card-bg: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;

    --max-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* Prevent horizontal scroll from reveal animation */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px var(--shadow-medium);
    transition: background-color 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo a {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Above nav list when open */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Nav toggle animation */
body.nav-open .hamburger {
    background: transparent;
}

body.nav-open .hamburger::before {
    transform: rotate(45deg);
}

body.nav-open .hamburger::after {
    transform: rotate(-45deg);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('images/image_19.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: var(--text-light);
    overflow: hidden; /* For pseudo-element overlay */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%); /* Darker gradient overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-md);
    transform: translateY(20px);
    opacity: 1;
    animation: fadeInSlideUp 1s ease-out forwards 0.5s;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: -webkit-linear-gradient(45deg, var(--secondary-color), #ffe082); /* Gradient text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-description {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    color: var(--text-dark);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-medium);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.about-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.about-card:hover .about-card-image {
    filter: brightness(1);
}

.about-card-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: var(--spacing-sm) var(--spacing-md) 0.5rem;
}

.about-card-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0 var(--spacing-md) var(--spacing-md);
}

/* Card Grid for Explore and Culture */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-light);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px var(--shadow-medium);
    background: linear-gradient(145deg, var(--bg-light), #e0e6e4);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid var(--secondary-color);
    transition: border-bottom 0.3s ease;
}

.card:hover .card-image {
    border-bottom-color: var(--accent-color);
}

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Ensures content takes available space */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 5px;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.card:hover .card-title::after {
    width: 70px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: minmax(200px, auto); /* Adjust row height */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: grayscale(20%);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px var(--shadow-medium);
    filter: grayscale(0%);
}

/* Example of making some gallery items span more space */
.gallery-grid img:nth-child(1) { /* First image spans 2 columns on larger screens */
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid img:nth-child(4) { /* Fourth image spans 2 columns */
    grid-column: span 2;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 5px solid var(--primary-color);
}

.footer p {
    margin: 0;
}

/* Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }

    .nav-list {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap; /* Allow logo and nav-toggle to wrap */
        justify-content: center;
    }

    .logo {
        width: 100%; /* Make logo take full width */
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }

    .nav-toggle {
        display: block; /* Show hamburger menu */
        position: absolute; /* Position relative to header container */
        right: var(--spacing-md);
        top: var(--spacing-sm);
    }

    .nav-list {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95); /* Darker overlay */
        padding: var(--spacing-lg);
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-lg);
        z-index: 999; /* Below nav-toggle */
    }

    body.nav-open .nav-list {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 2rem;
        color: var(--secondary-color);
        padding: 1rem 0;
    }

    .nav-link::after {
        background-color: var(--accent-color);
    }

    .hero {
        height: 80vh;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
    .section-description {
        font-size: 1rem;
    }

    /* Card grids stack to 1 column */
    .card-grid, .about-grid {
        grid-template-columns: 1fr;
    }

    /* Reset gallery grid for smaller screens */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px; /* Uniform height for mobile gallery */
    }
    .gallery-grid img:nth-child(1),
    .gallery-grid img:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .card-content {
        padding: var(--spacing-sm);
    }
    .card-title {
        font-size: 1.3rem;
    }
    .card-text {
        font-size: 0.85rem;
    }
    .about-card-title {
        font-size: 1.4rem;
    }
    .about-card-text {
        font-size: 0.85rem;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
