/* =============================================
   CALZADA - UI/UX
   ============================================= */

:root {
    --primary: #1a8fff;
    --primary-dark: #0f6fd1;
    --primary-glow: rgba(26, 143, 255, 0.35);
    --bg: #f0f6fc; /* Light blue-gray background for the whole page */
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-dark: #002d3c;
    --text-muted: #1e506b;
    --text-light: #ffffff;
    --border: rgba(0, 45, 60, 0.1);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.10);
    --shadow-blue: 0 8px 32px rgba(26, 143, 255, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-full: 999px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    /* Custom cursor logic for Glow */
    cursor: default;
}

/* =============================================
   "PASABOG" - MODERN EFFECTS
   ============================================= */
.mouse-glow {
    position: fixed;
    top: 0; left: 0;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26, 143, 255, 0.15) 0%, rgba(26, 143, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    filter: blur(40px);
}

.shimmer-text {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #1a8fff, #80c4ff, #1a8fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s linear infinite;
}

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



.parallax-layer-1 { transition: transform 0.1s ease-out; }
.parallax-layer-2 { transition: transform 0.2s ease-out; }

/* =============================================
   GEOMETRIC BACKGROUND ASSETS
   ============================================= */
.geo-bg {
    position: fixed;
    z-index: -1;
    pointer-events: none;
}
@keyframes floatGeo {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1.5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.geo-bg-1 {
    width: min(80vw, 450px);
    right: 0;
    top: 0;
    opacity: 0.2;
    animation: floatGeo 12s ease-in-out infinite; /* Increased speed for more energy */
}
.geo-bg-2 {
    width: min(40vw, 200px);
    left: 20px;
    bottom: 50px;
    opacity: 0.15;
    animation: floatGeo 15s ease-in-out infinite reverse; /* Increased speed for more energy */
}

/* System Network overlay – static, minimal */
.system-network {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}
.system-network svg {
  width: 100%;
  height: 100%;
}
.network-line {
  stroke: var(--primary);
  stroke-width: 1.2;
  stroke-dasharray: 4 8;
  fill: none;
  opacity: 0.5;
}
.network-node {
  fill: var(--primary);
  opacity: 0.6;
}

/* Card Backgrounds for readability on Mobile/Desktop overlaying shapes */
/* Card Backgrounds - Removed for a cleaner, open look as per user request */
.about-card, .news-section, .fare-section, .steps-section {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    backdrop-filter: none;
}

.features-grid {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 24px;
}

.about-content-wrapper, .faq-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 45, 60, 0.1);
}
.about-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* =============================================
   NAVBAR — FROSTED GLASS
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 0.9rem 0;
    background: rgba(26, 143, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 111, 209, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.navbar-white {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.navbar-white .nav-link::after {
    background: var(--primary);
}

.navbar-white .logo-img {
    height: 44px;
    /* Scaled perfectly for the "Calzada - Blue" logo */
    margin-bottom: 0px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: -6px;
    transition: transform var(--transition), opacity var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-img {
    height: 52px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition);
}

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

.nav-link:hover {
    color: white;
}

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

.btn-plan-route {
    text-decoration: none;
    color: var(--primary);
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-plan-route:hover {
    background: var(--primary);
    color: white !important;
}

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

/* Auth Button in Navbar */
.btn-nav-auth {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 6px 20px !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-nav-auth:hover {
    background: white;
    color: var(--primary) !important;
    border-color: white;
}

.navbar-white .btn-nav-auth {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.navbar-white .btn-nav-auth:hover {
    background: var(--primary);
    color: white !important;
}

/* Remove hover line from Auth button */
.btn-nav-auth::after {
    display: none !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    /* Visible on the blue hero background */
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    transform: scale(1.1);
}

.navbar-white .mobile-menu-btn {
    color: var(--primary);
    /* Turns blue when scrolling down (white background) */
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 2rem 60px;
    text-align: center;
    z-index: 1;
    overflow: visible;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100dvh;
        padding-bottom: 60px;
    }

    .scrollable-content {
        padding-top: 60px;
    }
}

@media (min-width: 769px) {
    .hero-section {
        min-height: 100vh;
        padding-bottom: 80px;
    }

    .scrollable-content {
        padding-top: 120px;
    }
}

.map-bg-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

/* Staggered entry for Hero elements */
.center-logo-container { animation: heroFadeIn 0.8s var(--ease) 0.1s both; }
.hero-title { animation: heroFadeIn 0.8s var(--ease) 0.3s both; }
.hero-subtitle { animation: heroFadeIn 0.8s var(--ease) 0.4s both; }
.transport-chips { animation: heroFadeIn 0.8s var(--ease) 0.5s both; }
.search-container { animation: heroFadeIn 0.8s var(--ease) 0.6s both; }

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* Center Logo */
.center-logo-container {
    position: relative;
    margin-bottom: 1.8rem;
    pointer-events: none;
}

.logo-glow-ring {
    position: absolute;
    inset: -12px;
    border-radius: 62px;
    background: transparent;
    border: 2px solid rgba(26, 143, 255, 0);
    transition: all 0.5s ease;
    pointer-events: auto;
    cursor: default;
}

.center-logo-container:hover .logo-glow-ring {
    border-color: rgba(26, 143, 255, 0.5);
    box-shadow: 0 0 30px rgba(26, 143, 255, 0.3), 0 0 60px rgba(26, 143, 255, 0.1);
    inset: -14px;
}

.center-logo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50px;
    box-shadow: var(--shadow-md), 0 0 0 6px rgba(255, 255, 255, 0.7);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    pointer-events: auto;
    cursor: default;
    display: block;
}

.center-logo-container:hover .center-logo {
    transform: scale(1.04);
    box-shadow: var(--shadow-blue), 0 0 0 6px rgba(255, 255, 255, 0.9);
}

/* Hero Typography */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    /* Responsive: stays on one line */
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    white-space: nowrap;
    /* Force single line */
}

.title-highlight {
    background: linear-gradient(135deg, #1a8fff, #0f6fd1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 500px;
}

/* =============================================
   TRANSPORT CHIPS
   ============================================= */
.transport-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid rgba(26, 143, 255, 0.3);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26, 143, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 143, 255, 0.15);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.chip.active:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =============================================
   SEARCH BAR — Pill Shape, Premium
   ============================================= */
.search-container {
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 300;
    /* Ensure dropdown can overflow hero without being clipped */
    isolation: isolate;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 22px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition);
    gap: 10px;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-blue), 0 0 0 4px rgba(26, 143, 255, 0.12);
    transform: translateY(-3px);
}

