/* ==========================================================================
   Motive Media - Design System and Style Sheet (Premium Red Edition)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-dark: #070304;
    --bg-darker: #040102;
    --bg-glass: rgba(22, 10, 12, 0.65);
    --bg-glass-hover: rgba(32, 14, 17, 0.8);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-focus: rgba(153, 0, 10, 0.4);
    
    --primary: #dc2626; /* Bright Red */
    --primary-glow: rgba(220, 38, 38, 0.15);
    --secondary: #99000A; /* Deep Red */
    --secondary-glow: rgba(153, 0, 10, 0.15);
    --accent: #ef4444; /* Light Red */
    --success: #10b981;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #847477;
    
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --font-current: var(--font-en);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --direction: ltr;
}

/* Custom Premium Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar:horizontal {
    display: none !important;
}

::-webkit-scrollbar-track {
    background: #050508; /* Matches body background --bg-dark */
}

::-webkit-scrollbar-thumb {
    background: #331317; /* Dark reddish brown for scroll thumb */
    border-radius: 10px;
    border: 2px solid #050508;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626; /* Matches --primary red on hover */
}

/* Firefox scrollbar styles */
html {
    scrollbar-width: thin;
    scrollbar-color: #331317 #050508;
    direction: ltr !important; /* Force scrollbar to the right side always */
    overflow-x: hidden !important; /* Clip horizontal overflow globally to prevent bottom scrollbar */
}

/* RTL overrides when body.rtl-layout is set */
html {
    width: 100%;
    overflow-x: hidden !important;
}

body.rtl-layout {
    --font-current: var(--font-ar);
    --direction: rtl;
}

/* Bilingual visibility toggles */
html[lang="en"] .lang-ar-only {
    display: none !important;
}
html[lang="ar"] .lang-en-only {
    display: none !important;
}

/* Base Styles */
body {
    background-color: var(--bg-dark);
    font-family: var(--font-current);
    color: var(--text-primary);
    line-height: 1.6;
    direction: ltr !important; /* Force scrollbar to the right side always */
    text-align: left;
    overflow-x: hidden !important; /* Clip horizontal overflow globally to prevent bottom scrollbar */
    overflow-y: visible !important;
    width: 100%;
}

/* Site wrapper */
.site,
#page {
    width: 100%;
    position: relative;
    overflow: visible !important; /* Prevent calculated vertical scrollbar on the left in RTL */
}

body.rtl-layout {
    text-align: right;
}

/* RTL layout wrapper */
body.rtl-layout #page {
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background animated glowy blobs */
.blob-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.blob-bg-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: blob-float 15s infinite alternate;
}

.blob-bg-2 {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 600px;
    left: -200px;
    animation: blob-float 20s infinite alternate-reverse;
}

.blob-bg-3 {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    right: 20%;
    animation: blob-float 18s infinite alternate;
}

@keyframes blob-float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(40px, -60px, 0) scale(1.1); }
    100% { transform: translate3d(-20px, 30px, 0) scale(0.95); }
}

/* Typography Utility */
.gradient-text-1 {
    color: var(--accent);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

.gradient-text-2 {
    color: var(--primary);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* Glassmorphism card helper */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
    background: var(--accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    font-weight: bold;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* FLOATING HEADER & NAVBAR */
.site-header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 6, 8, 0.65);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
    top: 0.75rem; /* Maintain floating appearance on scroll */
}

.site-header.scrolled .header-container {
    border-radius: 50px;
    background: rgba(7, 3, 4, 0.85);
    border-color: rgba(220, 38, 38, 0.25);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.08);
    max-width: 1340px;
    padding: 0.65rem 1.5rem; /* tighter padding when scrolled — more room for nav */
}

.logo-link:hover .logo-text {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Split-layer Logo Layout (renders red icon via .logo-icon-layer, and text via .logo-text-layer) */
.logo-link,
.mobile-logo-link,
.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 0.08em; /* Exact relative gap between icon and text */
    position: relative;
    flex-direction: row !important;
    direction: ltr !important;
}

.logo-image {
    display: block;
    object-fit: cover;
}

.logo-icon-layer {
    height: 100%;
    aspect-ratio: 0.49 / 1; /* Exact crop aspect ratio for the red MM icon */
    object-position: left center;
}

.logo-text-layer {
    height: 100%;
    aspect-ratio: 1.28 / 1; /* Exact crop aspect ratio for the Motive Media text */
    object-position: right center;
}

.logo-dot {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    animation: logoPulse 2s infinite alternate;
}

@keyframes logoPulse {
    from { opacity: 0.8; text-shadow: 0 0 2px var(--primary); }
    to { opacity: 1; text-shadow: 0 0 10px var(--primary), 0 0 20px var(--secondary); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;          /* tighter gap so Arabic items fit in one row */
    flex-wrap: nowrap;     /* never wrap to second line */
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;   /* reduced padding so Arabic text doesn't wrap */
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;       /* force single line — critical for Arabic */
}

.nav-link:hover {
    color: var(--secondary);
    background: rgba(220, 38, 38, 0.06);
}

.nav-link.active {
    color: #fff;
    background: rgba(220, 38, 38, 0.15);
    box-shadow: inset 0 0 10px rgba(220, 38, 38, 0.1);
}

/* Accent dot below active link */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-ar);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-lang i {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Call to Action Pulsating Glow */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.btn-cta {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    animation: ctaPulse 2s infinite;
}

.btn-cta:hover {
    animation: none; /* Pause pulsing on hover */
    background: var(--accent);
    box-shadow: 0 5px 18px rgba(220, 38, 38, 0.35);
    transform: translateY(-2px);
}

/* Mobile Toggler */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Glass Dropdown menu */
.mobile-nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 2rem;
    right: 2rem;
    background: rgba(15, 6, 8, 0.95);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transform: translateY(-15px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex !important; /* Managed by opacity/pointer-events */
}

.mobile-nav-menu.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1.25rem;
}

