/* ============================================
   BLUE HOUSE DOORS & AUTOMATION - Modern Luxury Design
   ============================================ */

/* ============ GOOGLE FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Poppins:wght@300;400;600;700;800;900&display=swap');

/* ============ ROOT VARIABLES ============ */
:root {
    --primary-dark: #002B5B;
    --primary-light: #004182;
    --accent-neon: #00E8FF;
    --silver-metallic: #C0C0C0;
    --white: #FFFFFF;
    --dark-bg: #0a0f2e;
    --dark-surface: #141b3d;
    --dark-bg-alt: #0f1a3a;
    --dark-surface-alt: #1a2647;
    --shadow-sm: 0 2px 8px rgba(0, 43, 91, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 43, 91, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 43, 91, 0.25);
    --shadow-neon: 0 0 30px rgba(0, 232, 255, 0.4);
    --section-padding: 100px;
}

[data-theme="dark"] {
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--dark-surface);
    --text-primary: var(--white);
    --text-secondary: var(--silver-metallic);
}

[data-theme="light"] {
    --bg-primary: var(--white);
    --bg-secondary: #f5f7fa;
    --text-primary: var(--primary-dark);
    --text-secondary: #4a5568;
}

/* ============ BASE STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Navigation styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 43, 91, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 232, 255, 0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Container flex (only for navbar) */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Larger logo on larger screens */
@media (min-width: 768px) {
    .navbar-brand img {
        height: 80px;
    }
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav a.active {
    color: var(--accent-neon);
}

/* Ensure white text in light mode navbar */
[data-theme="light"] .navbar {
    background: rgba(0, 43, 91, 0.95);
}

[data-theme="light"] .navbar-nav a {
    color: white;
}

[data-theme="light"] .navbar-nav a:hover {
    color: var(--accent-neon);
}

[data-theme="light"] .navbar-nav a.active {
    color: var(--accent-neon);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero section for pages with 3D garage door (homepage) */
.hero-section:has(.garage-door-3d-container),
#hero-section-3d {
    height: 100vh;
    min-height: 700px;
    margin-top: 0;
}

/* Hero section for other pages (without 3D door) */
.hero-section:not(:has(.garage-door-3d-container)):not(#hero-section-3d) {
    height: 50vh;
    min-height: 350px;
    margin-top: 100px; /* Add margin to account for fixed navbar */
    box-sizing: border-box;
}

/* Services Journey Section */
.services-journey {
    position: relative;
    padding: 80px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.journey-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 200px);
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 232, 255, 0.3) 10%, 
        rgba(0, 232, 255, 0.3) 90%, 
        transparent 100%
    );
    z-index: 1;
}

.journey-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(0, 232, 255, 0.8), 
        rgba(0, 232, 255, 1),
        rgba(0, 232, 255, 0.8)
    );
    box-shadow: 0 0 20px rgba(0, 232, 255, 0.6);
    transition: width 0.3s ease;
}

.journey-items {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    z-index: 2;
}

.journey-item {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid rgba(0, 232, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .journey-item {
    background: var(--dark-surface);
    border-color: rgba(0, 232, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 232, 255, 0.05);
}

[data-theme="light"] .journey-item {
    background: var(--white);
    border-color: rgba(0, 43, 91, 0.1);
    box-shadow: 0 4px 20px rgba(0, 43, 91, 0.08);
}

.journey-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-neon);
    box-shadow: 0 15px 40px rgba(0, 232, 255, 0.3);
}

[data-theme="dark"] .journey-item:hover {
    box-shadow: 0 15px 40px rgba(0, 232, 255, 0.4), 0 0 60px rgba(0, 232, 255, 0.15);
    background: rgba(20, 27, 61, 0.95);
}

.journey-item-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: var(--bg-primary);
    border: 4px solid var(--accent-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    transition: all 0.4s ease;
    color: var(--accent-neon);
    box-shadow: 0 10px 30px rgba(0, 232, 255, 0.2);
}

