/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color-dark: #343a40;
    --text-color-light: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--light-bg);
    color: var(--text-color-dark);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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-light);
}

section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
    border: none;
}

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

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

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

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

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

body.dark-mode .navbar {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

body.dark-mode .navbar-brand {
    color: var(--text-color-light);
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-color-dark);
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
}

body.dark-mode .nav-link {
    color: var(--text-color-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width var(--transition-speed);
}

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

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

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: 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: 4rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* Featured Tours Section */
.featured-tours {
    background-color: var(--light-bg);
    text-align: center;
}

body.dark-mode .featured-tours {
    background-color: var(--dark-bg);
}

.featured-tours h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tour-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

body.dark-mode .tour-card {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tour-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tour-card-content {
    padding: 25px;
    text-align: left;
}

.tour-card-content h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.tour-card-content p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.tour-card-content .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: #e9ecef;
    text-align: center;
}

body.dark-mode .testimonials {
    background-color: #222;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

body.dark-mode .testimonial-card {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

body.dark-mode .testimonial-card p {
    color: var(--text-color-light);
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Call to Action Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--white);
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color var(--transition-speed);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.dark-mode-toggle:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px; /* Adjust based on dark mode toggle position */
    right: 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: background-color var(--transition-speed), transform var(--transition-speed), opacity var(--transition-speed);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #218838;
    transform: scale(1.1);
}