/* ==========================================================================
   Nile Shield - CSS Stylesheet
   Premium Dark Theme & Responsive Layout System (RTL / LTR)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-primary: #050507;
    --bg-secondary: #0d0d11;
    --bg-tertiary: #131317;
    --bg-glass: rgba(13, 13, 17, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);

    --accent-red: #ff3e3e;
    --accent-red-hover: #e02f2f;
    --accent-orange: #ff3e3e;
    --accent-gradient: linear-gradient(135deg, #ff3e3e 0%, #a80000 100%);
    --accent-glow: 0 8px 30px rgba(255, 62, 62, 0.2);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-ar: 'Cairo', Tahoma, Arial, sans-serif;
    --font-en: 'Outfit', system-ui, sans-serif;
    --font-site: var(--font-ar);

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    --container-max-width: 1200px;
    --header-height: 116px;
    --header-logo-height: calc(var(--header-height) - 4px);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-family: var(--font-site);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: var(--font-site);
}

/* Arabic = Cairo (lang wins over dir so LTR phone fields never flip the site font) */
html[lang^="ar"],
html.site-lang-ar,
html[dir="rtl"]:not([lang^="en"]):not(.site-lang-en) {
    --font-site: var(--font-ar);
    font-family: var(--font-ar) !important;
}

html[lang^="ar"] body,
html.site-lang-ar body,
html[dir="rtl"]:not([lang^="en"]):not(.site-lang-en) body {
    font-family: var(--font-ar) !important;
}

/* English = Outfit only when language is explicitly English */
html[lang^="en"],
html.site-lang-en {
    --font-site: var(--font-en);
    font-family: var(--font-en) !important;
}

html[lang^="en"] body,
html.site-lang-en body {
    font-family: var(--font-en) !important;
}

button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p, a, span, li, label, td, th {
    font-family: inherit;
}

/* Selection and Scrollbar */
::selection {
    background-color: var(--accent-red);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Typography & Global Layout */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Utility Elements */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: rgba(255, 62, 62, 0.1);
    border: 1px solid rgba(255, 62, 62, 0.25);
    border-radius: 50px;
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.highlight-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.inner-banner {
    font-family: inherit;
}

.inner-banner .inner-banner-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.inner-banner .inner-banner-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.inner-banner .breadcrumb-nav {
    margin-top: 18px;
}

.inner-banner .breadcrumb-nav ol {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    justify-content: center;
}

.inner-banner .breadcrumb-nav a {
    color: inherit;
    text-decoration: none;
}

.inner-banner .breadcrumb-nav a:hover {
    color: var(--accent-red);
}

.inner-banner .breadcrumb-nav .current {
    color: var(--text-primary);
}

.section-subtitle {
    display: block;
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

html[dir="rtl"] .section-title {
    font-weight: 800;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 600px;
}

.section-desc-center {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 62, 62, 0.35);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: #000000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.main-header.scrolled {
    --header-height: 92px;
    background-color: rgba(5, 5, 7, 0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    padding: 0 10px;
    border-radius: 8px;
    height: 100%;
    max-height: var(--header-height);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.logo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 62, 62, 0.2);
}

.logo-img {
    height: auto;
    width: auto;
    max-width: 100%;
}

.logo-link .logo-img {
    height: var(--header-logo-height);
    max-height: var(--header-logo-height);
    width: auto;
    max-width: min(320px, 48vw);
    object-fit: contain;
}

.main-header.scrolled .logo-link {
    padding: 0 12px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #de2d2c;
}

.main-header.scrolled .nav-link {
    color: var(--text-secondary);
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: #de2d2c;
    border-color: #de2d2c;
    background-color: rgba(222, 45, 44, 0.05);
}

.main-header.scrolled .lang-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.main-header.scrolled .lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-red);
    background-color: rgba(255, 62, 62, 0.05);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--accent-glow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 62, 62, 0.3);
}

