:root {
    --bg-main: #0a1628;
    --bg-elevated: rgba(15, 30, 50, 0.95);
    --bg-card: rgba(20, 40, 65, 0.8);
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-hover: #60a5fa;
    --accent-glow: 0 0 30px rgba(59, 130, 246, 0.4);
    --accent-secondary: #06b6d4;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --text-main: #f5f5f5;
    --text-muted: #a5b4c6;
    --danger: #ef4444;
    --success: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-main);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.3rem;
    background: rgba(15, 30, 50, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 0.3rem;
    backdrop-filter: blur(10px);
    margin-left: 1rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}

.lang-btn:hover:not(:disabled) {
    border-color: rgba(59, 130, 246, 0.4);
    color: #f5f5f5;
    background: rgba(59, 130, 246, 0.1);
}

.lang-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.lang-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Language switcher list item - mobile only */
.nav-lang-item {
    display: none; /* Hidden on desktop, shown in mobile menu */
}

/* Desktop language switcher */
.lang-switcher-desktop {
    display: flex;
    position: absolute;
    right: 2rem;
}

@media (max-width: 768px) {
    /* Show language switcher in mobile menu */
    .nav-lang-item {
        display: block;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    .nav-lang-item .lang-switcher {
        margin-left: 0;
        justify-content: center;
    }
    
    /* Hide desktop language switcher */
    .lang-switcher-desktop {
        display: none;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
    width: 100%;
}

.navbar.scrolled {
    background: rgba(5, 7, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    position: relative;
}

/* Removed to fix layout */

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: 2rem;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
    transition: all 0.3s ease;
    object-fit: contain;
    padding: 0.5rem;
    border-radius: 8px;
}

.logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(59, 130, 246, 1));
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.15);
}

.logo-fallback {
    display: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Footer */
.footer {
    background: rgba(5, 7, 10, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    z-index: 5;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

@media (max-width: 768px) {
    .footer-section ul {
        text-align: center;
    }
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    overflow: visible;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
    position: relative;
    z-index: 2;
    animation: whatsappRing 1s ease-in-out infinite;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: whatsappPulse 2s ease-out infinite;
    z-index: 1;
}

.whatsapp-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: whatsappRipple 2s ease-out infinite;
    z-index: 0;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes whatsappRipple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Ringing animation - continuous */
@keyframes whatsappRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-12deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(12deg);
    }
}

.whatsapp-widget:hover .whatsapp-icon {
    animation: whatsappRing 0.3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .whatsapp-widget {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Custom Scrollbar Styling - Global */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(15, 23, 42, 0.3);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), rgba(56, 189, 248, 0.6));
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.3);
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(56, 189, 248, 0.9));
    border: 2px solid rgba(59, 130, 246, 0.5);
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* RTL Navbar */
html[dir="rtl"] .navbar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
    direction: rtl;
    padding: 0 2rem;
}

html[dir="rtl"] .logo-container {
    order: 3;
    margin-right: 0;
    margin-left: auto;
    left: auto;
    right: 2rem;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
    order: 2;
    margin-right: auto;
    margin-left: 0;
    gap: 2rem;
}

html[dir="rtl"] .lang-switcher-desktop {
    order: 1;
    margin-left: 0;
    margin-right: 1rem;
    right: auto;
    left: 2rem;
}

