/*
Theme Name: Atlas Taksi
Description: Atlas Taksi - Mersin Yenişehir'de güvenilir taksi hizmeti teması
Author: Atlas Taksi
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlas-taksi
*/

/* CSS Custom Properties for Premium Design */
:root {
    --primary-gold: #F5A623;
    --primary-dark-gold: #E89611;
    --secondary-black: #1A1A1A;
    --secondary-charcoal: #2C2C2C;
    --accent-white: #FFFFFF;
    --accent-light-gray: #F8F9FA;
    --accent-medium-gray: #E9ECEF;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Premium Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--accent-white);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 650; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Premium Header - Mobile First */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    max-width: 100%;
}

.site-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-white);
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-smooth);
}

.site-header.scrolled .site-logo {
    color: var(--secondary-black);
    text-shadow: none;
}

.site-logo:hover {
    color: var(--primary-gold);
}

.header-contact-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    color: var(--accent-white);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-smooth);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.header-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, var(--primary-dark-gold), var(--primary-gold));
}

.header-contact-btn:active {
    transform: translateY(0);
}

/* Premium Hero Section - Removed conflicting background */
/* Hero section styling is now handled by the video background implementation below */

/* Hero content styling moved to video implementation section below */

.hero-title {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--accent-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

/* Premium Buttons */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--accent-white);
    padding: 1.25rem 2rem;
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-smooth);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-whatsapp::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.6s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-call {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    color: var(--secondary-black);
    padding: 1.25rem 2rem;
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-smooth);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-call::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-call:hover::before {
    left: 100%;
}

.btn-call:hover {
    background: linear-gradient(135deg, #FFD700, var(--primary-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

/* Premium Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--accent-light-gray);
}

.features-container {
    padding: 0 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: var(--accent-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--accent-medium-gray);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(245, 166, 35, 0.2));
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* Premium Service Area Section */
.service-area-section {
    padding: 5rem 0;
    background: var(--accent-white);
}

.service-area-container {
    padding: 0 1.25rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.service-area-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-area-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    margin: 0 auto;
    max-width: 100%;
    border: 8px solid var(--accent-white);
    background: var(--accent-white);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* Premium Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-black), var(--secondary-charcoal));
    color: var(--accent-white);
    text-align: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.contact-container {
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-gold), #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

/* Premium Testimonials Section - Mobile Optimized */
.testimonials-section {
    padding: 4rem 0;
    background: var(--accent-light-gray);
}

.testimonials-container {
    padding: 0 1.25rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
}

.testimonial-card {
    width: 100%;
    background: var(--accent-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--accent-medium-gray);
    transition: all var(--transition-smooth);
    position: relative;
    margin: 0 auto;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: var(--primary-gold);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.2;
}

.testimonial-rating {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    filter: drop-shadow(1px 1px 2px rgba(245, 166, 35, 0.3));
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    z-index: 2;
    max-width: none;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Show only first 3 testimonials on mobile by default */
.testimonial-card:nth-child(n+4) {
    display: none;
}

/* Toggle button for mobile */
.testimonials-toggle {
    margin-top: 2rem;
    text-align: center;
}

.testimonials-toggle-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    color: var(--accent-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.testimonials-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Premium Footer */
.site-footer {
    background: var(--secondary-black);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-container {
    padding: 0 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary-gold), #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-section ul li:hover {
    color: var(--primary-gold);
}

.footer-section a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Premium Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 8rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    color: var(--secondary-black);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    font-weight: 600;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(245, 166, 35, 0.4);
}

/* Floating WhatsApp Button - Left Side with Jiggle */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsapp-jiggle 3s infinite;
    text-decoration: none;
}

.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: #128C7E;
    animation: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes whatsapp-jiggle {
    0%, 90%, 100% {
        transform: translateX(0) rotate(0deg);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    2%, 6% {
        transform: translateX(-2px) rotate(-1deg);
    }
    4% {
        transform: translateX(2px) rotate(1deg);
    }
    8% {
        transform: translateX(-1px) rotate(-0.5deg);
    }
    10% {
        transform: translateX(1px) rotate(0.5deg);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
    12% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Service Times */
.additional-services {
    padding: 4rem 0;
    background: var(--accent-white);
    text-align: center;
}

/* Final CTA Section */
.final-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-time {
    padding: 2rem 1.5rem;
    background: var(--accent-light-gray);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-medium-gray);
    transition: all var(--transition-smooth);
}

.service-time:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
}

.service-time h3 {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-time p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

/* Premium Responsive Enhancements */
@media (min-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .testimonial-card {
        min-width: 350px;
    }
}

@media (min-width: 768px) {
    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
        text-align: left;
    }
    
    .footer-section ul {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .map-container iframe {
        height: 450px;
    }
}

/* Premium Focus States for Accessibility */
.btn-whatsapp:focus,
.btn-call:focus,
.header-contact-btn:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Premium High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #FFA500;
        --secondary-black: #000000;
        --text-primary: #000000;
    }
}

/* Premium Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        transform: none;
        opacity: 1;
    }
}

/* Premium Extended Services Section */
.extended-services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-light-gray), rgba(255, 255, 255, 0.8));
}