/* HERO SLIDESHOW & 3D CANVAS LAYOUTS */
.hero-slides-wrapper {
    position: relative;
    width: 100%;
}

.hero-slide {
    display: none;
    width: 100%;
}

.hero-slide.active {
    display: block;
}

/* 3D Container Styling */
.hero-3d-container {
    width: 100%;
    max-width: 450px;
    height: 400px;
    display: none; /* Shown only when WebGL initializes */
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(32, 14, 17, 0.3) 0%, rgba(5, 2, 3, 0.85) 100%);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.hero-3d-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
}

.hero-3d-container canvas:active {
    cursor: grabbing;
}

/* Switch from card to WebGL canvas smoothly */
.hero-visual.webgl-active .hero-interactive-card {
    display: none !important;
}

.hero-visual.webgl-active .hero-3d-container {
    display: block !important;
}

.mobile-nav-menu.active {
    display: block;
    animation: slide-down-fade 0.3s forwards;
}

.mobile-nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 10px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* HERO SECTION */
.hero-section {
    padding: 11rem 0 6rem 0;
    position: relative;
    overflow-x: hidden; /* prevent horizontal scroll from blobs, keep vertical scroll */
}

.hero-container {
    max-width: 1200px;
    width: 100%;           /* always fill available width */
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    box-sizing: border-box; /* padding included in width */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    background: rgba(244, 63, 94, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

body.rtl-layout .hero-title {
    letter-spacing: 0;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Hero visual / interactive window */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 0;          /* allow grid item to shrink below content size */
    overflow: hidden;      /* prevent visual card from escaping on small screens */
}

.hero-card-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 60%);
    top: -10%;
    left: -10%;
    z-index: -1;
}

