/* CSS Variables - Modern Dark Theme */
:root {
    /* Palette: Dark, Cinematic, Premium */
    --bg-color: #050505;       /* Almost Black */
    --bg-secondary: #121212;   /* Dark Grey for sections */
    --card-bg: rgba(255, 255, 255, 0.05); /* Glassmorphism base */
    
    --primary-color: #E07A5F;  /* Keeping the Terracotta but vibrant */
    --primary-glow: rgba(224, 122, 95, 0.4);
    --accent-color: #F2CC8F;   /* Gold/Sand */
    
    --text-color: #F4F1DE;     /* Off-white for readability */
    --text-muted: #9CA3AF;     /* Grey for subtitles */
    --white: #FFFFFF;
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem; /* More spacing for modern look */
    
    --border-radius: 24px; /* Larger border radius */
    --border-light: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    font-weight: 300; /* Lighter weights look more modern/premium */
}

p {
    color: var(--text-muted);
    font-weight: 400;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: 1400px; /* Wider container */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Glow Effect */
.tour-card, .destination-card, .contact-wrapper {
    position: relative;
}

.tour-card::after, .destination-card::after, .contact-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    /* Gradient using primary color for warmth, tracking mouse position */
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.08), 
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 3;
}

.tour-card:hover::after, .destination-card:hover::after, .contact-wrapper:hover::after, .testimonial-card:hover::after {
    opacity: 1;
}

/* Enhance card hover transition for 3D feel */
.tour-card, .destination-card, .contact-wrapper, .testimonial-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform; /* Optimize performance */
}

/* When not hovering, smooth return */
.tour-card:not(:hover), .destination-card:not(:hover), .contact-wrapper:not(:hover), .testimonial-card:not(:hover) {
    transition: transform 0.5s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--bg-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--bg-color);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: linear-gradient(180deg, rgba(5,5,5,0.8) 0%, rgba(5,5,5,0) 100%);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
}

.nav-menu ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Gradient fallback */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Darken image */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
    padding-top: 60px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -2px;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--spacing-sm);
    display: block;
    font-weight: 600;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Section General */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-tag {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    filter:  grayscale(20%) contrast(110%);
}

.image-placeholder {
    background: linear-gradient(45deg, #222, #333);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Tours Section */
.tours {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: left;
    max-width: 800px;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 3.5rem;
}

/* Featured Tour Card (Glassmorphism) */
.tour-card.featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(20px);
    margin-bottom: var(--spacing-xl);
    transition: var(--transition);
}

.tour-card.featured:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tour-image {
    position: relative;
    height: 100%;
}

.tour-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
}

.tour-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tour-content h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.tour-details {
    display: flex;
    gap: 20px;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
}

.tour-highlights ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: var(--spacing-md);
}

.tour-highlights li {
    color: var(--text-muted);
    position: relative;
    padding-left: 15px;
}

.tour-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.destination-card {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.destination-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.destination-card .status {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-secondary);
    overflow: hidden; /* Hide scrollbar if parent restricts */
}

.testimonials-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px; /* Space for shadow/glow */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for testimonials but keep functionality */
.testimonials-scroller::-webkit-scrollbar {
    display: none;
}
.testimonials-scroller {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 300px;
    max-width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 30px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Re-use interactive styles automatically via shared classes or manual add */
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Apply same hover effects manually if not using shared class */
.testimonial-card:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 20px;
}

.stars {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Contact Section */
.contact {
    background-color: var(--bg-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.1);
}

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

.social-links a {
    color: var(--white);
    font-size: 1.1rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #000;
    border-top: 1px solid var(--border-light);
    padding: var(--spacing-lg) 0 40px;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer ul a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.9rem;
}

/* Accessibility: Focus Visibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Responsive Design & Accessibility */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 6rem;
        --spacing-lg: 3rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .about-grid, .contact-wrapper {
        gap: var(--spacing-lg);
    }

    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets Portrait & Large Mobiles (max-width: 900px) */
@media (max-width: 900px) {
    .tour-card.featured {
        grid-template-columns: 1fr;
    }
    
    .tour-image {
        height: 350px;
    }

    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-image {
        order: -1; /* Image on top on mobile */
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
        --border-radius: 16px;
    }

    .mobile-menu-btn {
        display: block;
        padding: 10px; /* Larger touch target */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        padding: 120px 20px 40px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        overflow-y: auto; /* Allow scroll if menu is tall */
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    /* Staggered Animation for Menu Items */
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-menu a {
        font-size: 1.8rem;
        font-weight: 300;
        display: block;
        padding: 10px;
    }

    .btn {
        width: 100%;
        padding: 18px 32px; /* Easy to tap */
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .destinations-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .about-stats {
        gap: 10px;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    .contact-wrapper {
        padding: var(--spacing-md);
    }
    
    /* Make form inputs easier to tap */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 18px;
    }
}

/* Small Mobiles (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tour-content h3 {
        font-size: 1.5rem;
    }
    
    .tour-highlights ul {
        grid-template-columns: 1fr;
    }
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (hover: none) {
    .tour-card:hover, .destination-card:hover {
        transform: none;
    }
    
    .tour-card::after, .destination-card::after, .contact-wrapper::after {
        opacity: 0 !important;
    }
}
