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

:root {
    --primary: #1a2744;
    --accent: #b8ff00;
    --background: #ffffff;
    --foreground: #1a1a1a;
    --muted: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    background: url('https://xiteride-ditto-clone.lovable.app/assets/hero-background-DveA4dLh.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,39,68,0.7), rgba(26,39,68,0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 3rem;
}

/* Services Slider */
.services-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.services-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 200%; /* Two slides */
}

.services-slide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 50%; /* Each slide takes 50% of slider width */
    min-width: 0; /* Prevent grid overflow */
}

.service-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-width: 0; /* Prevent overflow */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: block;
}

.service-card img[src=""], .service-card img:not([src]) {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    content: '';
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    padding: 0 1.5rem 1rem;
    color: var(--muted);
}

.read-more {
    display: block;
    padding: 0 1.5rem 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    background: rgba(26, 39, 68, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: all;
}

.slider-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Responsive Design for Slider */
@media (max-width: 1200px) {
    .services-slide {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 600px) {
    .services-slide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary), #2a3f5f);
    color: #fff;
    padding: 8rem 0 4rem;
    margin-top: 60px;
    text-align: center;
}

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

/* Page Content */
.page-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-text {
    margin-bottom: 1rem;
}

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

.social-links a {
    color: #fff;
}

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

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-contact li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

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

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.contact-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.contact-info-icon {
    color: var(--accent);
}

/* Utility */
.text-center {
    text-align: center;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border-radius: 1rem;
    margin-top: 3rem;
}

/* Error Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 6rem;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
}

.service-detail {
    margin-bottom: 4rem;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail img {
    width: 100%;
    border-radius: 1rem;
}

.feature-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Fleet images inside cards */
.fleet-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    margin-bottom: 1rem;
}

/* Image load animation */
.fleet-image {
    transform: scale(1.03);
    filter: blur(6px) saturate(0.95);
    opacity: 0;
    transition: transform 650ms cubic-bezier(.2,.9,.2,1),
                filter 650ms cubic-bezier(.2,.9,.2,1),
                opacity 540ms ease-out;
}

.fleet-image.image-loaded {
    transform: scale(1);
    filter: blur(0) saturate(1);
    opacity: 1;
    padding: 30px;
}

@media (prefers-reduced-motion: reduce) {
    .fleet-image,
    .fleet-image.image-loaded {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Book Now button styling */
.btn-book-now {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    color: #0b1220;
    background: linear-gradient(90deg, #ffd24d 0%, #b8ff00 50%, #7affc8 100%);
    box-shadow: 0 8px 20px rgba(24, 33, 56, 0.12), inset 0 -2px 0 rgba(0,0,0,0.04);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-book-now:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(24,33,56,0.18), inset 0 -2px 0 rgba(0,0,0,0.04);
}

.btn-book-now:active {
    transform: translateY(-1px) scale(0.995);
}

@media (max-width: 600px) {
    .btn-book-now {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Per-card button layout */
.fleet-card .btn-book-now {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}

.fleet-card .card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

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

.fleet-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

/* Fleet card reveal animation */
.fleet-card {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity 520ms cubic-bezier(.2,.9,.2,1), transform 520ms cubic-bezier(.2,.9,.2,1), box-shadow 520ms ease;
    will-change: transform, opacity;
}

.fleet-card.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 30px rgba(16,24,40,0.06);
}

@media (prefers-reduced-motion: reduce) {
    .fleet-card,
    .fleet-card.card-visible {
        transition: none !important;
        transform: none !important;
    }
}

.fleet-category {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fleet-features {
    list-style: none;
    margin-top: 1rem;
}

.fleet-features li:before {
    content: "✓ ";
    color: var(--accent);
}

.location-region {
    margin-bottom: 3rem;
}

.region-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

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

.location-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.global-coverage {
    background: var(--primary);
    color: #fff;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 3rem;
}

.emergency-section {
    background: #fef3c7;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 3rem;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}