* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d97706;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.car-image {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* Fallback gradient backgrounds */
    background-color: #1e3a8a;
}

.hero-slide:nth-child(1) {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, #92400e 0%, #f97316 100%);
}

.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, #064e3b 0%, #0891b2 100%);
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white !important;
    transform: scale(1.2);
}

.slider-prev, .slider-next {
    cursor: pointer;
}

/* Modal Styles */
#bookingModal {
    backdrop-filter: blur(5px);
}

#bookingModal.hidden {
    display: none !important;
}

/* Smooth modal animation */
#bookingModal > div {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Hero adjustments for mobile */
    .hero-slide {
        min-height: 100vh;
    }
    
    .hero-slide .py-32 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
    
    /* Smaller text on mobile */
    h1.text-5xl {
        font-size: 2.5rem !important;
    }
    
    h2.text-4xl {
        font-size: 2rem !important;
    }
    
    /* Button adjustments */
    .hero-slide a {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Slider navigation arrows - smaller on mobile */
    .slider-prev, .slider-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .slider-dot {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Service cards - full width on mobile */
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Modal adjustments */
    #bookingModal > div {
        margin: 1rem;
        max-height: 95vh;
    }
    
    #bookingModal .p-8 {
        padding: 1.5rem !important;
    }
    
    #bookingModal .sticky {
        padding: 1rem !important;
    }
}

@media (max-width: 640px) {
    /* Extra small devices */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    p.text-xl, p.text-2xl {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Stack buttons vertically on very small screens */
    .hero-slide .flex-wrap {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-slide a {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    h1.text-5xl {
        font-size: 3rem !important;
    }
    
    h2.text-4xl {
        font-size: 2.5rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for touch devices */
    .slider-prev, .slider-next {
        width: 44px !important;
        height: 44px !important;
    }
    
    .slider-dot {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Remove hover effects on touch devices */
    .btn-primary:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Improve text readability on mobile */
@media (max-width: 640px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-rendering: optimizeLegibility;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* High resolution screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-slide {
        background-size: cover;
    }
}

/* Tab Styles */
.tab-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
}

.tab-btn.active {
    background: white;
    color: #1e40af;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* Passenger Button Styles */
.passenger-btn {
    cursor: pointer;
    background: white;
}

.passenger-btn.active {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

/* Floating Contact Buttons */
.fixed.bottom-6.right-6 {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile adjustments for floating buttons */
@media (max-width: 640px) {
    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fixed.bottom-6.right-6 a {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    /* FAQ Mobile Optimizations */
    .faq-toggle {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .faq-content {
        padding: 0 1rem 1rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Better touch targets */
    .slider-prev, .slider-next {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
    }
    
    /* Improved button spacing */
    .hero-slide .flex-col.sm\\:flex-row {
        gap: 0.75rem !important;
    }
    
    .hero-slide a {
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Better text readability */
    .hero-slide h1 {
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-slide h2 {
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-slide p {
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Enhanced card spacing */
    .bg-white.rounded-2xl {
        margin-bottom: 1rem !important;
    }
    
    /* Better form inputs on mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem !important;
    }
    
    /* Improved testimonial cards */
    .testimonial-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Better pricing card layout */
    .pricing-card {
        margin-bottom: 1.5rem !important;
    }
    
    /* Enhanced navigation */
    .nav-link {
        padding: 0.75rem 0 !important;
        font-size: 1rem !important;
    }
    
    /* Better modal on mobile */
    #bookingModal > div {
        margin: 0.5rem !important;
        max-height: 98vh !important;
        border-radius: 1rem !important;
    }
    
    /* Improved statistics section */
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Better blog card layout */
    .blog-card {
        margin-bottom: 1.5rem !important;
    }
    
    /* Enhanced contact section */
    .contact-card {
        margin-bottom: 1.5rem !important;
        padding: 1.5rem !important;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    /* Even more compact design */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Smaller hero text */
    .hero-slide h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-slide h2 {
        font-size: 1.5rem !important;
    }
    
    .hero-slide p {
        font-size: 0.95rem !important;
    }
    
    /* Compact FAQ */
    .faq-toggle {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Smaller buttons */
    .btn-primary {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Compact pricing */
    .pricing-card {
        padding: 1rem !important;
    }
    
    /* Smaller testimonials */
    .testimonial-card {
        padding: 1rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .faq-toggle {
        min-height: 48px !important;
        padding: 1rem !important;
    }
    
    .slider-prev, .slider-next {
        width: 52px !important;
        height: 52px !important;
    }
    
    .slider-dot {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Remove hover effects on touch */
    .service-card:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Better focus states for touch */
    .faq-toggle:focus {
        outline: 2px solid #f59e0b !important;
        outline-offset: 2px !important;
    }
    
    /* Enhanced button feedback */
    .btn-primary:active {
        transform: scale(0.98) !important;
    }
}

/* Enhanced About Page Styles */
.about-hero-bg {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
}

.about-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-icon-bounce {
    animation: iconBounce 2s infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.about-gradient-text {
    background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.about-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
}

/* Enhanced animations */
.about-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tab functionality for rentals page and homepage */
.tab-content {
    display: none;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-content.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0;
    transform: translateY(20px);
    height: 0;
    overflow: hidden;
}

.tab-button.active {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tab-button {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.tab-button:hover {
    transform: scale(1.02);
}

/* Homepage tab buttons (Mission, Vision, Performance) */
.tab-btn {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Passenger button active state */
.homepage-passenger-btn.active {
    border-color: #f59e0b !important;
    background-color: #fef3c7 !important;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
}
