/* =====================================================
  SRI KRISHNA TRAVELS - Animations & Enhancements
===================================================== */

/* ═══════════════════════════════════════════════════
   PROFESSIONAL POLISH & ENHANCED ANIMATIONS v2
═══════════════════════════════════════════════════ */

/* hero text takes full width when image card is removed */
.hero-video-section .hero-wrap {
  grid-template-columns: 1fr !important;
  max-width: 780px;
}

/* ─── Hero background video ─── */
.hero-video-section {
  position: relative;
  overflow: hidden;
  background: #eaf2fd url('../images/hero-top.webp') center center / cover no-repeat;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(240,247,255,0.88) 50%, rgba(220,235,255,0.72) 100%);
  z-index: 1;
}
.hero-video-section .container {
  position: relative;
  z-index: 2;
}

/* ─── Scroll cue ─── */
.scroll-cue {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 45;
  transform: translateY(-50%);
  width: 84px;
  height: 228px;
  background: transparent;
  padding: 0;
  opacity: 0.9;
  pointer-events: none;
}

.scroll-cue-art {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 24px rgba(11, 45, 91, 0.08));
}

.scroll-cue-path {
  fill: none;
  stroke: rgba(191, 183, 167, 0.8);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 11;
}

.scroll-cue-ring {
  fill: rgba(255, 255, 255, 0.96);
  stroke: #0b2d5b;
  stroke-width: 3;
}

.scroll-cue-dot {
  fill: #0b2d5b;
  filter: drop-shadow(0 0 8px rgba(11, 45, 91, 0.28));
}

/* ─── Section title animated underline ─── */
.section-title::after {
  width: 0 !important;
  transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s !important;
}
.section-title.in-view::after { width: 56px !important; }

/* ─── Card top accent border on hover ─── */
.card, .vehicle-card, .service-card, .package-card {
  border-top: 3px solid transparent;
}
.package-card:hover  { border-top-color: var(--secondary) !important; }
.vehicle-card:hover  { border-top-color: var(--accent) !important; }
.service-card:hover  { border-top-color: var(--primary) !important; }
.card:hover          { border-top-color: #1a6dbf !important; }

/* ─── Package card taller image ─── */
.package-card img { height: 230px !important; }

/* ─── Package card content soft gradient ─── */
.package-content {
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
  border-top: 1px solid #eef2fa;
}

/* ─── Hero second floating blob ─── */
.hero::after {
  content: '';
  position: absolute; left: -80px; bottom: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(31,170,89,0.08), rgba(31,170,89,0));
  border-radius: 50%;
  animation: blobFloat 11s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(22px,-28px) scale(1.08); }
  66%     { transform: translate(-18px,16px) scale(0.94); }
}

/* ─── Trust item enhanced background ─── */
.trust-item {
  background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
}
.trust-item:hover {
  background: linear-gradient(145deg, #edf4ff, #deeeff) !important;
  border-color: #c4d9f5 !important;
}

/* ─── Enhanced button glow on hover ─── */
.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(11,45,91,0.38), 0 0 0 4px rgba(11,45,91,0.07) !important;
}
.btn-secondary:hover {
  box-shadow: 0 18px 36px rgba(242,183,5,0.45), 0 0 0 4px rgba(242,183,5,0.1) !important;
}
.btn-accent:hover {
  box-shadow: 0 18px 36px rgba(31,170,89,0.42), 0 0 0 4px rgba(31,170,89,0.08) !important;
}
.btn:focus-visible {
  outline: 3px solid rgba(242,183,5,0.8);
  outline-offset: 4px;
}

/* ─── Header scrolled glass effect ─── */
.header.scrolled {
  box-shadow: 0 2px 28px rgba(11,45,91,0.13) !important;
  background: rgba(255,255,255,0.99) !important;
  backdrop-filter: blur(18px) !important;
}

/* ─── Badge premium style ─── */
.badge {
  background: linear-gradient(135deg, rgba(11,45,91,0.07), rgba(11,45,91,0.03)) !important;
  box-shadow: 0 2px 8px rgba(11,45,91,0.07) !important;
  letter-spacing: 0.01em;
}

/* ─── Info card left accent border ─── */
.info-card {
  border-left: 4px solid transparent;
}
.info-card:hover { border-left-color: var(--secondary) !important; }