/* Colored icons for each service */
.journey-item:nth-child(1) .journey-item-icon {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.journey-item:nth-child(2) .journey-item-icon {
    background: #f093fb;
    border-color: #f093fb;
    color: white;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.journey-item:nth-child(3) .journey-item-icon {
    background: #4facfe;
    border-color: #4facfe;
    color: white;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.journey-item:nth-child(4) .journey-item-icon {
    background: #43e97b;
    border-color: #43e97b;
    color: white;
    box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3);
}

.journey-item:nth-child(5) .journey-item-icon {
    background: #fa709a;
    border-color: #fa709a;
    color: white;
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
}

.journey-item:nth-child(6) .journey-item-icon {
    background: #30cfd0;
    border-color: #30cfd0;
    color: white;
    box-shadow: 0 10px 30px rgba(48, 207, 208, 0.3);
}

.journey-item:hover .journey-item-icon {
    transform: scale(1.15) rotate(5deg);
}

.journey-item-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: var(--accent-neon);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.journey-item-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.journey-item-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.journey-item-details {
    list-style: none;
    padding: 0;
    text-align: start;
}

.journey-item-details li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.journey-item-details li i {
    color: var(--accent-neon);
    font-size: 0.8rem;
}

.journey-item-number {
    box-shadow: 0 5px 15px rgba(0, 232, 255, 0.4);
}

/* Section styles */
.section {
    padding: var(--section-padding) 0;
}

/* Ensure vertical layout for sections */
.section .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

/* Override for contact page grid */
.section .container .contact-main-grid {
    display: grid !important;
    flex-direction: row !important;
}

.section-title {
    font-size: 2.5rem !important; /* Reduced from 3.5rem - better follows design standards (40px) */
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    width: 100%;
    display: block;
    opacity: 1 !important; /* Ensure titles are always visible */
    visibility: visible !important;
    transform: translateX(0) !important; /* Prevent GSAP animation from hiding */
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
    display: block;
    opacity: 1 !important; /* Ensure subtitles are always visible */
    visibility: visible !important;
    transform: translateY(0) !important; /* Prevent GSAP animation from hiding */
}

.text-gradient {
    background: linear-gradient(135deg, #002B5B 0%, #00E8FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    margin: 0 auto;
    max-width: 1600px;
}

/* على الشاشات الكبيرة: 4 أعمدة */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* على الشاشات المتوسطة-الكبيرة: 3 أعمدة */
@media (min-width: 1200px) and (max-width: 1399px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Products Grid - Different from services grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
    align-items: stretch; /* Make all cards same height */
}

/* Products cards - same styling as About section cards */
.products-grid .card,
.products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ensure uniform card heights by making all cards stretch to same height */
.products-grid {
    align-items: stretch;
}

.products-grid .card img {
    flex-shrink: 0;
}

.products-grid .card h3 {
    flex-shrink: 0;
    margin-bottom: 15px;
    min-height: 50px;
}

.products-grid .card > p,
.product-card > p {
    flex: 1;
    margin-bottom: 20px;
    line-height: 1.8;
    min-height: 120px;
}

.products-grid .card > div {
    flex-shrink: 0;
}

/* على الشاشات الكبيرة: 3 أعمدة للمنتجات */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* على الشاشات المتوسطة: 2 أعمدة */
@media (min-width: 768px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* على الشاشات الصغيرة: عمود واحد */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Windows Grid - Single card layout */
.windows-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
    max-width: 700px;
    justify-items: center;
}

/* على الشاشات المتوسطة والكبيرة: يمكن توسيع العرض قليلاً */
@media (min-width: 768px) {
    .windows-grid {
        max-width: 900px;
    }
}

.card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: none;
    border: 1px solid transparent;
}

/* Prevent any animations or transforms on product cards */
.product-card {
    transform: none !important;
    will-change: auto !important;
}

/* Simpler hover effect for product cards only */
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: none !important;
}

/* Product Price Section - Special styling */
.product-price-section {
    position: relative;
    transition: none;
}

[data-theme="dark"] .product-price-section {
    background: linear-gradient(135deg, rgba(0, 232, 255, 0.15) 0%, rgba(0, 43, 91, 0.2) 100%) !important;
    border-color: rgba(0, 232, 255, 0.4) !important;
}

.product-price {
    text-shadow: none;
}

/* Price value styling */
.product-price-value {
    color: var(--accent-neon);
}

[data-theme="light"] .product-price-value {
    color: var(--primary-dark);
}

[data-theme="dark"] .product-price-value {
    color: var(--accent-neon);
    text-shadow: 0 2px 10px rgba(0, 232, 255, 0.3);
}

/* Contact page main grid - 2 columns side by side */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* On medium screens, keep 2 columns but reduce gap */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-main-grid {
        gap: 40px;
    }
}

