:root {
    --primary: #00ff88;
    --secondary: #00d4ff;
    --accent: #ff6b6b;
    --success: #51cf66;
    --warning: #ffd43b;
    --danger: #ff4757;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --bg-card: #0f1419;
    --bg-hover: #1a1f2e;
    --border: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-1: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --gradient-2: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px rgba(0,255,136,0.3);
    --shadow-glow-strong: 0 0 50px rgba(0,255,136,0.5);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Tajawal', sans-serif;
    --font-code: 'Fira Code', monospace;
    --font-tech: 'Orbitron', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,255,136,0.05) 0%, var(--bg-darker) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    overflow: hidden;
}

.loader-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0,255,136,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,212,255,0.1) 0%, transparent 50%);
    animation: loaderPulse 4s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.hack-terminal {
    background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,212,255,0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,255,136,0.3), 0 0 60px rgba(0,212,255,0.2), inset 0 0 30px rgba(0,255,136,0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
}

.hack-terminal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.5;
    animation: terminalGlow 3s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.terminal-header {
    background: linear-gradient(135deg, rgba(0,255,136,0.1) 0%, rgba(0,212,255,0.1) 100%);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.terminal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0.5;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: var(--danger); }
.dot.yellow { background: var(--warning); }
.dot.green { background: var(--success); }

.terminal-title {
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 2rem 1.5rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
    line-height: 1.9;
    min-height: 300px;
    background: rgba(0,0,0,0.2);
    position: relative;
}

.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,136,0.03) 2px, rgba(0,255,136,0.03) 4px);
    pointer-events: none;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInTerminal 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.4s; }
.terminal-line:nth-child(3) { animation-delay: 0.6s; }
.terminal-line:nth-child(4) { animation-delay: 0.8s; }
.terminal-line:nth-child(5) { animation-delay: 1s; }
.terminal-line:nth-child(6) { animation-delay: 1.2s; }
.terminal-line:nth-child(7) { animation-delay: 1.4s; }
.terminal-line:nth-child(8) { animation-delay: 1.6s; }

@keyframes fadeInTerminal {
    to { opacity: 1; }
}

.prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

.command {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
    display: block;
    margin-left: 1.5rem;
}

.output .success {
    color: var(--success);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.loader-progress-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(0,255,136,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,255,136,0.3);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--secondary);
    transition: width 0.3s ease;
    position: relative;
    border-radius: 10px;
}

.loader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loader-percentage {
    text-align: center;
    color: var(--primary);
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 600;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 100%;
    background: rgba(5, 8, 16, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(0, 255, 136, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 20%, 
        var(--secondary) 50%, 
        var(--primary) 80%, 
        transparent 100%);
    opacity: 0.6;
    animation: headerScan 3s linear infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes headerScan {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

.header.scrolled::before {
    background: rgba(5, 8, 16, 0.95);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 0 60px rgba(0, 255, 136, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    flex-shrink: 0;
    z-index: 1;
}

.nav-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-brand:hover::after {
    opacity: 1;
}

.nav-brand:hover {
    color: var(--secondary);
}

.brand-text {
    font-family: var(--font-tech);
    letter-spacing: 1px;
}

.brand-icon {
    position: relative;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.06);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.1) 0%, rgba(0,212,255,0.1) 100%);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: var(--font-tech);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.header-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 8px;
    z-index: -1;
}

.header-link:hover::before {
    opacity: 1;
}

.header-link:hover {
    color: var(--bg-dark);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 25px rgba(0,255,136,0.4);
    border-color: var(--secondary);
}

.header-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.header-link:hover i {
    transform: rotate(360deg);
}

.header-link span {
    position: relative;
    z-index: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.55rem 0.75rem;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1001;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 255, 136, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 8px;
    z-index: -1;
}

.menu-toggle:hover::before {
    opacity: 1;
}

.menu-toggle:hover {
    border-color: var(--primary);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 1px;
    position: relative;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.section {
    position: relative;
    scroll-margin-top: 80px;
    overflow: hidden;
}

.section:not(.hero) {
    padding: 6rem 0;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    will-change: transform;
    transform: translateY(0) translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    clip-path: inset(0);
    contain: layout style paint;
}

.section-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    text-align: left;
}

.section-number {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-tech);
    letter-spacing: 1px;
    flex: 1;
}

.title-underline {
    flex: 1;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    max-width: 150px;
    margin-left: 1rem;
}

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin-top: 80px;
}

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

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: gridMove 20s linear infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    box-shadow: 0 0 20px var(--primary);
    animation: scanDown 3s linear infinite;
}

@keyframes scanDown {
    0% {
        top: -2px;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.hack-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) translateX(100px);
        opacity: 1;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.15) 0%, rgba(0,212,255,0.15) 100%);
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-tech);
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,255,136,0.2);
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.hero-badge:hover::before {
    left: 100%;
}