html[dir="rtl"] .nav-toggle {
    order: 0;
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

@media (max-width: 768px) {
    html[dir="rtl"] .nav-container {
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
        flex-direction: row;
    }
    
    html[dir="rtl"] .logo-container {
        order: 1;
        margin: 0 auto;
        position: relative;
        left: auto;
        right: auto;
    }
    
    html[dir="rtl"] .nav-toggle {
        order: 0;
        position: absolute;
        right: 1rem;
        left: auto;
    }
    
    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        transition: right 0.3s ease;
        text-align: center;
        direction: ltr;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    html[dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
    }
    
    html[dir="rtl"] .nav-menu li {
        text-align: center;
        width: auto;
    }
    
    html[dir="rtl"] .nav-menu .nav-link {
        text-align: center;
        padding: 0.75rem 1rem;
        display: block;
        width: auto;
        white-space: nowrap;
    }
    
    html[dir="rtl"] .nav-menu .nav-link::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    html[dir="rtl"] .nav-menu .nav-link:hover::after,
    html[dir="rtl"] .nav-menu .nav-link.active::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    html[dir="rtl"] .nav-lang-item {
        text-align: center;
        border-top: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    html[dir="rtl"] .nav-lang-item .lang-switcher {
        justify-content: center;
        flex-direction: row;
    }
}

/* RTL Hero Section */
html[dir="rtl"] .hero-section {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .hero-content {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .hero-cta {
    justify-content: flex-start;
    flex-direction: row-reverse;
    direction: rtl;
}

@media (min-width: 768px) {
    html[dir="rtl"] .hero-content {
        margin-left: auto;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 5%;
        width: 50%;
    }
    
    html[dir="rtl"] #pill-canvas-container {
        left: auto;
        right: 68%;
        transform: translate(50%, -50%);
    }
}

/* RTL Sections */
html[dir="rtl"] .section-title {
    text-align: center;
}

html[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* RTL Feature Cards */
html[dir="rtl"] .feature-card {
    text-align: right;
}

/* RTL Product Cards */
html[dir="rtl"] .product-card {
    text-align: right;
}

/* RTL Contact Form */
html[dir="rtl"] .contact-form-container {
    text-align: right;
}

html[dir="rtl"] .contact-form-container .input-field {
    text-align: right;
}

html[dir="rtl"] .contact-form-container .input-field::placeholder {
    text-align: right;
}

html[dir="rtl"] .contact-form-container label {
    text-align: right;
}

html[dir="rtl"] .contact-form-container .form-group {
    text-align: right;
}

/* Brand Highlight Sections (Singderm & Kinglaser) */
.brand-section {
    position: relative;
    padding: 5rem 2rem;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.brand-section-singderm {
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.25), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.2), transparent 55%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
}

.brand-section-kinglaser {
    background: radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.25), transparent 55%),
                radial-gradient(circle at 0% 100%, rgba(129, 140, 248, 0.2), transparent 55%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

.brand-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: center;
}

/* Kinglaser: Content comes first in HTML, so we swap grid columns to put visual on right */
.brand-section-kinglaser .brand-section-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
}

/* RTL: In Arabic, revert to normal order */
html[dir="rtl"] .brand-section-kinglaser .brand-section-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
}

.brand-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.brand-logo-wrapper {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.7);
}

.brand-logo-img {
    max-height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-model-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.brand-model-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.brand-model-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    opacity: 0.3;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent);
}

.brand-content {
    position: relative;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.brand-section-singderm .brand-title {
    background: linear-gradient(135deg, #f97316, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-section-kinglaser .brand-title {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #cbd5f5;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.brand-carousel {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
    max-width: 100%;
}

/* Larger carousel on larger screens - Only for Kinglaser */
@media (min-width: 1024px) {
    #kinglaser-section.brand-carousel {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 1440px) {
    #kinglaser-section.brand-carousel {
        padding: 2.5rem 2rem;
    }
}

.brand-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.brand-carousel-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #e5e7eb;
}

.brand-carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.brand-carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.brand-carousel-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
    transform: translateY(-1px);
}

.brand-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

/* Larger gaps on larger screens - Only for Kinglaser */
@media (min-width: 1024px) {
    #kinglaser-section .brand-carousel-track {
        gap: 1.25rem;
    }
}

@media (min-width: 1440px) {
    #kinglaser-section .brand-carousel-track {
        gap: 1.5rem;
    }
}

.brand-carousel-track::-webkit-scrollbar {
    height: 6px;
}

.brand-carousel-track::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.9);
}

.brand-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
}

.brand-carousel-card {
    min-width: 220px;
    max-width: 260px;
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.25), transparent 55%);
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Larger cards on larger screens - Only for Kinglaser */
@media (min-width: 1024px) {
    #kinglaser-section .brand-carousel-card {
        min-width: 280px;
        max-width: 320px;
    }
}

@media (min-width: 1440px) {
    #kinglaser-section .brand-carousel-card {
        min-width: 320px;
        max-width: 360px;
    }
}

/* Singderm carousel - Original style */
#singderm-section .brand-carousel-image {
    width: 100%;
    height: 160px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Kinglaser carousel - New style with correct aspect ratio */
#kinglaser-section .brand-carousel-image {
    width: 100%;
    /* Aspect ratio 524 × 657 px = approximately 0.797:1 (4:5 portrait) */
    aspect-ratio: 524 / 657;
    min-height: 200px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Larger image containers on larger screens - Only for Kinglaser */
@media (min-width: 1024px) {
    #kinglaser-section .brand-carousel-image {
        min-height: 250px;
    }
}

@media (min-width: 1440px) {
    #kinglaser-section .brand-carousel-image {
        min-height: 300px;
    }
}

