/* 
========================
VARIABLES & THEME
========================
*/
:root {
    /* Colors */
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary: #22c55e;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #f97316;
    
    /* Light Theme (Default) */
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Layout */
    --radius: 12px;
    --transition: 0.3s ease;
    --header-height: 80px;
    --font-main: 'Poppins', sans-serif;
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-alt: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

/* 
========================
RESET & TYPOGRAPHY
========================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

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

/* 
========================
UTILITIES
========================
*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
}

.section-title p {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all var(--transition);
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.d-none { display: none !important; }

/* 
========================
PRELOADER
========================
*/
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* 
========================
NAVBAR
========================
*/
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background-color: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.sticky {
    background-color: var(--bg-main);
    box-shadow: var(--shadow);
}

.navbar.sticky .logo, .navbar.sticky .nav-links a {
    color: var(--text-main);
}

.navbar.sticky .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.navbar.sticky .btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#themeToggle, .dark-mode-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all var(--transition);
    font-size: 1.2rem;
}

.navbar.sticky #themeToggle {
    color: var(--text-main);
    background-color: var(--bg-alt);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.navbar.sticky .hamburger span {
    background-color: var(--text-main);
}

/* 
========================
HERO SECTION
========================
*/
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    color: #fff;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* 
========================
CARDS GRID (Featured & Tours)
========================
*/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    position: relative;
    overflow: hidden;
}

.tour-card img, .card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

/* 
========================
WHY CHOOSE US
========================
*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--bg-main);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    border: 1px solid var(--border);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-box h3 {
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 
========================
TESTIMONIALS
========================
*/
.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
    position: relative;
    line-height: 1.8;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    cursor: pointer;
    transition: background-color var(--transition);
}

.dot.active {
    background-color: var(--primary);
}

/* 
========================
ABOUT
========================
*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mv-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.about-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

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

.team-card {
    text-align: center;
    background-color: var(--bg-main);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--bg-alt);
    padding: 5px;
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-card p {
    color: var(--primary);
}

/* 
========================
TOURS FILTERS & MESSAGES
========================
*/
.filters-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filters-container input, .filters-container select {
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}

.filters-container input:focus, .filters-container select:focus {
    border-color: var(--primary);
}

.filters-container input {
    flex: 1;
    min-width: 250px;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* 
========================
FORMS (Booking & Contact)
========================
*/
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.booking-benefits {
    margin-top: 30px;
}

.booking-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.booking-form-container, .contact-form {
    background-color: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-alt);
    color: var(--text-main);
    font-family: inherit;
    transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    margin-top: 40px;
}

/* 
========================
FOOTER
========================
*/
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color var(--transition);
}

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

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    border-radius: 8px 0 0 8px;
    border: none;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.newsletter-form button {
    border-radius: 0 8px 8px 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* 
========================
MODAL (Dynamic Tour Details)
========================
*/
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-main);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius);
    position: relative;
    overflow-y: auto;
    transform: translateY(-50px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-alt);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--accent);
    color: #fff;
}

.modal-body-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.modal-info {
    padding: 40px 30px 40px 10px;
}

.modal-info h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.itinerary h4 {
    margin: 20px 0 10px;
    color: var(--text-main);
}

.itinerary ul {
    list-style: disc inside;
    color: var(--text-muted);
}

.itinerary ul li {
    margin-bottom: 8px;
}

.modal-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* 
========================
TOAST NOTIFICATION
========================
*/
.toast {
    position: fixed;
    bottom: 30px;
    right: -300px;
    background-color: var(--secondary);
    color: #fff;
    padding: 15px 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    z-index: 3000;
}

.toast.show {
    right: 30px;
}

/* Scroll To Top */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: #fff;
    width: 45px; height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#scrollTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollTop:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* 
========================
ANIMATIONS (Scroll Reveal)
========================
*/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* 
========================
RESPONSIVENESS
========================
*/
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .about-grid, .booking-wrapper, .contact-wrapper, .modal-body-inner {
        grid-template-columns: 1fr;
    }
    .modal-info {
        padding: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
    }
    .navbar.sticky .nav-links {
        background-color: var(--bg-main);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links a {
        color: var(--text-main);
        font-size: 1.2rem;
    }
    .d-none-sm { display: none; }
    
    .hero h1 { font-size: 2.3rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .filters-container { flex-direction: column; }
    .filters-container input, .filters-container select { width: 100%; }
}
