/* ===================================
   Global Styles & CSS Variables
   =================================== */

:root {
    /* Color Palette */
    --color-primary: #10B981;
    --color-secondary: #3B82F6;
    --color-accent: #F59E0B;
    
    /* Neutral Colors */
    --color-bg: #FFFFFF;
    --color-surface: #F9FAFB;
    --color-text-primary: #111827;
    --color-text-secondary: #6B7280;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* Spacing (8px base unit) */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-2xl: 4rem;     /* 64px */
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ===================================
   Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
}

/* ===================================
   Typography
   =================================== */

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ===================================
   Header & Navigation
   =================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

header nav {
    position: relative;
}

header nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    min-height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform var(--transition-fast);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===================================
   Buttons
   =================================== */

.cta-button {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.cta-button:focus,
.contact-button:focus,
.map-button:focus,
.whatsapp-float:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.cta-button:active {
    transform: scale(0.98);
}

/* ===================================
   Sections
   =================================== */

section {
    padding: var(--spacing-2xl) 0;
}

section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #3B82F6 100%);
    color: white;
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(16, 185, 129, 0.3) 0%,
        rgba(59, 130, 246, 0.3) 100%
    );
    animation: gradientShift 8s ease infinite;
    z-index: 1;
}

/* Decorative circles for visual interest */
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .cta-button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background-color: white;
    color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background-color: #f0fdf4;
}

/* ===================================
   Motor Section
   =================================== */

.motors {
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

/* Section Header Styling */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: fadeInUp 0.6s ease;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.motor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    width: 100%;
}

/* Ensure grid items don't overflow */
.motor-grid > * {
    min-width: 0;
}

.motor-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.1);
}

.motor-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.95), rgba(16, 185, 129, 0.85));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10;
}

.motor-card:hover .motor-card-overlay {
    transform: translateY(0);
}

.motor-card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.motor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.motor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.motor-card:hover::before {
    transform: scaleX(1);
}

/* Motor Image Container */
.motor-image-container {
    width: 100%;
    height: 320px;
    margin-bottom: var(--spacing-md);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.motor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all var(--transition-normal);
}

/* Support untuk gambar portrait (1080x1350px - rasio 4:5) */
.motor-image[src*=".jpg"],
.motor-image[src*=".jpeg"],
.motor-image[src*=".png"] {
    object-fit: cover;
}

.motor-card:hover .motor-image {
    transform: scale(1.1);
}

/* Fallback for missing images */
.motor-image.image-error {
    object-fit: contain;
    opacity: 0.5;
}

/* Loading state for images */
.motor-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-surface);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.motor-image[loading="lazy"]:not([src]) + .motor-image-container::before {
    opacity: 1;
}

/* Legacy support - keep for backward compatibility */
.motor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all var(--transition-normal);
}

.motor-card:hover .motor-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.motor-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    line-height: 1.4;
}

.motor-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: var(--spacing-xs);
}

.motor-price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-left: 0.25rem;
}

.disclaimer {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-warning);
}

/* ===================================
   Facilities Section
   =================================== */

.facilities {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
    overflow: hidden;
}

.facilities::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.facilities .container {
    position: relative;
    z-index: 2;
}

.facilities h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.facilities-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.facilities-list li {
    font-size: 1.5rem;
    font-weight: 600;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
    color: var(--color-text-primary);
}

.facilities-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-success));
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.facilities-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.facilities-list li:hover::before {
    transform: scaleY(1);
}

/* ===================================
   Terms & Booking Section
   =================================== */

.terms {
    background-color: var(--color-surface);
}

.terms h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.terms-card {
    background: white;
    border-radius: 1rem;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.terms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.terms-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.terms-card:hover::before {
    transform: scaleX(1);
}

.terms-card.highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--color-secondary);
}

.terms-card.highlight::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.terms-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.terms-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.terms-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.terms-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.terms-item p:last-child {
    margin-bottom: 0;
}

.terms-item strong {
    color: var(--color-primary);
    font-weight: 600;
}

.terms-item ul {
    list-style: none;
    margin-top: var(--spacing-xs);
    padding-left: var(--spacing-md);
}

.terms-item ul li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
}

.terms-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.terms-item.free-delivery {
    background-color: rgba(16, 185, 129, 0.05);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-success);
}