.search-prefix-icon {
    color: #aab4c5;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: color var(--transition);
}

.search-bar:focus-within .search-prefix-icon {
    color: var(--primary);
}

.search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: #aab4c5;
}

.search-button {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 12px rgba(26, 143, 255, 0.4);
}

.search-button:hover {
    background: var(--primary-dark);
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(26, 143, 255, 0.5);
}

.search-button:active {
    transform: scale(0.95);
}

/* Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    /* Opens downward below the search bar */
    bottom: auto;
    left: 0;
    width: 100%;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
    text-align: left;
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-results-dropdown::-webkit-scrollbar {
    width: 5px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 99px;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* OSM Nominatim attribution footer inside dropdown */
.search-osm-attribution {
    padding: 8px 16px;
    border-top: 1px solid #f1f5f9;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-osm-attribution a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.search-osm-attribution a:hover {
    text-decoration: underline;
}

.result-item {
    padding: 13px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f7f9ff;
}

.result-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.result-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.result-type {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =============================================
   FEATURES STATS BAR
   ============================================= */
.features-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    /* Same level as navbar */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.06);
    padding: 0.7rem 2rem;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.features-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    display: none !important; /* The nuclear option to ensure it's gone */
}

.features-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2rem;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(7) {
    animation-delay: 0.4s;
}

.feature-icon {
    width: 36px;
    height: 36px;
    /* Reduced from 44px */
    background: linear-gradient(135deg, rgba(26, 143, 255, 0.12), rgba(26, 143, 255, 0.06));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    /* Reduced from 1.4rem */
    color: var(--primary);
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    /* Reduced from 1.3rem */
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.feature-text span {
    font-size: 0.72rem;
    /* Reduced from 0.8rem */
    color: var(--text-muted);
    font-weight: 500;
}

.feature-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* Smoother reveal animations with staggered desktop/mobile triggers */
.reveal, 
.reveal [class*="reveal-delay-"] {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active,
.reveal.active [class*="reveal-delay-"] {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* Learn More Button Styling */
.btn-learn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 99px;
    color: var(--primary);
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-learn-more:hover {
    background: var(--primary);
    color: #fff;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   CHAT WIDGET
   ============================================= */
.chat-widget-container {
    position: fixed;
    bottom: 78px;
    /* Sits just above the features bar */
    right: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 160;
    animation: slideInUp 1s var(--ease) forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(30px);
}

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

.chat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 9px 18px;
    border-radius: var(--radius-full);
    /* Stronger shadow to be visible */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 1);
}

.chat-toggle-btn {
    position: relative;
    background: var(--primary);
    color: white;
    border: 3px solid white;
    /* White ring for contrast against any background */
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    /* Strong drop shadow to pop against the page */
    box-shadow: 0 8px 28px rgba(26, 143, 255, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--ease), background var(--transition);
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Pulse ring animation */
.pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    opacity: 0;
    animation: pulseRing 2.5s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

/* =============================================
   CHAT WINDOW
   ============================================= */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 360px;
    /* Keep exact size */
    height: 460px;
    /* Slightly taller for margins */
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    z-index: 160;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.88) translateY(20px);
    transform-origin: bottom right;
    transition: all 0.35s var(--ease);
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 44px; /* Slightly larger since no circle */
    height: 44px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use contain to ensure the whole icon is visible */
}

.chat-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #6df09a;
    border-radius: 50%;
    display: inline-block;
}