.hero-interactive-card {
    width: 100%;
    max-width: 450px;
    background: rgba(22, 10, 12, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-interactive-card .card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.hero-interactive-card .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

body.rtl-layout .hero-interactive-card .dot {
    margin-right: 0;
    margin-left: 6px;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.card-title-text {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 10px;
}

body.rtl-layout .card-title-text {
    margin-left: 0;
    margin-right: 10px;
}

.hero-interactive-card .card-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-interactive-card pre {
    white-space: pre-wrap;
    word-break: break-all;
}

.card-body .key { color: #f43f5e; }
.card-body .val { color: #34d399; }

/* STATS SECTION */
.stats-section {
    padding: 4rem 0;
    background: rgba(4, 1, 2, 0.4);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: inline-block;
    background: linear-gradient(135deg, #fff 30%, #fca5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-plus {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* SERVICES SECTION */
.services-section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(220, 38, 38, 0.08), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.25);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✦';
    color: var(--secondary);
}

/* CALCULATOR SECTION */
.calculator-section {
    padding: 8rem 0;
    background: rgba(4, 1, 2, 0.3);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.calculator-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 2rem;
}

.calculator-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.calc-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.step-indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.step-indicator.completed {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.step-line {
    flex-grow: 1;
    max-width: 80px;
    height: 2px;
    background: var(--border-glass);
    margin: 0 10px;
}

.calc-step {
    display: none;
}

.calc-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.calc-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* Service Selector Grid (Step 1) */
.service-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-option-label {
    cursor: pointer;
}

.service-option-label input[type="radio"] {
    display: none;
}

.service-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.service-option-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.15);
}

.service-option-label input[type="radio"]:checked + .service-option-card {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary);
    box-shadow: 0 5px 25px rgba(220, 38, 38, 0.15);
}

.option-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.service-option-card h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* Dynamic Options Panel (Step 2) */
.dynamic-options-panel {
    display: none;
}

.dynamic-options-panel.active {
    display: block;
}

.option-row {
    margin-bottom: 2.2rem;
}

.option-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.option-label-title {
    font-weight: 600;
    font-size: 1rem;
}

.option-value-display {
    font-weight: 700;
    color: var(--secondary);
    background: rgba(244, 63, 94, 0.1);
    padding: 0.2rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Styling range slider */
.calc-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    transition: transform 0.1s;
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Switch styling */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.toggle-info-wrapper {
    text-align: left;
}

body.rtl-layout .toggle-info-wrapper,
[dir="rtl"] .toggle-info-wrapper {
    text-align: right;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    border: 1.5px solid #0f172a;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2.5px;
    bottom: 2.5px;
    background-color: white;
    border: 1.5px solid #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Checkbox Options Grid */
.checkbox-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.checkbox-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-option input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Radio Options Column */
.radio-options-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.radio-option input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Step 3 Results */
.calc-result-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.result-number-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.result-range {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f87171 0%, #f43f5e 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.contact-details-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.calc-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    outline: none;
    text-align: center;
    transition: var(--transition-fast);
}

.calc-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.15);
}

/* Controls */
.calc-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.btn-calc-control {
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-calc-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* PORTFOLIO / MOCKUP SHOWCASE */
.portfolio-section {
    padding: 8rem 0;
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.portfolio-visual-container {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 1.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

body.rtl-layout .mock-dot {
    margin-right: 0;
    margin-left: 5px;
}

.mock-dot.red { background-color: rgba(255, 95, 86, 0.5); }
.mock-dot.yellow { background-color: rgba(255, 189, 46, 0.5); }
.mock-dot.green { background-color: rgba(39, 201, 63, 0.5); }

.mockup-img-placeholder {
    height: 200px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    transition: var(--transition-smooth);
}

.mock-site-1 {
    background: linear-gradient(135deg, #3f0910 0%, #1c0507 100%);
    position: relative;
}

.mock-site-1::after {
    content: '$';
    position: absolute;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mock-site-2 {
    background: linear-gradient(135deg, #1e0507 0%, #2e080d 100%);
    position: relative;
}

.mock-site-2::after {
    content: '{ }';
    position: absolute;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mock-site-3 {
    background: linear-gradient(135deg, #2e080d 0%, #3f0910 100%);
    position: relative;
}

.mock-site-3::after {
    content: '★';
    position: absolute;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.portfolio-item:hover .mockup-img-placeholder {
    transform: scale(1.03);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.portfolio-item-title {
    font-size: 1.2rem;
    font-weight: 700;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    padding: 8rem 0;
    position: relative;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-quote {
    font-size: 1.6rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 3rem;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots .dot.active {
    background-color: var(--primary);
    width: 25px;
    border-radius: 5px;
}

/* CONTACT SECTION */
.contact-section {
    padding: 8rem 0 10rem 0;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-panel-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.contact-panel-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

body.rtl-layout .contact-item:hover {
    transform: translateX(-5px);
}

.contact-item .icon {
    font-size: 1.8rem;
}

.contact-item .details {
    display: flex;
    flex-direction: column;
}

.contact-item .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Floating labels Form */
.contact-form-panel {
    display: flex;
    align-items: center;
}

.glass-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-glass);
    padding: 0.75rem 0;
    color: #fff;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

body.rtl-layout .form-group label {
    left: auto;
    right: 0;
}

/* Label animations when active/focus */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -1.25rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--primary);
}

.btn-submit-form {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-submit-form:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
}

/* SITE FOOTER */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    padding: 5rem 0 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 360px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: #fff;
}

.footer-links-list, .footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
}

.footer-links-list a {
    color: var(--text-secondary);
}

.footer-links-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

body.rtl-layout .footer-links-list a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.contact-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 2rem 0 0.75rem 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-container p {
    margin: 0 !important;
}

.footer-bottom .logo-text {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-float {
    animation: float 6s infinite ease-in-out;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slide-down-fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal using simple classes added by JS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Page Spacing Helper for sub-pages */
.page-template-default .site-main, 
.page-template-template-services .site-main,
.page-template-template-estimator .site-main,
.page-template-template-contact .site-main,
.page-services-php-main,
.page-estimator-php-main,
.page-contact-php-main {
    padding: 10rem 0 6rem 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    /* ── VISUAL CARD: keep it centered and contained on tablet ── */
    .hero-visual {
        justify-content: center;
        width: 100%;    /* fill grid column */
        overflow: hidden;
    }

    .hero-interactive-card {
        max-width: min(420px, 100%);
        width: 100%;
    }

    .hero-3d-container {
        max-width: min(420px, 100%);
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    /* NOTE: Desktop header (.site-header) is fully hidden via .desktop-header-only display:none
       at 900px breakpoint, so no desktop header overrides are needed here. */

    /* ── HERO: proper padding and font on small screens ── */
    .hero-section {
        padding: 8rem 0 4rem 0;
    }

    .hero-container {
        padding: 0 1.25rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    body.rtl-layout .hero-title {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        max-width: 100%;   /* override the 520px desktop max-width */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    /* ── VISUAL CARD: fit within screen, never overflow ── */
    .hero-visual {
        overflow: hidden;
        width: 100%;
    }

    .hero-3d-container {
        max-width: min(290px, 100%);
        height: 240px;
        margin: 0 auto;
    }

    .hero-interactive-card {
        max-width: min(290px, 100%);
        width: 100%;
        margin: 0 auto;
    }

    /* ── Prevent pre/code inside card from overflowing ── */
    .hero-interactive-card pre {
        white-space: pre-wrap;
        word-break: break-all;
        overflow-x: hidden;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .service-selector-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-options-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   INTERACTIVE SOCIAL LAMP WIDGET STYLING
   ========================================================================== */
.social-lamp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.lamp-body-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
}

.lamp-head {
    position: relative;
    width: 60px;
    height: 60px;
    transition: filter 0.3s ease;
}

.lamp-svg {
    width: 100%;
    height: 100%;
}

/* Arrow inside circle style transitions */
.arrow-circle {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.arrow-shape {
    transition: stroke 0.3s ease;
}

/* Active State for arrow (turns red when ON, no background glow) */
.social-lamp-widget.lamp-on .arrow-circle {
    fill: #99000A !important;
    stroke: #ffffff !important;
    filter: drop-shadow(0 2px 8px rgba(153, 0, 10, 0.4));
}

.social-lamp-widget.lamp-on .arrow-shape {
    stroke: #ffffff !important;
}

/* Hover effect on circular button */
.lamp-body-container:hover .arrow-circle {
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px rgba(153, 0, 10, 0.5));
}

.lamp-body-container:hover .arrow-shape {
    stroke: #ffffff;
}

/* Social Links container - positioned above the circle button */
.social-links-container {
    position: absolute;
    bottom: 80px; /* Above the circular button */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    z-index: 2;
}

.social-lamp-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(30, 30, 36, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px) scale(0);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-lamp-link:hover {
    color: #ffffff;
    transform: scale(1.15) !important;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Specific Social Brand Colors on hover */
.social-lamp-link.facebook:hover { background: #1877f2; }
.social-lamp-link.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aec 90%); }
.social-lamp-link.linkedin:hover { background: #0a66c2; }
.social-lamp-link.whatsapp:hover { background: #25d366; }

/* Show links when Lamp is ON */
.social-lamp-widget.lamp-on .social-links-container {
    pointer-events: auto;
}

.social-lamp-widget.lamp-on .social-lamp-link {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered fan-out animation */
.social-lamp-widget.lamp-on .social-lamp-link:nth-child(1) { transition-delay: 0.05s; }
.social-lamp-widget.lamp-on .social-lamp-link:nth-child(2) { transition-delay: 0.1s; }
.social-lamp-widget.lamp-on .social-lamp-link:nth-child(3) { transition-delay: 0.15s; }
.social-lamp-widget.lamp-on .social-lamp-link:nth-child(4) { transition-delay: 0.2s; }

/* ==========================================================================
   CASE STUDY PAGE - DARK PREMIUM THEME
   ========================================================================== */

/* Reset scoped to this page only */
.cs * { box-sizing: border-box; }

/* Page wrapper */
.cs {
    min-height: 100vh;
    padding-bottom: 80px;
    position: relative;
    overflow-x: hidden;
}
@media (max-width: 768px) {
    .cs { padding-bottom: 50px; }
}

/* Inner container */
.cs__wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .cs__wrap { padding: 0 16px; }
}

/* HERO */
.cs__hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 380px;
    max-height: 680px;
    overflow: hidden;
    /* push down below fixed header */
    margin-top: 80px;
}
@media (max-width: 768px) {
    .cs__hero {
        height: 52vw;
        min-height: 240px;
        max-height: 340px;
        margin-top: 64px;
    }
}
.cs__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.cs__hero:hover .cs__hero-img { transform: scale(1); }
.cs__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7,3,4,0.2) 0%,
        rgba(7,3,4,0.5) 60%,
        rgba(7,3,4,0.95) 100%
    );
}
.cs__hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 36px 32px 44px;
}
@media (max-width: 768px) {
    .cs__hero-content { padding: 20px 16px 28px; }
}
.cs__hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(153,0,10,0.18);
    border: 1px solid rgba(153,0,10,0.45);
    color: #ff4d5a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}
.cs__hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: #ff4d5a;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:.4; transform:scale(.7); }
}
.cs__hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.2;
    margin: 0 0 14px;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.cs__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(248,250,252,.5);
}
.cs__breadcrumb a {
    color: rgba(248,250,252,.5);
    text-decoration: none;
    transition: color .2s;
}
.cs__breadcrumb a:hover { color: #ff4d5a; }
.cs__breadcrumb .sep { color: rgba(255,255,255,.2); }

/* BODY GRID */
.cs__body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: -10px;
    position: relative;
    z-index: 10;
    align-items: start;
    padding: 0 24px;
}
@media (max-width: 900px) {
    .cs__body {
        grid-template-columns: 1fr;
        margin-top: 15px;
        padding: 0 16px;
        gap: 16px;
    }
    .cs__sidebar { position: static; }
}

/* GLASS CARD */
.cs__card {
    background: rgba(22,10,12,0.72);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    transition: border-color .3s;
}
@media (max-width: 768px) {
    .cs__card { padding: 20px 16px; border-radius: 16px; margin-bottom: 14px; }
}
.cs__card:hover {
    border-color: rgba(153,0,10,0.3);
}
.cs__card:last-child { margin-bottom: 0; }

/* subtle red shimmer on top edge */
.cs__card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153,0,10,.6), transparent);
    opacity: 0;
    transition: opacity .4s;
}
.cs__card:hover::before { opacity: 1; }

/* SECTION HEADING */
.cs__sec-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 28px;
    letter-spacing: .01em;
}
.cs__sec-title i {
    width: 36px;
    height: 36px;
    background: rgba(153,0,10,.18);
    border: 1px solid rgba(153,0,10,.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d5a;
    font-size: 14px;
    flex-shrink: 0;
}

/* PROSE CONTENT */
.cs__prose {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.9;
}
.cs__prose p { margin: 0 0 1.3em; }
.cs__prose p:last-child { margin-bottom: 0; }
.cs__prose ul, .cs__prose ol {
    margin: 0 0 1.3em 1.5em;
    padding: 0;
    list-style: disc;
}
.cs__prose li { margin-bottom: .55em; list-style-type: disc; }
.cs__prose h3, .cs__prose h4 {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 1rem;
    margin: 1.5em 0 .6em;
}
.cs__prose b, .cs__prose strong { color: #f1f5f9; font-weight: 700; }
.cs__prose i { color: #64748b; }
.cs__prose hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 2em 0;
}

/* COLOR SWATCHES */
.cs__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}
.cs__swatch {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,.1);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
    display: inline-block;
    flex-shrink: 0;
}
.cs__swatch:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.cs__swatch-tip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(153, 0, 10, 0.95);
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 3px 2px;
    opacity: 0;
    transition: opacity .2s;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: block;
}
.cs__swatch:hover .cs__swatch-tip { opacity: 1; }

/* GALLERY */
.cs__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 600px) { .cs__gallery { grid-template-columns: 1fr 1fr; } }
.cs__gal-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    border: 1px solid rgba(255,255,255,.06);
}
.cs__gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.cs__gal-item:hover img { transform: scale(1.1); }
.cs__gal-item::after {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(153,0,10,0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 0;
    transition: all .3s;
}
.cs__gal-item:hover::after {
    background: rgba(153,0,10,.45);
    opacity: 1;
}

/* SIDEBAR */
.cs__sidebar {
    position: sticky;
    top: 90px;
}
@media (max-width: 900px) {
    .cs__sidebar { position: static; top: auto; }
}

/* INFO LIST */
.cs__info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cs__info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    transition: background .2s, border-color .2s;
}
.cs__info-row:hover {
    background: rgba(153,0,10,.08);
    border-color: rgba(153,0,10,.2);
}
.cs__info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(153,0,10,.15);
    border: 1px solid rgba(153,0,10,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d5a;
    font-size: 15px;
    flex-shrink: 0;
}
.cs__info-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #475569;
    display: block;
    margin-bottom: 2px;
}
.cs__info-val {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    display: block;
}
.cs__info-val.red { color: #ff4d5a; }

/* CTA CARD */
.cs__cta-head { margin-bottom: 22px; }
.cs__cta-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 4px;
}
.cs__cta-sub {
    font-size: 13px;
    color: #475569;
    margin: 0;
}

/* BUTTONS */
.cs__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, filter .2s;
    color: #fff;
    border: none;
    cursor: pointer;
}
.cs__btn:hover { transform: translateY(-3px); color: #fff; }

.cs__btn--wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 24px rgba(37,211,102,.25);
}
.cs__btn--wa:hover {
    box-shadow: 0 8px 32px rgba(37,211,102,.4);
    filter: brightness(1.1);
}
.cs__btn--red {
    background: linear-gradient(135deg, #99000A, #d4001a);
    box-shadow: 0 4px 24px rgba(153,0,10,.3);
    margin-top: 12px;
}
.cs__btn--red:hover {
    box-shadow: 0 8px 32px rgba(153,0,10,.5);
    filter: brightness(1.1);
}

.cs__btn i { font-size: 1.2rem; }

.cs__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}
.cs__divider::before, .cs__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.08);
}
.cs__divider span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #334155;
}