.header-cta {
    padding: 10px 20px;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.main-header.scrolled .mobile-menu-toggle {
    color: var(--text-primary);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: var(--bg-secondary);
    z-index: 1100;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-inline-end: 1px solid var(--border-color);
}

html[dir="rtl"] .mobile-nav-drawer {
    right: 0;
    transform: translateX(100%);
}

html[dir="ltr"] .mobile-nav-drawer {
    left: 0;
    transform: translateX(-100%);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 16px 20px;
    margin: -30px -24px 20px -24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.close-drawer {
    background: none;
    border: none;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mob-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    padding: 8px 0;
}

.mob-link:hover {
    color: var(--accent-red);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section (Interactive Photo Slider) */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero-slider-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 5, 7, 0.7), rgba(5, 5, 7, 0.85));
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

html[dir="rtl"] .hero-title {
    font-weight: 800;
    line-height: 70px;
}

.hero-desc {
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 40px;
    max-width: 580px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Staggered text fade-in animations for active slide */
.hero-slide .hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-content > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.active .badge {
    transition-delay: 0.15s;
}

.hero-slide.active .hero-title {
    transition-delay: 0.3s;
}

.hero-slide.active .hero-desc {
    transition-delay: 0.45s;
}

.hero-slide.active .hero-buttons {
    transition-delay: 0.6s;
}

/* Navigation Arrow Buttons */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(13, 13, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-slider-arrow:hover {
    background-color: rgba(255, 62, 62, 0.8);
    border-color: var(--accent-red);
    box-shadow: 0 8px 25px rgba(255, 62, 62, 0.4);
    transform: translateY(-50%) scale(1.08);
}

/* Default RTL Position (Prev is right, Next is left) */
.hero-slider-arrow.prev {
    right: 40px;
}

.hero-slider-arrow.next {
    left: 40px;
}

/* LTR Position (Prev is left, Next is right) */
html[dir="ltr"] .hero-slider-arrow.prev {
    left: 40px;
    right: auto;
}

html[dir="ltr"] .hero-slider-arrow.next {
    right: 40px;
    left: auto;
}

html[dir="ltr"] .hero-slider-arrow.prev i,
html[dir="ltr"] .hero-slider-arrow.next i {
    transform: rotate(180deg);
}

/* Slide Indicators (Dots) */
.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hero-slider-dots .dot.active {
    background-color: var(--accent-red);
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 62, 62, 0.6);
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    border-radius: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.about-main-img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    opacity: 0.85;
    transition: var(--transition-smooth);
    z-index: 2;
}

.about-main-img:hover {
    opacity: 1;
    transform: scale(1.02);
}

.about-accent-box {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-gradient);
    border-radius: 12px;
    bottom: -30px;
    left: -30px;
    opacity: 0.15;
    filter: blur(20px);
}

.about-glowing-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px dashed rgba(255, 62, 62, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.about-card-stat {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: rgba(13, 13, 17, 0.9);
    border: 1.5px solid var(--accent-red);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

html[dir="rtl"] .about-card-stat {
    right: auto;
    left: 24px;
}

.about-card-stat i {
    color: var(--accent-red);
    font-size: 28px;
}

.stat-card-title {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.stat-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
}

.about-feature-item {
    display: flex;
    gap: 18px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(255, 62, 62, 0.1);
    border: 1px solid rgba(255, 62, 62, 0.2);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.about-feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Video Section */
.video-section {
    padding: 60px 24px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.video-section-wrapper {
    position: relative;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    overflow: hidden;
    line-height: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.video-section-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 7, 0.35) 0%,
        transparent 18%,
        transparent 82%,
        rgba(5, 5, 7, 0.45) 100%
    );
}

.video-section-player {
    display: block;
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 72vh;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-secondary);
}

.video-image-player {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-slideshow-img {
    transition: opacity 0.6s ease;
    opacity: 0.35;
}

.video-slideshow-img.is-visible {
    opacity: 1;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.product-category-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.product-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.product-category-card:hover,
.product-category-card.active {
    transform: translateY(-6px);
    border-color: rgba(255, 62, 62, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 62, 62, 0.05);
}

.product-category-card.active::before {
    opacity: 1;
}

.prod-card-icon {
    font-size: 32px;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.product-category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-category-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.view-more-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

html[dir="rtl"] .view-more-btn i {
    transform: rotate(0deg);
}

html[dir="ltr"] .view-more-btn i {
    transform: rotate(180deg);
}

.product-category-card:hover .view-more-btn i {
    transform: translateX(-4px);
}

html[dir="ltr"] .product-category-card:hover .view-more-btn i {
    transform: translateX(4px);
}

/* Product Detail Panel (Glassmorphism) */
.product-detail-panel {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    /* Controlled via JS */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.panel-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.panel-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.panel-info {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: flex-start;
}

.panel-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 4/3;
    background-color: var(--bg-primary);
}

.panel-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay-glow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.panel-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.partner-brands-container {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.partner-brands-container h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.brand-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-tab-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.brand-tab-btn:hover {
    border-color: rgba(255, 62, 62, 0.5);
    color: #fff;
}

.brand-tab-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--accent-glow);
}

/* Brand Album Gallery */
.brand-album-gallery {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.brand-album-gallery .gallery-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.brand-item-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.brand-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
}

.brand-img-wrapper {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-primary);
}

.brand-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.brand-item-card:hover .brand-item-img {
    transform: scale(1.08);
}

.brand-item-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--accent-red);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--accent-glow);
}