/* On small screens, stack vertically */
@media (max-width: 768px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Cards in About section - equal height and content distribution */
.services-grid {
    align-items: stretch; /* Make all cards same height */
}

/* Only apply flex styling to cards inside services-grid in About section */
#about .services-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#about .services-grid .card .card-icon {
    flex-shrink: 0;
    margin-bottom: 20px;
}

#about .services-grid .card .card-title {
    flex-shrink: 0;
    margin-bottom: 20px;
    min-height: 60px;
}

#about .services-grid .card .card-description {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.8;
    min-height: 100px;
}

/* Dark mode styling for cards */
[data-theme="dark"] .card {
    background: var(--dark-surface);
    border: 1px solid rgba(0, 232, 255, 0.2);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 232, 255, 0.1),
        inset 0 0 20px rgba(0, 232, 255, 0.03);
}

[data-theme="light"] .card {
    background: var(--white);
    border: 1px solid rgba(0, 43, 91, 0.1);
    box-shadow: 0 8px 24px rgba(0, 43, 91, 0.12);
}

/* Simpler hover effects - only for product cards */
.product-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Keep original hover for other cards (not product cards) */
.card:not(.product-card):hover {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .card:not(.product-card):hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .card:not(.product-card):hover {
    box-shadow: var(--shadow-md);
}

.footer {
    background: linear-gradient(135deg, #002B5B 0%, #004182 100%);
    color: white;
    padding: 60px 40px 20px;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Footer brand block */
.footer-brand { align-items: flex-start; }
.footer-logo { width: 48px; height: auto; margin-bottom: 10px; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3)); }
.footer-brand-name { font-size: 1.2rem; }
.footer-brand-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.footer-desc { opacity: 0.9; }
.footer-social { margin-top: 14px; }

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent-neon);
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 5px;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-neon);
    transform: translateX(5px);
}