/* Singderm carousel images - Original style */
#singderm-section .brand-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Kinglaser carousel images - New style with contain to show full image */
#kinglaser-section .brand-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    transition: transform 0.3s ease;
}

.brand-carousel-card:hover .brand-carousel-image img {
    transform: scale(1.05);
}

.brand-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.5;
    background: rgba(15, 23, 42, 0.8);
}

.brand-carousel-card-content {
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brand-carousel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.brand-carousel-card-header h4 {
    flex: 1;
    margin: 0;
}

.brand-info-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #60a5fa;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.brand-info-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
    transform: scale(1.1);
    color: #93c5fd;
}

.brand-info-btn svg {
    width: 16px;
    height: 16px;
}

.brand-carousel-variant {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: #bfdbfe;
    font-weight: 600;
    margin: 0;
}

.brand-carousel-volume {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

.brand-carousel-card-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #bfdbfe;
    margin: 0;
}

.brand-carousel-card-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.brand-inquire-btn {
    margin-top: 0.25rem;
    align-self: flex-start;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.9);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(56, 189, 248, 0.25));
    color: #e5e7eb;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.brand-inquire-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
    transform: translateY(-1px);
}

/* Product Modal/Popup */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.product-modal-content {
    position: relative;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 10001;
    overflow: hidden;
}

.product-modal.active .product-modal-content {
    transform: scale(1) translateY(0);
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10003;
}

.product-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
    transform: rotate(90deg);
}

.product-modal-header {
    position: relative;
    flex-shrink: 0;
    z-index: 10002;
}

.product-modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

.product-modal-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    padding-top: 0;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.6) rgba(15, 23, 42, 0.8);
}

.product-modal-scrollable::-webkit-scrollbar {
    width: 10px;
}

.product-modal-scrollable::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    margin: 1rem 0;
}

.product-modal-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(56, 189, 248, 0.8));
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.8);
    transition: background 0.3s ease;
}

.product-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 1), rgba(56, 189, 248, 1));
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.product-modal-info {
    padding: 0;
}

.product-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #e5e7eb;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-modal-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #9ca3af;
    margin: 0 0 1.5rem 0;
}

.product-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.product-modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #60a5fa;
}

.detail-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #e5e7eb;
    font-weight: 600;
}

.product-modal-description,
.product-modal-indications {
    margin-bottom: 2rem;
}

.product-modal-description h3,
.product-modal-indications h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #60a5fa;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-modal-description p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
}

.product-modal-indications ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.product-modal-indications li {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    position: relative;
    padding-left: 1.5rem;
}

.product-modal-indications li::before {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    color: #60a5fa;
    font-weight: bold;
}

.product-modal-footer {
    position: sticky;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem 2rem;
    flex-shrink: 0;
    z-index: 10001;
}

.product-modal-actions {
    display: flex;
    justify-content: center;
    padding: 0;
}

