/* --- Root Variables & Reset --- */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e64;
    --whatsapp-color: #25d366;
    --dark-color: #1a1a1a;
    --light-color: #f7f9fa;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* --- Header & Navbar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 78, 100, 0.7), rgba(26, 26, 26, 0.8)), 
                url('https://www.whoa.in/download/beautiful-hd-4k-kedarnath-wallpaper-wallpapers-for-mobile') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 35px auto;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.cta-btn {
    display: inline-block;
    background: var(--whatsapp-color);
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.cta-btn i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- Destinations Section (Grid & Image Transitions) --- */
.destinations {
    padding: 100px 8%;
    text-align: center;
}

.destinations h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    height: 380px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.wide-card {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .wide-card {
        grid-column: span 1;
    }
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 25px;
    color: white;
    text-align: left;
    transition: var(--transition);
}

.card-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    transform: translateY(40px);
    transition: var(--transition);
}

.card-overlay p {
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

/* Interactive Hover Transitions */
.card:hover .card-img {
    transform: scale(1.1);
}

.card:hover .card-overlay h3 {
    transform: translateY(0);
}

.card:hover .card-overlay p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* --- How it works Section --- */
.how-it-works {
    background: #fff;
    padding: 90px 8%;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 60px;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
    transition: var(--transition);
}

.step:hover .step-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 40px 8%;
    text-align: center;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 15px;
}

/* --- Floating WhatsApp Icon with Pulse Effect --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

/* Tooltip text styling */
.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    right: 75px;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


/* --- Mobile Responsive Optimizations --- */
@media (max-width: 768px) {
    /* Header & Navigation Adjustments */
    header {
        padding: 15px 5%;
    }
    
    nav {
        display: none; /* Hides desktop links to keep the UI clean on mobile */
    }
    
    .btn-nav {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Hero Section Optimization */
    .hero {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Reduces size so text doesn't break awkwardly */
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-btn {
        width: 100%; /* Makes button easy to tap with one thumb */
        max-width: 320px;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Destinations Section & Touch-Friendly Card Transitions */
    .destinations {
        padding: 60px 5%;
    }

    .destinations h2 {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    .grid-container {
        gap: 20px; /* Tighter grid for smaller viewports */
    }

    .card {
        height: 320px; /* Slightly shorter height for comfortable scrolling */
    }

    /* Modifies hover transitions to work perfectly as mobile tap targets */
    .card-overlay h3 {
        transform: translateY(0); /* Text stays visible so user doesn't miss it */
    }

    .card-overlay p {
        opacity: 0.9;
        transform: translateY(0);
        font-size: 0.85rem;
    }

    /* How It Works Section */
    .how-it-works {
        padding: 60px 5%;
    }

    .how-it-works h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .steps-container {
        gap: 30px;
    }

    .step {
        max-width: 100%;
    }

    /* Floating WhatsApp Button Positioning */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px; /* Moved closer to the edge to stay out of the way of content */
        right: 20px;
        font-size: 24px;
    }

    .tooltip-text {
        display: none !important; /* Hides the hover tooltip which isn't native to mobile touches */
    }
}