/* General Styles */
:root {
    --primary-color: #3498db; /* Blue */
    --secondary-color: #2ecc71; /* Green */
    --accent-color: #e74c3c; /* Red */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-color: #f9f9f9;
    --card-background: #fff;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --gradient-start: #3498db;
    --gradient-end: #2980b9;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }
h5 { font-size: 1.4em; }
h6 { font-size: 1.1em; }

p {
    margin-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header & Navigation */
.header {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--light-text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: var(--primary-color);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--light-text-color);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text-color);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--light-text-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px var(--shadow-medium);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.search-bar input[type="text"] {
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    width: 60%;
    max-width: 400px;
    box-shadow: 0 4px 15px var(--shadow-light);
    outline: none;
}

.search-bar button {
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.search-bar button:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

.btn-secondary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 3em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Featured Destinations */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.destination-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.destination-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.destination-card-content {
    padding: 20px;
}

.destination-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.destination-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

.destination-card .btn {
    width: 100%;
    border-radius: 5px;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--light-text-color);
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--light-text-color);
    font-size: 3.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #222;
    color: #bbb;
    padding: 60px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-col h4 {
    color: var(--light-text-color);
    font-size: 1.4em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #bbb;
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    box-shadow: 0 4px 15px var(--shadow-medium);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--card-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .error-message {
    color: var(--accent-color);
    font-size: 0.9em;
    margin-top: 5px;
    display: none; /* Hidden by default, shown with JS */
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--accent-color);
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.bg-light { background-color: var(--background-color); }
.bg-dark { background-color: #333; color: var(--light-text-color); }

/* Dark Mode (Optional) */
body.dark-mode {
    --text-color: #f4f4f4;
    --light-text-color: #333;
    --background-color: #2c3e50;
    --card-background: #34495e;
    --border-color: #555;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
}

body.dark-mode .header {
    background: var(--primary-color);
}

body.dark-mode .header.scrolled {
    background: #2980b9;
}

body.dark-mode .logo,
body.dark-mode .nav-links a {
    color: var(--light-text-color);
}

body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
    color: var(--light-text-color);
}

body.dark-mode .section-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: var(--text-color);
}

body.dark-mode .destination-card {
    background-color: var(--card-background);
    box-shadow: 0 5px 20px var(--shadow-medium);
}

body.dark-mode .destination-card p {
    color: #ccc;
}

body.dark-mode .footer {
    background-color: #1a1a1a;
}

body.dark-mode .footer-col h4 {
    color: var(--light-text-color);
}

body.dark-mode .footer-col ul li a,
body.dark-mode .footer-col p,
body.dark-mode .social-links a {
    color: #aaa;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background-color: var(--card-background);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Image Carousel/Slider (for index.html) */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Adjust as needed */
    margin: 50px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-nav-btn.prev {
    left: 10px;
}

.carousel-nav-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    .hero-content h1 { font-size: 3.5em; }
    .hero-content p { font-size: 1.2em; }
    .section-title { font-size: 2.5em; }
    .cta-section h2 { font-size: 3em; }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        text-align: center;
        background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 10px var(--shadow-medium);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .menu-toggle {
        display: flex;
    }
    .hero {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .search-bar {
        flex-direction: column;
        align-items: center;
    }
    .search-bar input[type="text"] {
        width: 80%;
        margin-bottom: 10px;
    }
    .search-bar button {
        width: 80%;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    .cta-section {
        padding: 80px 0;
    }
    .cta-section h2 {
        font-size: 2.5em;
    }
    .cta-section p {
        font-size: 1.1em;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        margin-bottom: 20px;
    }
    .social-links {
        justify-content: center;
    }
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .hero-content h1 { font-size: 2.2em; }
    .hero-content p { font-size: 0.9em; }
    .search-bar input[type="text"],
    .search-bar button {
        width: 90%;
    }
    .section-title {
        font-size: 1.8em;
    }
    .cta-section h2 {
        font-size: 2em;
    }
    .cta-section p {
        font-size: 1em;
    }
}