:root {
    --primary-color: #ff6b00;
    --secondary-color: #333;
    --light-gray: #ededed;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

/* Enhanced Base CSS with Security and Performance Features */

/* CSS Security: Prevent CSS injection attacks */
* {
    box-sizing: border-box;
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Enhanced form security and validation styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #e74c3c;
}

/* Error message styling */
.error-message {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

/* Form-level error and success messages */
.form-error,
.form-success {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.form-error {
    background: #fdf2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Loading state for form submission */
.form-group button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Enhanced button security */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff6b35;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Prevent button text selection */
.btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Enhanced link security */
a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* External link indicator */
a[href^="http"]:not([href*="foxtravel.com.ph"])::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

/* Image security and optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Enhanced typography security */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

/* Responsive grid system with security */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Enhanced spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Enhanced animations with security */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Enhanced focus management for accessibility */
*:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ff6b35;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced print styles */
@media print {
    .btn,
    .form-group button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Enhanced mobile security */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
    }
}

/* Enhanced high contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }
}

/* Enhanced reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #f7fafc;
    }
}

/* Enhanced security for form inputs */
.form-group input[type="password"] {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

/* Prevent autocomplete on sensitive fields */
.form-group input[autocomplete="off"] {
    background-color: #f8f9fa;
}

/* Enhanced loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header Styles - Compact & Modern */
.header-transparent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Desktop header styles */
@media (min-width: 769px) {
    .header-transparent {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-transparent.translucent {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Mobile header styles */
@media (max-width: 768px) {
    .header-transparent {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        padding: 0.6rem 0;
    }

    .header-transparent.translucent {
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1000;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo:hover {
    transform: translateY(-1px);
}

.transparent-logo {
    height: 28px;
    transition: all 0.3s ease;
}

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

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    position: relative;
    letter-spacing: 0.2px;
}

nav a:hover,
nav a.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-50%);
    opacity: 0;
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
    opacity: 1;
}

.booking-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.3rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(255, 107, 0, 0.25);
}

.booking-btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    border-radius: 1px;
}

/* Desktop styles - hide mobile menu */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile styles - simple three lines */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        order: -1;
        margin-right: auto;
    }

    .mobile-menu-btn span {
        transition: none;
    }

    .mobile-menu-btn.active span {
        background-color: var(--white);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0.5;
    }
}

/* Hero Section - Base */
.hero {
    position: relative;
    background: linear-gradient(
        to right bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.6)
    ), url('../images/allpic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    margin-top: -90px; /* Compensate for header height */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: var(--font-weight-bold);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    opacity: 0.95;
    line-height: 1.6;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.primary-btn, 
.secondary-btn {
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    font-weight: var(--font-weight-medium);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.secondary-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(5px);
}

.primary-btn:hover {
    transform: translateY(-3px);
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.3);
}

.secondary-btn:hover {
    transform: translateY(-3px);
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.primary-btn::before,
.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.primary-btn:hover::before,
.secondary-btn:hover::before {
    transform: translateX(100%);
}

/* About Page Hero */
.about-page .hero {
    background: linear-gradient(
        to right bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.6)
    ), url('../images/foximage2.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

.about-page .hero-content {
    max-width: 1200px;
    text-align: center;
    padding: 0 1rem;
    width: 100%;
}

.about-page .hero h1 {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.about-page .hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    opacity: 0.9;
}

.about-page .search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 1000px;
    margin: 2rem auto 0;
}

.about-page .booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.about-page .form-group {
    position: relative;
}

.about-page .form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 1;
}

.about-page .form-group select,
.about-page .form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.about-page .form-group select:focus,
.about-page .form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.about-page .search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    grid-column: 1 / -1;
}

.about-page .search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #ededed;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Fleet Section Styles */
.fleet-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.vehicle-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.vehicle-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.vehicle-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.vehicle-details {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-details h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    padding: 6px;
}

.spec span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.vehicle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.vehicle-features span {
    padding: 6px 12px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vehicle-features span:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.quote-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.quote-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #ededed;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #ededed;
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: var(--font-weight-medium);
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 1rem;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(
        to right bottom,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.6)
    ), url('../images/foximage2.JPG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0,0,0,0.4) 100%
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(120deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-color), #1a1a1a);
    color: var(--white);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 15px 25px -15px rgba(0, 0, 0, 0.3);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.footer-section {
    position: relative;
}

.footer-section:first-child {
    padding-right: 2rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 35px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.footer-section:hover h3::after {
    width: 70px;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section ul li:hover {
    transform: translateX(8px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding: 2px 0;
    font-size: 0.95rem;
}

.footer-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.footer-section a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
    transform: scale(1);
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.15) translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.4rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.newsletter-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
}

.footer-bottom p {
    opacity: 0.75;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    nav {
        display: none;
    }
    
    .header-transparent {
        background: rgba(0,0,0,0.8);
        padding: 1rem 0;
    }

    .cta {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
        height: 2.2rem;
    }

    .transparent-logo {
        height: 26px;
    }
    
    .mobile-menu-btn {
        margin-left: 0.8rem;
    }
}

/* Ensure proper spacing for different screen sizes */
@media (min-width: 1400px) {
    .nav {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 0.8rem;
    }
    
    .transparent-logo {
        height: 22px;
    }
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
    }
    
    .footer-section:first-child {
        padding-right: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card, .vehicle-card, .service-card {
    animation: fadeIn 0.6s ease-out;
} 

/* About Page Styles */
.about-story {
    min-height: 100vh;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    background: var(--white);
    position: relative;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.story-content h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.story-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    color: var(--text-color);
    opacity: 0.9;
}

.about-values {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    position: relative;
}

.about-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 0;
    padding: 0 1rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), #ff8533);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    transition: all 0.4s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.3);
}

.value-icon i {
    font-size: 2.2rem;
    color: var(--white);
    transition: all 0.4s ease;
}

.value-card:hover .value-icon i {
    transform: scale(1.1);
}

.value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.value-card p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0.85;
}

.about-team {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    background: var(--white);
    position: relative;
}

.team-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.team-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-color);
    opacity: 0.9;
}

