/* --- Global Variables & Reset --- */
:root {
    --green: #2E8B57;      
    --purple: #6A0DAD;     
    --yellow: #FFD700;     
    --dark: #222;          
    --light: transparent; 
    --gradient: linear-gradient(135deg, var(--green), var(--purple));
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, sans-serif; scroll-behavior: smooth; }

/* --- FIX: PREVENT WHITE SPACE ON MOBILE --- */
html, body { 
    width: 100%;
    overflow-x: hidden; /* This stops the side scrolling/empty space */
    position: relative;
    margin: 0;
}

/* GLOBAL BACKGROUND IMAGE */
body { 
    line-height: 1.7; 
    color: var(--dark); 
    background: url('assets/Gokarna.webp') no-repeat center center fixed; 
    background-size: cover;
}

/* Performance: avoid expensive fixed background on mobile (no visible change) */
@media (max-width: 768px) {
    body { background-attachment: scroll; }
}

/* Accessibility: visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img, video { max-width: 100%; height: auto; display: block; }
.section { padding: 5rem 5%; }
.bg-light { background: var(--light); }
.container { max-width: 1200px; margin: auto; }
.container-fluid { width: 100%; margin: auto; overflow: hidden; }

/* Typography & Animations */
.section-title { text-align: center; margin-bottom: 1rem; color: var(--purple); font-size: 2.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; position: relative; text-shadow: 2px 2px 4px rgba(255,255,255,0.8); }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--gradient); margin: 15px auto 0; border-radius: 2px; }
.section-subtitle { text-align: center; margin-bottom: 3rem; color: #444; font-weight: 600; text-shadow: 1px 1px 2px rgba(255,255,255,0.8); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(106, 13, 173, 0); } 100% { box-shadow: 0 0 0 0 rgba(106, 13, 173, 0); } }
.pulse-effect { animation: pulse 2s infinite; }
@keyframes glow { 0% { box-shadow: 0 0 5px var(--yellow); } 50% { box-shadow: 0 0 20px var(--yellow), 0 0 30px var(--green); } 100% { box-shadow: 0 0 5px var(--yellow); } }
.glow-effect { animation: glow 2s infinite alternate; }

/* --- Navigation Bar (Semi-Transparent) --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 5%; 
    background: rgba(255, 255, 255, 0.9); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 9999; 
    backdrop-filter: blur(10px);
    width: 100%; /* Ensure navbar fits */
}
.nav-brand { display: flex; align-items: center; gap: 15px; }
.nav-logo-img { height: 60px; border-radius: 50%; border: 2px solid var(--green); }
.brand-text h1 { font-size: 1.4rem; font-weight: 800; color: var(--purple); line-height: 1.2; }
.brand-text h1 span { color: var(--green); }
.tagline { font-size: 0.85rem; color: #666; font-style: italic; }

.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 1rem; position: relative; }
.nav-links a:not(.btn-nav)::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0; background: var(--gradient); transition: 0.3s; }
.nav-links a:not(.btn-nav):hover::after { width: 100%; }
.social-icons { display: flex; gap: 15px; font-size: 1.2rem; }
.social-icons a:hover { color: var(--purple); transform: translateY(-3px); }

.btn-nav { background: var(--gradient); color: white !important; padding: 10px 25px; border-radius: 50px; display: flex; align-items: center; gap: 8px; box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3); }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(106, 13, 173, 0.5); }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--purple); }

/* --- Hero Section --- */
.hero {
    height: 100vh; 
    min-height: 100dvh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    overflow: hidden; 
    margin-top: -85px; 
    width: 100%;
}