.terms-item .note {
    font-size: 0.875rem;
    color: var(--color-warning);
    font-weight: 500;
    background-color: rgba(245, 158, 11, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 0.375rem;
    display: inline-block;
    margin-top: var(--spacing-xs);
}

/* ===================================
   Requirements Section
   =================================== */

.requirements {
    background-color: white;
}

.requirements h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
}

.requirements-content {
    max-width: 900px;
    margin: 0 auto;
}

.requirements-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 1rem;
    border-left: 6px solid var(--color-primary);
}

.requirements-intro p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.requirements-intro strong {
    color: var(--color-primary);
    font-weight: 700;
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.requirement-item {
    background: white;
    border-radius: 1rem;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-surface);
    transition: all var(--transition-normal);
}

.requirement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.requirement-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.requirement-item p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.requirement-item ul {
    list-style: none;
    margin-top: var(--spacing-sm);
    padding-left: 0;
}

.requirement-item ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}

.requirement-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
    font-size: 1.125rem;
}

.warning-boxes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.warning-box {
    border-radius: 1rem;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.warning-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.warning-box.critical {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 3px solid var(--color-error);
    border-left-width: 8px;
}

.warning-box.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 3px solid var(--color-info);
    border-left-width: 8px;
}

.warning-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.warning-box.critical h3 {
    color: var(--color-error);
}

.warning-box.info h3 {
    color: var(--color-info);
}

.warning-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.warning-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.warning-item p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.warning-item p:last-child {
    margin-bottom: 0;
}

.warning-item strong {
    font-weight: 700;
}

.warning-box.critical .warning-item p strong {
    color: var(--color-error);
}

.warning-box.info .warning-item p strong {
    color: var(--color-info);
}

.warning-item .highlight-green {
    background-color: rgba(16, 185, 129, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-success);
    display: inline-block;
    margin-top: var(--spacing-xs);
}

.warning-item .highlight-green strong {
    color: var(--color-success);
}

.warning-item.penalty {
    background-color: rgba(245, 158, 11, 0.1);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-warning);
}

.warning-item.penalty .penalty-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-warning);
    margin-top: var(--spacing-xs);
}

/* ===================================
   Gallery Section
   =================================== */

.gallery {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.gallery .container {
    position: relative;
    z-index: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.9), rgba(16, 185, 129, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: white;
    animation: pulse 2s infinite;
}

/* ===================================
   Contact & Location Section
   =================================== */

.contact {
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
}

.whatsapp-card .contact-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.location-card .contact-icon {
    background: linear-gradient(135deg, var(--color-error), #DC2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.hours-card .contact-icon {
    background: linear-gradient(135deg, var(--color-secondary), #2563EB);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.contact-detail {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.contact-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: auto;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.location-button {
    background-color: var(--color-error);
    color: white;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.location-button:hover {
    background-color: #DC2626;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.hours-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.hours-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--spacing-sm);
    background-color: var(--color-surface);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-secondary);
}

.hours-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.hours-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.hours-item:last-child {
    border-left-color: var(--color-success);
    text-align: center;
}

.hours-item:last-child .hours-label {
    font-size: 1rem;
    color: var(--color-success);
}

/* Map Section */
.map-section {
    background: white;
    border-radius: 1rem;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
}

.map-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.map-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.map-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
}

/* Location Tabs */
.location-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.location-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-surface);
    background: white;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.location-tab.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Location Content */
.location-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.location-content.active {
    display: block;
}

.map-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.map-container {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--color-surface);
    min-height: 300px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
    gap: var(--spacing-md);
}