/* SIMILAR PROJECTS */
.cs__similar {
    margin-top: 48px;
    padding-top: 40px;
    padding: 0 24px;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 40px;
    margin-top: 48px;
}
@media (max-width: 768px) {
    .cs__similar { padding: 0 16px; margin-top: 32px; padding-top: 32px; }
}
.cs__similar-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.cs__similar-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
}
.cs__similar-link {
    font-size: 13px;
    font-weight: 600;
    color: #ff4d5a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}
.cs__similar-link:hover { gap: 10px; color: #ff4d5a; }

.cs__proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .cs__proj-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 560px) { .cs__proj-grid { grid-template-columns: 1fr; gap: 12px; } }

.cs__proj-card {
    display: block;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(22,10,12,.7);
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .3s, border-color .3s, box-shadow .3s;
    position: relative;
}
.cs__proj-card:hover {
    transform: translateY(-8px);
    border-color: rgba(153,0,10,.4);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.cs__proj-thumb {
    height: 190px;
    overflow: hidden;
    position: relative;
}
.cs__proj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s;
}
.cs__proj-card:hover .cs__proj-thumb img { transform: scale(1.07); }
.cs__proj-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,3,4,.9) 0%, transparent 60%);
}
.cs__proj-body {
    padding: 18px 20px 22px;
}
.cs__proj-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ff4d5a;
    display: block;
    margin-bottom: 6px;
}
.cs__proj-name {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.45;
    transition: color .2s;
}
.cs__proj-card:hover .cs__proj-name { color: #ff4d5a; }

/* SCROLL FADE-IN */
.cs-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.cs-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT & HIGHLIGHTS RESPONSIVE GRID */
.about-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
    margin-bottom: 6rem !important;
}
.about-highlights-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
    margin-top: 4rem !important;
}
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .about-highlights-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ==========================================================================
   MOBILE-ONLY HEADER & OVERLAY PANEL STYLING
   ========================================================================== */

