/* Design System - All colors MUST be HSL */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    /* Logistics brand colors */
    --primary: 214 84% 20%; /* Navy blue */
    --primary-foreground: 0 0% 98%;
    --primary-light: 214 100% 85%;
    --primary-glow: 214 100% 70%;

    --secondary: 36 100% 50%; /* Orange/Amber */
    --secondary-foreground: 0 0% 98%;
    --secondary-light: 36 100% 90%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 214 84% 20%;

    /* Custom gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-light)) 100%);
    --gradient-overlay: linear-gradient(180deg, hsl(var(--primary) / 0.9), hsl(var(--primary) / 0.7));
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.3);
    --shadow-glow: 0 0 40px hsl(var(--secondary) / 0.2);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius: 0.5rem;
}

/* Admin Panel Styles */
.nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    text-left;
    color: hsl(var(--muted-foreground));
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-item:hover {
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.nav-item.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.nav-item.active:hover {
    background-color: hsl(var(--primary));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
}

/* Base styles */
* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

/* Color classes */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/90 { background-color: hsl(var(--primary) / 0.9); }
.bg-primary\/70 { background-color: hsl(var(--primary) / 0.7); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-secondary\/90 { background-color: hsl(var(--secondary) / 0.9); }
.bg-secondary\/20 { background-color: hsl(var(--secondary) / 0.2); }
.bg-secondary\/10 { background-color: hsl(var(--secondary) / 0.1); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-destructive { background-color: hsl(var(--destructive)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-white\/10 { background-color: hsl(0 0% 100% / 0.1); }
.bg-white\/90 { background-color: hsl(0 0% 100% / 0.9); }
.bg-gray-50 { background-color: hsl(210 20% 98%); }
.bg-yellow-50 { background-color: hsl(55 92% 95%); }
.bg-yellow-500 { background-color: hsl(45 93% 47%); }
.bg-amber-50 { background-color: hsl(48 100% 96%); }

.text-foreground { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-destructive-foreground { color: hsl(var(--destructive-foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-white { color: white; }
.text-white\/90 { color: hsl(0 0% 100% / 0.9); }
.text-white\/80 { color: hsl(0 0% 100% / 0.8); }
.text-gray-700 { color: hsl(217 19% 35%); }
.text-gray-800 { color: hsl(218 23% 23%); }
.text-yellow-700 { color: hsl(41 96% 35%); }

.border-primary { border-color: hsl(var(--primary)); }
.border-secondary { border-color: hsl(var(--secondary)); }
.border-white { border-color: white; }
.border-white\/20 { border-color: hsl(0 0% 100% / 0.2); }
.border-yellow-500 { border-color: hsl(45 93% 47%); }

/* Gradient backgrounds */
.bg-gradient-to-r.from-primary.to-primary\/70 {
    background: linear-gradient(to right, hsl(var(--primary) / 0.9), hsl(var(--primary) / 0.7));
}

.bg-gradient-to-r.from-primary.to-primary-glow {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary-glow)));
}

.bg-gradient-to-br.from-white.to-gray-50 {
    background: linear-gradient(to bottom right, white, hsl(210 20% 98%));
}

.bg-gradient-to-r.from-yellow-50.to-amber-50 {
    background: linear-gradient(to right, hsl(55 92% 95%), hsl(48 100% 96%));
}

.bg-gradient-to-tr.from-primary\/20.to-secondary\/20 {
    background: linear-gradient(to top right, hsl(var(--primary) / 0.2), hsl(var(--secondary) / 0.2));
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    ring-offset-color: hsl(var(--background));
    transition: var(--transition-smooth);
    outline: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-lg {
    height: 2.75rem;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.5rem 2rem;
}

.btn-sm {
    height: 2.25rem;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.5rem 0.75rem;
}

/* Button variants */
.btn:not(.btn-outline):not(.btn-ghost):not(.btn-secondary) {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn:not(.btn-outline):not(.btn-ghost):not(.btn-secondary):hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-outline.border-white {
    border-color: white;
    background-color: transparent;
}

.btn-outline.border-white.text-white {
    color: white;
}

.btn-outline.border-white:hover {
    background-color: hsl(0 0% 100% / 0.1);
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* Card styles */
.card {
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.card-header {
    display: flex;
    flex-direction: column;
    space-y: 0.375rem;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

.card-footer {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    padding-top: 0;
}

/* Form styles */
.form-label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.25rem;
    display: block;
}

.form-input,
.form-select,
.form-textarea {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    ring-offset-color: hsl(var(--background));
    transition: var(--transition-smooth);
    color: hsl(var(--foreground));
}

.form-textarea {
    height: auto;
    min-height: 6rem;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
    border-color: transparent;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Checkbox styles */
.checkbox {
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    border: 1px solid hsl(var(--primary));
    color: hsl(var(--primary));
    margin-right: 0.5rem;
}

.checkbox:checked {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Navigation styles */
.nav-link {
    color: hsl(var(--muted-foreground));
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-link.active {
    color: hsl(var(--primary));
    border-bottom: 2px solid hsl(var(--primary));
}

.mobile-nav-link {
    color: hsl(var(--muted-foreground));
}

.mobile-nav-link:hover {
    color: hsl(var(--primary));
}

.mobile-nav-link.active {
    color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.1);
}

/* Service card special styles */
.service-card {
    transition: var(--transition-smooth);
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-0.25rem);
}

.service-card.bg-blue-50 {
    background-color: hsl(214 100% 97%);
    border-color: hsl(214 75% 87%);
}

.service-card.bg-green-50 {
    background-color: hsl(120 60% 97%);
    border-color: hsl(120 40% 87%);
}

.service-card.bg-orange-50 {
    background-color: hsl(36 100% 97%);
    border-color: hsl(36 80% 87%);
}

.service-card.bg-purple-50 {
    background-color: hsl(270 50% 97%);
    border-color: hsl(270 30% 87%);
}

.service-card.bg-red-50 {
    background-color: hsl(0 86% 97%);
    border-color: hsl(0 70% 87%);
}

.service-card.bg-indigo-50 {
    background-color: hsl(225 100% 97%);
    border-color: hsl(225 80% 87%);
}

/* Toast styles */
.toast {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 2px);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-color: hsl(120 40% 70%);
    background-color: hsl(120 60% 97%);
    color: hsl(120 40% 20%);
}

.toast-error {
    border-color: hsl(var(--destructive));
    background-color: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Timeline styles */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: hsl(var(--primary) / 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 1rem;
    background-color: hsl(var(--primary));
    border-radius: 50%;
    border: 4px solid hsl(var(--background));
}

/* Utility classes */
.transition-smooth {
    transition: var(--transition-smooth);
}

.shadow-elegant {
    box-shadow: var(--shadow-elegant);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .card-header {
        padding: 1rem;
    }
    
    .card-content {
        padding: 1rem;
        padding-top: 0;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-dot {
        left: 1rem;
    }
}

/* Enhanced Mobile Responsiveness */

/* Mobile-first responsive breakpoints */
@media (max-width: 480px) {
/* Extra small mobile devices */

    /* Quote page specific mobile improvements */
    .quote-card-enter {
        margin: 0.25rem !important;
    }
    
    .bg-white\/50 {
        margin: 0.25rem !important;
        padding: 0.5rem !important;
    }
    
    /* Header improvements for mobile */
    .bg-gradient-to-r {
        padding: 2rem 1rem !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography adjustments for small screens */
    h1 {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.4;
    }
    
    /* Button adjustments for touch */
    .btn {
        min-height: 44px; /* Apple's recommended touch target size */
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    /* Form elements for mobile */
    input, textarea, select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Navigation adjustments */
    .nav-link {
        padding: 1rem 0.75rem;
        font-size: 1rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 1rem;
    }
    
    /* Text size adjustments */
    .text-xl {
        font-size: 1.125rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-4xl {
        font-size: 1.875rem !important;
    }
    
    .text-5xl {
        font-size: 2.25rem !important;
    }
    
    .text-6xl {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Standard mobile devices */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Button adjustments */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    /* Form elements */
    input, textarea, select {
        min-height: 44px;
        font-size: 16px;
        padding: 0.75rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Grid spacing */
    .grid {
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet devices */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Button adjustments for tablet */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    /* Form elements for tablet */
    input, textarea, select {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Card adjustments */
    .service-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Navigation for tablet */
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero section for tablet */
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Grid for tablet */
    .grid {
        gap: 2rem;
    }
    
    /* Typography for tablet */
    .text-4xl {
        font-size: 2.5rem !important;
    }
    
    .text-5xl {
        font-size: 3rem !important;
    }
    
    .text-6xl {
        font-size: 3.5rem !important;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
    /* Mobile menu improvements */
    #mobile-menu {
        background-color: hsl(var(--background));
        border-top: 1px solid hsl(var(--border));
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        animation: slideDown 0.3s ease-out;
    }
    
    .mobile-nav-link {
        padding: 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-link:hover {
        background-color: hsl(var(--primary) / 0.1);
        color: hsl(var(--primary));
    }
    
    .mobile-nav-link.active {
        background-color: hsl(var(--primary) / 0.1);
        color: hsl(var(--primary));
        border-left: 4px solid hsl(var(--primary));
    }
    
    /* Mobile menu button */
    #mobile-menu-button {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

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

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .card:hover {
        animation: none; /* Disable hover animations on touch devices */
    }
    
    /* Larger touch targets */
    .nav-link, .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Better touch feedback */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .mobile-nav-link:active {
        background-color: hsl(var(--primary) / 0.2);
    }
}

/* Enhanced Form responsiveness for mobile */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="file"],
    textarea,
    select {
        width: 100% !important;
        border: 2px solid hsl(var(--border));
        border-radius: 8px;
        padding: 0.75rem;
        font-size: 16px !important; /* Prevents zoom on iOS */
        transition: border-color 0.2s ease;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* File input styling for mobile */
    input[type="file"] {
        padding: 0.5rem;
        background: hsl(var(--background));
        border: 2px dashed hsl(var(--border));
        border-radius: 8px;
        cursor: pointer;
    }
    
    input[type="file"]:hover {
        border-color: hsl(var(--primary));
        background: hsl(var(--primary) / 0.05);
    }
    
    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: hsl(var(--primary));
        box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
    }
    
    textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Form submit button */
    .form-submit {
        width: 100% !important;
        margin-top: 1rem;
        padding: 1rem !important;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* Grid layout adjustments for mobile */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Card improvements for mobile */
    .card {
        margin: 0.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-header {
        padding: 1.5rem 1.5rem 0;
    }
    
    /* Section spacing for mobile */
    .section-padding {
        padding: 2rem 1rem;
    }
    
    /* Responsive text sizing */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Button improvements */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        touch-action: manipulation;
    }
    
         /* Navigation improvements for mobile */
     .nav-link, .mobile-nav-link {
         min-height: 48px;
         padding: 0.75rem 1rem;
     }
     
     /* Mobile responsive container */
     .mobile-responsive-container {
         padding-left: 1rem !important;
         padding-right: 1rem !important;
     }
     
     /* Ensure proper spacing on very small screens */
     .section-spacing {
         padding: 1rem;
     }
     
     /* Fix overflow issues */
     body {
         overflow-x: hidden;
     }
     
     .container, .max-w-4xl, .max-w-7xl {
         max-width: calc(100vw - 2rem);
     }
}

/* Content spacing for mobile */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .section-padding-lg {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .mb-8 {
        margin-bottom: 2rem !important;
    }
    
    .mb-12 {
        margin-bottom: 3rem !important;
    }
    
    .mb-16 {
        margin-bottom: 4rem !important;
    }
    
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Image responsiveness */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .service-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }
}

/* Footer adjustments for mobile */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    footer .col-span-2 {
        grid-column: span 1;
    }
    
    footer ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    footer .contact-info {
        text-align: center;
    }
}

/* Utility classes for mobile */
.mobile-hidden {
    display: none;
}

.mobile-block {
    display: block;
}

.mobile-flex {
    display: flex;
}

.mobile-center {
    text-align: center;
}

.mobile-full-width {
    width: 100%;
}

@media (min-width: 769px) {
    .mobile-hidden {
        display: initial;
    }
    
    .desktop-hidden {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-hidden {
        display: initial;
    }
    
    .mobile-stack > * {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .mobile-stack > *:last-child {
        margin-bottom: 0;
    }
}

/* Enhanced service card animations */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.card:hover {
    animation: float-gentle 2s ease-in-out infinite;
}

/* Enhanced hover animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Quote page specific animations */
.quote-card-enter {
    animation: slideInUp 0.6s ease-out;
}

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

/* Form field hover effects */
.form-input, .form-select, .form-textarea {
    transition: all 0.3s ease;
    position: relative;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.1);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsl(var(--primary) / 0.15);
}

/* Quote button special animation */
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px hsl(var(--secondary) / 0.3);
}

/* Card hover animations */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Form group stagger animation */
.form-group {
    animation: fadeInStagger 0.5s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

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

/* Loading animation for submit button */
.btn.loading {
    pointer-events: none;
    position: relative;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for important elements */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px hsl(var(--secondary) / 0.5);
    }
    50% {
        box-shadow: 0 0 20px hsl(var(--secondary) / 0.8);
    }
}