.product-modal-inquire {
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .product-modal-image {
        height: 200px;
    }
    
    .product-modal-title {
        font-size: 1.5rem;
    }
    
    .product-modal-scrollable {
        padding: 1.5rem;
        padding-top: 0;
    }
    
    .product-modal-details {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .product-modal-indications ul {
        grid-template-columns: 1fr;
    }
    
    .product-modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 1024px) {
    .brand-section {
        padding: 4rem 1.5rem;
    }

    .brand-section-inner {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    /* Override Kinglaser desktop grid */
    .brand-section-kinglaser .brand-section-inner {
        grid-template-columns: 1fr !important;
    }

    .brand-visual {
        order: 1 !important;
    }

    .brand-content {
        order: 2 !important;
    }

    .brand-section .brand-title,
    .brand-section .brand-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .brand-section {
        padding: 3.5rem 1.25rem;
    }

    .brand-section-inner {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        max-width: 100%;
    }

    /* Force single column for both sections */
    .brand-section-kinglaser .brand-section-inner,
    .brand-section-singderm .brand-section-inner {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        max-width: 100%;
    }

    .brand-visual {
        order: 1 !important;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .brand-content {
        order: 2 !important;
        width: 100%;
        max-width: 100%;
    }

    .brand-logo-wrapper {
        width: auto;
        max-width: 200px;
    }

    /* Kinglaser logo needs more space */
    .brand-section-kinglaser .brand-logo-wrapper {
        max-width: 280px;
    }

    .brand-model-wrapper {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
    }

    .brand-carousel {
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
    }

    .brand-carousel-track {
        width: 100%;
    }

    .brand-carousel-header {
        flex-wrap: wrap;
    }

    .brand-carousel-header h3 {
        font-size: 0.9rem;
    }

    .brand-title {
        text-align: center;
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .brand-subtitle {
        text-align: center;
        font-size: 0.9rem;
        max-width: 100%;
    }
}

/* RTL Buttons */
html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-secondary {
    text-align: center;
}

/* RTL Footer */
html[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-section {
    text-align: right;
}

/* RTL WhatsApp Widget */
html[dir="rtl"] .whatsapp-widget {
    left: 30px;
    right: auto;
}

@media (max-width: 768px) {
    html[dir="rtl"] .whatsapp-widget {
        left: 20px;
        right: auto;
    }
}

/* RTL Language Switcher */
html[dir="rtl"] .lang-switcher {
    flex-direction: row-reverse;
}

/* RTL Grid and Flex */
html[dir="rtl"] .features-grid,
html[dir="rtl"] .catalogue-grid,
html[dir="rtl"] .contact-info-grid {
    direction: rtl;
}

/* RTL Text Alignment */
html[dir="rtl"] .hero-subtitle {
    text-align: right;
}

@media (min-width: 768px) {
    html[dir="rtl"] .hero-subtitle {
        text-align: right;
        margin-left: auto;
        margin-right: 0;
    }
}

/* Custom Select Dropdown Styling */
select.input-field {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 10px;
    color: #f5f5f5 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

select.input-field:hover {
    border-color: rgba(59, 130, 246, 0.6) !important;
    background-color: rgba(15, 23, 42, 0.9) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

select.input-field:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    background-color: rgba(15, 23, 42, 0.95) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

select.input-field option {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #f5f5f5 !important;
    padding: 0.75rem;
}

select.input-field option:checked,
select.input-field option:focus {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.3)) !important;
    color: #60a5fa !important;
}

/* Custom Scrollbar for Select Dropdown */
select.input-field::-webkit-scrollbar {
    width: 8px;
}

select.input-field::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

select.input-field::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(6, 182, 212, 0.6));
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.5);
}

select.input-field::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(6, 182, 212, 0.8));
}

/* Firefox scrollbar */
select.input-field {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.6) rgba(15, 23, 42, 0.5);
}

/* RTL About Us Section */
.about-us-subtitle {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

html[dir="rtl"] .about-card {
    text-align: right;
}

html[dir="rtl"] .about-card-title,
html[dir="rtl"] .about-card-text {
    text-align: right;
}

html[dir="rtl"] .about-us-subtitle {
    text-align: center;
}

/* RTL Form Inputs */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
    text-align: right;
    direction: rtl;
}

/* RTL Icons in Buttons */
html[dir="rtl"] .btn-primary svg,
html[dir="rtl"] .btn-secondary svg {
    margin-left: 0.5rem;
    margin-right: 0;
    transform: scaleX(-1);
}

/* RTL Contact Info Cards */
html[dir="rtl"] .contact-info-card {
    text-align: right;
}

/* RTL Product Info */
html[dir="rtl"] .product-info {
    text-align: right;
}

/* RTL Hero Background Decoration */
html[dir="rtl"] .hero-bg-decoration {
    direction: ltr; /* Keep decorations in LTR for visual consistency */
}

/* RTL Mobile Menu */
html[dir="rtl"] .nav-menu li {
    text-align: right;
}

html[dir="rtl"] .nav-lang-item {
    text-align: center;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    background: rgba(15, 18, 25, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-secondary {
    background: transparent;
    color: #60a5fa;
    border-color: #3b82f6;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    border-color: #60a5fa;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Submit Button */
.contact-form button[type="submit"],
form button[type="submit"].btn-primary {
    width: auto;
    margin-top: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

.product-btn {
    width: 100%;
    padding: 0.65rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5);
}

.product-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .logo-container {
        order: 1;
        margin: 0 auto;
        position: relative;
        left: auto;
    }
    
    .nav-toggle {
        display: flex;
        order: 0;
        position: absolute;
        left: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 7, 10, 0.98);
        flex-direction: row;
        flex-wrap: wrap;
        padding: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: auto;
        text-align: center;
    }
    
    .nav-menu .nav-link {
        display: block;
        width: auto;
        padding: 0.75rem 1rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .nav-menu .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-menu .nav-link:hover::after,
    .nav-menu .nav-link.active::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .lang-switcher-desktop {
        display: none;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .section {
        padding: 4rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