.projects-grid-albums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-album-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-album-card[hidden],
.project-album-card.is-hidden {
    display: none !important;
}

.project-album-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 62, 62, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.project-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-album-card:hover .project-thumbnail {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-album-card:hover .project-card-overlay {
    opacity: 1;
}

.project-view-album {
    background-color: var(--accent-red);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--accent-glow);
}

.project-info {
    padding: 24px;
}

.project-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.project-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

/* Continuous Logo Sliders */
.sliders-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.slider-section-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.slider-wrapper {
    width: 100%;
}

.slider-header-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.slider-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.slider-decor-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, rgba(255, 255, 255, 0) 100%);
}

html[dir="rtl"] .slider-decor-line {
    background: linear-gradient(270deg, var(--border-color) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

/* Sliders visual fading edges */
.logo-slider-container::before,
.logo-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo-slider-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-secondary) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo-slide-track {
    display: flex;
    gap: 40px;
    width: max-content;
}

/* Animation properties applied via inline styles in JS or keyframes here */
.slider-logo-card {
    width: 220px;
    height: 80px;
    background-color: rgba(13, 13, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    opacity: 0.85;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slider-logo-card:hover {
    opacity: 1;
    background-color: rgba(13, 13, 17, 0.85);
    border-color: rgba(255, 62, 62, 0.6);
    box-shadow: 0 8px 30px rgba(255, 62, 62, 0.25), inset 0 0 10px rgba(255, 62, 62, 0.1);
    transform: translateY(-4px) scale(1.03);
}

.slider-brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Continuous Scroll Animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background-color: rgba(255, 62, 62, 0.1);
    border: 1px solid rgba(255, 62, 62, 0.2);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-detail-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

.emergency-badge {
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.15) 0%, rgba(255, 62, 62, 0.05) 100%);
    border: 1.5px solid var(--accent-red);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(255, 62, 62, 0.05);
}

.emergency-badge i {
    font-size: 32px;
    color: var(--accent-red);
    animation: flash 1.5s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.emergency-badge strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.emergency-badge span {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

/* Contact Form Panel */
.contact-form-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-panel h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.15);
}

.form-group select option {
    background-color: var(--bg-tertiary);
    color: #ffffff;
}

.success-message-toast {
    display: none;
    align-items: center;
    gap: 12px;
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    animation: fadeIn 0.4s ease;
}

/* Footer Section */
.main-footer {
    background-color: #040406;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .logo-img {
    height: 176px;
    width: auto;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-red);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-links-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gradient);
}