.close-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.close-chat-btn .back-icon {
    display: none;
}

.close-chat-btn .close-icon {
    display: flex;
}

.close-chat-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.chat-messages {
    flex-grow: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f7f9fc;
}

.message {
    max-width: 80%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 0.93rem;
    line-height: 1.45;
    animation: popIn 0.3s var(--ease);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(10px);
    }

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

.message-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
}

.bot-wrapper {
    justify-content: flex-start;
}

.user-wrapper {
    justify-content: flex-end;
}

.bot-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    line-height: 1.5;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.bot-message {
    background: white;
    color: #2d3748;
    border: 1px solid #eaecf0;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-items: center;
    background: white;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #a0aec0;
    border-radius: 50%;
    animation: typingBlink 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBlink {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-suggestions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 5px 10px 15px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    background: white;
    margin-top: -10px;
}
.chat-suggestions::-webkit-scrollbar {
    display: none;
}
.suggestion-chip {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.suggestion-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 143, 255, 0.2);
}

.chat-input-area {
    padding: 10px 14px;
    background: #f0f4f9;
    /* Light blue/gray background matching site theme */
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 20px;
    margin: 10px;
    border: 1px solid #e2e8f0;
    /* Subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#chatInput {
    width: 100%;
    border: none;
    padding: 8px 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1a202c;
    /* Real Dark text */
    outline: none;
    transition: all 0.2s;
    background: transparent;
    resize: none;
    overflow-y: hidden;
    min-height: 24px;
    /* Shorter initial height */
    max-height: 120px;
    line-height: 1.4;
    box-sizing: border-box;
    /* IMPORTANT for exact height calculations */
}

#chatInput::placeholder {
    color: #64748b;
    /* Lighter placeholder */
}

#chatInput.scrolling {
    overflow-y: auto;
}

/* Custom Scrollbar for Textarea */
#chatInput::-webkit-scrollbar {
    width: 5px;
}

#chatInput::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 99px;
}

.chat-input-toolbar {
    display: flex;
    justify-content: flex-end;
    /* Push to right since Left button is gone */
    align-items: center;
    width: 100%;
    padding-top: 4px;
}

.toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

#sendMessageBtn {
    background: var(--primary);
    /* Back to Blue primary */
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform var(--transition);
    box-shadow: 0 4px 12px rgba(26, 143, 255, 0.25);
}

#sendMessageBtn:hover {
    transform: scale(1.08);
    background: var(--primary-dark);
}

.mic-btn {
    background: #e9ecef;
    /* Subtle Gray bg */
    color: #495057;
    /* Subtle Gray mic icon */
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.mic-btn:hover {
    color: var(--primary);
    background: #dee2e6;
}

.mic-btn.recording {
    background: #ff4757;
    color: white;
    animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Recording Controls UI - Modern Pill */
.vm-active-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    background: #f8f9fa;
    border-radius: 99px;
    padding: 0 12px;
    height: 42px;
    box-shadow: inset 0 0 0 1.5px rgba(255, 71, 87, 0.6);
    animation: recordingGlow 2s infinite;
}

@keyframes recordingGlow {
    0% {
        box-shadow: inset 0 0 0 1.5px rgba(255, 71, 87, 0.4), 0 0 8px rgba(255, 71, 87, 0.2);
    }

    50% {
        box-shadow: inset 0 0 0 2px rgba(255, 71, 87, 0.8), 0 0 15px rgba(255, 71, 87, 0.5);
    }

    100% {
        box-shadow: inset 0 0 0 1.5px rgba(255, 71, 87, 0.4), 0 0 8px rgba(255, 71, 87, 0.2);
    }
}

.recording-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    margin-right: 4px;
    animation: blink 1s infinite;
    flex-shrink: 0;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.vm-frequency-pill {
    flex-grow: 1;
    background: transparent;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
}

#voiceVisualizer {
    width: 100%;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(255, 71, 87, 0.4));
}