/* Social links styling */
.footer-section .social-links {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Contact section responsive */
@media (max-width: 768px) {
    /* Force contact info & form to stack on mobile */
    section[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    /* Make contact form full width on mobile */
    section[style*="grid-template-columns: 1fr 1fr"] > div:last-child {
        grid-column: 1;
    }
}

.footer-section .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.footer-section .social-links a:hover {
    background: var(--accent-neon);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

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

.bg-gray-50 {
    background: var(--bg-secondary);
}

[data-theme="dark"] .bg-gray-50 {
    background: var(--dark-surface-alt) !important;
}

[data-theme="dark"] .section:not(.bg-gray-50) {
    background: var(--dark-bg) !important;
}

[data-theme="dark"] .section.bg-gray-50 {
    background: var(--dark-surface-alt) !important;
}

/* Ensure body background in dark mode */
[data-theme="dark"] body {
    background: var(--dark-bg);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-neon);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: #00c2d1;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .journey-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .journey-line {
        width: calc(100% - 150px);
    }
    
    .section-title {
        font-size: 2.2rem !important; /* Reduced proportionally */
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2rem !important; /* Mobile: 32px - appropriate size */
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .journey-items {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .journey-line {
        display: none;
    }
    
    .journey-item {
        padding: 30px 20px;
    }
    
    .journey-item-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .journey-item-title {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* على الشاشات المتوسطة: عمودين إذا لزم الأمر */
@media (min-width: 768px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

.mb-80 {
    margin-bottom: 80px;
}

/* ============ GARAGE DOOR 3D ANIMATION ============ */
/* Container with 3D perspective */
.garage-door-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 2000px;
    perspective-origin: center 40%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.garage-door-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    isolation: isolate; /* Create new stacking context to prevent z-index conflicts */
}

/* Main door panel - realistic metal texture */
.garage-door-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 12.5%;
    
    /* Realistic metallic gradient with depth */
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(45, 55, 75, 0.96) 0%,
            rgba(45, 55, 75, 0.96) 8px,
            rgba(50, 60, 80, 0.98) 8px,
            rgba(50, 60, 80, 0.98) 16px
        ),
        linear-gradient(
            to bottom,
            rgba(58, 68, 88, 0.99) 0%,
            rgba(50, 60, 80, 0.96) 30%,
            rgba(45, 55, 75, 0.94) 50%,
            rgba(50, 60, 80, 0.96) 70%,
            rgba(58, 68, 88, 0.99) 100%
        );
    
    /* Realistic borders with 3D edge effect */
    border-left: 8px solid rgba(25, 35, 50, 0.95);
    border-right: 8px solid rgba(25, 35, 50, 0.95);
    border-top: 4px solid rgba(210, 230, 255, 0.5);
    border-bottom: 3px solid rgba(120, 140, 170, 0.6);
    
    /* Enhanced shadows for 3D depth with ambient occlusion */
    box-shadow: 
        /* Deep inner shadows */
        inset 0 0 80px rgba(0, 0, 0, 0.35),
        inset 0 2px 20px rgba(0, 0, 0, 0.45),
        inset 0 -2px 15px rgba(255, 255, 255, 0.12),
        /* Outer drop shadows */
        0 8px 35px rgba(0, 0, 0, 0.65),
        0 0 45px rgba(0, 0, 0, 0.25),
        /* Surface reflection */
        inset 0 0 60px rgba(255, 255, 255, 0.1),
        /* Ambient occlusion on edges */
        inset -8px 0 25px rgba(0, 0, 0, 0.6),
        inset 8px 0 25px rgba(0, 0, 0, 0.6),
        /* Top edge highlight */
        inset 0 3px 15px rgba(255, 255, 255, 0.15),
        /* Subtle side highlights */
        inset -10px 0 20px rgba(255, 255, 255, 0.05),
        inset 10px 0 20px rgba(255, 255, 255, 0.05);
    
    transform-origin: bottom center;
    transform-style: preserve-3d;
    will-change: transform;
    transition: all 0.1s ease;
    isolation: isolate;
    /* Add slight perspective for 3D edge effect */
    clip-path: inset(0 -8px 0 -8px);
}

/* Metal rivets/hardware details */
.garage-door-panel::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 3%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle,
        rgba(180, 200, 220, 0.95) 0%,
        rgba(80, 100, 130, 0.9) 50%,
        rgba(40, 60, 90, 1) 100%
    );
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 5;
}

/* Additional rivets on panels */
.garage-door-panel::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 3%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle,
        rgba(180, 200, 220, 0.95) 0%,
        rgba(80, 100, 130, 0.9) 50%,
        rgba(40, 60, 90, 1) 100%
    );
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 5;
}

/* Panel positioning with z-index for proper stacking */
.garage-door-panel[data-panel="1"] { 
    bottom: 0; 
    z-index: 18;
}
.garage-door-panel[data-panel="2"] { bottom: 12.5%; z-index: 17; }
.garage-door-panel[data-panel="3"] { bottom: 25%; z-index: 16; }
.garage-door-panel[data-panel="4"] { bottom: 37.5%; z-index: 15; }
.garage-door-panel[data-panel="5"] { bottom: 50%; z-index: 14; }
.garage-door-panel[data-panel="6"] { bottom: 62.5%; z-index: 13; }
.garage-door-panel[data-panel="7"] { bottom: 75%; z-index: 12; }
.garage-door-panel[data-panel="8"] { bottom: 87.5%; z-index: 11; }

/* Metallic texture overlay - realistic metal grain - Reduced silver overlays */
.panel-metal-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        /* Subtle white scratches */
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 200px
        ),
        /* Subtle horizontal texture */
        repeating-linear-gradient(
            0deg,
            rgba(240, 250, 255, 0.02) 0px,
            rgba(240, 250, 255, 0.02) 2px,
            transparent 2px,
            transparent 40px
        ),
        /* Top surface shine - reduced */
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 15%,
            transparent 30%
        );
    pointer-events: none;
    z-index: 1;
    border-radius: 0;
    animation: metalShimmer 10s ease-in-out infinite;
}

/* Metal shimmer animation - Reduced intensity to preserve door details */
@keyframes metalShimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-5%);
    }
    50% {
        opacity: 0.5;
        transform: translateX(5%);
    }
}