.team-highlights {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-highlights li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.team-highlights li:hover {
    transform: translateX(5px);
    background: rgba(248, 249, 250, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.team-highlights i {
    color: var(--primary-color);
    font-size: 1.4rem;
    background: rgba(255, 107, 0, 0.1);
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-highlights li:hover i {
    transform: scale(1.1);
    background: rgba(255, 107, 0, 0.15);
}

.cta-section {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/allpic.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), transparent);
    pointer-events: none;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.4);
}

.cta-btn:hover::before {
    transform: translateX(100%);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 3rem;
    }

    .about-hero p {
        font-size: 1.1rem;
    }

    .story-content h2,
    .about-values h2,
    .about-team h2 {
        font-size: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2.8rem;
    }

    .value-card {
        padding: 2rem;
    }

    .team-highlights {
        grid-template-columns: 1fr;
    }

    .cta-btn {
        padding: 1rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .value-icon {
        width: 70px;
        height: 70px;
    }

    .value-icon i {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link for keyboard users */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--white);
    color: var(--secondary-color);
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

/* High contrast focus indicators */
@media (prefers-contrast: more) {
    a:focus,
    button:focus,
    input:focus {
        outline: 3px solid #000;
        outline-offset: 3px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
} 

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        order: -1; /* Move to the left */
        margin-right: auto; /* Push logo to center */
        margin-left: -8px; /* Move button more to the left */
    }

    .nav {
        justify-content: center; /* Center the logo */
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%; /* Changed from right to left */
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 4rem 1.5rem;
        transition: left 0.3s ease-in-out; /* Changed from right to left */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        z-index: 1000;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15); /* Added right shadow */
    }

    nav.active {
        left: 0; /* Changed from right to left */
    }

    /* Overlay when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    nav a {
        font-size: 1rem;
        width: 100%;
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    nav a::before {
        content: '';
        width: 5px;
        height: 5px;
        background: var(--primary-color);
        border-radius: 50%;
        opacity: 0;
        transition: all 0.3s ease;
    }

    nav a:hover::before,
    nav a.active::before {
        opacity: 1;
    }

    nav a::after {
        display: none;
    }

    .booking-btn {
        width: 100%;
        text-align: center;
        margin-top: 0.8rem;
        background: var(--primary-color);
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .header-transparent {
        padding: 0.6rem 0;
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Tablet Navigation Improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        gap: 1.3rem;
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }

    .booking-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Touch Device Navigation */
@media (hover: none) {
    nav a:hover::after {
        width: 0;
    }

    nav a.active::after {
        width: 80%;
    }
}

/* Prevent content shift when scrollbar appears */
html {
    scrollbar-gutter: stable;
}

/* Improve scrolling on mobile */
body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
} 

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .vehicle-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .vehicle-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .fleet-section {
        padding: 60px 0;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .vehicle-image {
        height: 300px;
    }

    .vehicle-details {
        padding: 20px;
    }

    .vehicle-details h3 {
        font-size: 1.2rem;
    }

    .vehicle-specs {
        padding: 12px;
        gap: 10px;
    }

    .spec i {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }

    .spec span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .vehicle-image {
        height: 250px;
    }

    .vehicle-tag {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .vehicle-details {
        padding: 15px;
    }

    .vehicle-features span {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
} 

/* Landscape Mode Optimizations */
@media (max-width: 900px) and (orientation: landscape) {
    /* Adjust header for landscape */
    .header-transparent {
        padding: 0.5rem 0;
    }

    .nav {
        padding: 0 1rem;
    }

    .transparent-logo {
        height: 24px;
    }

    /* Adjust mobile menu for landscape */
    nav {
        top: 0;
        height: 100vh;
        padding: 60px 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav a {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    /* Hero section adjustments */
    .hero {
        min-height: 450px;
        height: 100vh;
        padding: 80px 0;
        margin-top: -60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Services section */
    .services-modern {
        padding: 40px 0;
    }

    .service-nav {
        padding: 15px;
    }

    .service-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    /* Fleet section */
    .fleet-section {
        padding: 40px 0;
    }

    .vehicle-card {
        max-height: 400px;
    }

        .carousel {
        height: 200px !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        overflow: hidden !important;
    }
    
    .vehicle-details {
        padding: 15px;
    }

    .vehicle-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    /* Form adjustments */
    .booking-form {
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* CTA section */
    .cta {
        padding: 40px 0;
    }

    .cta-content {
        padding: 0 20px;
    }

    /* Footer adjustments */
    footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Additional landscape optimizations for smaller screens */
@media (max-width: 700px) and (orientation: landscape) {
    .hero h1 {
        font-size: 1.8em;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vehicle-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure proper display on very short landscape orientations */
@media (max-height: 450px) and (orientation: landscape) {
    .header-transparent {
        padding: 0.3rem 0;
    }

    nav {
        padding-top: 40px;
    }

    .hero {
        min-height: 400px;
    }

    .hero-content {
        transform: translateY(-20px);
    }

    .booking-form {
        max-height: 90vh;
    }

    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== COMPREHENSIVE MOBILE OPTIMIZATION ===== */

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Global Mobile Optimizations */
    html {
        font-size: 14px;
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 12px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Typography scaling */
    h1 { font-size: 1.8rem !important; line-height: 1.2 !important; margin-bottom: 15px !important; }
    h2 { font-size: 1.6rem !important; line-height: 1.3 !important; margin-bottom: 12px !important; }
    h3 { font-size: 1.3rem !important; line-height: 1.4 !important; margin-bottom: 10px !important; }
    h4 { font-size: 1.1rem !important; line-height: 1.4 !important; margin-bottom: 8px !important; }
    p { font-size: 0.9rem !important; line-height: 1.5 !important; margin-bottom: 12px !important; }
    
    /* Section spacing */
    section {
        padding: 30px 0 !important;
        margin: 0 !important;
    }
    
    /* Hero section mobile optimization */
    .hero {
        padding: 60px 0 30px !important;
        background-attachment: scroll !important;
        min-height: 50vh;
        margin-top: 0 !important;
    }
    
    .hero-content {
        padding: 0 10px !important;
        max-width: 100% !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
        line-height: 1.2 !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        line-height: 1.4 !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .hero-cta a {
        width: 100% !important;
        max-width: 250px !important;
        text-align: center !important;
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
        border-radius: 25px !important;
    }
    
    /* Services section mobile */
    .services-modern {
        padding: 30px 0 !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-top: 20px !important;
    }
    
    .service-nav {
        padding: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
    }
    
    .service-item {
        padding: 12px !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
    }
    
    .service-item h3 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .service-item p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .service-item .icon-container {
        width: 40px !important;
        height: 40px !important;
        margin-right: 12px !important;
    }
    
    .service-item .icon-container i {
        font-size: 1.2rem !important;
    }
    
    /* Fleet section mobile */
    .fleet-section {
        padding: 30px 0 !important;
    }
    
    .vehicle-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 25px !important;
        padding: 0 10px !important;
    }
    
    .vehicle-card {
        border-radius: 15px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }
    
    .vehicle-image {
        height: 280px !important;
        border-radius: 15px 15px 0 0 !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .carousel {
        height: 280px !important;
        border-radius: 15px 15px 0 0 !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        overflow: hidden !important;
    }
    
    .carousel-item img {
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    .carousel-control {
        width: 35px !important;
        height: 35px !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    .carousel-control i {
        font-size: 1rem !important;
    }
    
    .vehicle-details {
        padding: 18px !important;
    }
    
    .vehicle-details h3 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    
    .vehicle-specs {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .spec {
        padding: 8px !important;
        border-radius: 8px !important;
    }
    
    .spec i {
        font-size: 1rem !important;
        width: 20px !important;
        height: 20px !important;
    }
    
    .spec span {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .vehicle-features {
        gap: 6px !important;
        margin-top: 10px !important;
    }
    
    .vehicle-features span {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
        border-radius: 10px !important;
    }
    
    .quote-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 25px !important;
        margin-top: 12px !important;
    }
    
    /* Quote form mobile */
    .booking-form {
        padding: 20px 15px !important;
        border-radius: 12px !important;
        margin: 0 5px !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .form-group {
        margin-bottom: 12px !important;
    }
    
    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
        font-weight: 500 !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 10px 12px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: rgba(255, 107, 0, 0.3) !important;
        box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1) !important;
    }
    
    /* Form buttons */
    .booking-form button[type="submit"] {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        border-radius: 25px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .booking-form button[type="reset"] {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 20px !important;
    }
    
    /* Contact section mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 5px !important;
    }
    
    .contact-info {
        padding: 15px !important;
        border-radius: 10px !important;
    }
    
    .contact-info h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    
    .contact-item {
        margin-bottom: 12px !important;
        padding: 8px 0 !important;
    }
    
    .contact-item i {
        font-size: 1rem !important;
        width: 25px !important;
        margin-right: 10px !important;
    }
    
    .contact-item span {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .contact-item a {
        font-size: 0.9rem !important;
        word-break: break-word !important;
    }
    
    /* Footer mobile */
    footer {
        padding: 30px 0 15px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    
    .footer-section {
        margin-bottom: 20px !important;
    }
    
    .footer-section h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    
    .footer-section p {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
        line-height: 1.5 !important;
    }
    
    .footer-section ul {
        margin-bottom: 0 !important;
    }
    
    .footer-section ul li {
        margin-bottom: 6px !important;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem !important;
        padding: 4px 0 !important;
        display: inline-block !important;
    }
    
    .newsletter-form {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    
    .newsletter-form input {
        font-size: 16px !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        border: 1px solid #ddd !important;
    }
    
    .newsletter-form button {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        width: 100% !important;
    }
    
    .social-links {
        justify-content: center !important;
        gap: 12px !important;
        margin-top: 10px !important;
    }
    
    .social-links a {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        border-radius: 50% !important;
    }
    
    /* Touch-friendly elements */
    button,
    .btn,
    .cta-btn,
    .quote-btn,
    .booking-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        font-size: 0.95rem !important;
        padding: 12px 20px !important;
    }
    
    /* Improved focus states for mobile */
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid #ff6b00 !important;
        outline-offset: 2px !important;
    }
    
    /* Better text selection */
    ::selection {
        background: rgba(255, 107, 0, 0.3) !important;
        color: #333 !important;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
    
    /* Improve scrolling performance */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Typography for small screens */
    h1 { font-size: 1.6rem !important; margin-bottom: 12px !important; }
    h2 { font-size: 1.4rem !important; margin-bottom: 10px !important; }
    h3 { font-size: 1.2rem !important; margin-bottom: 8px !important; }
    p { font-size: 0.85rem !important; margin-bottom: 10px !important; }
    
    /* Section spacing */
    section {
        padding: 25px 0 !important;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 50px 0 25px !important;
        min-height: 45vh !important;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .hero-cta a {
        max-width: 220px !important;
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
    }
    
    /* Services adjustments */
    .services-modern {
        padding: 25px 0 !important;
    }
    
    .service-nav {
        padding: 12px !important;
    }
    
    .service-item {
        padding: 10px !important;
        margin-bottom: 6px !important;
    }
    
    .service-item h3 {
        font-size: 0.95rem !important;
    }
    
    .service-item p {
        font-size: 0.8rem !important;
    }
    
    /* Vehicle adjustments */
    .fleet-section {
        padding: 25px 0 !important;
    }
    
    .vehicle-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 20px !important;
        padding: 0 8px !important;
    }
    
    .vehicle-image {
        height: 240px !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .carousel {
        height: 240px !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        overflow: hidden !important;
    }
    
    .carousel-item img {
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    .carousel-control {
        width: 32px !important;
        height: 32px !important;
    }
    
    .carousel-control i {
        font-size: 0.9rem !important;
    }
    
    .vehicle-details {
        padding: 15px !important;
    }
    
    .vehicle-details h3 {
        font-size: 1.2rem !important;
    }
    
    .vehicle-specs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .spec {
        padding: 6px !important;
    }
    
    .spec i {
        font-size: 0.9rem !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .spec span {
        font-size: 0.8rem !important;
    }
    
    /* Form adjustments */
    .booking-form {
        padding: 15px 12px !important;
        margin: 0 3px !important;
    }
    
    .form-grid {
        gap: 10px !important;
    }
    
    .form-group {
        margin-bottom: 10px !important;
    }
    
    .form-group label {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px !important;
        font-size: 16px !important;
    }
    
    /* Contact adjustments */
    .contact-grid {
        gap: 15px !important;
        padding: 0 3px !important;
    }
    
    .contact-info {
        padding: 12px !important;
    }
    
    .contact-info h3 {
        font-size: 1.1rem !important;
    }
    
    .contact-item {
        margin-bottom: 8px !important;
        padding: 6px 0 !important;
    }
    
    .contact-item i {
        font-size: 0.9rem !important;
        width: 20px !important;
    }
    
    .contact-item span,
    .contact-item a {
        font-size: 0.85rem !important;
    }
    
    /* Footer adjustments */
    footer {
        padding: 25px 0 12px !important;
    }
    
    .footer-grid {
        gap: 20px !important;
        padding: 0 8px !important;
    }
    
    .footer-section h3 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .footer-section p {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }
    
    .footer-section ul li {
        margin-bottom: 4px !important;
    }
    
    .footer-section ul li a {
        font-size: 0.8rem !important;
    }
    
    .newsletter-form {
        gap: 6px !important;
    }
    
    .newsletter-form input {
        padding: 8px 10px !important;
    }
    
    .newsletter-form button {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .social-links {
        gap: 10px !important;
    }
    
    .social-links a {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    html {
        font-size: 12px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    /* Typography for extra small screens */
    h1 { font-size: 1.5rem !important; margin-bottom: 10px !important; }
    h2 { font-size: 1.3rem !important; margin-bottom: 8px !important; }
    h3 { font-size: 1.1rem !important; margin-bottom: 6px !important; }
    p { font-size: 0.8rem !important; margin-bottom: 8px !important; }
    
    /* Section spacing */
    section {
        padding: 20px 0 !important;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 45px 0 20px !important;
        min-height: 40vh !important;
    }
    
    .hero h1 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }
    
    .hero p {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }
    
    .hero-cta a {
        max-width: 200px !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* Services adjustments */
    .services-modern {
        padding: 20px 0 !important;
    }
    
    .service-nav {
        padding: 10px !important;
    }
    
    .service-item {
        padding: 8px !important;
        margin-bottom: 5px !important;
    }
    
    .service-item h3 {
        font-size: 0.9rem !important;
    }
    
    .service-item p {
        font-size: 0.75rem !important;
    }
    
    .service-item .icon-container {
        width: 35px !important;
        height: 35px !important;
        margin-right: 10px !important;
    }
    
    .service-item .icon-container i {
        font-size: 1rem !important;
    }
    
    /* Vehicle adjustments */
    .fleet-section {
        padding: 20px 0 !important;
    }
    
    .vehicle-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 15px !important;
        padding: 0 6px !important;
    }
    
    .vehicle-image {
        height: 200px !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .carousel {
        height: 200px !important;
    }
    
    .carousel-item img {
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    .carousel-control {
        width: 28px !important;
        height: 28px !important;
    }
    
    .carousel-control i {
        font-size: 0.8rem !important;
    }
    
    .vehicle-details {
        padding: 12px !important;
    }
    
    .vehicle-details h3 {
        font-size: 1.1rem !important;
    }
    
    .vehicle-specs {
        padding: 8px !important;
        gap: 6px !important;
    }
    
    .spec {
        padding: 5px !important;
    }
    
    .spec i {
        font-size: 0.85rem !important;
        width: 16px !important;
        height: 16px !important;
    }
    
    .spec span {
        font-size: 0.75rem !important;
    }
    
    .vehicle-features span {
        font-size: 0.7rem !important;
        padding: 3px 5px !important;
    }
    
    .quote-btn {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }
    
    /* Form adjustments */
    .booking-form {
        padding: 12px 10px !important;
        margin: 0 2px !important;
    }
    
    .form-grid {
        gap: 8px !important;
    }
    
    .form-group {
        margin-bottom: 8px !important;
    }
    
    .form-group label {
        font-size: 0.8rem !important;
        margin-bottom: 3px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 6px 8px !important;
        font-size: 16px !important;
    }
    
    .booking-form button[type="submit"] {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .booking-form button[type="reset"] {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* Contact adjustments */
    .contact-grid {
        gap: 12px !important;
        padding: 0 2px !important;
    }
    
    .contact-info {
        padding: 10px !important;
    }
    
    .contact-info h3 {
        font-size: 1rem !important;
    }
    
    .contact-item {
        margin-bottom: 6px !important;
        padding: 4px 0 !important;
    }
    
    .contact-item i {
        font-size: 0.85rem !important;
        width: 18px !important;
    }
    
    .contact-item span,
    .contact-item a {
        font-size: 0.8rem !important;
    }
    
    /* Footer adjustments */
    footer {
        padding: 20px 0 10px !important;
    }
    
    .footer-grid {
        gap: 15px !important;
        padding: 0 6px !important;
    }
    
    .footer-section h3 {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }
    
    .footer-section p {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }
    
    .footer-section ul li {
        margin-bottom: 3px !important;
    }
    
    .footer-section ul li a {
        font-size: 0.75rem !important;
    }
    
    .newsletter-form {
        gap: 5px !important;
    }
    
    .newsletter-form input {
        padding: 6px 8px !important;
    }
    
    .newsletter-form button {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .social-links {
        gap: 8px !important;
    }
    
    .social-links a {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: 50vh !important;
        padding: 60px 0 30px !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
    }
    
    .hero-cta {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .hero-cta a {
        width: auto !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    section {
        padding: 30px 0 !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .transparent-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .carousel-item img,
    .vehicle-image img {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Maintain existing light theme for now */
}

/* Print styles */
@media print {
    .header-transparent,
    .mobile-menu-btn,
    .menu-overlay,
    .hero-cta,
    .booking-form,
    footer {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .hero h1 {
        color: #000 !important;
    }
    
    .hero p {
        color: #333 !important;
    }
}