@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-navy: #1e3a8a; /* Premium Navy Blue */
    --accent-navy: #3b82f6;  /* Sapphire Blue for highlights */
    --primary-black: #0A0A0A;
    --secondary-black: #1A1A1A;
    --background-light: #FFFFFF;
    --background-soft: #F8FAFC;
    --border-color: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #94A3B8;
    
    /* New Gradients */
    --bg-main-gradient: linear-gradient(135deg, rgba(30, 58, 138, 0.15) 0%, rgb(29, 51, 73) 40%, rgba(255, 255, 255, 1) 100%);
    --navy-gradient: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
    --hero-overlay: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(10, 10, 10, 0.05) 100%);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background: var(--bg-main-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Premium Header */
.header-main {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 100px 0 ;
    background: var(--hero-overlay), var(--background-soft);
    background-image: 
        var(--hero-overlay),
        url('../images/hero-43.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero-section .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

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

.hero-bus-image {
    max-width: 900px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-banner-text {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    z-index: 10;
}

/* Booking Card */
.booking-card-main {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    margin-top: -80px;
    position: relative;
    z-index: 20;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.booking-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.booking-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
}

.booking-tab.active {
    background-color: var(--primary-black);
    color: white;
}

.booking-tab:first-child {
    border-top-left-radius: 20px;
}

.booking-tab:last-child {
    border-top-right-radius: 20px;
}

.booking-tab i {
    font-size: 1.4rem;
}

.booking-content {
    padding: 30px;
}

.trip-type-toggle {
    display: inline-flex;
    background: var(--background-soft);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.trip-btn {
    padding: 12px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.trip-btn.active {
    background: var(--primary-navy);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transform: scale(1.05);
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    gap: 20px;
    align-items: flex-end;
}

@media (max-width: 992px) {
    .search-form-grid {
        grid-template-columns: 1fr;
    }
}

.search-input-group {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 15px 24px;
    background: var(--background-soft);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-navy);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.search-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--primary-black);
    font-size: 1.1rem;
    outline: none;
}

.swap-icon {
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    color: var(--primary-navy);
    transition: all 0.3s ease;
}

.swap-icon:hover {
    transform: rotate(180deg);
}

.btn-search {
    background: var(--navy-gradient);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-search:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(30, 58, 138, 0.3);
}

/* Info Section */
.info-section {
    padding: 100px 0;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.info-image img {
    max-width: 400px;
}

/* Grid Sections */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 60px 0;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-12px);
    color: white;
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.7);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: var(--background-soft);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-black);
    font-size: 1.8rem;
}

.feature-card h4 {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Loyalty Section */
.loyalty-section {
    background: var(--primary-black);
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.loyalty-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.loyalty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: relative;
    z-index: 5;
}

@media (max-width: 992px) {
    .loyalty-grid {
        grid-template-columns: 1fr;
    }
}

.loyalty-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.loyalty-card h4 {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.loyalty-card ul {
    list-style: none;
    padding: 0;
}

.loyalty-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.loyalty-card li::before {
    content: '•';
    color: var(--primary-navy);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Secondary Navigation */
.secondary-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

@media (max-width: 768px) {
    .secondary-nav {
        flex-direction: column;
        gap: 20px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-navy);
}

.auth-btns {
    display: flex;
    gap: 15px;
}

.btn-outline {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: 700;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: white;
}

.btn-solid {
    background: var(--primary-navy);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-solid:hover {
    background: var(--accent-navy);
    transform: scale(1.05);
}

/* Footer Modern */
.footer-main {
    background: var(--background-soft);
    padding: 80px 0 40px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h5 {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-navy);
}

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

.social-icon {
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

.app-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    background: var(--primary-black);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.app-btn i {
    font-size: 1.5rem;
}

.app-btn-text span {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

.app-btn-text strong {
    font-size: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* Modal and Seat Map Style Tweaks */
#seat-map button.available {
    background-color: #E5E7EB;
    border-color: #D1D5DB;
    color: var(--text-primary);
}

#seat-map button.selected {
    background-color: #10B981;
    border-color: #059669;
    color: white;
}

#seat-map button.booked {
    background-color: var(--primary-black);
    border-color: black;
    color: white;
}

#seat-map button.pending {
    background-color: var(--primary-navy);
    border-color: #1e3a8a;
    color: white;
}
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

.status-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.status-badge:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.25);
    background: white;
    z-index: 50;
    animation-play-state: paused;
}