html[dir="rtl"] .footer-links-col h4::after {
    left: auto;
    right: 0;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col ul a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links-col ul a:hover {
    color: var(--accent-red);
    padding-inline-start: 6px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cert-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.cert-item:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(3, 3, 5, 0.95);
    z-index: 2000;
    display: none;
    /* Controlled via JS */
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background-color: var(--accent-red);
    border-color: transparent;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Correct icon direction for lightbox arrows depending on translation */
html[dir="rtl"] .lightbox-prev i {
    transform: rotate(180deg);
}

html[dir="rtl"] .lightbox-next i {
    transform: rotate(180deg);
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lightbox-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-loader {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 62, 62, 0.2);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    display: none;
}

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

.lightbox-caption h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.lightbox-caption p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding-top: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid-albums {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 84px;
    }

    .main-header.scrolled {
        --header-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-container {
        padding: 0 56px;
    }

    .hero-slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .hero-slider-arrow.prev {
        right: 12px;
    }

    .hero-slider-arrow.next {
        left: 12px;
    }

    html[dir="ltr"] .hero-slider-arrow.prev {
        left: 12px;
        right: auto;
    }

    html[dir="ltr"] .hero-slider-arrow.next {
        right: 12px;
        left: auto;
    }

    .hero-slider-dots {
        bottom: 24px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .panel-info {
        grid-template-columns: 1fr;
    }

    .brand-album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 560px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-container {
        padding: 0 48px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .hero-slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .hero-slider-arrow.prev {
        right: 8px;
    }

    .hero-slider-arrow.next {
        left: 8px;
    }

    html[dir="ltr"] .hero-slider-arrow.prev {
        left: 8px;
    }

    html[dir="ltr"] .hero-slider-arrow.next {
        right: 8px;
    }

    .hero-slider-dots {
        bottom: 16px;
        gap: 8px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid-albums {
        grid-template-columns: 1fr;
    }

    .brand-album-grid {
        grid-template-columns: 1fr;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .product-detail-panel {
        padding: 24px;
    }
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 28px;
    z-index: 2005;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

html[dir="rtl"] .floating-contact {
    left: 24px;
    right: auto;
}

html[dir="ltr"] .floating-contact {
    right: 24px;
    left: auto;
}

.floating-contact-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.floating-contact-btn:hover {
    transform: translateY(-3px) scale(1.08);
    color: #ffffff;
}

.floating-contact-btn.whatsapp {
    background-color: #25d366;
}

.floating-contact-btn.whatsapp:hover {
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.floating-contact-btn.call {
    background: var(--accent-gradient);
}

.floating-contact-btn.call:hover {
    box-shadow: var(--accent-glow);
}

.floating-contact-btn.facebook {
    background-color: #1877f2;
}

.floating-contact-btn.facebook:hover {
    box-shadow: 0 10px 28px rgba(24, 119, 242, 0.45);
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        gap: 10px;
    }

    html[dir="rtl"] .floating-contact {
        left: 16px;
    }

    html[dir="ltr"] .floating-contact {
        right: 16px;
    }

    .floating-contact-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}

/* Video Gallery */
.video-gallery-section {
    padding: 60px 0 100px;
    background-color: var(--bg-primary);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-gallery-card {
    display: flex;
    flex-direction: column;
}

.video-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #000000;
}

.video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-gallery-card .video-card-title {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    padding: 0 4px;
}

@media (max-width: 1024px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.video-modal.active {
    display: flex;
}

.video-modal-close {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: rgba(13, 13, 17, 0.9);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2;
}

.video-modal-close:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.video-modal-content {
    width: 100%;
    max-width: 960px;
}

.video-modal-player-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #000000;
    line-height: 0;
}

.video-youtube-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.video-youtube-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-play-btn-youtube {
    background: #ff0000;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.35);
}

.video-gallery-card:hover .video-play-btn-youtube {
    transform: scale(1.1);
}

.video-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.video-slideshow .video-slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: rgba(13, 13, 17, 0.85);
    color: #ffffff;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-fast);
}

.video-slideshow-nav:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.video-slideshow-nav.prev {
    inset-inline-start: 14px;
}

.video-slideshow-nav.next {
    inset-inline-end: 14px;
}

.video-slideshow-toggle {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: rgba(13, 13, 17, 0.9);
    color: #ffffff;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-fast);
}

.video-slideshow-toggle:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.video-slideshow-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.video-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: var(--transition-fast);
}

.video-slideshow-dot.active {
    background-color: var(--accent-red);
    transform: scale(1.2);
}

.video-slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent-gradient);
    z-index: 2;
}

@keyframes videoSlideProgress {
    from { width: 0; }
    to { width: 100%; }
}

.video-modal-slide-caption {
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.video-modal-caption {
    margin-top: 20px;
    text-align: center;
}

.video-modal-caption h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.video-modal-caption p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .video-modal {
        padding: 16px;
    }

    .video-modal-close {
        top: 16px;
        inset-inline-end: 16px;
    }
}