/* Door handle details - realistic 3D handle */
.panel-handle {
    position: absolute;
    bottom: 20%;
    left: 12%;
    width: 100px;
    height: 14px;
    background: linear-gradient(to bottom, 
        rgba(130, 150, 180, 0.95),
        rgba(90, 110, 140, 0.98),
        rgba(60, 80, 110, 1)
    );
    border-radius: 7px;
    border: 2px solid rgba(20, 30, 40, 0.9);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.5),
        inset 0 -2px 4px rgba(255, 255, 255, 0.2),
        inset 2px 0 4px rgba(0, 0, 0, 0.3),
        inset -2px 0 4px rgba(255, 255, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 3;
}

/* Silver handle for bottom panel only - centered */
.garage-door-panel[data-panel="1"] .panel-handle {
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 18px;
    background: linear-gradient(to bottom, 
        rgba(200, 210, 230, 0.98),
        rgba(180, 195, 215, 0.95),
        rgba(160, 180, 200, 0.98)
    );
    border-radius: 9px;
    border: 3px solid rgba(100, 120, 150, 0.8);
    box-shadow: 
        inset 0 4px 8px rgba(255, 255, 255, 0.6),
        inset 0 -4px 8px rgba(0, 0, 0, 0.4),
        inset 3px 0 6px rgba(255, 255, 255, 0.5),
        inset -3px 0 6px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.7),
        0 2px 6px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(200, 220, 255, 0.5);
    z-index: 4;
}

/* Brilliant white stripe across full width below bottom panel */
/* White stripe removed - keeping only the silver handle */

/* Handle inner highlight for 3D effect */
.panel-handle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30%;
    height: 50%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: 4px;
    pointer-events: none;
}

/* Additional handle shine effect - Not for bottom panel */
.garage-door-panel:not([data-panel="1"]) .panel-handle::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 10px;
    width: 20px;
    height: 8px;
    background: linear-gradient(to right,
        transparent,
        rgba(255, 255, 255, 0.3) 50%,
        transparent
    );
    border-radius: 4px;
    pointer-events: none;
}

/* Garage door tracks - vertical rails on sides */
.garage-door-track {
    position: absolute;
    top: 0;
    width: 35px;
    height: 100%;
    z-index: 30;
    pointer-events: none;
    border-radius: 2px;
}

.garage-door-track-left {
    left: 0;
    background: linear-gradient(to right,
        rgba(250, 250, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 25%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.98) 75%,
        rgba(250, 250, 255, 1) 100%
    );
    border-right: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        inset -8px 0 20px rgba(0, 0, 0, 0.2),
        5px 0 15px rgba(0, 0, 0, 0.15),
        inset 0 0 50px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.3),
        inset 0 0 100px rgba(255, 255, 255, 0.2);
}

.garage-door-track-right {
    right: 0;
    background: linear-gradient(to left,
        rgba(250, 250, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 25%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.98) 75%,
        rgba(250, 250, 255, 1) 100%
    );
    border-left: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        inset 8px 0 20px rgba(0, 0, 0, 0.2),
        -5px 0 15px rgba(0, 0, 0, 0.15),
        inset 0 0 50px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.3),
        inset 0 0 100px rgba(255, 255, 255, 0.2);
}

/* Track inner groove for panels to slide in - Now white to match the tracks */
.garage-door-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(200, 210, 230, 0.3) 0%,
        rgba(220, 230, 245, 0.25) 30%,
        rgba(230, 240, 255, 0.2) 50%,
        rgba(220, 230, 245, 0.25) 70%,
        rgba(200, 210, 230, 0.3) 100%
    );
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Track runners - vertical lines - Now subtle and white */
.garage-door-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(220, 230, 245, 0.1) 0px,
        rgba(220, 230, 245, 0.1) 2px,
        rgba(240, 245, 255, 0.05) 2px,
        rgba(240, 245, 255, 0.05) 4px,
        transparent 4px,
        transparent 40px
    );
    background-size: 100% 40px;
}

/* Light effect behind opening door */
.garage-door-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Multiple light layers for depth */
        radial-gradient(
            ellipse at center 25%,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.25) 20%,
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 255, 255, 0.05) 60%,
            transparent 80%
        ),
        radial-gradient(
            ellipse at center 35%,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 30%,
            transparent 60%
        );
    /* Keep light disabled initially to avoid early white circle */
    opacity: 0;
    /* animation removed to prevent first white circle */
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

@keyframes lightFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Shadow below door for depth */
.door-shadow {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120px;
    background: 
        /* Multiple shadow layers for realistic depth */
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 25%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.1) 75%,
            transparent 100%
        ),
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            transparent 100%
        );
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
}