.hero-badge:hover {
    background: linear-gradient(135deg, rgba(0,255,136,0.25) 0%, rgba(0,212,255,0.25) 100%);
    border-color: var(--secondary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,255,136,0.4), 0 0 30px rgba(0,212,255,0.3);
}

.badge-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0;
    animation: badgePulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes badgePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: var(--font-tech);
    letter-spacing: 1.5px;
}

.title-word {
    display: block;
    opacity: 0;
    transform: translateY(50px);
}

.title-word.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.subtitle-text {
    color: var(--text-secondary);
    font-weight: 600;
}

.subtitle-separator {
    color: var(--primary);
    font-weight: 700;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover .btn-shine {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-dark);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-monitor {
    position: relative;
    width: 100%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform var(--transition);
}

.security-monitor:hover {
    transform: scale(0.95);
}

.monitor-frame {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition);
}

.monitor-frame:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-strong);
}

.monitor-screen {
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 30px rgba(0,255,136,0.2);
}

.screen-content {
    padding: 1rem;
}

.screen-header {
    background: var(--bg-card);
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
    margin: -1rem -1rem 0.8rem -1rem;
}

.screen-dots {
    display: flex;
    gap: 0.4rem;
}

.screen-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.screen-dots span:nth-child(1) { background: var(--danger); }
.screen-dots span:nth-child(2) { background: var(--warning); }
.screen-dots span:nth-child(3) { background: var(--success); }

.screen-title {
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.screen-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-item {
    padding: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all var(--transition);
}

.dashboard-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.dashboard-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-code);
}

.dashboard-value {
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-value.active {
    color: var(--success);
}

.dashboard-bar {
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}

.dashboard-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.monitor-stand {
    width: 120px;
    height: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    position: relative;
}

.monitor-stand::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 10px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,255,136,0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    animation: floatIcon 4s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

.icon-3 {
    top: 50%;
    left: -10%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 10%;
    left: -5%;
    animation-delay: 3s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.scroll-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    z-index: 10;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 28px;
    height: 45px;
    border: 2px solid var(--border);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.camera-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.camera-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    position: relative;
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.camera-container:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-strong);
}

.camera-preview {
    position: relative;
    padding-top: 56.25%;
    background-color: #000;
}

.camera-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.btn-play {
    background: linear-gradient(135deg, rgba(0,255,136,0.2) 0%, rgba(0,212,255,0.2) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    color: #fff;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 60px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0,255,136,0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-play:hover {
    background: var(--gradient-1);
    color: var(--bg-dark);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 50px rgba(0,255,136,0.5);
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: stretch;
}

.about-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-intro-section {
    text-align: left;
    max-width: 100%;
    margin: 0 0 2rem 0;
    position: relative;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.15) 0%, rgba(0,212,255,0.15) 100%);
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-tech);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,255,136,0.2);
}

.about-badge:hover {
    background: linear-gradient(135deg, rgba(0,255,136,0.25) 0%, rgba(0,212,255,0.25) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,255,136,0.3);
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.about-text:first-of-type {
    margin-top: 0;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
    margin-top: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,212,255,0.05) 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0,255,136,0.1) 0%, rgba(0,212,255,0.1) 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,255,136,0.3), 0 0 40px rgba(0,212,255,0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,255,136,0.15) 0%, rgba(0,212,255,0.15) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(0,255,136,0.25) 0%, rgba(0,212,255,0.25) 100%);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(0,255,136,0.4);
    border-color: var(--secondary);
}

.feature-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-tech);
    letter-spacing: 0.5px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,212,255,0.05) 100%);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
}

.testimonial-card footer {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    font-family: var(--font-tech);
    font-size: 0.9rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,255,136,0.1);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 12px;
    animation: iconPulse 2s ease-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.1;
    }
}

.contact-details h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details a,
.contact-details span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}

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

.btn-submit {
    align-self: flex-start;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow: hidden;
}

.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
    transform-style: preserve-3d;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ff0000;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: all var(--transition);
}

.close-modal:hover {
    color: #ff0000;
    transform: rotate(90deg);
}

.video-info-box {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 2001;
    max-width: 330px;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
    backdrop-filter: blur(10px);
}

.video-info-box-close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.video-info-box-close:hover {
    opacity: 1;
    color: var(--accent);
}

.video-info-box p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.video-info-box i {
    margin-right: 5px;
}

#video-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.user-info-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,212,255,0.05) 100%);
    border: 1px solid var(--primary);
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
    z-index: 1000;
    max-width: 370px;
    width: 100%;
    animation: slideIn 0.5s ease;
    backdrop-filter: blur(20px);
}

.user-info-content {
    padding: 20px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.close-popup:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.user-info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-family: var(--font-tech);
}

.user-info-content h3 i {
    margin-right: 8px;
}

.user-info-content p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-info-content i {
    margin-right: 8px;
    color: var(--primary);
    width: 20px;
}

