/* CSS Variables */
:root {
    --primary-color: #3F5141; /* Dark Green */
    --secondary-color: #8FB18C; /* Light Sage Green */
    --accent-color: #6B8E69; /* Mid Green */
    --text-color: #2D3436;
    --light-text: #ffffff;
    --bg-color: #F9FAF9; /* Off-white green tint */
    --card-bg: #ffffff;
    --border-color: #E2E8E1;
    --shadow: 0 10px 30px rgba(63, 81, 65, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Inter', -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid white;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.logo-bai {
    color: white;
}

.logo-bus {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

nav ul li a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-bus.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 400px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.bus {
    width: 300px;
    height: 120px;
    background: white;
    border-radius: 10px;
    position: relative;
    animation: busMove 8s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bus::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    width: 60px;
    height: 20px;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bus::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    border-radius: 50%;
}

@keyframes busMove {
    0%, 100% { transform: translateX(-50px); }
    50% { transform: translateX(50px); }
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Subsidiaries Section */
.subsidiaries {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.subsidiary-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.subsidiary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.subsidiary-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subsidiary-logo h3 {
    margin: 0;
    font-size: 1.8rem;
}

.subsidiary-logo span {
    font-weight: 300;
    opacity: 0.8;
}

.subsidiary-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.subsidiary-content {
    padding: 2rem;
}

.subsidiary-stats {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 10px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.subsidiary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

.subsidiary-link:hover {
    text-decoration: underline;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-commitment h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.about-commitment ul {
    list-style: none;
}

.about-commitment li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.about-commitment li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--primary-color);
}

.about-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.bus-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
}

.contact-hours, .contact-response {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 50px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        width: 300px;
        height: 200px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Page Header (Common) */
.page-header {
    margin-top: 60px;
    position: relative;
}

/* Route Timeline Component */
.route-timeline {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-stop {
    position: relative;
    z-index: 2;
    background: white;
    padding: 10px;
}

.stop-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.stop-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Welcome Section */
.welcome-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.feature-content {
    padding: 30px;
}

.feature-content h3 {
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
    
    .timeline-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline-container::before {
        width: 3px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
    
    .stop-dot {
        margin: 0;
    }
    
    .timeline-stop {
        display: flex;
        align-items: center;
        gap: 20px;
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
}