/* Default: hide mobile-specific elements on desktop */
.mobile-header-only {
    display: none !important;
}

/* The overlay panel: hidden by default via transform, NOT display:none,
   so the media query class rules work without specificity conflicts */
.mobile-menu-overlay-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

@media (max-width: 900px) {
    /* ── Hide Desktop Header ── */
    .desktop-header-only {
        display: none !important;
    }

    /* ── Mobile Floating Header Bar ── */
    .mobile-header-only {
        display: block !important;
        position: fixed;
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        transform: none;
        height: 60px;
        background: rgba(10, 5, 6, 0.75);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        z-index: 9999;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        box-sizing: border-box;
    }

    .mobile-header-only.scrolled {
        top: 8px;
        left: 8px;
        right: 8px;
        background: rgba(7, 2, 3, 0.92);
        border-color: rgba(220, 38, 38, 0.22);
        box-shadow: 0 10px 36px rgba(153, 0, 10, 0.15);
    }

    /* ── Mobile Header Inner Layout ── */
    .mobile-header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 16px;
        box-sizing: border-box;
        width: 100%;
    }

    .mobile-logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .mobile-logo-img {
        height: 28px;
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.15));
    }

    /* ── Mobile Header Actions ── */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
    }

    .mobile-btn-theme,
    .mobile-btn-lang,
    .mobile-menu-toggle-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        font-size: 14px;
        transition: all 0.25s ease;
    }

    .mobile-btn-theme:hover,
    .mobile-btn-lang:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.25);
    }

    /* Hamburger specific (Red Accent) */
    .mobile-menu-toggle-btn {
        background: #C41017;
        border: none;
        box-shadow: 0 4px 12px rgba(196, 16, 23, 0.3);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    .mobile-menu-toggle-btn:hover {
        background: #E31B23;
        transform: scale(1.05);
    }

    .mobile-menu-toggle-btn span {
        display: block;
        width: 16px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    /* Hamburger Active State */
    .mobile-menu-toggle-btn.is-active span.bar-1 {
        transform: translateY(6px) rotate(45deg);
    }
    .mobile-menu-toggle-btn.is-active span.bar-2 {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-menu-toggle-btn.is-active span.bar-3 {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* ── Full-Screen Mobile Navigation Overlay ── */
    .mobile-menu-overlay-panel {
        display: flex;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(6, 2, 3, 0.97);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        z-index: 10000;
        transform: translateY(-100%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-menu-overlay-panel.is-open {
        transform: translateY(0);
    }

    /* Decorative red gradient accent at top of overlay */
    .mobile-menu-overlay-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #99000A 30%, #E31B23 50%, #99000A 70%, transparent);
        opacity: 0.8;
    }

    .mobile-menu-overlay-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 72px;
        padding: 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-shrink: 0;
    }

    .mobile-menu-close-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.15rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-close-btn:hover {
        background: rgba(220, 38, 38, 0.15);
        border-color: rgba(220, 38, 38, 0.3);
        color: #fff;
    }

    .mobile-menu-overlay-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 20px 3rem;
        overflow-y: auto;
        gap: 2rem;
    }

    .mobile-overlay-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .mobile-overlay-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        animation: mobileNavSlideIn 0.4s ease forwards;
        opacity: 0;
        transform: translateY(12px);
    }

    /* Staggered entrance for nav items */
    .mobile-overlay-nav li:nth-child(1) { animation-delay: 0.08s; }
    .mobile-overlay-nav li:nth-child(2) { animation-delay: 0.13s; }
    .mobile-overlay-nav li:nth-child(3) { animation-delay: 0.18s; }
    .mobile-overlay-nav li:nth-child(4) { animation-delay: 0.23s; }
    .mobile-overlay-nav li:nth-child(5) { animation-delay: 0.28s; }
    .mobile-overlay-nav li:nth-child(6) { animation-delay: 0.33s; }
    .mobile-overlay-nav li:nth-child(7) { animation-delay: 0.38s; }

    @keyframes mobileNavSlideIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Only animate when overlay is open */
    .mobile-menu-overlay-panel:not(.is-open) .mobile-overlay-nav li {
        animation: none;
        opacity: 0;
    }

    .mobile-overlay-nav a {
        color: rgba(255, 255, 255, 0.65);
        font-size: 1.25rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 4px;
    }

    .mobile-overlay-nav a::after {
        content: '\2192';
        font-size: 1rem;
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        color: #E31B23;
    }

    .mobile-overlay-nav a:hover {
        color: #fff;
        padding-inline-start: 8px;
    }

    .mobile-overlay-nav a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* RTL adjustments for mobile menu overlay navigation links */
    body.rtl-layout .mobile-overlay-nav a::after {
        content: '\2190';
        transform: translateX(8px);
    }
    body.rtl-layout .mobile-overlay-nav a:hover::after {
        transform: translateX(0);
    }

    /* ── CTA Button in overlay ── */
    .mobile-overlay-cta {
        display: flex;
        justify-content: center;
    }

    .mobile-btn-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 320px;
        background: linear-gradient(135deg, #99000A 0%, #C41017 50%, #E31B23 100%);
        color: #fff !important;
        padding: 0.9rem 2rem;
        border-radius: 30px;
        font-weight: 700;
        text-align: center;
        font-size: 1rem;
        text-decoration: none;
        box-shadow: 0 8px 28px rgba(153, 0, 10, 0.35);
        transition: all 0.3s ease;
    }

    .mobile-btn-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(153, 0, 10, 0.5);
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   THEME TOGGLES & LIGHT THEME STYLES
   ────────────────────────────────────────────────────────────────────────── */
.btn-theme,
.mobile-btn-theme {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-theme:hover,
.mobile-btn-theme:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: rgba(220, 38, 38, 0.3);
}

.btn-theme {
    margin-inline-end: 0.75rem;
}

.mobile-btn-theme {
    margin-inline-end: 0.5rem;
}

/* Light Theme overrides */
body.light-theme {
    --bg-dark: #fafafa;
    --bg-darker: #f4f4f5;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(15, 6, 8, 0.08);
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
}

body.light-theme .glass-card,
body.light-theme .header-container,
body.light-theme .mobile-header-only,
body.light-theme .mobile-menu-overlay-panel {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(15, 6, 8, 0.08) !important;
    color: #18181b !important;
}

body.light-theme .site-header.scrolled .header-container {
    background: rgba(255, 255, 255, 0.96) !important;
}

body.light-theme .nav-link {
    color: #3f3f46;
}

body.light-theme .nav-link:hover {
    background: rgba(15, 6, 8, 0.05);
}

body.light-theme .btn-secondary {
    background: rgba(15, 6, 8, 0.05);
    color: #18181b;
}

body.light-theme .btn-secondary:hover {
    background: rgba(15, 6, 8, 0.1);
}

body.light-theme .card-title-text,
body.light-theme .card-body pre,
body.light-theme .card-body span.key {
    color: #3b82f6 !important;
}

body.light-theme .card-body span.val {
    color: #10b981 !important;
}

body.light-theme .hero-interactive-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

body.light-theme .hero-tagline {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.1);
    color: var(--primary) !important;
}

body.light-theme .hero-nav-dots span {
    background: rgba(0,0,0,0.2) !important;
}

body.light-theme .hero-nav-dots span.active {
    background: var(--primary) !important;
}

body.light-theme .hero-3d-container {
    background: #050203 !important;
    border: 1px solid #000000 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

body.light-theme .stats-section {
    background: #ffffff !important;
    border-color: rgba(15, 6, 8, 0.05) !important;
}

body.light-theme .stat-number,
body.light-theme .stat-plus {
    background: linear-gradient(135deg, #dc2626 30%, #991b1b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

body.light-theme .progress-track {
    background: rgba(15, 6, 8, 0.08) !important;
}



body.light-theme .slider-dots .dot {
    background-color: rgba(15, 6, 8, 0.2) !important;
}

body.light-theme .slider-dots .dot.active {
    background-color: var(--primary) !important;
}

/* Never apply any filter to the icon layer in light theme (keeps the red 'M' 100% pure) */
body.light-theme .logo-icon-layer {
    filter: none !important;
}

/* Invert and blacken only the text layer in light theme */
body.light-theme .logo-text-layer {
    filter: invert(1) brightness(0) !important;
}


/* Light Theme overrides for mobile overlay links & header text */
body.light-theme .mobile-overlay-nav a {
    color: #18181b !important;
}

body.light-theme .mobile-overlay-nav a:hover {
    color: var(--primary) !important;
}

body.light-theme .mobile-menu-overlay-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.75) !important;
}

body.light-theme .mobile-menu-close-btn {
    color: #18181b !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .mobile-menu-close-btn:hover {
    color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .nav-link.active {
    color: var(--primary) !important;
    background: rgba(220, 38, 38, 0.08) !important;
}

body.light-theme .btn-lang:hover {
    color: var(--primary) !important;
    background: rgba(15, 6, 8, 0.05) !important;
    border-color: var(--primary) !important;
}

body.light-theme .btn-theme:hover,
body.light-theme .mobile-btn-theme:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: rgba(15, 6, 8, 0.08) !important;
}

/* Light Theme overrides for Cost Estimator Plugin & Forms */
body.light-theme .motive-estimator-plugin-container {
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(15, 6, 8, 0.08);
    --text-secondary: #334155;
    --text-muted: #64748b;
    color: #0f172a !important;
}

body.light-theme .motive-estimator-plugin-container .calculator-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(15, 6, 8, 0.08) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .motive-estimator-plugin-container .calc-step-title {
    color: #0f172a !important;
}

body.light-theme .motive-estimator-plugin-container .step-indicator {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #64748b !important;
}

body.light-theme .motive-estimator-plugin-container .step-indicator.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

body.light-theme .motive-estimator-plugin-container .step-indicator.completed {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #fff !important;
}

body.light-theme .motive-estimator-plugin-container .step-line {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .motive-estimator-plugin-container .service-option-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .motive-estimator-plugin-container .service-option-card:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .motive-estimator-plugin-container .service-option-card h4 {
    color: #0f172a !important;
}

body.light-theme .motive-estimator-plugin-container .service-option-label input[type="radio"]:checked + .service-option-card {
    background: rgba(220, 38, 38, 0.08) !important;
    border-color: var(--primary) !important;
}

body.light-theme .motive-estimator-plugin-container .option-label-title {
    color: #0f172a !important;
}

body.light-theme .motive-estimator-plugin-container .option-value-display {
    color: var(--primary) !important;
    background: rgba(220, 38, 38, 0.08) !important;
}

body.light-theme .motive-estimator-plugin-container .checkbox-option,
body.light-theme .motive-estimator-plugin-container .radio-option {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

body.light-theme .motive-estimator-plugin-container .checkbox-option:hover,
body.light-theme .motive-estimator-plugin-container .radio-option:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .motive-estimator-plugin-container .calc-result-box {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

body.light-theme .motive-estimator-plugin-container .result-currency {
    color: #475569 !important;
}

body.light-theme .motive-estimator-plugin-container .calc-input,
body.light-theme .form-group input,
body.light-theme .form-group textarea {
    color: #0f172a !important;
    border-bottom-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .motive-estimator-plugin-container .calc-input {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .motive-estimator-plugin-container .calc-input:focus,
body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    border-color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

body.light-theme .motive-estimator-plugin-container .btn-calc-control {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .motive-estimator-plugin-container .btn-calc-control:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .motive-estimator-plugin-container .btn-calc-control.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
}

body.light-theme .contact-item {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .contact-item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .footer-title {
    color: #0f172a !important;
}

/* Light Theme overrides for Single Portfolio / Case Study pages */
body.light-theme .cs__card {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(15, 6, 8, 0.08) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .cs__card:hover {
    border-color: rgba(220, 38, 38, 0.15) !important;
}

body.light-theme .cs__sec-title {
    color: #0f172a !important;
}

body.light-theme .cs__prose {
    color: #334155 !important;
}

body.light-theme .cs__prose b,
body.light-theme .cs__prose strong {
    color: #0f172a !important;
}

body.light-theme .cs__prose i {
    color: #64748b !important;
}

body.light-theme .cs__info-label {
    color: #475569 !important;
}

body.light-theme .cs__info-val {
    color: #0f172a !important;
}

body.light-theme .cs__info-val.red {
    color: #ff4d5a !important;
}

body.light-theme .cs__cta-title {
    color: #0f172a !important;
}

body.light-theme .cs__cta-sub {
    color: #475569 !important;
}

body.light-theme .cs__divider::before,
body.light-theme .cs__divider::after {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .cs__divider span {
    color: #475569 !important;
}

body.light-theme .cs__similar-title {
    color: #0f172a !important;
}

body.light-theme .cs__proj-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(15, 6, 8, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .cs__proj-card:hover {
    border-color: rgba(220, 38, 38, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .cs__proj-name {
    color: #0f172a !important;
}

body.light-theme .cs__proj-card:hover .cs__proj-name {
    color: #ff4d5a !important;
}

body.light-theme .cs__breadcrumb,
body.light-theme .cs__breadcrumb a {
    color: rgba(15, 23, 42, 0.6) !important;
}

body.light-theme .cs__breadcrumb a:hover {
    color: #ff4d5a !important;
}

body.light-theme .cs__breadcrumb .sep {
    color: rgba(0, 0, 0, 0.15) !important;
}

/* Light Theme overrides for Portfolio Archive page elements */
body.light-theme .pf__hdr-title {
    color: #0f172a !important;
}

body.light-theme .pf__hdr-sub {
    color: #475569 !important;
}

body.light-theme .pf__stat-divider {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .pf__filter-btn {
    border-color: rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 0, 0, 0.02) !important;
    color: #475569 !important;
}

body.light-theme .pf__filter-btn:hover,
body.light-theme .pf__filter-btn.active {
    background: rgba(220, 38, 38, 0.08) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

body.light-theme .pf__item {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(15, 6, 8, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .pf__item:hover {
    border-color: rgba(220, 38, 38, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .pf__item-title {
    color: #0f172a !important;
}

body.light-theme .pf__item:hover .pf__item-title {
    color: var(--primary) !important;
}

body.light-theme .pf__item-year,
body.light-theme .pf__item-client {
    color: #64748b !important;
}

body.light-theme .pf__item-dot {
    background: #64748b !important;
}

body.light-theme .pf__cta {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(220, 38, 38, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .pf__cta-title {
    color: #0f172a !important;
}

body.light-theme .pf__cta-sub {
    color: #475569 !important;
}




/* ──────────────────────────────────────────────────────────────────────────
   FORCE NATIVE VERTICAL SCROLLING
   ────────────────────────────────────────────────────────────────────────── */
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}

body {
    overflow: visible !important;
    height: auto !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   FLOATING WHATSAPP BUTTON
   ────────────────────────────────────────────────────────────────────────── */
.whatsapp-float-btn {
    position: fixed;
    bottom: 2.25rem;
    left: 2rem;
    background-color: #25d366;
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
    z-index: 999999 !important;
    transition: all 0.3s ease;
}

.whatsapp-float-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        bottom: 20px !important;
        left: 20px !important;          /* safe distance from screen edge */
        width: 48px !important;
        height: 48px !important;
        font-size: 24px !important;
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4) !important;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   SCROLL TO TOP (LAMP WIDGET) MOBILE OPTIMIZATION
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Main widget position — right side, safe from edge */
    .social-lamp-widget {
        bottom: 20px !important;
        right: 20px !important;         /* safe distance from right edge */
        z-index: 9999 !important;
    }

    /* Standardized circle button size (matches WhatsApp button) */
    .lamp-head {
        width: 48px !important;
        height: 48px !important;
    }

    /* Smaller social link icons */
    .social-lamp-link {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    /* Social links container — prevent going off-screen top */
    .social-links-container {
        bottom: 62px !important;        /* just above the 48px button with margin */
        right: 0 !important;            /* align to parent, never overflow right */
        left: auto !important;
        align-items: flex-end !important; /* anchor to right edge */
        max-height: calc(100vh - 120px) !important; /* never exceed screen height */
        overflow-y: auto !important;
    }
}

/* Mobile Menu Overlay extra toggles styling */
.mobile-overlay-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.mobile-overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    max-width: 160px;
    height: 44px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.mobile-overlay-btn:hover,
.mobile-overlay-btn:active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .mobile-overlay-btn {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a !important;
}

body.light-theme .mobile-overlay-btn:hover,
body.light-theme .mobile-overlay-btn:active {
    background: rgba(0, 0, 0, 0.08);
    color: #000 !important;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Hide floating buttons when mobile menu overlay is active */
body.mobile-menu-active .whatsapp-float-btn,
body.mobile-menu-active .social-lamp-widget {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Responsive spacing & hide header toggles on small screen sizes */
@media (max-width: 480px) {
    .mobile-btn-theme,
    .mobile-btn-lang {
        display: none !important;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   MOBILE HEADER LIGHT THEME OVERRIDES (PREVENTS WHITE-ON-WHITE)
   ────────────────────────────────────────────────────────────────────────── */
body.light-theme .mobile-header-only {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .mobile-header-only.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .mobile-logo-img {
    filter: invert(1) hue-rotate(180deg) brightness(0.8) !important;
}

body.light-theme .mobile-btn-theme,
body.light-theme .mobile-btn-lang {
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .mobile-btn-theme:hover,
body.light-theme .mobile-btn-lang:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.08) !important;
}
