:root {
    /* Colors */
    --color-primary: #5A8D8B; /* Serene Teal */
    --color-secondary: #90B3B2; /* Lighter Teal */
    --color-accent: #D4A373; /* Earthy Gold */
    --color-dark: #2C3E50; /* Dark Blue-Gray */
    --color-light: #F8F8F8; /* Off-White */
    --color-text: #4A4A4A; /* Dark Gray for text */
    --color-light-text: #FFFFFF; /* White for light backgrounds */
    --color-shadow: rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --section-padding: 6rem;

    /* Border Radius */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;

    /* Transitions */
    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--section-padding) 0;
}

.text-center {
    text-align: center;
}

.light-text {
    color: var(--color-light-text);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

h1 {
    font-size: 3.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    border-radius: var(--border-radius-sm);
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-title:not(.text-center)::after {
    left: 0;
    transform: translateX(0);
}


.section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
    margin-bottom: var(--spacing-xl);
}
.light-text.section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed), backdrop-filter var(--transition-speed);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.5px;
    transition: color var(--transition-speed);
}
.main-header.scrolled .logo a {
    color: var(--color-dark);
}
.logo a:hover {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: var(--spacing-lg);
}

.nav-list a {
    color: var(--color-light-text);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed);
}
.main-header.scrolled .nav-list a {
    color: var(--color-dark);
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-speed);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--color-light-text);
    transition: background-color var(--transition-speed);
}
.main-header.scrolled .hamburger {
    background: var(--color-dark);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-light-text);
    transition: transform var(--transition-speed), top var(--transition-speed), background-color var(--transition-speed);
}
.main-header.scrolled .hamburger::before,
.main-header.scrolled .hamburger::after {
    background: var(--color-dark);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light-text);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/image_9.jpg') center/cover no-repeat fixed;
    overflow: hidden; /* For pseudo-element animations */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeInScale 1s ease-out forwards;
}

.hero-glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

@keyframes fadeInScale {
    from {
        opacity: 1;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-size: 5rem;
    color: var(--color-light-text);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 1px;
    color: var(--color-secondary);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-explore-link {
    display: inline-block;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    color: var(--color-light-text);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.hero-explore-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.hero-explore-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: left var(--transition-speed);
}

.hero-explore-link:hover::before {
    left: 100%;
}

/* About Section */
.about-section {
    background-color: var(--color-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 15px 30px var(--color-shadow);
    transform: translateY(0);
    transition: transform 0.6s ease-out;
}
.about-image-wrapper:hover {
    transform: translateY(-10px);
}


.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: filter var(--transition-speed), transform 1s ease;
}
.about-image-wrapper:hover .about-image {
    filter: brightness(1);
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
    opacity: 1;
    transition: opacity var(--transition-speed);
}
.about-image-wrapper:hover .image-overlay {
    opacity: 1;
}


.about-content p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    color: var(--color-text);
}

/* Articles Section */
.articles-section {
    background-color: #F0F4F7; /* A subtle light gray-blue */
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.article-card {
    background-color: var(--color-light-text);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px var(--color-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer; /* To indicate it's a clickable block, even if internal links are # */
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter var(--transition-speed);
    filter: brightness(0.95);
}

.article-card:hover .card-image {
    transform: scale(1.08);
    filter: brightness(1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
    transition: opacity var(--transition-speed);
}
.article-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-dark);
}

.card-category {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.card-excerpt {
    font-size: 1rem;
    color: var(--color-text);
}

/* Destination Section (Parallax Background) */
.destination-section {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('images/image_10.jpg') center/cover no-repeat fixed;
    color: var(--color-light-text);
    text-align: center;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.destination-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.destination-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter var(--transition-speed), transform var(--transition-speed);
}

.destination-card:hover .destination-image {
    filter: brightness(1);
    transform: scale(1.05);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: var(--spacing-lg);
    color: var(--color-light-text);
    text-align: left;
    transition: background var(--transition-speed);
}

.destination-card:hover .destination-info {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.destination-title {
    font-size: 1.6rem;
    color: var(--color-light-text);
    margin-bottom: var(--spacing-xs);
}

.destination-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Features Section */
.features-section {
    background-color: var(--color-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    background-color: var(--color-light-text);
    box-shadow: 0 8px 20px var(--color-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light-text);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-light-text);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.feature-description {
    font-size: 1rem;
    color: var(--color-text);
}

/* Footer */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-light-text);
    padding: var(--section-padding) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-light-text);
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav h3, .footer-social h3 {
    font-size: 1.4rem;
    color: var(--color-light-text);
    margin-bottom: var(--spacing-md);
}

.footer-nav ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 1rem;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-light-text);
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--color-accent);
    color: var(--color-light-text);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    body.nav-open .main-nav {
        transform: translateX(0);
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .nav-list li {
        margin: var(--spacing-md) 0;
    }

    .nav-list a {
        color: var(--color-light-text);
        font-size: 1.4rem;
        padding: var(--spacing-sm) 0;
        display: block;
    }
    .main-header.scrolled .nav-list a {
        color: var(--color-light-text); /* Keep white on mobile menu even if scrolled */
    }

    .nav-toggle {
        display: block;
    }

    .main-header.scrolled .hamburger,
    .main-header.scrolled .hamburger::before,
    .main-header.scrolled .hamburger::after {
        background: var(--color-dark); /* Ensure it's visible on light header */
    }

    body.nav-open .hamburger {
        background: transparent;
    }

    body.nav-open .hamburger::before {
        transform: rotate(-45deg);
        top: 0;
        background: var(--color-light-text);
    }

    body.nav-open .hamburger::after {
        transform: rotate(45deg);
        top: 0;
        background: var(--color-light-text);
    }

    /* Adjust hero text size */
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-tagline {
        font-size: 1.4rem;
    }
    .hero-description {
        font-size: 1rem;
    }

    /* About section */
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        order: -1; /* Image appears first on mobile */
    }
    .section-title, .section-subtitle {
        text-align: center;
    }
    .section-title:not(.text-center)::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Article grid */
    .article-grid, .destination-grid, .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .hero-glassmorphism {
        padding: 25px;
        border-radius: 15px;
    }
    }
    h3 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-tagline {
        font-size: 1.2rem;
    }
    .hero-explore-link {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .main-header .container {
        padding: 0 var(--spacing-sm);
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .hero-description {
        font-size: 0.9rem;
    }
    .hero-glassmorphism {
        padding: 30px;
        border-radius: 15px;
    }
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav ul {
        padding-left: 0;
    }
    .footer-social .social-icons {
        justify-content: center;
    }
    .footer-logo a {
        font-size: 2rem;
    }
}

/* 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;
}