/* Main panel animation - ultra smooth continuous movement */
@keyframes panelOpenUp {
    0% {
        transform: translateX(-50%) translateY(0) rotateX(0deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(-70vh) rotateX(-5deg);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) translateY(-140vh) rotateX(-10deg);
        opacity: 0;
        visibility: hidden;
    }
}

/* Staggered timing for each panel - smooth sequential opening */
.garage-door-panel[data-panel="1"] { 
    animation: panelOpenUp 4s ease-in-out 0s forwards; 
    will-change: transform, opacity;
}
.garage-door-panel[data-panel="2"] { 
    animation: panelOpenUp 4s ease-in-out 0.1s forwards; 
    will-change: transform, opacity;
}
.garage-door-panel[data-panel="3"] { 
    animation: panelOpenUp 4s ease-in-out 0.2s forwards; 
    will-change: transform, opacity;
}
.garage-door-panel[data-panel="4"] { 
    animation: panelOpenUp 4s ease-in-out 0.3s forwards; 
    will-change: transform, opacity;
}
.garage-door-panel[data-panel="5"] { 
    animation: panelOpenUp 4s ease-in-out 0.4s forwards; 
    will-change: transform, opacity;
}
.garage-door-panel[data-panel="6"] { 
    animation: panelOpenUp 4s ease-in-out 0.5s forwards; 
    will-change: transform, opacity;
}
.garage-door-panel[data-panel="7"] { 
    animation: panelOpenUp 4s ease-in-out 0.6s forwards; 
    will-change: transform, opacity;
}
.garage-door-panel[data-panel="8"] { 
    animation: panelOpenUp 4s ease-in-out 0.7s forwards; 
    will-change: transform, opacity;
}

/* Hero overlay fade in after door opens */
.hero-overlay-fade-in {
    animation: overlayFadeIn 0.8s ease-in 4.7s forwards;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern gradient - better than dark grey */
    background: 
        radial-gradient(ellipse at top center, 
            rgba(0, 232, 255, 0.12) 0%, 
            transparent 50%
        ),
        linear-gradient(135deg, 
            rgba(0, 43, 91, 0.95) 0%, 
            rgba(0, 65, 130, 0.92) 50%,
            rgba(0, 43, 91, 0.95) 100%
        );
    z-index: 0; /* keep overlay over background but under 3D door */
    pointer-events: none;
}

/* Modern Hero Background for non-homepage pages */
.hero-section:not(:has(.garage-door-3d-container)) .hero-background > div {
    background: 
        radial-gradient(ellipse at top center, 
            rgba(0, 232, 255, 0.15) 0%, 
            transparent 60%
        ),
        linear-gradient(135deg, 
            #002B5B 0%, 
            #003d75 30%, 
            #004182 70%, 
            #0055a5 100%
        );
    position: relative;
    overflow: hidden;
}

