/* CSS Reset and Global Styles */
:root {
    --primary-color: #1c1c1c; /* Black for text and headings */
    --secondary-color: #4d4d4d; /* Dark Gray for accents */
    --background-color: #ffc300; /* Pure Yellow */
    --text-color: #1c1c1c; /* Black */
    --section-bg: #ffd633; /* Lighter Yellow for sections */
    --card-bg: #ffde59; /* Card Yellow */
    --footer-bg: #1c1c1c; /* Dark footer for contrast */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif, Arial, Helvetica;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    will-change: transform;
}

.btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1DAE54;
    border-color: #1DAE54;
}

/* Header & Navigation */
.main-header {
    background-color: var(--card-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.text-logo-advanced {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.text-logo-advanced span {
    font-weight: 400;
    color: var(--secondary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--background-color);
    padding: 6rem 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1.2;
}

.hero-form {
    flex: 0.8;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 500px;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.features-list .fa-check-circle {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Booking Form */
.booking-form-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-form-container h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(77, 77, 77, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 15px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
    text-align: left;
    font-size: 2.2rem;
    line-height: 1.3;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Cards Sections */
.routes-grid,
.why-choose-grid,
.fleet-grid,
.testimonials-grid {
    display: grid;
    gap: 2rem;
}

.routes-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 3rem;
}

.fleet-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.route-card,
.feature-card,
.fleet-card,
.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid #e6a100;
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    will-change: transform;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.fleet-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.testimonial-card {
    border-left: 5px solid var(--primary-color);
}

.route-card:hover,
.feature-card:hover,
.fleet-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: rotate(360deg);
}

.fleet-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fleet-card:hover img {
    transform: scale(1.05);
}

.fleet-card-content {
    padding: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600;
}

.center-btn-container {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.main-footer {
    background-color: var(--background-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p, 
.footer-col ul li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.2);
}

/* Contact Page Overlay */
#contact-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
    transform: scale(1.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact-page.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.contact-page-content {
    background-color: #fff;
    max-width: 500px;
    width: 100%;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
}

.contact-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.contact-close-btn:hover {
    transform: rotate(90deg);
    color: var(--secondary-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content h2 {
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
    
    .hero-text p,
    .features-list,
    .about-features {
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-list,
    .about-features {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .main-nav {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 5rem;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 1.5rem 0;
    }
    
    .main-nav ul li a {
        color: #fff;
        font-size: 1.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav.active ~ .hamburger .bar {
        background-color: #fff;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .contact-page-content {
        padding: 2rem 1rem;
    }
}