/* ─── Testimonial left accent ─── */
.testimonial {
  border-left: 4px solid transparent;
  transition: border-left-color 0.3s ease !important;
}
.testimonial:hover { border-left-color: var(--secondary); }

/* ─── Page hero depth shadow ─── */
.page-hero { box-shadow: inset 0 -8px 32px rgba(0,0,0,0.22); }

/* ─── Footer gradient top accent ─── */
.footer { border-top: 3px solid; border-image: linear-gradient(90deg, #0b2d5b, #f2b705, #1faa59) 1; }

/* ─── Scroll progress vivid gradient ─── */
.scroll-progress {
  background: linear-gradient(90deg, #0b2d5b 0%, #1a6dbf 40%, #f2b705 75%, #1faa59 100%) !important;
}

/* ─── Nav link smooth underline transition ─── */
.nav-links a::after {
  transition: width 0.32s cubic-bezier(0.22,1,0.36,1) !important;
}

/* ─── Section heading number accent ─── */
.trust-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ─── CTA band deeper gradient ─── */
.cta-band {
  background: linear-gradient(118deg, #081f42 0%, #0d3368 50%, #0f3d7e 100%) !important;
  box-shadow: 0 24px 56px rgba(8,31,66,0.35) !important;
}

/* ─── Price card top accent ─── */
.price-card { border-top: 3px solid var(--secondary); }

/* ─── Route chip gradient on hover ─── */
.route-chip:hover {
  background: linear-gradient(135deg, #0b2d5b, #1a4f95) !important;
  box-shadow: 0 6px 18px rgba(11,45,91,0.25) !important;
}

/* ─── FAQ open state accent ─── */
details[open] { border-left: 3px solid var(--secondary) !important; }

/* ─── Image overlay gradient on cards ─── */
.vehicle-card, .package-card {
  position: relative;
}
.vehicle-card img, .package-card img {
  display: block;
}

/* ─── Preloader text spacing ─── */
.preloader-text { letter-spacing: 0.25em !important; }

/* ─────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════
   SKT AI TRAVEL CHATBOT
═══════════════════════════════════════════════ */
.skt-chat {
  position: fixed;
  bottom: 88px;
  right: 18px;
  z-index: 1100;
  font-family: 'Poppins', sans-serif;
}

/* ─── Toggle button ─── */
.skt-chat-toggle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #0b2d5b;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(11,45,91,0.5), 0 0 0 4px rgba(242,183,5,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding: 0; overflow: hidden;
}
.skt-chat-toggle:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(11,45,91,0.6), 0 0 0 6px rgba(242,183,5,0.4);
}
.skt-chat-icon-open {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.skt-chat-icon-close { display: none; color: #ffffff; }
.skt-chat-toggle[aria-expanded="true"] .skt-chat-icon-open  { display: none; }
.skt-chat-toggle[aria-expanded="true"] .skt-chat-icon-close { display: block; }

/* ─── Notification badge ─── */
.skt-chat-badge {
  position: absolute; top: -4px; right: -4px;
  background: #f2b705; color: #0b2d5b;
  font-size: 0.7rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: badgePop 0.4s ease;
}
.skt-chat-badge[hidden] { display: none; }
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* ─── Chat window ─── */
.skt-chat-window {
  position: absolute;
  bottom: 70px; right: 0;
  width: 340px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(11,45,91,0.22);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: chatSlideUp 0.3s cubic-bezier(0.22,1,0.36,1);
  max-height: 520px;
}
.skt-chat-window[hidden] { display: none; }
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Header ─── */
.skt-chat-header {
  background: linear-gradient(120deg, #0b2d5b, #1a4f95);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  color: #fff;
}
.skt-chat-logo {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  object-fit: cover; flex-shrink: 0;
}
.skt-chat-header-info { flex: 1; }
.skt-chat-header-info strong { display: block; font-size: 0.92rem; }
.skt-online { font-size: 0.75rem; color: #7effa7; }
.skt-chat-close-btn {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 1.1rem; cursor: pointer; padding: 4px;
  transition: color 0.2s;
}
.skt-chat-close-btn:hover { color: #fff; }

/* ─── Messages ─── */
.skt-chat-messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 280px;
  background: #f7f9ff;
}
.skt-msg { display: flex; flex-direction: column; gap: 4px; max-width: 88%; }
.skt-msg-bot  { align-self: flex-start; }
.skt-msg-user { align-self: flex-end; align-items: flex-end; }
.skt-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-line;
}
.skt-msg-bot  .skt-bubble {
  background: #fff;
  border: 1px solid #e2eaf5;
  color: #1e1f24;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(11,45,91,0.06);
}
.skt-msg-user .skt-bubble {
  background: linear-gradient(135deg, #0b2d5b, #1a4f95);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.skt-msg-link {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  background: #f2b705; color: #0b2d5b;
  border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  text-decoration: none; align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 2px;
}
.skt-msg-link:hover { background: #ffd75c; transform: translateY(-1px); }

/* ─── Typing indicator ─── */
.skt-typing .skt-bubble {
  display: flex; gap: 5px; align-items: center; padding: 12px 16px;
}
.skt-typing .skt-bubble span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #0b2d5b; opacity: 0.4;
  animation: typingDot 1.2s ease-in-out infinite;
}
.skt-typing .skt-bubble span:nth-child(2) { animation-delay: 0.2s; }
.skt-typing .skt-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%,60%,100% { opacity: 0.4; transform: translateY(0); }
  30%          { opacity: 1;   transform: translateY(-4px); }
}

/* ─── Quick replies ─── */
.skt-quick-replies {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 10px 14px 4px;
  background: #f7f9ff;
  border-top: 1px solid #e8edf5;
}
.skt-qr-btn {
  padding: 6px 12px;
  border: 1.5px solid #cddaf0;
  background: #fff; color: #0b2d5b;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.skt-qr-btn:hover {
  background: #0b2d5b; color: #fff;
  border-color: #0b2d5b; transform: translateY(-1px);
}

/* ─── Input row ─── */
.skt-chat-input-row {
  display: flex; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e8edf5;
  background: #fff;
}
#skt-chat-input {
  flex: 1; border: 1.5px solid #d4e0f0;
  border-radius: 999px; padding: 9px 14px;
  font: inherit; font-size: 0.85rem; color: #1e1f24;
  outline: none; transition: border-color 0.2s;
}
#skt-chat-input:focus { border-color: #0b2d5b; }
#skt-chat-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #0b2d5b, #1a4f95);
  border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.2s, box-shadow 0.2s;
}
#skt-chat-send:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(11,45,91,0.35); }

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .skt-chat-window { width: calc(100vw - 36px); right: 0; bottom: 68px; }
  .skt-chat { bottom: 80px; right: 14px; }
}

/* ─── Preloader ─── */
.preloader {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #0b2d5b 0%, #1a4f95 100%);
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.preloader-logo {
  width: min(280px, 72vw);
  height: auto;
  max-height: 140px;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(255,255,255,0.4);
  object-fit: contain;
  box-shadow: 0 20px 46px rgba(0,0,0,0.2);
  animation: preloaderPulse 1.4s ease-in-out infinite;
}
.preloader-text {
  color: #fff; font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.18em; opacity: 0.88;
}
.preloader-bar {
  width: 180px; height: 3px;
  background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f2b705, #1faa59);
  border-radius: 999px;
  animation: preloaderFill 0.9s ease forwards;
}
@keyframes preloaderPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242,183,5,0.45); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(242,183,5,0); }
}
@keyframes preloaderFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ─── Scroll progress bar ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #0b2d5b, #f2b705, #1faa59);
  z-index: 10001; width: 0%;
  transition: width 0.1s linear; pointer-events: none;
}