/* =========================================
   FAQ PAGE STYLES
   ========================================= */

.faq-section {
    padding: 120px 20px 80px;
    /* Space for fixed navbar */
    min-height: 100vh;
    background: transparent;
    /* White background removed so assets show through */
    display: flex;
    justify-content: center;
}

.faq-container {
    width: 100%;
    max-width: 800px;
}

.faq-section .page-title {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    /* Bolder as per image */
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    /* Less rounded as per image */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Subtler shadow */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    /* Extra subtle border */
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1a202c;
    /* Darker text */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question ion-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question ion-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height to fit content */
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    font-size: 1.05rem;
}

#voiceVisualizer {
    width: 100%;
    height: 30px;
}

.vm-action-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.vm-action-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.05);
}

.pause-btn {
    font-size: 1.4rem;
    color: #4a5568;
}

.close-btn {
    font-size: 1.6rem;
    color: #ff4757;
    font-weight: 800;
}

.send-btn {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(26, 143, 255, 0.1);
}

.send-btn:hover {
    background: rgba(26, 143, 255, 0.2);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .nav-links {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        margin-right: auto;
    }

    /* Push logo away from hamburger */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Navbar Dropdown - Modern Floating Card */
    .nav-links {
        position: absolute;
        top: calc(100% + 15px);
        left: 1rem;
        width: calc(100% - 2rem);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 10px;
        gap: 5px;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(26, 143, 255, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.95);
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        clip-path: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        clip-path: none;
    }

    .nav-links .nav-link,
    .nav-links .btn-plan-route,
    .nav-links .btn-nav-auth {
        width: 100%;
        text-align: left;
        padding: 14px 20px !important;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-dark) !important;
        border: none !important;
        border-radius: 16px;
        background: transparent;
        transition: background 0.3s ease, padding-left 0.3s ease;
    }

    .nav-links .nav-link:hover,
    .nav-links .btn-plan-route:hover {
        background: rgba(26, 143, 255, 0.08) !important;
        padding-left: 24px;
        color: var(--primary) !important;
    }

    .nav-links .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .center-logo {
        width: 130px;
        height: 130px;
    }

    .features-grid {
        gap: 0.35rem; /* Slightly smaller gap */
        flex-wrap: nowrap; /* Force single line */
        justify-content: space-evenly;
        padding-bottom: 0;
        scrollbar-width: none;
        width: 100%;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        padding: 0.2rem 0.5rem;
        flex-shrink: 1;
        gap: 8px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    .feature-text strong {
        font-size: 0.9rem;
    }

    .feature-text span {
        font-size: 0.65rem;
    }

    .feature-divider {
        display: none;
    }

    .features-bar {
        padding: 0.4rem 0.8rem;
    }

    /* Mobile full-screen chat -> Floating Card */
    .chat-widget-container {
        bottom: 85px !important;
        /* Move back above the features bar */
        right: 15px;
        transition: bottom 0.3s ease, transform 0.3s ease;
    }

    .chat-toggle-btn {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
    }

    .chat-window {
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        max-height: 550px;
        bottom: 15px !important;
        /* Sit exactly at bottom */
        right: 15px;
        border-radius: 18px;
        padding-top: 0;
    }

    /* Robust hiding logic for older iOS devices via JS classes */
    body.chat-active .features-bar,
    body.keyboard-open .features-bar {
        display: none !important;
    }

    body.chat-active .chat-widget-container,
    body.keyboard-open .chat-widget-container {
        bottom: 15px !important;
        /* Slide down when features bar is gone */
    }

    /* Back button on mobile — big and clearly visible */
    .close-chat-btn {
        background: rgba(255, 255, 255, 0.25);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        font-size: 1.5rem;
    }

    .close-chat-btn .back-icon {
        display: flex;
    }

    .close-chat-btn .close-icon {
        display: none;
    }
}