.back-video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    z-index: -2; 
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); z-index: -1; }
.hero-content { opacity: 0; transform: translateY(30px); transition: 1s ease-out; max-width: 800px; padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 3px 3px 6px rgba(0,0,0,0.8); font-weight: 900; }
.hero p { font-size: 1.3rem; margin-bottom: 25px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.hero-badges { margin-bottom: 30px; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-badges span { background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(10px); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }

/* Generic Buttons */
.btn-primary { background: var(--green); color: white; padding: 15px 35px; border-radius: 50px; font-weight: bold; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; border: none; box-shadow: 0 10px 20px rgba(46, 139, 87, 0.3); }
.btn-primary:hover { background: #246b42; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(46, 139, 87, 0.5); }
.btn-outline { border: 2px solid var(--purple); color: var(--purple); padding: 12px 30px; border-radius: 50px; font-weight: bold; display: block; text-align: center; transition: 0.3s; background: rgba(255,255,255,0.8); }
.btn-outline:hover { background: var(--purple); color: white; }

/* --- Packages Section (Cards with Glass Effect) --- */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; align-items: start; }

.card { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(5px); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    position: relative; 
    transition: 0.4s; 
    border: 1px solid rgba(255,255,255,0.5); 
}

.card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.featured { border: 3px solid var(--yellow); transform: scale(1.03); z-index: 2; }
.featured:hover { transform: scale(1.05) translateY(-10px); }
.badge { position: absolute; top: 20px; right: -35px; background: var(--yellow); color: var(--dark); padding: 8px 40px; font-weight: 900; font-size: 0.9rem; transform: rotate(45deg); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.card-img-wrapper { height: 220px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img { transform: scale(1.1); }
.card-header { padding: 1.5rem; text-align: center; color: white; }
.card-header.std { background: var(--green); }
.card-header.prem { background: var(--gradient); }
.card-header h3 { font-size: 1.6rem; margin-bottom: 5px; }

/* NEW PRICE STYLING IN CARD */
.price { font-size: 2rem; font-weight: 900; line-height: 1.2; }
.offer-timer { font-size: 0.9rem; font-weight: bold; color: var(--yellow); margin-top: 5px; animation: pulse 1.5s infinite; }

.per-person { font-size: 1rem; font-weight: normal; opacity: 0.9; }
.card-body { padding: 2rem; }
.card-body ul { list-style: none; margin-bottom: 2rem; }
.card-body li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #ccc; display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.card-body li i { color: var(--green); font-size: 1.2rem; width: 25px; text-align: center; }
.featured .card-body li i { color: var(--purple); }

/* --- UPDATED: Destinations Scroll --- */
.scroll-track-container {
    width: 100%;
    overflow: hidden; 
    padding: 20px 0;
    background: transparent;
}

.spots-grid { 
    display: flex;             
    flex-wrap: nowrap;         
    gap: 30px;                 
    width: max-content;        
    animation: scroll 30s linear infinite;
}

.spots-grid:hover { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.spot-card {
    flex: 0 0 auto;            
    width: 280px;              
    height: 200px; 
    border-radius: 15px; 
    overflow: hidden; 
    position: relative;
    background-size: cover; 
    background-position: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
    transition: 0.4s; 
    filter: grayscale(10%);
    text-decoration: none;
    display: flex; 
    align-items: flex-end; 
}

.spot-card:hover { 
    transform: scale(1.05); 
    filter: grayscale(0%); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.3); 
    z-index: 10; 
}

.spot-card span {
    width: 100%; padding: 15px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white; font-weight: bold; font-size: 1.1rem; text-shadow: 1px 1px 3px black;
    white-space: normal; 
}

/* --- Masonry Gallery --- */
.masonry-gallery { column-count: 3; column-gap: 15px; }
.gallery-item { margin-bottom: 15px; break-inside: avoid; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); position: relative; }
.gallery-item img, .gallery-item video { width: 100%; height: auto !important; display: block; transition: 0.4s; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.03); }
.video-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: rgba(255,255,255,0.8); pointer-events: none; }

/* --- Footer (Dark Glass) --- */
#contact { 
    background: rgba(26, 26, 26, 0.95); 
    color: #ccc; 
    padding: 4rem 5% 1rem; 
    backdrop-filter: blur(10px);
    margin-top: 4rem;
}
.footer-layout { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
/* UPDATED: Reduced min-width to avoid collision in grid */
.footer-info { flex: 1; min-width: 250px; }
.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-logo h3 { color: white; font-size: 1.5rem; }
.reg-info { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 5px; font-size: 0.9rem; display: inline-block; margin-bottom: 25px; }
.contact-links p, .contact-btn { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; }
.contact-btn { color: white; background: var(--green); padding: 12px 25px; border-radius: 50px; width: fit-content; font-weight: bold; transition: 0.3s; }
.contact-btn.secondary { background: var(--purple); }
.contact-btn:hover { transform: translateX(5px); background: white; color: var(--dark); }
/* UPDATED: Reduced min-width to avoid collision in grid */
.footer-map { flex: 1; min-width: 250px; height: 300px; }
.footer-divider { border-color: #444; margin: 3rem 0; }
.copyright-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.developer-credit a { color: var(--yellow); font-weight: bold; display: inline-flex; align-items: center; gap: 5px; }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 35px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); z-index: 2000; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1) rotate(15deg); }


/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .masonry-gallery { column-count: 2; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    /* SIDE BAR NAVIGATION FIX */
    .nav-links {
        position: fixed; 
        top: 0; 
        right: 0; /* Align to right edge */
        height: 100vh; 
        width: 80%; 
        max-width: 300px;
        background: rgba(255,255,255,0.98); 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 80px 30px; 
        z-index: 10000;
        
        /* Hiding Logic */
        transform: translateX(100%); /* Move off-screen to the right */
        visibility: hidden;
        transition: transform 0.4s ease-in-out, visibility 0.4s;
        box-shadow: none;
    }
    
    .nav-links.active { 
        transform: translateX(0); /* Slide in */
        visibility: visible;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-brand .tagline { display: none; } 
    .hero h1 { font-size: 2rem; line-height: 1.1; margin-bottom: 20px; } 
    .hero-badges { flex-direction: column; align-items: center; gap: 10px; }
    .section { padding: 3rem 5%; }
    .masonry-gallery { column-count: 1; } 
    .footer-layout { flex-direction: column; }
    .footer-map { height: 250px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 30px; }
}

/* --- Footer Quick Links (added) --- */
.footer-quicklinks h4{
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.footer-quicklinks ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-quicklinks li{
  margin-bottom: 10px;
}
.footer-quicklinks a{
  color: #ddd;
  font-weight: 600;
  transition: 0.3s;
}
.footer-quicklinks a:hover{
  color: var(--yellow);
}


/* --- FOOTER QUICK LINKS LAYOUT FIX (added) --- */
.footer-layout{
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}
.footer-map{
  order: 2;
  display: flex;
  justify-content: center;
}
.footer-quicklinks{
  order: 3; /* Ensure it appears after map on desktop */
}

/* UPDATED: Changed breakpoint from 768px to 992px to prevent overlap on Tablets */
@media (max-width: 992px){
  .footer-layout{
    grid-template-columns: 1fr;
  }
  .footer-map{ order: 2; }
  .footer-quicklinks{ order: 3; } /* show at end on mobile */
}