/* ==================== ROOT & VARIABLES ==================== */
:root {
    --primary-color: #4F46E5; /* Indigo */
    --secondary-color: #EC4899; /* Pink */
    --accent-color: #06B6D4; /* Cyan */
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
body.dark-mode {
    --bg-dark: #0f172a;
    --bg-light: #1e293b;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
}

/* ==================== RESET & GENERAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--bg-dark);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVIGATION BAR ==================== */
.navbar {
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism light */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* Soft shadow */
    padding: 1rem 0;
}

body.dark-mode .navbar-sticky {
    background: rgba(15, 23, 42, 0.85); /* Glassmorphism dark */
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

body.dark-mode .navbar-logo {
    color: white;
}

.navbar-logo i {
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

body.dark-mode .nav-link {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


.btn-login {
    padding: 8px 24px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.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: linear-gradient(135deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

/* ==================== SEARCH CONTAINER ==================== */
.search-container {
    margin-top: 2rem;
}

.search-box {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.search-item input,
.search-item select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    min-width: 200px;
}

.search-item input:focus,
.search-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==================== BUTTONS ==================== */
.btn-primary,
.btn-secondary {
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== SECTIONS ==================== */
.destinations-section,
.budget-planner-section,
.testimonials-section,
.about-section {
    padding: 80px 0;
    background: var(--bg-light);
    transition: var(--transition);
}

body.dark-mode .destinations-section,
body.dark-mode .budget-planner-section,
body.dark-mode .testimonials-section,
body.dark-mode .about-section {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ==================== DESTINATION CARDS ==================== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.destination-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.destination-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.destination-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.destination-card:hover .destination-card-image img {
    transform: scale(1.1) rotate(2deg);
}

.destination-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.destination-card-content {
    padding: 25px;
}

.destination-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.destination-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.destination-card-rating .stars {
    display: flex;
    gap: 3px;
    color: #ffc107;
}

.destination-card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.destination-card .btn-primary {
    width: 100%;
    justify-content: center;
}

/* ==================== BUDGET PLANNER ==================== */
.budget-planner {
    background: rgba(102, 126, 234, 0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.budget-input-group {
    margin-bottom: 25px;
}

.budget-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.budget-input-group .input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.budget-input-group .input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.budget-slider-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.budget-display {
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 120px;
    text-align: center;
}

.budget-planner .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.budget-results {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.budget-result-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.budget-result-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.budget-result-card p {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    color: #ffc107;
}

.testimonial-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #999;
    font-size: 0.9rem;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 25px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-item p {
    color: #999;
    font-size: 0.95rem;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 50;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1a2e);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(15, 15, 35, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .navbar-menu.active {
        max-height: 500px;
        padding: 20px 0;
    }

    .navbar-menu li {
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-item input {
        min-width: 100%;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .search-box .btn-primary {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-logo span {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .search-item {
        min-width: 100%;
    }

    .destinations-grid {
        gap: 15px;
    }

    .destination-card-image {
        height: 200px;
    }
}