@media (max-width: 520px) {
    .hero-title {
        white-space: normal;
        font-size: 1.5rem;
    }

    .features-bar {
        padding: 0.3rem 0.6rem;
    }

    .features-grid {
        gap: 0.6rem 0.2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .feature-card {
        padding: 0.3rem 0.5rem;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .feature-text strong {
        font-size: 0.85rem;
    }

    .feature-text span {
        font-size: 0.6rem;
    }
}

/* =============================================
   ABOUT MODAL SECTION
   ============================================= */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    /* Above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s var(--ease) forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalScaleUp 0.4s var(--ease) forwards;
}

@keyframes modalScaleUp {
    from {
        transform: scale(0.9) translateY(20px);
    }

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-muted);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-dark);
}

.about-title,
.goal-title {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
}

.about-title {
    font-size: 2.5rem;
}

.goal-title {
    font-size: 2rem;
    margin-top: 30px;
}

.about-text {
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.about-text::-webkit-scrollbar {
    width: 6px;
}

.about-text::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
    text-align: justify;
}

.about-text strong {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        max-height: 90vh;
    }

    .about-title {
        font-size: 2rem;
    }

    .goal-title {
        font-size: 1.7rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}

/* =============================================
   SCROLLABLE CONTENT SECTIONS (About, News, Fare)
   ============================================= */
.scrollable-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 40px 20px 120px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.about-card, .news-section, .fare-section {
    width: 100%;
}

/* We removed the white box background, so focus on the typography */
.section-header {
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 ion-icon {
    color: var(--primary);
    font-size: 2.2rem;
}

.header-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.info-section.about-card p strong {
    color: var(--primary);
    font-weight: 700;
}

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

.news-card {
    background: transparent;
    border-radius: 0;
    padding: 16px 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateX(6px);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.news-tag {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.news-tag.closure { background: #fee2e2; color: #ef4444; }
.news-tag.alert { background: #fef3c7; color: #f59e0b; }
.news-tag.fare { background: #e0e7ff; color: #4f46e5; }
.news-tag.announcement { background: #dcfce7; color: #16a34a; }

.news-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1; /* Pushes date to bottom */
}

.news-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* =============================================
   BLUE FOOTER LOGIC
   ============================================= */
.site-footer {
    background: var(--primary); /* Theme Color */
    color: white;
    padding: 60px 20px 20px;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.site-footer::before {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 420px;
    height: 420px;
    background-image: url('assets/logo-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.brand-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

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

.social-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-column h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.nav-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-column a:hover {
    color: white;
    text-decoration: underline;
}

.contact-column p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-column p ion-icon {
    font-size: 1.2rem;
    color: #60b3ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* User asked for wider gap in mobile */
@media (max-width: 768px) {
    .scrollable-content {
        gap: 60px; /* Increased from 40px */
        /* padding-top will be handled by the specialized media query above */
        padding-bottom: 140px; 
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer::before {
        width: 280px;
        height: 280px;
        right: -30px;
        bottom: -20px;
    }
}

/* =============================================
   AUTHENTICATION PAGE (Login & Register)
   ============================================= */
.auth-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 20px 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 45, 60, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    animation: heroFadeIn 0.6s var(--ease) both;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    margin: 15px 20px 10px;
    border-radius: 99px;
    position: relative;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 99px;
    transition: all 0.3s ease;
    z-index: 2;
}

.auth-tab.active {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-content {
    position: relative;
    min-height: 380px;
}

.auth-form {
    padding: 0 20px;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2px;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group ion-icon:first-child {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 143, 255, 0.15);
}

.input-group input::placeholder {
    color: #cbd5e1;
}

.btn-toggle-pass {
    position: absolute !important;
    left: auto !important;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto !important;
    color: #64748b !important;
    transition: color 0.2s;
    font-size: 1.2rem;
}
.btn-toggle-pass:hover {
    color: var(--text-dark) !important;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me a {
    color: var(--primary);
    text-decoration: none;
}
.remember-me a:hover {
    text-decoration: underline;
}

.forgot-pass {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.forgot-pass:hover {
    text-decoration: underline;
}

.btn-auth-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 12px rgba(26, 143, 255, 0.25);
    margin-bottom: 10px;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(26, 143, 255, 0.35);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.btn-social-auth {
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 15px;
}

.btn-social-auth:hover {
    background: #f8fafc;
}

.btn-social-auth img {
    width: 20px;
    height: 20px;
}

.password-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.req-item ion-icon {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.req-item.met {
    color: var(--success);
}
.req-item.met ion-icon {
    color: var(--success);
}

/* Security Trust Badge Assurance */
.security-assurance {
    background: #e6f2f5;
    padding: 10px 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid #c7e3eb;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.security-assurance ion-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--primary);
}

.guest-link {
    display: block;
    text-align: center;
    padding: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.guest-link:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
}

/* =============================================
   LANGUAGE TOGGLE BUTTON
   ============================================= */
.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 5px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.navbar-white .lang-toggle-btn {
    background: rgba(26, 143, 255, 0.08);
    border-color: rgba(26, 143, 255, 0.3);
    color: var(--primary);
}
@media (max-width: 768px) {
    .lang-toggle-btn {
        display: none !important;
    }
}
.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}
.navbar-white .lang-toggle-btn:hover {
    background: rgba(26, 143, 255, 0.15);
}
.lang-active {
    color: white;
    font-weight: 800;
}
.navbar-white .lang-active {
    color: var(--primary);
}
.lang-sep {
    opacity: 0.45;
    font-weight: 400;
}
.lang-other {
    opacity: 0.6;
}

/* Mobile Specific Toggle Row */
.mobile-lang-row {
    display: none; /* Hidden on Desktop */
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 45, 60, 0.08);
    margin-top: 10px;
}
@media (max-width: 768px) {
    .mobile-lang-row {
        display: flex; /* Shown on Mobile */
    }
}
.mobile-lang-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.mobile-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
}

/* =============================================
   PLACES PAGE - PREMIUM DISCOVER UI
   ============================================= */
.ref-hero {
    padding: 160px 20px 100px;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, rgba(26, 143, 255, 0.25), transparent 75%),
                linear-gradient(to bottom, rgba(224, 242, 254, 0.6), var(--bg));
    position: relative;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ref-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.0;
    animation: heroFadeIn 1s var(--ease) both;
}

.ref-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
    animation: heroFadeIn 1s var(--ease) 0.2s both;
}

.places-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 140px;
    position: relative;
    z-index: 10;
}

/* Category Navigation Wrapper */
.category-nav-wrapper {
    position: relative;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding: 30px 0 50px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    scroll-behavior: smooth;
    width: 100%;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

/* Category Scroll Buttons (Desktop Only) */
.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-80%); /* Align with tabs height */
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 45, 60, 0.1);
    opacity: 0;
    visibility: hidden;
}

.category-scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

.category-scroll-btn:hover {
    background: white;
    transform: translateY(-80%) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 143, 255, 0.2);
    color: var(--primary-dark);
}

.category-scroll-btn.left {
    left: -24px;
}

.category-scroll-btn.right {
    right: -24px;
}

@media (max-width: 1024px) {
    .category-scroll-btn {
        display: none !important; /* Touch scrolling is fine on tablets/mobile */
    }
    .category-tabs {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 45, 60, 0.05);
}

.category-tab ion-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.category-tab:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 12px 25px rgba(26, 143, 255, 0.18);
    background: white;
}

.category-tab:hover ion-icon {
    transform: rotate(-10deg);
}

.category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-blue), 0 10px 20px rgba(26, 143, 255, 0.3);
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 60px 0 30px;
    padding-left: 18px;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #80c4ff);
    border-radius: 10px;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 35px;
}

.ref-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 4px 12px rgba(0, 45, 60, 0.04),
        0 8px 32px rgba(0, 45, 60, 0.04);
}

.ref-card:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 20px 50px rgba(0, 45, 60, 0.12),
        0 10px 20px rgba(26, 143, 255, 0.08);
    border-color: rgba(26, 143, 255, 0.4);
}

.ref-img-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.ref-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ref-card:hover .ref-img-container::after {
    opacity: 1;
}

.ref-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-card:hover .ref-img-container img {
    transform: scale(1.12);
}

.ref-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    padding: 22px 26px 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.card-meta {
    padding: 0 26px 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(26, 143, 255, 0.08);
    padding: 6px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.ref-card:hover .card-tag {
    background: var(--primary);
    color: white;
}

/* Vibrant Tag Varieties */
.card-tag:contains("Terminal"), [data-category="terminals"] .card-tag { background: rgba(26, 143, 255, 0.1); color: #1a8fff; }
.card-tag:contains("Mall"), [data-category*="malls"] .card-tag { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.card-tag:contains("School"), [data-category="schools"] .card-tag { background: rgba(16, 185, 129, 0.1); color: #059669; }
.card-tag:contains("Historic"), [data-category*="hangout"] .card-tag { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.card-tag:contains("Coffee"), [data-category*="coffee"] .card-tag { background: rgba(120, 53, 15, 0.1); color: #92400e; }
.card-tag:contains("Establishment"), [data-category="establishments"] .card-tag { background: rgba(100, 116, 139, 0.1); color: #475569; }
.card-tag:contains("Nature"), .card-tag:contains("Park") { background: rgba(34, 197, 94, 0.1); color: #16a34a; }

.card-footer {
    margin-top: auto;
    padding: 22px 26px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(248, 250, 252, 0.5);
    transition: background 0.4s ease;
}

.ref-card:hover .card-footer {
    background: white;
}

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.plan-btn ion-icon {
    font-size: 1.4rem;
    transform: translateX(-5px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-card:hover .plan-btn ion-icon {
    transform: translateX(0);
    opacity: 1;
}

/* Empty State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    display: none;
}

.no-results ion-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 768px) {
    .ref-hero {
        padding: 120px 20px 60px;
    }
    
    .ref-hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-tabs {
        padding: 20px 0 30px;
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .category-tab {
        padding: 12px 22px;
        font-size: 0.88rem;
    }
}

/* =============================================
   STEPS SECTION - FULL-WIDTH SOLID BLUE "LINE"
   ============================================= */
.steps-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #1a8fff; /* Solid blue background */
  padding: 80px 0 100px;
  overflow: hidden;
}

/* Para kumalat ang blue sa buong lapad kahit may container */
.steps-section .steps-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.steps-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 24px;
}

.steps-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.steps-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Puti ang cards, may malaking ghost number */
.step-card {
  background: white;
  border-radius: 28px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
  box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.15);
  border: none;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.25);
}

.step-ghost-num {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(26, 143, 255, 0.08);
  line-height: 1;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 0;
}

.step-card:hover .step-ghost-num {
  color: rgba(26, 143, 255, 0.15);
  transform: scale(1.05);
}

.step-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 143, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.step-card:hover .step-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.02);
}

.step-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.step-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Optional: mag‑add ng banayad na linya sa itaas/ibaba para maging "line" effect */
.steps-section::before,
.steps-section::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.steps-section::before {
  top: 0;
}

.steps-section::after {
  bottom: 0;
}

/* =============================================
   ABOUT PAGE CONTENT REDESIGN
   ============================================= */
.about-hero {
    padding: 130px 24px 48px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faq-section .page-title {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 48px;
}

/* =============================================
   SCROLL ANIMATIONS & ENGAGING EFFECTS
   ============================================= */

/* ── 1. Enhanced reveal — slide from bottom + fade ── */
.reveal,
.reveal [class*="reveal-delay-"] {
    opacity: 0;
    transform: translateY(52px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.active,
.reveal.active [class*="reveal-delay-"] {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-from-left variant */
.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

/* Slide-from-right variant */
.reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* Scale-in variant for cards */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.active { opacity: 1; transform: scale(1) translateY(0); }

/* ── 2. Step cards — staggered scale-in ── */
.step-card {
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease;
}
.steps-section .step-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}
.steps-section.active .step-card:nth-child(1) {
    opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.05s;
}
.steps-section.active .step-card:nth-child(2) {
    opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.18s;
}
.steps-section.active .step-card:nth-child(3) {
    opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.31s;
}

/* ── 3. News cards — slide from left/right alternate ── */
.news-card {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s;
}
.news-card:nth-child(even) {
    transform: translateX(36px);
}
.news-section.active .news-card,
.fare-section.active .news-card {
    opacity: 1;
    transform: translateX(0);
}
.news-section.active .news-card:nth-child(1),
.fare-section.active .news-card:nth-child(1) { transition-delay: 0.1s; }
.news-section.active .news-card:nth-child(2),
.fare-section.active .news-card:nth-child(2) { transition-delay: 0.25s; }

/* ── 4. Features bar — count-up shimmer ── */
.features-bar {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.features-bar.active {
    opacity: 1;
    transform: translateY(0);
}
.features-bar.active .feature-card {
    animation: featurePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.features-bar.active .feature-card:nth-child(1) { animation-delay: 0.05s; }
.features-bar.active .feature-card:nth-child(2) { animation-delay: 0.15s; }
.features-bar.active .feature-card:nth-child(3) { animation-delay: 0.25s; }
.features-bar.active .feature-card:nth-child(4) { animation-delay: 0.35s; }
@keyframes featurePop {
    from { opacity: 0; transform: scale(0.8) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── 5. Section header line — animate width ── */
.header-line {
    width: 0;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.reveal.active .header-line,
.news-section.active .header-line,
.fare-section.active .header-line {
    width: 60px;
}

/* ── 6. About card text — word highlight on reveal ── */
.about-card.active strong {
    background: linear-gradient(90deg, var(--primary) 0%, #0f6fd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── 7. Parallax hero content ── */
.hero-content {
    will-change: transform;
}

/* ── 8. Scroll-progress indicator ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── 9. Floating section number badge ── */
.section-num {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(26, 143, 255, 0.1);
    border: 1px solid rgba(26, 143, 255, 0.2);
    border-radius: 99px;
    padding: 3px 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    width: fit-content;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
}
.reveal.active .section-num,
.news-section.active .section-num,
.fare-section.active .section-num {
    opacity: 1;
    transform: translateY(0);
}

/* ── 10. Hover lift for step cards ── */
.step-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(26,143,255,0.13);
}

/* reduce motion override */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale,
    .news-card, .step-card, .features-bar {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .header-line { width: 60px !important; }
    .scroll-progress { display: none; }
}

/* =============================================
   ABOUT PAGE – ENHANCED
   ============================================= */
.about-hero-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.about-logo-img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.about-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 12px;
  letter-spacing: -0.3px;
}

/* Why Calzada section */
.why-calzada {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid rgba(26, 143, 255, 0.2);
}

.why-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.why-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(26, 143, 255, 0.2);
  border-color: rgba(26, 143, 255, 0.3);
}

.why-card ion-icon {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.why-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Adjust existing about text spacing */
.about-text {
  margin-top: 20px;
}

/* =============================================
   ABOUT SECTION – SIDE-BY-SIDE MOCKUP LAYOUT
   ============================================= */
.about-split {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-split-text {
  flex: 1;
  min-width: 0;
}

.about-split-mockup {
  flex: 0 0 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Crop wrapper: hides the bottom github browser bar */
.mockup-crop-wrapper {
  width: 220px;
  height: 370px;
  overflow: hidden;
  background: transparent;
}

.about-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}



@media (max-width: 768px) {
  .about-split {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .about-split-mockup {
    flex: none;
  }

  .mockup-crop-wrapper {
    width: 180px;
    height: 300px;
  }
}

/* =============================================
   PAGE TRANSITION OVERLAY – CUBE LOADER
   ============================================= */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1a8fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

#page-transition.fade-in {
  opacity: 1;
  pointer-events: all;
}

/* Cube loader */
#page-transition .pt-cubes {
  --uib-size: 48px;
  --uib-color: white;
  --uib-speed: 1.75s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: var(--uib-size);
  height: calc(var(--uib-size) * 0.6);
}

#page-transition .pt-cube {
  flex-shrink: 0;
  width: calc(var(--uib-size) * 0.2);
  height: calc(var(--uib-size) * 0.2);
  animation: ptJump var(--uib-speed) ease-in-out infinite;
}

#page-transition .pt-cube__inner {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 25%;
  background-color: var(--uib-color);
  transform-origin: center bottom;
  animation: ptMorph var(--uib-speed) ease-in-out infinite;
}

#page-transition .pt-cube:nth-child(2) {
  animation-delay: calc(var(--uib-speed) * -0.36);
}
#page-transition .pt-cube:nth-child(2) .pt-cube__inner {
  animation-delay: calc(var(--uib-speed) * -0.36);
}
#page-transition .pt-cube:nth-child(3) {
  animation-delay: calc(var(--uib-speed) * -0.2);
}
#page-transition .pt-cube:nth-child(3) .pt-cube__inner {
  animation-delay: calc(var(--uib-speed) * -0.2);
}

@keyframes ptJump {
  0%                          { transform: translateY(0px); }
  30%                         { transform: translateY(0px); animation-timing-function: ease-out; }
  50%                         { transform: translateY(-200%); animation-timing-function: ease-in; }
  75%                         { transform: translateY(0px); animation-timing-function: ease-in; }
}

@keyframes ptMorph {
  0%                          { transform: scaleY(1); }
  10%                         { transform: scaleY(1); }
  20%, 25%                    { transform: scaleY(0.6) scaleX(1.3); animation-timing-function: ease-in-out; }
  30%                         { transform: scaleY(1.15) scaleX(0.9); animation-timing-function: ease-in-out; }
  40%                         { transform: scaleY(1); }
  70%, 85%, 100%              { transform: scaleY(1); }
  75%                         { transform: scaleY(0.8) scaleX(1.2); }
}

/* Optional label under loader */
#page-transition .pt-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
}
