/* ====== Variables & Setup ====== */
:root {
    --primary: #ff6b35; /* More vibrant orange */
    --primary-dark: #e85d04;
    --secondary: #2196f3;
    --dark: #0f172a; /* Richer dark slate */
    --darker: #020617;
    --light: #ffffff;
    --gray: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --gradient-1: linear-gradient(135deg, #ff6b35 0%, #ff9f1c 100%);
    --gradient-text: linear-gradient(90deg, #ff6b35, #ff9f1c, #ff6b35);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: #ffffff;
    color: var(--text);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ====== Animations ====== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

.slide-up {
    /* Visible by default for resilience */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Base state for JS-based reveal */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ====== Navbar ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0; /* Minimal padding for thinner height */
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.nav-container.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 5px 30px; /* Thinner height padding */
    transition: var(--transition);
}

.navbar.scrolled .nav-container.glassmorphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255,255,255,0.8);
    padding: 8px 30px; /* Thinner height padding */
}

.navbar.scrolled .logo a,
.navbar.scrolled .nav-link,
.navbar.scrolled .hamburger i {
    color: var(--dark);
}

.nav-container {
    width: 95%; /* Wider width */
    max-width: 1400px; /* Expanded max-width */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--light);
    transition: var(--transition);
}

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

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

.nav-link {
    font-weight: 600;
    color: var(--light);
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
}

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

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

.nav-link:hover {
    color: var(--primary) !important;
}

.login-btn {
    background: var(--gradient-1);
    color: var(--light) !important;
    padding: 8px 25px; /* Adjust button padding to fit thinner navbar */
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: none;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--light);
    cursor: pointer;
}

/* ====== Hero Section ====== */
.hero {
    min-height: 80vh;
    background: url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    color: var(--light);
    margin-bottom: 20px; /* Reduced margin to fix layout */
    margin-top: -60px; /* Center perfectly avoiding search bar at bottom */
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem; /* Adjusted for better fit */
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.4);
}

.text-gradient {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    opacity: 0.9;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.primary-btn {
    background: var(--gradient-1);
    color: var(--light) !important;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    border: none;
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.secondary-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--light);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

/* ====== Upcoming Trips ====== */
.upcoming-trips {
    background: #ffffff;
    padding-top: 60px;
    padding-bottom: 80px;
}

.upcoming-trips .section-header h2 {
    color: var(--dark);
}
.upcoming-trips .section-header p {
    color: var(--text-light);
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.trip-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.trip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.trip-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.trip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.trip-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--light);
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.trip-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

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

.trip-details {
    padding: 30px;
}

.trip-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.trip-location {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.trip-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.trip-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.trip-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.book-btn {
    width: 100%;
    max-width: 250px;
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

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

/* ====== Our Partners ====== */
.partners {
    background: transparent;
    color: var(--dark);
}

.partners .section-header h2 {
    color: var(--dark);
}

.partners-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 50px;
}

.partner {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    opacity: 0.4;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-5px);
}

/* ====== Gallery ====== */
.gallery {
    background: #ffffff;
}
.gallery .section-header h2 {
    color: var(--dark);
}
.gallery .section-header p {
    color: var(--text-light);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover::after {
    opacity: 1;
}

/* ====== About Section ====== */
.about {
    background: #ffffff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat p {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0;
}

/* ====== Contact Section ====== */
.contact {
    background: #ffffff;
}
.contact .section-header h2 {
    color: var(--dark);
}
.contact .section-header p {
    color: var(--text-light);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    background: transparent;
    border-radius: 20px;
}

.contact-info {
    flex: 1;
    background: #f8fafc;
    color: var(--dark);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    flex: 1.5;
    padding: 60px;
    background: var(--light);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

.submit-btn {
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* ====== Footer ====== */
footer {
    background: #f8fafc;
    color: var(--dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

footer p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

/* ====== Auth Modal ====== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.active {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background: var(--light);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-content::-webkit-scrollbar {
    width: 6px;
}
.auth-modal-content::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.auth-tab {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px 3px 0 0;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
    text-align: center;
}

.auth-form p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

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

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-link {
    margin-top: 15px;
    margin-bottom: 0 !important;
}

.auth-link a {
    color: var(--primary);
    font-weight: 600;
}

/* ====== Profile Modal Special Styles ====== */
.profile-menu-item:hover {
    background-color: #f8fafc;
    padding-left: 20px !important;
}

#logout-btn:hover {
    background-color: #ff4d4d !important;
    color: white !important;
}

/* ====== Responsive Design ====== */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--dark);
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .navbar.scrolled .hamburger i {
        color: var(--dark);
    }

    .hamburger.active i {
        color: var(--dark);
    }
    
    .logo a {
        font-size: 1.4rem;
    }
    
    .hero {
        min-height: 60vh;
        height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
        background-position: center bottom;
    }

    .hero-content {
        margin-top: 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .upcoming-trips {
        padding-top: 40px;
    }
    
    .hero-badge {
        margin-top: 20px;
    }
    
    /* Responsive forms and layouts */
    .responsive-grid-main,
    .responsive-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .payment-container {
        margin: 20px auto;
        padding: 20px;
    }
    .payment-methods {
        flex-direction: column;
    }
    .row {
        flex-direction: column;
        gap: 15px;
    }
    .amount-display h1 {
        font-size: 2rem;
    }
}

/* ====== Toast Notifications ====== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    padding: 16px 24px;
    border-radius: 12px;
    background: white;
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: toastSlideIn 0.3s ease forwards;
    border-left: 5px solid var(--primary);
}

.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #22c55e; }
.toast.info { border-left-color: var(--secondary); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

.toast.fade-out {
    animation: toastFadeOut 0.5s ease forwards;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.1));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.overlay-content h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.photo-count {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