/* ─── Hero animated gradient ─── */
.hero {
  background: linear-gradient(-45deg, #dce9ff, #f0f6ff, #ffffff, #e4eeff) !important;
  background-size: 400% 400% !important;
  animation: heroGrad 14s ease infinite !important;
}
@keyframes heroGrad {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Page hero animated gradient ─── */
.page-hero {
  background: linear-gradient(-45deg, #0b2d5b, #1a4f95, #0e3a72, #2160b5) !important;
  background-size: 300% 300% !important;
  animation: pageHeroGrad 9s ease infinite !important;
}
@keyframes pageHeroGrad {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── GSAP split word ─── */
.hw { display: inline-block; will-change: transform, opacity; }

/* ─── Floating buttons pulse ─── */
.floating-whatsapp { animation: waPulse 2.8s ease-in-out infinite; }
.floating-call     { animation: callPulse 2.8s ease-in-out infinite 1.4s; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(31,170,89,0.5), 0 8px 20px rgba(31,170,89,0.3); }
  50%     { box-shadow: 0 0 0 12px rgba(31,170,89,0), 0 8px 20px rgba(31,170,89,0.55); }
}
@keyframes callPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(11,45,91,0.45), 0 8px 20px rgba(11,45,91,0.3); }
  50%     { box-shadow: 0 0 0 12px rgba(11,45,91,0), 0 8px 20px rgba(11,45,91,0.5); }
}

/* ─── Section title accent bar ─── */
.section-title { position: relative; padding-bottom: 12px; }
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, #f2b705, #1faa59);
}

