@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #1E3A8A; /* Royal Blue */
    --accent-gold: #D97706; /* Soft Gold/Orange */
    --surface-light: #F8FAFC;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface-light);
    color: #1E293B;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #93C5FD;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(255,255,255,0.2)); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 0 40px rgba(255,255,255,0.4)); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

.delay-100 { animation-delay: 100ms; opacity: 0; }
.delay-200 { animation-delay: 200ms; opacity: 0; }
.delay-300 { animation-delay: 300ms; opacity: 0; }

/* Glowing Button */
.btn-glow {
    position: relative;
    transition: all 0.3s ease;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-gold), var(--primary-blue));
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.6;
}
.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(30, 58, 138, 0.4);
}

/* Premium Button Animation (Hover) */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(30, 58, 138, 0.3);
    letter-spacing: 0.05em;
}

.btn-premium:active {
    transform: translateY(-1px);
}

/* Scroll Fade Section */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8; 
}

/* Hero Overlay Gradient */
.hero-gradient {
    background: linear-gradient(135deg, rgba(30,58,138,0.9) 0%, rgba(30,58,138,0.4) 100%);
}

/* Bus Body Wrapper */
.bus-body {
    border: 3px solid #CBD5E1;
    border-radius: 2rem;
    padding: 1.25rem 1rem;
    background: #F8FAFC;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Seat Component Styles */
.bus-seat {
    width: 2.75rem;    /* ~44px */
    height: 3.25rem;   /* ~52px */
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bus-seat:hover:not(.status-booked):not(.status-pending) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
    border-color: #22c55e;
}

.bus-seat.selected {
    background-color: #22c55e !important;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
    border-color: #22c55e;
}

/* Hover Lift Effect for Cards */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating labels */
.floating-input {
    border: 1px solid #E2E8F0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.floating-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}
.floating-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-blue);
    background: white;
    padding: 0 0.25rem;
    transition: all 0.2s;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    min-width: 250px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--primary-blue);
    font-weight: 500;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }

/* ── Contact Section ─────────────────────────────────────────────────────── */
@keyframes blobMove {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0,0) scale(1); }
    33%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(20px,-15px) scale(1.05); }
    66%       { border-radius: 50% 30% 60% 40% / 40% 70% 50% 60%; transform: translate(-15px,10px) scale(0.97); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}
@keyframes pulseRing {
    0%   { transform: scale(0.85); opacity: 0.7; }
    70%  { transform: scale(1.4);  opacity: 0; }
    100% { transform: scale(0.85); opacity: 0; }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.contact-blob {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMove 10s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
}

.contact-phone-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.contact-phone-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(99,102,241,0.08) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}
.contact-phone-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -15px rgba(30,58,138,0.25); }
.contact-phone-card:hover::before { opacity: 1; }

.pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid rgba(59,130,246,0.5);
    animation: pulseRing 2s cubic-bezier(0.215,0.61,0.355,1) infinite;
}
.float-anim { animation: floatY 3.5s ease-in-out infinite; }

.gradient-text-anim {
    background: linear-gradient(270deg, #1E3A8A, #3B82F6, #D97706, #1E3A8A);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* Route timeline */
.route-stop {
    position: relative;
    padding-left: 2rem;
    transition: transform 0.2s ease;
}
.route-stop:hover { transform: translateX(6px); }
.route-stop::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.25);
    z-index: 1;
}
.route-stop.major::before {
    width: 16px; height: 16px;
    background: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(217,119,6,0.25);
}
.route-line {
    position: absolute;
    left: 5px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue), #93C5FD);
}

/* Page hero (for routes/terms/privacy) */
.page-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #1E40AF 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Info card with left border accent */
.info-card {
    border-left: 4px solid var(--primary-blue);
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}
.info-card:hover { box-shadow: 0 8px 30px rgba(30,58,138,0.12); transform: translateY(-2px); }

/* ── Route Booking Cards ────────────────────────────────────────────────── */
.route-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px -20px rgba(30, 58, 138, 0.12);
    border-color: rgba(30, 58, 138, 0.1);
}

.route-bus-bg {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    position: relative;
}

.route-connector {
    position: relative;
    height: 2px;
    background: #E2E8F0;
    flex-grow: 1;
    margin: 0 1rem;
}

.route-connector::after {
    content: '🚌';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    background: white;
    padding: 0 0.5rem;
}

.status-chip {
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chip-success {
    background: #DCFCE7;
    color: #166534;
}

.chip-warning {
    background: #FEF9C3;
    color: #854D0E;
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.time-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E293B;
}

.place-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .route-card-flex {
        flex-direction: column;
    }
    .route-bus-bg {
        width: 100%;
        height: 200px;
    }
}

/* ── Glowing Card Component (Aceternity Style) ─────────────────────────── */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.glowing-card-container {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --glow-color: rgba(59, 130, 246, 0.4); /* Blue smooth glow */
    --border-color: rgba(30, 58, 138, 0.08); /* Light blue border */
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #1e293b; /* slate-800 equivalent */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px -1px rgba(0,0,0,0.03);
    z-index: 10;
}

.glowing-card-container:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.95); /* Hover bg bump */
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
}

/* Spotlight Effect */
.glowing-card-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        var(--glow-color),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

.glowing-card-container:hover::before {
    opacity: 0.12;
}

/* Rotating Border Ray */
.glowing-card-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px; /* Border thickness */
    background: conic-gradient(
        from var(--border-angle),
        transparent 70%,
        #3b82f6,
        #f59e0b,
        transparent
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.glowing-card-container:hover .glowing-card-border {
    opacity: 1;
}

@keyframes rotate-border {
    to { --border-angle: 360deg; }
}

/* Card Content Styling */
.glowing-card-content {
    position: relative;
    z-index: 5;
}

.glowing-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9; /* slate-100 */
    color: #3b82f6; /* Blue-500 */
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.glowing-card-container:hover .glowing-card-icon {
    background: #3b82f6;
    color: white;
    transform: rotate(8deg) scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(30, 58, 138, 0.3);
}

.glowing-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 640px) { .glowing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .glowing-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Cinematic Hero Styles ─────────────────────────── */
.liquid-glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
}

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-rise {
    animation: fade-rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }

/* ── Testimonial Card Animation ─────────────────────────── */

.testimonial-card {
    transform-origin: left center;
    margin-left: var(--ml);
    transform: rotate(var(--r));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.5s ease,
                background-color 0.5s ease;
}

.testimonial-card:hover, .testimonial-card:active {
    transform: rotate(calc(var(--r) - 3deg)) translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
    background-color: #ffffff;
    z-index: 20;
}

.testimonial-card:hover .shadow-inner, .testimonial-card:active .shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