.extended-services-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}

.extended-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.extended-service-card {
    background: var(--accent-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--accent-medium-gray);
    transition: all var(--transition-smooth);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.extended-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-gold);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-subtle);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-white);
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.service-features li:last-child {
    margin-bottom: 0;
}

/* Responsive Extended Services */
@media (min-width: 768px) {
    .extended-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .extended-service-card {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .extended-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* === IMAGE OPTIMIZATION STYLES === */

/* Image optimization styles */
.feature-image img, .service-image img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover img, .service-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive image containers */
.feature-image, .service-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Loading placeholder for images */
.feature-image::before, .service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 0;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.feature-image img, .service-image img {
    position: relative;
    z-index: 1;
}

/* SEO-friendly image captions */
.image-caption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Hero section video background optimization */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--accent-white);
    padding: 5rem 1.25rem 2rem;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Subtle opacity to not overshadow text */
    opacity: 0.7;
    z-index: 1;
}

/* Video fallback handling */
.hero-video-fallback {
    display: block;
}

/* Hide fallback when video is loaded */
.hero-video:not([src=""]) + .hero-video-fallback {
    display: none;
}

/* Show fallback if video fails to load */
.hero-video[error] + .hero-video-fallback,
.hero-video:not([canplay]) + .hero-video-fallback {
    display: block;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay to ensure text readability */
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(26, 26, 26, 0.4) 50%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
}

/* Hero Background Animations */
@keyframes heroBackgroundPulse {
    0% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.6; 
    }
    100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
}

@keyframes heroBackgroundCrossfade {
    0% { opacity: 0; }
    25% { opacity: 0; }
    50% { opacity: 0.3; }
    75% { opacity: 0; }
    100% { opacity: 0; }
}

/* Subtle parallax effect */
@keyframes heroParallax {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-animated-bg {
    animation: heroBackgroundPulse 8s ease-in-out infinite, 
               heroParallax 15s ease-in-out infinite !important;
}

.hero-animated-bg-2 {
    animation: heroBackgroundCrossfade 16s ease-in-out infinite !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Mobile header adjustments */
    .site-header {
        padding: 1rem 0; /* Slightly reduced padding on mobile */
    }
    
    .site-header.scrolled {
        padding: 0.75rem 0; /* Even more compact when scrolled */
    }
    
    .feature-image, .service-image {
        height: 150px !important;
        margin-bottom: 0.75rem;
    }
    
    /* Mobile hero section spacing */
    .hero-section {
        padding: 6rem 1.25rem 3rem !important; /* More top padding for mobile header */
        min-height: 100vh;
    }
    
    /* Mobile animation optimization */
    .hero-animated-bg {
        animation: heroBackgroundPulse 12s ease-in-out infinite !important;
    }
    
    .hero-animated-bg-2 {
        animation: none !important;
        opacity: 0 !important;
    }
    
    .hero-video-overlay {
        /* Stronger overlay on mobile */
        background: linear-gradient(
            135deg, 
            rgba(0, 0, 0, 0.75) 0%, 
            rgba(26, 26, 26, 0.6) 50%, 
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    .hero-content {
        padding: 2rem 1rem; /* Increased from 1.5rem */
        margin-top: 1rem; /* Additional top margin */
    }
    
    /* Very small screens optimization */
    @media (max-width: 480px) {
        .hero-section {
            padding: 7rem 1rem 2rem !important; /* Even more top padding for very small screens */
        }
        
        .hero-content {
            padding: 1.5rem 0.75rem;
            margin-top: 1.5rem; /* More top margin for very small screens */
        }
        
        .hero-video {
            display: none;
        }
        
        .hero-video-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('../images/taxi.jpg') center/cover no-repeat;
            z-index: 1;
        }
    }
}