:root {
    --primary-color: #2C3E50; /* Dark Blue/Grey */
    --secondary-color: #3498DB; /* Vibrant Blue */
    --accent-color: #E74C3C; /* Soft Coral/Orange */
    --text-color: #34495E; /* Dark Grey for body text */
    --light-text-color: #ECF0F1; /* Light Grey for inverse text */
    --background-light: #F8F9FA; /* Very Light Grey */
    --background-dark: #1F2C3E; /* Even darker blue for footer */
    --card-background: #FFFFFF; /* White */
    --border-color: #E0E0E0; /* Light border */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --header-height: 80px;
}

/* Base Styles & Reset */
*, *::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(--text-color);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 3.2em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }
h5 { font-size: 1.4em; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.main-header {
    background-color: var(--card-background);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--secondary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05em;
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    overflow: hidden;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_14.jpg') no-repeat center center/cover;
    filter: brightness(0.6) grayscale(0.2);
    z-index: -1;
    transform: scale(1.02); /* Slight scale for subtle animation */
    transition: transform 0.8s ease-out;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: fadeInSlideUp 1s ease-out forwards;
}

.hero-content h2 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5em;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.4;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease-out;
}

.about-image img:hover {
    transform: translateY(-5px);
}

.about-text h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

/* Card Grid Styles (Destinations, Experiences, Why Us) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.destination-card, .experience-card, .feature-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover, .experience-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.destination-card img, .experience-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}

.destination-card:hover img, .experience-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
}

.card-content h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-content p {
    font-size: 1em;
    color: #666;
}

/* Why Us Section - Specific card styling */
.feature-card {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Fallback */
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent; /* Standard property for non-webkit browsers */
    transition: transform 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1);
}

.feature-card h4 {
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    padding: 15px;
    font-size: 0.95em;
    color: #777;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    text-align: center;
    padding: 80px 25px;
    margin-top: 80px;
}

.cta-banner h3 {
    color: var(--light-text-color);
    font-size: 2.8em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-banner p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 60px 0 30px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #AAA;
}

.footer-nav h5, .footer-social h5 {
    color: var(--light-text-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #AAA;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.connect-text {
    color: #AAA;
    font-size: 0.9em;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #999;
}

/* Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        background-color: var(--card-background);
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        max-height: 0; /* Start hidden */
        overflow: hidden;
        visibility: hidden;
        opacity: 1;
        transition: max-height 0.5s ease-out, opacity 0.4s ease-out, visibility 0.4s ease-out;
    }

    .main-nav.active {
        max-height: 400px; /* Sufficient height for nav items */
        visibility: visible;
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .main-nav ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 1;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content h2 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 40px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Allows 2 columns if space, but stacks to 1 on smaller */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.8em; }
    .section-title { font-size: 2em; }
    .section-subtitle { font-size: 1em; margin-bottom: 40px;}
    .cta-banner h3 { font-size: 2em; }
    .cta-banner p { font-size: 1em; }

    .hero-section::before {
        filter: brightness(0.5) grayscale(0.3); /* Darker overlay for readability on small screens */
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller mobile */
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand, .footer-nav, .footer-social {
        margin-left: auto;
        margin-right: auto;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
}

/* 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;
}
