:root {
    --primary-orange: #FF6B35;
    --primary-blue: #00A8E8;
    --secondary-orange: #FF8C42;
    --secondary-blue: #0077B6;
    --dark-text: #2D3436;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --success: #00B894;
    --danger: #FF5252;
    --warning: #FFC107;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F8F9FA 0%, #F0F2F5 100%);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    color: #666;
    margin-top: -2px;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 16px !important;
}

.nav-link:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange) !important;
    transform: translateY(-2px);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange) !important;
}

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

.btn-register {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: white !important;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3') center/cover no-repeat;
    opacity: 0.1;
    animation: zoomIn 20s ease-in-out infinite;
}

@keyframes zoomIn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin: 0 5px;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-card .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.search-card .form-control,
.search-card .form-select {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* Bus Card */
.bus-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.bus-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.bus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bus-card:hover .bus-image img {
    transform: scale(1.1);
}

.bus-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bus-content {
    padding: 20px;
    flex: 1;
}

.bus-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.bus-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.bus-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}

.bus-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #E9ECEF;
}

.facility-item {
    font-size: 0.8rem;
    color: #666;
}

.facility-item i {
    color: var(--primary-orange);
    margin-right: 5px;
}

.btn-book {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Seat Map */
.seat-map {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.seat {
    width: 55px;
    height: 55px;
    margin: 6px;
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.seat.available:hover {
    background: var(--success);
    color: white;
    border-color: var(--success);
    transform: scale(1.05);
}

.seat.selected {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.seat.booked {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-brand {
    margin-bottom: 20px;
}

.logo-icon-footer {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer h4, .footer h5 {
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
    display: inline-block;
}

.footer-contact li i {
    width: 25px;
    color: var(--primary-orange);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

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

.payment-methods i {
    font-size: 2rem;
    margin-right: 15px;
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .search-card {
        padding: 20px;
        margin-top: -30px;
    }
    
    .seat {
        width: 40px;
        height: 40px;
        font-size: 12px;
        margin: 4px;
    }
    
    .bus-price {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}