.map-placeholder svg {
    color: var(--color-primary);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.map-placeholder p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

.map-button {
    background-color: var(--color-primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.map-button:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.map-button.secondary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-button.secondary:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===================================
   Footer
   =================================== */

footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
    padding-left: var(--spacing-md);
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.footer-contact ul li svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.footer-contact ul li:hover {
    color: white;
    transform: translateX(3px);
}

.footer-contact ul li:hover svg {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ===================================
   Floating WhatsApp Button
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Tooltip for WhatsApp Float Button */
.whatsapp-float::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    background-color: #1F2937;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

/* Tooltip arrow */
.whatsapp-float::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0.5rem;
    border: 6px solid transparent;
    border-left-color: #1F2937;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===================================
   Responsive Design - Mobile First Approach
   =================================== */

/* Large Desktop (>1280px) - Enhanced spacing */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .motor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .motor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .motor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirements-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px - 900px) */
@media (min-width: 768px) and (max-width: 900px) {
    .motor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
    /* Base Typography */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Header & Navigation */
    header nav .container {
        padding: var(--spacing-sm);
        min-height: 60px;
    }
    
    .brand-logo {
        font-size: 1.25rem;
        white-space: nowrap;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        will-change: max-height, opacity;
    }
    
    .nav-menu.active {
        display: flex;
        max-height: 400px;
        opacity: 1;
        padding: var(--spacing-xs) 0;
    }
    
    .nav-menu a {
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        text-align: left;
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background-color: rgba(16, 185, 129, 0.1);
        color: var(--color-primary);
    }
    
    .nav-menu a.active {
        background-color: rgba(16, 185, 129, 0.05);
        color: var(--color-primary);
        font-weight: 600;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        min-height: 70vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero::after {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero .cta-button {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }
    
    .motor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .motor-image-container {
        height: 280px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .motor-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .motor-card h3 {
        font-size: 1.125rem;
    }
    
    .motor-price {
        font-size: 1.5rem;
    }
    
    .motor-card-overlay {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .motor-card-cta {
        gap: 0.375rem;
    }
    
    .facilities h2 {
        font-size: 2rem;
    }
    
    .facilities-list li {
        font-size: 1.125rem;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .terms-card {
        padding: var(--spacing-md);
    }
    
    .terms-card h3 {
        font-size: 1.25rem;
    }
    
    .terms-card h4 {
        font-size: 1rem;
    }
    
    .terms-item p {
        font-size: 0.9375rem;
    }
    
    .requirements-intro {
        padding: var(--spacing-md);
    }
    
    .requirements-intro p {
        font-size: 1.125rem;
    }
    
    .requirements-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .requirement-item {
        padding: var(--spacing-md);
    }
    
    .requirement-item h3 {
        font-size: 1.125rem;
    }
    
    .requirement-item p {
        font-size: 1rem;
    }
    
    .requirement-item ul li {
        font-size: 0.9375rem;
    }
    
    .warning-box {
        padding: var(--spacing-md);
    }
    
    .warning-box h3 {
        font-size: 1.25rem;
    }
    
    .warning-item p {
        font-size: 1rem;
    }
    
    .warning-item.penalty .penalty-text {
        font-size: 1.125rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-card {
        padding: var(--spacing-lg);
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
    }
    
    .contact-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
    }
    
    .map-section {
        padding: var(--spacing-lg);
    }
    
    .location-tabs {
        flex-direction: column;
    }
    
    .location-tab {
        width: 100%;
        justify-content: center;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .map-button {
        width: 100%;
        justify-content: center;
    }
    
    .map-section h3 {
        font-size: 1.5rem;
    }
    
    .map-placeholder {
        padding: var(--spacing-xl);
    }
    
    .map-placeholder svg {
        width: 48px;
        height: 48px;
    }
    
    .map-placeholder p {
        font-size: 1rem;
    }
    
    .map-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    .footer-brand h3 {
        font-size: 1.25rem;
    }
    
    .footer-brand p {
        font-size: 0.875rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1rem;
    }
    
    .footer-links ul li a,
    .footer-contact ul li {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-md);
    }
    
    .footer-bottom p {
        font-size: 0.8125rem;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    /* Hide tooltip on mobile, show only on hover for desktop */
    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Landscape Orientation Optimizations
   =================================== */

/* Mobile Landscape */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero .cta-button {
        padding: 0.75rem 1.5rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .nav-menu {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .facilities-list li {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .terms-card,
    .requirement-item,
    .warning-box {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .map-placeholder {
        padding: var(--spacing-md);
    }
    
    footer {
        padding: var(--spacing-md) 0;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }
    
    .motor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .terms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Touch Target Improvements (Mobile)
   =================================== */

@media (max-width: 768px) {
    /* Ensure minimum touch target size of 44x44px */
    .cta-button,
    .contact-button,
    .map-button,
    .whatsapp-float {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        padding: var(--spacing-xs);
    }
    
    /* Improve tap areas for cards */
    .motor-card,
    .facilities-list li,
    .terms-card,
    .requirement-item,
    .contact-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.1);
    }
    
    /* Prevent text selection on interactive elements */
    .cta-button,
    .contact-button,
    .map-button,
    .whatsapp-float,
    .hamburger {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===================================
   High DPI / Retina Display Support
   =================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .motor-icon,
    .contact-icon {
        /* Icons will render sharper on retina displays */
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Small Mobile (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .motor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero p {
        font-size: 1.0625rem;
    }
}

/* Very Small Screens (<376px) */
@media (max-width: 375px) {
    /* Typography adjustments for very small screens */
    h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    /* Ensure readability */
    body {
        font-size: 0.9375rem;
    }
    
    .motor-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .motor-card {
        padding: 1.25rem;
    }
    
    .motor-image-container {
        height: 240px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 1.25rem;
    }
    
    .motor-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .motor-card h3 {
        font-size: 1rem;
    }
    
    .motor-price {
        font-size: 1.25rem;
    }
    
    .motor-card-overlay {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .facilities h2 {
        font-size: 1.75rem;
    }
    
    .facilities-list li {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }
    
    .terms-card {
        padding: var(--spacing-sm);
    }
    
    .terms-card h3 {
        font-size: 1.125rem;
    }
    
    .terms-item {
        margin-bottom: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }
    
    .requirements-intro {
        padding: var(--spacing-sm);
    }
    
    .requirements-intro p {
        font-size: 1rem;
    }
    
    .requirement-item {
        padding: var(--spacing-sm);
    }
    
    .requirement-item h3 {
        font-size: 1rem;
    }
    
    .requirement-item p {
        font-size: 0.9375rem;
    }
    
    .requirement-item ul li {
        font-size: 0.875rem;
    }
    
    .warning-box {
        padding: var(--spacing-sm);
    }
    
    .warning-box h3 {
        font-size: 1.125rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .warning-item p {
        font-size: 0.9375rem;
    }
    
    .warning-item.penalty .penalty-text {
        font-size: 1rem;
    }
    
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .contact-card h3 {
        font-size: 1.125rem;
    }
    
    .contact-detail {
        font-size: 0.9375rem;
    }
    
    .contact-button {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
    }
    
    .hours-item {
        padding: var(--spacing-xs);
    }
    
    .hours-label {
        font-size: 0.8125rem;
    }
    
    .hours-value {
        font-size: 1rem;
    }
    
    .map-section {
        padding: var(--spacing-md);
    }
    
    .map-section h3 {
        font-size: 1.25rem;
    }
    
    .map-placeholder {
        padding: var(--spacing-lg);
    }
    
    .map-placeholder svg {
        width: 40px;
        height: 40px;
    }
    
    .map-placeholder p {
        font-size: 0.9375rem;
    }
    
    .map-button {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
    }
    
    footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
    
    .footer-content {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .footer-brand h3 {
        font-size: 1.125rem;
    }
    
    .footer-brand p {
        font-size: 0.8125rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-links ul,
    .footer-contact ul {
        gap: var(--spacing-xs);
    }
    
    .footer-links ul li a,
    .footer-contact ul li {
        font-size: 0.8125rem;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-sm);
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ===================================
   Error Handling & Fallback Styles
   =================================== */

/* Phone Fallback Modal */
.phone-fallback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--spacing-md);
    animation: fadeIn 0.3s ease;
}

.phone-fallback-modal.closing {
    animation: fadeOut 0.3s ease;
}

.phone-fallback-content {
    background: white;
    border-radius: 1rem;
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.phone-fallback-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.phone-fallback-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.phone-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--color-surface);
    border-radius: 0.5rem;
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--color-primary);
}

.phone-number-display span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.copy-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.copy-button:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

.phone-fallback-note {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.phone-fallback-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.phone-call-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-call-button:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.phone-close-button {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-secondary);
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.phone-close-button:hover {
    background-color: var(--color-text-secondary);
    color: white;
    transform: translateY(-2px);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background-color: var(--color-success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9375rem;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100px);
    transition: all var(--transition-normal);
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.copy-notification.error {
    background-color: var(--color-error);
}

/* Connection Notifications */
.connection-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition-normal);
    min-width: 300px;
}

.connection-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.connection-notification.offline {
    background-color: var(--color-error);
    color: white;
}

.connection-notification.success {
    background-color: var(--color-success);
    color: white;
}

.connection-notification.warning {
    background-color: var(--color-warning);
    color: white;
}

.connection-notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
}

.connection-icon {
    font-size: 1.25rem;
}

.connection-message {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Loading States */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    font-size: 1rem;
    color: var(--color-text-secondary);
    gap: var(--spacing-sm);
}

.loading-spinner::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-surface);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
}

.loading-state .loading-spinner {
    padding: 0;
}

.loading-state p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Image Loading States */
img[data-src] {
    background-color: var(--color-surface);
    min-height: 100px;
}

img.loading {
    opacity: 0.5;
    animation: pulse 1.5s ease-in-out infinite;
}

img.loaded {
    animation: fadeIn 0.3s ease;
}

img.error {
    background-color: var(--color-surface);
    position: relative;
}

img.error::after {
    content: '🖼️ Gagal memuat gambar';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Animations for Error Handling */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Minimum Font Sizes for Very Small Screens
   =================================== */

/* Ensure minimum readable font sizes */
@media (max-width: 320px) {
    /* Absolute minimum font sizes for readability */
    body {
        font-size: 14px; /* 14px minimum */
    }
    
    h1 {
        font-size: 1.25rem; /* 20px minimum */
    }
    
    h2 {
        font-size: 1.125rem; /* 18px minimum */
    }
    
    h3 {
        font-size: 1rem; /* 16px minimum */
    }
    
    p, li, span {
        font-size: 0.875rem; /* 14px minimum */
        line-height: 1.5;
    }
    
    .cta-button,
    .contact-button,
    .map-button {
        font-size: 0.875rem; /* 14px minimum */
        padding: 0.75rem 1rem;
    }
    
    .motor-price {
        font-size: 1.125rem; /* 18px minimum */
    }
    
    .nav-menu a {
        font-size: 0.875rem; /* 14px minimum */
    }
    
    /* Adjust spacing for very small screens */
    .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .motor-grid {
        gap: 0.75rem;
    }
    
    .motor-card {
        padding: 1rem;
    }
    
    .facilities-list li {
        font-size: 0.9375rem;
        padding: 0.75rem;
    }
    
    .terms-card,
    .requirement-item,
    .warning-box {
        padding: 0.75rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
    
    /* Phone fallback modal adjustments */
    .phone-fallback-modal {
        padding: var(--spacing-sm);
    }
    
    .phone-fallback-content {
        padding: var(--spacing-lg);
    }
    
    .phone-fallback-content h3 {
        font-size: 1.125rem;
    }
    
    .phone-number-display span {
        font-size: 1rem;
    }
    
    .copy-button {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .phone-call-button,
    .phone-close-button {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Notification adjustments */
    .copy-notification {
        right: 1rem;
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
    }
    
    .connection-notification {
        min-width: 250px;
        padding: 0.75rem 1rem;
    }
    
    .connection-message {
        font-size: 0.8125rem;
    }
}

/* ===================================
   Responsive Adjustments for Error Handling
   =================================== */

@media (max-width: 768px) {
    .phone-fallback-content {
        padding: var(--spacing-lg);
        max-width: 90%;
    }
    
    .phone-fallback-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .phone-call-button,
    .phone-close-button {
        width: 100%;
        justify-content: center;
    }
    
    .copy-notification {
        right: 1rem;
        left: 1rem;
        transform: translateX(0);
    }
    
    .copy-notification.show {
        transform: translateX(0);
    }
    
    .connection-notification {
        min-width: auto;
        max-width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(-100px);
    }
    
    .connection-notification.show {
        transform: translateX(0) translateY(0);
    }
}

/* ===================================
   Accessibility Improvements
   =================================== */

/* Focus visible for keyboard navigation */
.cta-button:focus-visible,
.contact-button:focus-visible,
.map-button:focus-visible,
.whatsapp-float:focus-visible,
.copy-button:focus-visible,
.phone-call-button:focus-visible,
.phone-close-button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-float {
        animation: none;
    }
    
    .hero::before,
    .hero::after {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .phone-fallback-modal {
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    .phone-fallback-content {
        border: 2px solid var(--color-text-primary);
    }
    
    .connection-notification {
        border: 2px solid currentColor;
    }
}