/* ─── Card shimmer on hover ─── */
.card, .vehicle-card, .service-card, .package-card { overflow: hidden; position: relative; }
.card::after,.vehicle-card::after,.service-card::after,.package-card::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-15deg); pointer-events: none;
}
.card:hover::after,.vehicle-card:hover::after,.service-card:hover::after,.package-card:hover::after {
  animation: shimmer 0.65s ease forwards;
}
@keyframes shimmer { from { left: -100%; } to { left: 150%; } }

/* ─── Enhanced card hover ─── */
.card:hover,.vehicle-card:hover,.service-card:hover,.package-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 28px 60px rgba(11,45,91,0.17) !important;
}

/* ─── Image zoom inside cards ─── */
.card img,.vehicle-card img,.service-card img,.package-card img {
  transition: transform 0.55s ease !important;
}
.card:hover img,.vehicle-card:hover img,.service-card:hover img,.package-card:hover img {
  transform: scale(1.09);
}

/* ─── CTA band animated shine ─── */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  animation: ctaShine 5s linear infinite;
}
@keyframes ctaShine { from { left: -60%; } to { left: 160%; } }

/* ─── Table row hover ─── */
table tbody tr { transition: background 0.2s ease, transform 0.2s ease; }
table tbody tr:hover { background: rgba(11,45,91,0.04); transform: translateX(3px); }

/* ─── Input focus lift ─── */
input, select, textarea { transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; }
input:focus, select:focus, textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11,45,91,0.1);
}

/* ─── Badge hover ─── */
.badge { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.badge:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 4px 12px rgba(11,45,91,0.15); cursor: default; }

/* ─── Route chip hover ─── */
.route-chip { transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease; cursor: default; }
.route-chip:hover { transform: scale(1.07) translateY(-2px); background: #0b2d5b; color: #fff; }

/* ─── Button ripple ─── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.22) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97) !important; }

/* ─── Brand logo on hover ─── */
.brand-logo { transition: transform 0.4s ease; }
.brand:hover .brand-logo { transform: rotate(10deg) scale(1.08); }

/* ─── Trust item hover ─── */
.trust-item { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.trust-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,45,91,0.13); border-color: #b8ccdf; }

/* ─── Info card hover ─── */
.info-card:hover { transform: translateY(-8px) !important; box-shadow: 0 24px 50px rgba(11,45,91,0.14) !important; }

/* ─── Gallery hover ─── */
.gallery-card-btn img { transition: transform 0.5s ease, filter 0.3s ease; }
.gallery-card-btn:hover img { transform: scale(1.09); filter: brightness(1.05); }

/* ─── FAQ details ─── */
details summary { cursor: pointer; transition: color 0.2s ease; }
details summary:hover { color: #1a4f95; }
details[open] summary { color: #0b2d5b; font-weight: 700; }

/* ─── Mobile sticky slide up ─── */
.mobile-sticky-cta { animation: stickyUp 0.5s ease 0.6s both; }
@keyframes stickyUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── Map hover ─── */
.map-placeholder { border-radius: 14px; overflow: hidden; transition: box-shadow 0.3s ease; }
.map-placeholder:hover { box-shadow: 0 20px 40px rgba(11,45,91,0.15); }

/* ─── Vehicle shortcuts ─── */
.vehicle-shortcuts a { transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease; }
.vehicle-shortcuts a:hover { transform: translateY(-2px); }

/* ─── Astro view transition ─── */
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vt-fade-out { from { opacity: 1; transform: translateY(0); }  to { opacity: 0; transform: translateY(-10px); } }
::view-transition-old(root) { animation: 0.22s ease both vt-fade-out; }
::view-transition-new(root) { animation: 0.28s ease both vt-fade-in; }