.user-info-content strong {
    color: var(--text-primary);
}

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

.form-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-popup.active {
    display: flex;
}

.form-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.form-popup-content {
    position: relative;
    background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,212,255,0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), var(--shadow-glow-strong);
    animation: popupSlideIn 0.4s ease;
    z-index: 4001;
    backdrop-filter: blur(20px);
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.form-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.form-popup-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.form-popup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.form-popup-icon.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.form-popup-icon.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.form-popup-content h3 {
    color: var(--text-primary);
    font-size: 1.7rem;
    margin-bottom: 12px;
    font-family: var(--font-tech);
}

.form-popup-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.form-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-1);
    color: var(--bg-dark);
    padding: 12px 35px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.form-popup-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow-strong);
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

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

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        order: -1;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    .header-container {
        padding: 0 1rem;
    }
    .header::before {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .header::after {
        width: 100%;
        border-radius: 0;
    }
    .nav {
        padding: 0;
        gap: 1rem;
    }
    .nav-brand {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }
    .brand-icon {
        font-size: 1.4rem;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 8, 16, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 5rem 0 2rem;
        border-right: 1px solid rgba(0, 255, 136, 0.2);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        align-items: stretch;
        gap: 0.5rem;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 0;
        border-left: 3px solid transparent;
        justify-content: flex-start;
    }
    .nav-link::before {
        border-radius: 0;
    }
    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--primary);
        background: rgba(0, 255, 136, 0.1);
    }
    .menu-toggle {
        display: flex;
    }
    .header-link span {
        display: none;
    }
    .header-link {
        padding: 0.4rem 0.8rem;
    }
    .header-link i {
        font-size: 1.1rem;
        margin: 0;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
        margin-top: 70px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .section:not(.hero) {
        padding: 4rem 0;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .float-icon {
        display: none;
    }
    .btn-play {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    .user-info-popup {
        max-width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    .video-info-box {
        max-width: calc(100% - 60px);
        top: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 8px 12px;
    }
    .close-modal {
        font-size: 2rem;
        top: 5px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .title-underline {
        max-width: 80px;
        margin-left: 0;
    }
    .feature-card {
        padding: 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .contact-card {
        padding: 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .form-popup-content {
        padding: 25px 20px;
        margin: 10px;
    }
    .form-popup-content h3 {
        font-size: 1.4rem;
    }
    .form-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .section-header {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .title-underline {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-intro-section {
    text-align: right;
}

[dir="rtl"] .testimonial-card blockquote {
    padding-left: 0;
    padding-right: 1.5rem;
    border-left: none;
    border-right: 3px solid var(--primary);
}

[dir="rtl"] .testimonial-card footer {
    text-align: left;
}

[dir="rtl"] .contact-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn i {
    order: -1;
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .user-info-content h3 i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .user-info-content i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .close-popup {
    right: auto;
    left: 15px;
}

[dir="rtl"] .form-popup-close {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        border-right: none;
        border-left: 1px solid rgba(0, 255, 136, 0.2);
    }
    [dir="rtl"] .nav-menu.active {
        right: 0;
        left: auto;
    }
    [dir="rtl"] .nav-link {
        border-left: none;
        border-right: 3px solid transparent;
    }
    [dir="rtl"] .nav-link:hover,
    [dir="rtl"] .nav-link.active {
        border-left-color: transparent;
        border-right-color: var(--primary);
    }
}

/* ====== СТИЛИ ДЛЯ КОНТЕЙНЕРА ВИДЕО ====== */
#stream-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

#stream-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* ====== ОБНОВЛЕННЫЙ СТИЛЬ ДЛЯ ВИДЕО МОДАЛИ ====== */
.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    transform: translateZ(0);
    will-change: transform;
    transform-style: preserve-3d;
}

.video-info-box {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 2001;
    max-width: 330px;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    pointer-events: auto;
}

.video-info-box-close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.video-info-box-close:hover {
    opacity: 1;
    color: var(--accent);
}

.video-info-box p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.video-info-box i {
    margin-right: 5px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ff0000;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: all var(--transition);
}

.close-modal:hover {
    color: #ff0000;
    transform: rotate(90deg);
}

/* ====== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ====== */
@media (max-width: 768px) {
    .video-info-box {
        max-width: calc(100% - 60px);
        top: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 8px 12px;
    }
    .close-modal {
        font-size: 2rem;
        top: 5px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .video-info-box {
        max-width: calc(100% - 40px);
        font-size: 0.65rem;
        padding: 6px 10px;
        top: 8px;
        left: 8px;
    }
    .video-info-box p {
        margin: 3px 0;
        font-size: 0.7rem;
    }
    .video-info-box-close {
        font-size: 1.2rem;
        top: 3px;
        right: 6px;
    }
    .close-modal {
        font-size: 1.8rem;
        top: 5px;
        right: 12px;
    }
}