/* Subtle geometric pattern overlay */
.hero-section:not(:has(.garage-door-3d-container)) .hero-background > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, 
            transparent, 
            transparent 2px, 
            rgba(0, 232, 255, 0.03) 2px, 
            rgba(0, 232, 255, 0.03) 4px
        ),
        repeating-linear-gradient(-45deg, 
            transparent, 
            transparent 2px, 
            rgba(0, 232, 255, 0.03) 2px, 
            rgba(0, 232, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Remove overlay on non-homepage pages for cleaner look */
.hero-section:not(:has(.garage-door-3d-container)) .hero-overlay {
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 3; /* ensure CTA appears above 3D door */
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
    opacity: 1; /* Default: visible - will be overridden on homepage only */
    /* Animation removed - will be applied via JS only on homepage with 3D door */
}

/* Only apply animation delay on homepage (with 3D garage door) */
.homepage-hero .hero-content,
.index-hero .hero-content,
body:has(.garage-door-3d-container) .hero-content {
    opacity: 0;
    animation: contentFadeIn 0.6s ease-out 4.5s forwards;
}

.hero-logo {
    width: 200px;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    animation: titleFadeIn 1s ease-out 0.5s backwards;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    animation: subtitleFadeIn 1s ease-out 1s backwards;
}

@keyframes subtitleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-controls button {
    background: transparent;
    border: 2px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-controls button:hover {
    background: var(--accent-neon);
    color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

.navbar.navbar-scrolled {
    background: rgba(10, 15, 46, 0.95);
    box-shadow: 0 5px 30px rgba(0, 232, 255, 0.2);
}

html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

/* ============ HERO CTA & SCROLL INDICATOR ============ */
.hero-cta {
    margin-top: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============ CARD COMPONENTS ============ */
.card-icon {
    font-size: 4rem;
    color: var(--accent-neon);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============ CLIENTS MARQUEE ============ */
.clients-marquee {
    overflow: visible;
    width: 100%;
    position: relative;
    min-height: 130px;
}

.clients-track {
    display: flex;
    gap: 30px;
    will-change: transform;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.client-logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    min-width: 180px;
    height: 100px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 232, 255, 0.1);
    transition: all 0.3s ease;
    flex: 0 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

.client-logo-container:hover {
    border-color: var(--accent-neon);
    box-shadow: 0 5px 20px rgba(0, 232, 255, 0.2);
    transform: translateY(-5px);
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-logo-container:hover .client-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ============ SOCIAL LINKS ============ */
.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    margin: 0 5px;
}

.social-links a:hover {
    background: var(--accent-neon);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Footer sections styles are now defined earlier */

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ============ CONTACT FORM ============ */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid rgba(0, 232, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.95);
    color: #002B5B;
    border: 2px solid rgba(0, 43, 91, 0.2);
}

[data-theme="light"] .form-group label {
    color: #002B5B;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 232, 255, 0.3);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(0, 232, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ============ FIX PHONE NUMBERS IN ARABIC ============ */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] [data-phone],
[dir="rtl"] span[data-company="phone"],
[dir="rtl"] span[data-company="whatsapp"] {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

[data-phone],
[data-whatsapp],
[data-email] {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* Fix phone in footer */
.footer-section a[href^="tel:"],
.footer-section span[data-company="phone"],
.footer-section span[data-company="whatsapp"] {
    direction: ltr;
    unicode-bidi: embed;
}

/* Fix phone in contact section */
.card span[data-company="phone"],
.card span[data-company="whatsapp"] {
    direction: ltr;
    unicode-bidi: embed;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============ NAVBAR STATES ============ */
.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-neon);
    transition: width 0.3s ease;
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a:hover {
    color: var(--accent-neon);
}

/* ============ RESPONSIVE ENHANCEMENTS ============ */
@media (max-width: 768px) {
    /* Navbar Mobile Improvements */
    .navbar {
        padding: 12px 0;
    }
    
    .navbar .container {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .navbar-brand {
        flex: 0 0 auto;
        order: 1;
    }
    
    .navbar-brand img {
        height: 50px !important;
        max-width: 120px;
    }
    
    .navbar-controls {
        order: 2;
        gap: 8px;
        flex: 0 0 auto;
    }
    
    .navbar-controls button {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .navbar-controls .theme-toggle {
        padding: 6px 10px;
    }
    
    .navbar-controls .lang-toggle {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 3;
        padding: 8px 12px;
        font-size: 1.1rem;
        flex: 0 0 auto;
    }
    
    .navbar-nav {
        display: none;
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 15px;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
    }
    
    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 232, 255, 0.1);
    }
    
    .navbar-nav li:last-child {
        border-bottom: none;
    }
    
    .navbar-nav a {
        display: block;
        padding: 15px 10px;
        font-size: 1rem;
        width: 100%;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 60px 20px 20px;
    }
    .footer-logo { width: 40px; }
    
    /* Hero Mobile */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem !important; /* Small screens: 32px */
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Cards Mobile */
    .card {
        padding: 25px 20px;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Contact Form Mobile */
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Hero Section Mobile */
    .hero-section:not(:has(.garage-door-3d-container)):not(#hero-section-3d) {
        margin-top: 74px;
        min-height: 300px;
        height: 40vh;
    }
    
    /* Section Padding Mobile */
    .section {
        padding: 60px 0;
    }
    
    /* Product Cards Mobile */
    .product-card {
        width: 100%;
        max-width: 100%;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .navbar-brand img {
        height: 45px !important;
        max-width: 100px;
    }
    
    .navbar-controls button {
        padding: 5px 10px;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .mobile-menu-btn {
        padding: 7px 10px;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .container {
        padding: 0 12px;
    }
}
