@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --snow: #f8fafc;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(15, 23, 42, 0.7);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--snow);
    color: var(--primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Typography Customization */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Elements */
.hero-gradient {
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.5) 0%,
            rgba(15, 23, 42, 0.25) 30%,
            rgba(15, 23, 42, 0.55) 65%,
            rgba(15, 23, 42, 0.85) 100%);
}

header img {
    object-position: center top;
}

.text-glow {
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Hero text shadow for legibility */
.hero-text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.nav-unscrolled-gradient {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0) 100%);
}

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* Buttons */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s ease;
}

.btn-premium:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Cards */
.reveal-card {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.reveal-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--snow);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Hide Alpine elements before init */
[x-cloak] {
    display: none !important;
}

/* Section Title Highlight */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-title-left::after {
    margin-left: 0;
}

/* Fleet placeholder styling */
.vehicle-placeholder svg { color: rgba(226,232,240,0.9); }
.vehicle-placeholder { position: relative; overflow: hidden; }
.vehicle-placeholder .text-small { font-size: 0.85rem; }
.vehicle-placeholder h5 { text-shadow: 0 6px 18px rgba(2,6,23,0.6); }

/* Hero tweaks: center glass and make narrower on large screens */
.hero-glass-wrapper { max-width: 980px; margin: 4rem auto; padding: 2rem; }

/* About Ladakh stats grid */
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }

/* Activities grid with responsive design */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* Notable places grid */
.places-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* Metadata badges styling */
.meta-badge { display: inline-block; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; }
.meta-badge-altitude { background: rgba(251,146,60,0.1); color: #b45309; }
.meta-badge-difficulty { background: rgba(241,245,249,1); color: #1e293b; }
.meta-badge-season { background: rgba(220,252,231,1); color: #15803d; }

/* Photo modal responsive */
.photo-modal-backdrop { background: rgba(2,6,23,0.7); }
.photo-modal { max-width: 900px; width: 95%; max-height: 85vh; }
.photo-modal img { max-height: 72vh; width: auto; object-fit: contain; display:block; margin:0 auto }

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .hero-glass-wrapper { margin: 2rem 1rem; padding: 1rem; }
  .section-title { font-size: 2rem; }
  .glass { padding: 1.2rem; }
  .vehicle-placeholder svg { width: 72px; height: 72px; }
  .activities-grid { grid-template-columns: 1fr; }
  .places-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-glass-wrapper { margin: 1.5rem 0.5rem; padding: 0.75rem; }
  .section-title { font-size: 1.6rem; line-height: 1.2; }
  .glass { padding: 1rem; }
  .vehicle-placeholder svg { width: 60px; height: 60px; }
  h2 { font-size: 1.875rem; }
  .meta-badge { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
}

/* Smooth transitions for interactive elements */
.activity-card { transition: all 0.3s ease; }
.activity-card:hover { transform: translateY(-4px); }

.place-card { transition: all 0.3s ease; }
.place-card:hover { border-color: rgba(251,146,60,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* Landing thumbnails card (white strip overlapping hero) */
.landing-thumbs-card {
        background: #ffffff;
        padding: 18px;
        border-radius: 16px;
        box-shadow: 0 30px 60px rgba(2,6,23,0.18);
}
.landing-thumbs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.landing-thumb { border-radius: 12px; overflow: hidden; background: #0b1220; }
.landing-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .35s ease; }
.landing-thumb:hover img { transform: scale(1.04); }
.landing-thumb .cap { padding: 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.45)); position: relative; margin-top: -54px; color: #fff; font-weight: 700; }

@media (max-width: 768px) {
    .landing-thumbs-grid { grid-template-columns: 1fr; }
    .landing-thumb img { height: 220px; }
}