/* SafeZone NY — Main Theme Stylesheet */
/* Auto-extracted from home.html */

:root {
    --primary: #c084fc;
    --secondary: #a78bfa;
    --accent: #fbbf24;
    --cyan: #67e8f9;
    --purple: #a78bfa;
    --green: #86efac;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #c084fc 0%, #a78bfa 50%, #67e8f9 100%);
    --gradient-2: linear-gradient(135deg, #67e8f9 0%, #a78bfa 50%, #fbbf24 100%);
    --gradient-3: linear-gradient(135deg, #86efac 0%, #67e8f9 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-xl: 0 20px 25px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(192,132,252,0.3);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Tajawal', sans-serif;
    --font-code: 'Fira Code', monospace;
}
[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-darker: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f5;
    --border: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
}
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="ltr"] { direction: ltr; text-align: left; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition-fast), color var(--transition-fast);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.hero-name, .section-title, .timeline-title, .project-title, .category-title { font-weight: 800; }
img { max-width: 100%; height: auto; display: block; }

/* Loader */
.loader-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-darker);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}
.loader-screen.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-code-text { font-family: var(--font-code); font-size: 1.2rem; color: var(--primary); margin-bottom: 2rem; }
.code-line { display: block; margin: 0.5rem 0; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.5s ease forwards; }
.code-line[data-line="1"] { animation-delay: 0.1s; }
.code-line[data-line="2"] { animation-delay: 0.3s; }
.code-line[data-line="3"] { animation-delay: 0.5s; }
.code-line[data-line="4"] { animation-delay: 0.7s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.loader-spinner-wrapper { margin: 2rem 0; }
.loader-spinner {
    width: 60px; height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-progress-wrapper { width: 200px; height: 4px; background: var(--border); border-radius: 2px; margin: 2rem auto; overflow: hidden; }
.loader-progress-bar { height: 100%; background: var(--gradient-1); width: 0%; animation: progress 2s ease forwards; box-shadow: 0 0 10px var(--primary); }
@keyframes progress { to { width: 100%; } }
.loader-percentage { font-family: var(--font-code); color: var(--primary); font-size: 1rem; margin-top: 1rem; }

/* Header */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}
.main-header.scrolled { background: rgba(15, 23, 42, 0.95); box-shadow: var(--shadow-md); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; }
.brand-logo { font-family: var(--font-code); font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 0.4rem; }
.logo-icon { color: var(--cyan); font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(103,232,249,0.4)); animation: recIndicator 1.8s ease-in-out infinite; }
@keyframes recIndicator { 0%,100% { color: var(--cyan); filter: drop-shadow(0 0 8px rgba(103,232,249,0.4)); } 50% { color: #ef4444; filter: drop-shadow(0 0 10px rgba(239,68,68,0.6)); } }
.logo-bracket { color: var(--purple); }
.logo-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary); text-decoration: none;
    font-weight: 700; padding: 0.5rem 1rem; border-radius: 8px;
    transition: all var(--transition-fast); position: relative;
}
.nav-link::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gradient-1); transition: width var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::before { width: 80%; }
.nav-link i { font-size: 1rem; }
.nav-controls { display: flex; gap: 1rem; align-items: center; }
.lang-toggle, .theme-toggle, .menu-toggle {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); padding: 0.6rem 1rem; border-radius: 8px;
    cursor: pointer; transition: all var(--transition);
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem;
}
.lang-toggle:hover, .theme-toggle:hover { background: var(--bg-hover); border-color: var(--primary); color: var(--primary); }
.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 0.6rem; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: all var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.main-content { margin-top: 80px; }

/* Hero */
.hero-section { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 4rem 0; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.code-grid-bg {
    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;
}
@keyframes gridMove { 0% { transform: translate(0,0); } 100% { transform: translate(50px,50px); } }
.floating-particles { position: absolute; width: 100%; height: 100%; overflow: hidden; }
.particle { position: absolute; font-family: var(--font-code); font-size: 1.5rem; color: var(--primary); opacity: 0.1; animation: float 15s infinite ease-in-out; }
@keyframes float { 0%,100% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10%,90% { opacity: 0.1; } 50% { transform: translateY(-100px) rotate(180deg); opacity: 0.2; } }
.hero-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-content { z-index: 1; }
.hero-greeting { font-family: var(--font-code); font-size: 1.2rem; color: var(--primary); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.greeting-cursor { animation: blink 1s infinite; color: var(--primary); }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.hero-name { font-family: var(--font-code); font-size: 4rem; font-weight: 700; margin-bottom: 2rem; line-height: 1.2; }
.name-prefix { color: var(--purple); }
.name-operator { color: var(--cyan); margin: 0 0.5rem; }
.name-value { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.name-suffix { color: var(--primary); }
.hero-rotator-line { font-family: var(--font-code); font-size: 1.6rem; margin-bottom: 1.5rem; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; min-height: 2.4rem; }
.rotator-prefix { color: var(--text-secondary); font-weight: 600; }
.rotator-words { position: relative; display: inline-block; min-height: 2rem; min-width: 280px; }
.rotator-word { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(15px); transition: opacity 0.5s ease, transform 0.5s ease; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; white-space: nowrap; }
.rotator-word.active { opacity: 1; transform: translateY(0); }
.rotator-word.exit { opacity: 0; transform: translateY(-15px); }
[dir="rtl"] .rotator-word { left: auto; right: 0; }
@media (max-width: 768px) { .hero-rotator-line { font-size: 1.2rem; } .rotator-words { min-width: 240px; min-height: 1.7rem; } }
.hero-title { font-family: var(--font-code); font-size: 1.5rem; color: var(--cyan); margin-bottom: 2rem; }
.title-prefix { color: var(--text-muted); margin-inline-end: 0.5rem; }
.hero-description { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 3rem; line-height: 1.8; max-width: 600px; }
.hero-buttons { display: flex; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; border-radius: 12px; font-weight: 600; text-decoration: none; transition: all var(--transition); border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--font-primary); }
.btn-primary { background: var(--gradient-1); color: white; border-color: transparent; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(192,132,252,0.3); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(192,132,252,0.3); }
.hero-social { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); text-decoration: none; transition: all var(--transition-fast); }
.social-icon:hover { background: var(--bg-hover); border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(192,132,252,0.2); }

.hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image-container { position: relative; width: 400px; height: 400px; }
.profile-image-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 120%; height: 120%; background: radial-gradient(circle, rgba(192,132,252,0.25) 0%, transparent 70%); border-radius: 50%; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%,-50%) scale(1.1); opacity: 0.8; } }
.profile-image-frame { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--primary); box-shadow: 0 0 30px rgba(192,132,252,0.3), 0 0 60px rgba(192,132,252,0.1); overflow: hidden; background: var(--bg-card); }
.profile-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: transparent; will-change: transform; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.brand-emblem { width: 100%; height: 100%; display: block; }
.profile-placeholder { font-size: 8rem; color: var(--primary); opacity: 0.3; }
.floating-badge { position: absolute; background: rgba(30,41,59,0.96); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 14px; padding: 0.75rem 1.1rem; display: flex; align-items: center; gap: 0.7rem; color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-md); animation: floatBadge 3s ease-in-out infinite; min-width: 175px; max-width: 220px; transition: all var(--transition-smooth); z-index: 3; }
.floating-badge:hover { transform: translateY(-3px) scale(1.03); border-color: var(--primary); box-shadow: 0 5px 20px rgba(192,132,252,0.25); }
.floating-badge i { font-size: 1.6rem; color: var(--primary); flex-shrink: 0; }
.badge-content { display: flex; flex-direction: column; gap: 0.2rem; }
.badge-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.badge-libs { font-size: 0.7rem; color: var(--text-secondary); font-weight: 400; line-height: 1.3; }
.badge-1 { top: 4%; right: -14%; animation-delay: 0s; }
.badge-2 { top: 46%; right: -22%; animation-delay: 1s; }
.badge-3 { top: 28%; left: -22%; animation-delay: 2s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.scroll-mouse { width: 30px; height: 50px; border: 2px solid var(--border); border-radius: 15px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-wheel { width: 4px; height: 10px; background: var(--primary); border-radius: 2px; animation: scrollWheel 2s infinite; }
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }

/* Circuit Section */
.circuit-section { position: relative; width: 100%; height: 520px; background: #050a14; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.circuit-canvas-wrapper { position: absolute; inset: 0; }
#circuitCanvas { display: block; width: 100%; height: 100%; }
.circuit-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 3rem 1.5rem 0; pointer-events: none; z-index: 2; text-align: center; }
.circuit-tagline-top { font-family: var(--font-code); color: var(--cyan); font-size: 1rem; letter-spacing: 0.5px; opacity: 0.85; margin-bottom: 0.6rem; text-shadow: 0 0 12px rgba(103,232,249,0.35); }
.circuit-headline { font-family: var(--font-code); font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.circuit-headline .title-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
@media (max-width: 768px) { .circuit-section { height: 360px; } .circuit-headline { font-size: 1.5rem; } .circuit-tagline-top { font-size: 0.85rem; } .circuit-overlay { padding: 1.2rem 1rem 0; } }

/* Sections */
.section { padding: 4rem 0; position: relative; scroll-margin-top: 80px; }
.section-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 4rem; }
.section-number { font-family: var(--font-code); font-size: 1.5rem; color: var(--primary); font-weight: 700; }
.section-title { font-family: var(--font-code); font-size: 2.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.title-bracket { color: var(--purple); }
.title-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-line { flex: 1; height: 2px; background: var(--gradient-1); margin-inline-start: 2rem; }

/* About */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 3rem; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.stat-item { text-align: center; padding: 2rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: all var(--transition-fast); }
.stat-item:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); border-radius: 12px; color: white; font-size: 1.3rem; }
.stat-number { font-family: var(--font-code); font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; }
.about-image-container { position: relative; }
.code-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 3rem; font-family: var(--font-code); font-size: 0.9rem; line-height: 1.8; overflow-x: auto; }
.code-block .code-line { margin: 0.5rem 0; opacity: 1; transform: none; animation: none; }
.code-line.indent { padding-inline-start: 2rem; }
.code-keyword { color: var(--purple); }
.code-variable { color: var(--cyan); }
.code-operator { color: var(--primary); }
.code-brace, .code-bracket { color: var(--accent); }
.code-property { color: var(--cyan); }
.code-string { color: var(--accent); }
.code-comma, .code-semicolon { color: var(--text-muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem; text-align: center; transition: all var(--transition-smooth); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-1); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-smooth); }
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 8px 25px rgba(192,132,252,0.4); }
.service-icon { width: 72px; height: 72px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); border-radius: 16px; color: white; font-size: 1.8rem; transition: all var(--transition-smooth); }
.service-title { font-family: var(--font-code); font-size: 1.25rem; color: var(--text-primary); margin-bottom: 1rem; font-weight: 700; }
.service-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.8rem; font-size: 0.95rem; }
.service-btn { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); text-decoration: none; font-family: var(--font-code); font-weight: 600; font-size: 0.9rem; padding: 0.5rem 1rem; border: 1px solid var(--primary); border-radius: 8px; transition: all var(--transition); }
.service-btn:hover { background: var(--primary); color: white; transform: translateX(4px); }
[dir="rtl"] .service-btn:hover { transform: translateX(-4px); }
[dir="rtl"] .service-btn i { transform: scaleX(-1); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.skill-category { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; transition: all var(--transition-smooth); }
.skill-category:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.category-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.category-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); border-radius: 10px; color: white; font-size: 1.1rem; flex-shrink: 0; }
.category-title { font-family: var(--font-code); font-size: 1.3rem; color: var(--primary); font-weight: 700; margin: 0; }
.skill-items { display: flex; flex-direction: column; gap: 1.6rem; }
.skill-item { position: relative; }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; gap: 0.5rem; }
.skill-name { font-family: var(--font-code); color: var(--cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.skill-name i { color: var(--primary); width: 18px; text-align: center; font-size: 0.95rem; }
.skill-percent { font-family: var(--font-code); color: var(--primary); font-weight: 600; }
.skill-bar { height: 12px; background: var(--bg-darker); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.skill-progress { height: 100%; background: var(--gradient-1); border-radius: 6px; width: 0%; position: relative; box-shadow: 0 0 10px rgba(192,132,252,0.5); }
.skill-progress::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: shimmer 2s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Timeline */
.timeline { position: relative; padding-inline-start: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gradient-1); }
.timeline-item { position: relative; padding-bottom: 4rem; padding-inline-start: 3rem; }
.timeline-marker { position: absolute; left: -2.5rem; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg-dark); box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary); animation: pulse 2s infinite; }
.timeline-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 3rem; transition: all var(--transition-smooth); }
.timeline-content:hover { border-color: var(--primary); transform: translateX(5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.timeline-year { font-family: var(--font-code); color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.timeline-badge { background: var(--gradient-1); color: white; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; font-family: var(--font-code); }
.timeline-title { font-family: var(--font-code); font-size: 1.5rem; color: var(--cyan); margin-bottom: 0.5rem; font-weight: 700; }
.timeline-company { color: var(--purple); font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.timeline-description { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }
.timeline-achievements { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--bg-darker); border-radius: 12px; border-inline-start: 3px solid var(--primary); }
.achievement-item { display: flex; align-items: center; gap: 0.8rem; color: var(--text-secondary); font-size: 0.95rem; }
.achievement-item i { color: var(--green); font-size: 1rem; flex-shrink: 0; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: var(--bg-darker); color: var(--primary); padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.85rem; font-family: var(--font-code); border: 1px solid var(--border); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 3rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all var(--transition-smooth); cursor: pointer; }
.project-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.project-image { position: relative; width: 100%; height: 250px; background: var(--bg-darker); overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--primary); opacity: 0.3; }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); z-index: 2; }
.project-card:hover .project-overlay { opacity: 1; }
.project-links { display: flex; gap: 1.5rem; }
.project-link { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: white; border-radius: 50%; text-decoration: none; transition: all var(--transition-fast); }
.project-link:hover { transform: scale(1.1); box-shadow: 0 5px 15px rgba(192,132,252,0.4); }
.project-content { padding: 2rem; }
.project-title { font-family: var(--font-code); font-size: 1.3rem; color: var(--primary); margin-bottom: 1rem; font-weight: 700; }
.project-description { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Pricing Plans */
.pricing-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin: 3rem 0; }
.pricing-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 2.5rem 2rem; text-align: center; transition: all var(--transition-smooth); display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.pricing-featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(192,132,252,0.08), var(--bg-card)); transform: scale(1.03); }
.pricing-featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-1); color: white; padding: 0.4rem 1.2rem; border-radius: 20px; font-family: var(--font-code); font-size: 0.8rem; font-weight: 700; box-shadow: 0 4px 12px rgba(192,132,252,0.4); }
.pricing-icon { width: 60px; height: 60px; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; background: rgba(192,132,252,0.12); border: 1px solid rgba(192,132,252,0.3); border-radius: 14px; color: var(--primary); font-size: 1.5rem; }
.pricing-featured .pricing-icon { background: var(--gradient-1); border-color: transparent; color: white; }
.pricing-tier { font-family: var(--font-code); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.pricing-tier-desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.5rem; min-height: 3em; }
.pricing-amount { display: inline-flex; align-items: flex-start; gap: 0.1rem; font-family: var(--font-code); margin-bottom: 0.3rem; }
.pricing-currency { font-size: 1.4rem; color: var(--text-secondary); margin-top: 0.5rem; }
.pricing-value { font-size: 3.5rem; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.pricing-fraction { font-size: 1.3rem; color: var(--text-secondary); margin-top: 0.5rem; }
.pricing-period { color: var(--text-muted); font-family: var(--font-code); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 0.7rem; text-align: start; }
.pricing-features li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); font-size: 0.92rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--border); }
.pricing-features li:last-child { border-bottom: 0; }
.pricing-features i { color: var(--green); font-size: 1rem; flex-shrink: 0; }
.pricing-btn { margin-top: auto; width: 100%; justify-content: center; }

/* Quote Calculator */
.calc-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; margin-top: 4rem; }
.calc-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.calc-title { font-family: var(--font-code); font-size: 1.6rem; color: var(--primary); margin-bottom: 0.5rem; }
.calc-subtitle { color: var(--text-secondary); font-size: 0.95rem; }
.calc-grid { display: flex; flex-direction: column; gap: 1.8rem; }
.calc-section { display: flex; flex-direction: column; gap: 0.8rem; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.calc-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.calc-row-2 { grid-template-columns: 1fr 1fr; }
.calc-label { font-family: var(--font-code); font-size: 0.92rem; color: var(--text-primary); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.calc-output { color: var(--primary); font-family: var(--font-code); font-weight: 700; font-size: 1rem; }
.calc-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.calc-pill { padding: 0.55rem 1rem; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 24px; color: var(--text-secondary); font-family: var(--font-code); font-size: 0.9rem; cursor: pointer; transition: all var(--transition); }
.calc-pill:hover { border-color: var(--primary); color: var(--primary); }
.calc-pill.active { background: var(--gradient-1); border-color: transparent; color: white; box-shadow: 0 4px 12px rgba(192,132,252,0.3); }
.calc-slider { width: 100%; appearance: none; height: 6px; background: var(--bg-darker); border-radius: 3px; outline: none; cursor: pointer; }
.calc-slider::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; background: var(--gradient-1); border: 2px solid var(--bg-card); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(192,132,252,0.4); }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; background: #c084fc; border: 2px solid var(--bg-card); border-radius: 50%; cursor: pointer; }
.calc-select, .calc-input { width: 100%; padding: 0.65rem 0.9rem; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-family: var(--font-primary); font-size: 0.95rem; transition: border-color var(--transition); }
.calc-select:focus, .calc-input:focus { outline: none; border-color: var(--primary); }
.calc-select { cursor: pointer; }
.calc-num { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--text-secondary); }
.calc-num input { max-width: 100%; }
.calc-checks { display: flex; flex-direction: column; gap: 0.6rem; }
.calc-check { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: all var(--transition-fast); color: var(--text-secondary); font-size: 0.9rem; }
.calc-check:hover { border-color: var(--primary); color: var(--text-primary); }
.calc-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.calc-check input:checked + span { color: var(--primary); font-weight: 600; }

.calc-result { margin-top: 2rem; padding: 2rem; background: linear-gradient(135deg, rgba(192,132,252,0.12), rgba(103,232,249,0.08)); border: 1px solid var(--primary); border-radius: 14px; }
.calc-result-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.calc-result-label { font-family: var(--font-code); color: var(--text-secondary); font-size: 1rem; }
.calc-total { font-family: var(--font-code); font-weight: 800; font-size: 2.2rem; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-flex; align-items: baseline; gap: 0.1rem; }
.calc-currency { font-size: 1.4rem; }
.calc-note { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1.2rem; }
.calc-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
    .calc-wrapper { padding: 1.5rem; }
    .calc-row, .calc-row-2, .calc-row-3 { grid-template-columns: 1fr; gap: 1rem; }
    .calc-title { font-size: 1.3rem; }
    .calc-total { font-size: 1.8rem; }
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-6px); }
}

/* Section Subtitle (used by Projects + FAQ) */
.section-subtitle { font-family: var(--font-code); color: var(--text-secondary); font-size: 1rem; margin: -2rem 0 3rem 0; opacity: 0.85; }

/* Engine Cinema (multi-tab interactive demo) */
.engine-section { padding-top: 5rem; }
.engine-cinema { margin-top: 2rem; display: grid; grid-template-columns: 1fr 280px; grid-template-rows: auto 1fr; gap: 1rem; }
.engine-tabs { grid-column: 1 / -1; display: flex; gap: 0.6rem; padding: 0.6rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; flex-wrap: wrap; align-items: center; }
.engine-tab { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem; background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--text-secondary); font-family: var(--font-code); font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); }
.engine-tab:hover { background: var(--bg-darker); color: var(--text-primary); }
.engine-tab.active { background: var(--gradient-1); color: white; border-color: transparent; box-shadow: 0 6px 20px rgba(192,132,252,0.35); }
.engine-tab i { font-size: 1rem; }
.tab-badge { font-size: 0.65rem; padding: 0.15rem 0.5rem; background: rgba(255,255,255,0.15); border-radius: 10px; letter-spacing: 0.5px; }
.engine-tab:not(.active) .tab-badge { background: rgba(192,132,252,0.12); color: var(--primary); }
.engine-autoplay { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-family: var(--font-code); font-size: 0.78rem; padding: 0.35rem 0.7rem; background: var(--bg-darker); border-radius: 20px; border: 1px solid var(--border); }
.engine-autoplay i { color: var(--green); animation: livePulse 1.5s ease-in-out infinite; }

.engine-screen { background: #050a14; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; min-height: 540px; max-height: 600px; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.engine-stage { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; display: flex; }
.engine-stage.active { opacity: 1; visibility: visible; }

@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes blinkInline { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* ===== Common overlay headers for all stages ===== */
.plan-overlay-top, .three-overlay-top, .brain-overlay-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; background: linear-gradient(180deg, rgba(5,10,20,0.85), transparent); z-index: 5; pointer-events: none; }
.plan-overlay-tag { font-family: var(--font-code); color: var(--cyan); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(103,232,249,0.08); padding: 0.3rem 0.7rem; border-radius: 6px; border: 1px solid rgba(103,232,249,0.2); }
.plan-overlay-status { font-family: var(--font-code); color: var(--accent); font-size: 0.78rem; padding: 0.25rem 0.6rem; background: rgba(251,191,36,0.1); border-radius: 4px; border: 1px solid rgba(251,191,36,0.25); }

/* ===== TAB 1: AI CHAT ===== */
.chat-window { width: 100%; height: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, #0a0f1f, #050a14); }
.chat-header { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; background: var(--bg-darker); border-bottom: 1px solid var(--border); }
.chat-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--gradient-1); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; flex-shrink: 0; }
.chat-info { flex: 1; }
.chat-title { font-family: var(--font-code); color: var(--text-primary); font-weight: 700; font-size: 0.95rem; }
.chat-meta { font-size: 0.78rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: livePulse 1.5s ease-in-out infinite; box-shadow: 0 0 8px var(--green); }
.chat-mic { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); }
.chat-mic:hover { border-color: var(--primary); color: var(--primary); }
.chat-body { flex: 1; padding: 1.2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.chat-msg { max-width: 88%; padding: 0.75rem 1rem; border-radius: 14px; line-height: 1.6; font-size: 0.92rem; opacity: 0; animation: chatIn 0.4s ease forwards; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.user { align-self: flex-end; background: var(--gradient-1); color: white; border-bottom-right-radius: 4px; font-family: var(--font-primary); }
[dir="rtl"] .chat-msg.user { align-self: flex-start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.chat-msg.ai { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); border-bottom-left-radius: 4px; }
[dir="rtl"] .chat-msg.ai { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.chat-msg.ai code { background: var(--bg-darker); padding: 0.1rem 0.4rem; border-radius: 4px; font-family: var(--font-code); font-size: 0.85em; color: var(--cyan); }
.chat-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
.chat-tool { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-code); font-size: 0.72rem; padding: 0.2rem 0.55rem; background: rgba(103,232,249,0.1); color: var(--cyan); border: 1px solid rgba(103,232,249,0.3); border-radius: 5px; opacity: 0; animation: chatToolIn 0.3s ease forwards; }
@keyframes chatToolIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.chat-tool i { font-size: 0.65rem; color: var(--green); }
.chat-typing { align-self: flex-start; display: flex; gap: 0.3rem; padding: 0.7rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
[dir="rtl"] .chat-typing { align-self: flex-end; }
.chat-typing span { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; animation: typingDot 1.4s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
.chat-input-bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; background: var(--bg-darker); border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.88rem; }
.chat-input-bar i { color: var(--text-muted); cursor: pointer; transition: color var(--transition-fast); }
.chat-input-bar i:hover { color: var(--primary); }
.chat-input-text { flex: 1; font-family: var(--font-code); color: var(--text-muted); }
.chat-input-text::after { content: '|'; margin-inline-start: 2px; animation: blinkInline 1s steps(2) infinite; color: var(--cyan); }
.chat-send { color: var(--primary) !important; }

/* ===== TAB 2: 2D PLAN ===== */
.plan-frame { position: relative; width: 100%; height: 100%; padding: 3rem 1rem 1rem; }
#enginePlan { width: 100%; height: 100%; }
.plan-wall, .plan-door, .plan-win { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.2s ease-out; }
.plan-wall.drawn, .plan-door.drawn, .plan-win.drawn { stroke-dashoffset: 0; }
.plan-camera { opacity: 0; transition: opacity 0.5s ease; }
.plan-camera.shown { opacity: 1; }
.plan-camera circle { filter: drop-shadow(0 0 8px rgba(192,132,252,0.7)); }
.plan-fov { opacity: 0; transition: opacity 0.6s ease; }
.plan-fov.shown { opacity: 0.6; }
.plan-cable { stroke-dasharray: 6 4; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s ease-out; opacity: 0; }
.plan-cable.shown { stroke-dashoffset: 0; opacity: 0.65; animation: cableFlow 2.5s linear infinite; }
@keyframes cableFlow { to { stroke-dashoffset: -200; } }
.plan-label { opacity: 0; transition: opacity 0.5s ease; }
.plan-label.shown { opacity: 0.55; }
.plan-switch { opacity: 0; transition: opacity 0.5s ease; }
.plan-switch.shown { opacity: 1; }

/* ===== TAB 3: 3D VIEW ===== */
.three-frame { position: relative; width: 100%; height: 100%; background: radial-gradient(ellipse at center, #0c1426 0%, #050a14 100%); }
#threeCanvas { display: block; width: 100%; height: 100%; }
.three-controls { display: inline-flex; gap: 0.5rem; pointer-events: auto; }
.three-ctrl { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-code); font-size: 0.72rem; padding: 0.25rem 0.55rem; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 5px; color: var(--text-muted); }
.three-ctrl i { color: var(--primary); font-size: 0.7rem; }
.three-legend, .brain-legend { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0.6rem 1rem; background: rgba(5,10,20,0.85); border: 1px solid var(--border); border-radius: 10px; backdrop-filter: blur(8px); z-index: 5; }
.three-legend span, .brain-legend span { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-code); font-size: 0.78rem; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.dot-pulse { animation: livePulse 1.5s ease-in-out infinite; box-shadow: 0 0 8px currentColor; }

/* ===== TAB 4: NETWORK BRAIN ===== */
.brain-frame { position: relative; width: 100%; height: 100%; background: radial-gradient(ellipse at center, #0a0822 0%, #050314 100%); }
#brainCanvas { display: block; width: 100%; height: 100%; }
.brain-stats { display: inline-flex; gap: 0.7rem; pointer-events: auto; }
.brain-stats span { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-code); font-size: 0.78rem; padding: 0.25rem 0.6rem; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 5px; color: var(--text-secondary); }
.brain-stats i { color: var(--primary); font-size: 0.75rem; }

/* ===== Tool Feed (Right Side) ===== */
.engine-feed { background: #050a14; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-height: 540px; max-height: 600px; }
.engine-feed-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; background: var(--bg-darker); border-bottom: 1px solid var(--border); font-family: var(--font-code); font-size: 0.85rem; color: var(--text-primary); flex-shrink: 0; }
.engine-feed-header i { color: var(--cyan); }
.engine-feed-live { margin-inline-start: auto; color: #ef4444; font-size: 0.72rem; padding: 0.15rem 0.5rem; background: rgba(239,68,68,0.1); border-radius: 4px; animation: livePulse 1.4s ease-in-out infinite; }
.engine-feed-list { flex: 1; overflow-y: auto; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.engine-feed-list::-webkit-scrollbar { width: 5px; }
.engine-feed-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.feed-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.7rem 0.85rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; opacity: 0; animation: feedIn 0.4s ease forwards; font-family: var(--font-code); }
@keyframes feedIn { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }
[dir="rtl"] .feed-item { animation-name: feedInRtl; }
@keyframes feedInRtl { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: translateX(0); } }
.feed-icon { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.feed-icon.feed-tool { background: rgba(192,132,252,0.15); color: var(--primary); }
.feed-icon.feed-result { background: rgba(134,239,172,0.15); color: var(--green); }
.feed-icon.feed-info { background: rgba(103,232,249,0.15); color: var(--cyan); }
.feed-icon.feed-warn { background: rgba(251,191,36,0.15); color: var(--accent); }
.feed-content { flex: 1; min-width: 0; }
.feed-name { font-size: 0.78rem; color: var(--text-primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-detail { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.4; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .engine-cinema { grid-template-columns: 1fr; }
    .engine-feed { min-height: 280px; max-height: 350px; }
}
@media (max-width: 768px) {
    .engine-tab span:not(.tab-badge) { display: none; }
    .engine-tab { padding: 0.6rem 0.8rem; }
    .engine-autoplay { display: none; }
    .engine-screen { min-height: 420px; }
}

/* Stats */
.engine-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.engine-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; transition: all var(--transition-fast); text-align: center; }
.engine-stat:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.engine-stat > i { color: var(--primary); font-size: 1.6rem; }
.engine-stat-value { display: inline-flex; align-items: baseline; gap: 0.15rem; font-family: var(--font-code); font-weight: 800; }
.engine-stat-num { font-size: 1.7rem; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.engine-stat-suffix { font-family: var(--font-code); color: var(--cyan); font-size: 0.95rem; font-weight: 600; }
.engine-stat-label { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-code); }
.engine-stat-pass { color: var(--green); font-size: 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.engine-stat-pass i { color: var(--green); }

/* Tools */
.engine-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.5rem; padding: 1.2rem 1.4rem; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); }
.engine-tools-label { font-family: var(--font-code); color: var(--primary); font-weight: 700; margin-inline-end: 0.5rem; font-size: 0.95rem; }
.engine-tool { font-family: var(--font-code); padding: 0.3rem 0.75rem; background: var(--bg-darker); border-radius: 6px; font-size: 0.78rem; color: var(--cyan); border: 1px solid var(--border); transition: all var(--transition-fast); }
.engine-tool:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

@media (max-width: 1024px) {
    .engine-demo { grid-template-columns: 1fr; height: auto; }
    .engine-canvas { min-height: 400px; }
    .engine-terminal { min-height: 320px; }
}
@media (max-width: 768px) {
    .engine-stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .engine-stat-num { font-size: 1.4rem; }
    .engine-tools { padding: 1rem; }
    .engine-tool { font-size: 0.72rem; }
}

/* ===== Site Search Modal ===== */
.search-toggle { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); padding: 0.6rem 0.8rem; border-radius: 8px; cursor: pointer; transition: all var(--transition); font-size: 0.95rem; }
.search-toggle:hover { background: var(--bg-hover); border-color: var(--primary); color: var(--primary); }

.site-search { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 1rem 2rem; opacity: 0; transition: opacity 0.2s ease; }
.site-search:not([hidden]) { display: flex; }
.site-search.shown { opacity: 1; }
.site-search-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(8px); }
.site-search-box { position: relative; width: 100%; max-width: 720px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(192,132,252,0.15); overflow: hidden; transform: translateY(-12px); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.site-search.shown .site-search-box { transform: translateY(0); }
.site-search-input-wrap { display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); background: var(--bg-darker); }
.site-search-input-wrap > i { color: var(--primary); font-size: 1.1rem; }
.site-search-input { flex: 1; background: transparent; border: 0; color: var(--text-primary); font-family: var(--font-primary); font-size: 1.05rem; outline: none; padding: 0.3rem 0; }
.site-search-input::placeholder { color: var(--text-muted); }
.site-search-close { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); width: 30px; height: 30px; border-radius: 6px; cursor: pointer; transition: all var(--transition-fast); font-size: 0.85rem; }
.site-search-close:hover { border-color: var(--primary); color: var(--primary); }
.site-search-results { max-height: 60vh; overflow-y: auto; padding: 0.5rem; }
.site-search-results::-webkit-scrollbar { width: 6px; }
.site-search-results::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.site-search-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--text-muted); font-family: var(--font-code); font-size: 0.9rem; }
.search-result { display: flex; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: 10px; cursor: pointer; transition: background var(--transition-fast); align-items: flex-start; text-decoration: none; }
.search-result:hover, .search-result.active { background: rgba(192,132,252,0.08); }
.search-result-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.search-result-icon.kind-page { background: rgba(103,232,249,0.12); color: var(--cyan); }
.search-result-icon.kind-service { background: rgba(192,132,252,0.12); color: var(--primary); }
.search-result-icon.kind-faq { background: rgba(251,191,36,0.12); color: var(--accent); }
.search-result-icon.kind-testimonial { background: rgba(134,239,172,0.12); color: var(--green); }
.search-result-icon.kind-pricing { background: rgba(167,139,250,0.12); color: var(--purple); }
.search-result-icon.kind-gallery { background: rgba(239,68,68,0.12); color: #ef4444; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-kind { display: inline-block; font-family: var(--font-code); font-size: 0.7rem; padding: 0.1rem 0.5rem; background: var(--bg-darker); color: var(--text-muted); border-radius: 4px; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; }
.search-result-title { font-family: var(--font-code); color: var(--text-primary); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; line-height: 1.4; }
.search-result-snippet { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result mark { background: rgba(192,132,252,0.25); color: var(--primary); padding: 0 2px; border-radius: 2px; }
.site-search-footer { padding: 0.7rem 1.2rem; border-top: 1px solid var(--border); background: var(--bg-darker); display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-code); }
.site-search-footer kbd { background: var(--bg-card); border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 4px; font-family: var(--font-code); font-size: 0.75rem; color: var(--text-secondary); }
@media (max-width: 600px) { .site-search { padding: 4vh 0.5rem 0.5rem; } .site-search-footer { font-size: 0.7rem; gap: 0.7rem; } }

/* ===== Chat Widget ===== */
.chat-fab { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 4500; width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-1); border: 0; color: white; font-size: 1.5rem; cursor: pointer; box-shadow: 0 10px 30px rgba(192,132,252,0.45), 0 0 0 1px rgba(192,132,252,0.3); transition: all var(--transition-smooth); display: flex; align-items: center; justify-content: center; }
.chat-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 35px rgba(192,132,252,0.6); }
.chat-fab.open { transform: scale(0.92); opacity: 0; pointer-events: none; }
.chat-fab-dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 12px; height: 12px; background: #ef4444; border: 2px solid var(--bg-dark); border-radius: 50%; animation: livePulse 1.4s ease-in-out infinite; }

.chat-panel { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 4501; width: 380px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 48px); background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 25px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(192,132,252,0.15); display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(0.95); opacity: 0; transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; }
.chat-panel:not([hidden]) { display: flex; }
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; background: linear-gradient(135deg, rgba(192,132,252,0.15), rgba(103,232,249,0.08)); border-bottom: 1px solid var(--border); }
.chat-panel-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient-1); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; flex-shrink: 0; }
.chat-panel-info { flex: 1; }
.chat-panel-name { font-family: var(--font-code); color: var(--text-primary); font-weight: 700; font-size: 0.95rem; }
.chat-panel-status { font-size: 0.75rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; }
.chat-panel-close { width: 32px; height: 32px; background: var(--bg-darker); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 8px; cursor: pointer; transition: all var(--transition-fast); }
.chat-panel-close:hover { border-color: var(--primary); color: var(--primary); }
.chat-panel-body { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.7rem; background: var(--bg-darker); }
.chat-panel-body::-webkit-scrollbar { width: 5px; }
.chat-panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.chat-bot-msg, .chat-user-msg { max-width: 85%; padding: 0.7rem 0.95rem; border-radius: 14px; line-height: 1.55; font-size: 0.9rem; opacity: 0; animation: chatIn 0.3s ease forwards; }
.chat-bot-msg { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); border-bottom-left-radius: 4px; }
[dir="rtl"] .chat-bot-msg { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.chat-user-msg { align-self: flex-end; background: var(--gradient-1); color: white; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat-user-msg { align-self: flex-start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.chat-bot-msg a { color: var(--primary); font-weight: 600; }
.chat-bot-msg a:hover { color: var(--cyan); }
.chat-bot-typing { align-self: flex-start; display: flex; gap: 0.3rem; padding: 0.7rem 0.9rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
[dir="rtl"] .chat-bot-typing { align-self: flex-end; }
.chat-bot-typing span { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: typingDot 1.4s ease-in-out infinite; }
.chat-bot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bot-typing span:nth-child(3) { animation-delay: 0.4s; }
.chat-panel-quick { padding: 0.5rem 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; border-top: 1px solid var(--border); background: var(--bg-card); max-height: 90px; overflow-y: auto; }
.chat-panel-quick:empty { display: none; }
.chat-quick-btn { background: var(--bg-darker); border: 1px solid var(--border); color: var(--text-secondary); padding: 0.45rem 0.85rem; border-radius: 18px; font-family: var(--font-code); font-size: 0.78rem; cursor: pointer; transition: all var(--transition-fast); }
.chat-quick-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(192,132,252,0.1); }
.chat-panel-input { display: flex; gap: 0.5rem; padding: 0.7rem 0.9rem; background: var(--bg-card); border-top: 1px solid var(--border); }
.chat-panel-input input { flex: 1; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; color: var(--text-primary); font-family: var(--font-primary); font-size: 0.9rem; outline: none; }
.chat-panel-input input:focus { border-color: var(--primary); }
.chat-panel-input button { width: 38px; background: var(--gradient-1); border: 0; border-radius: 10px; color: white; cursor: pointer; transition: transform var(--transition-fast); }
.chat-panel-input button:hover { transform: scale(1.05); }

@media (max-width: 480px) {
    .chat-panel { bottom: 0; inset-inline-end: 0; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
    .chat-fab { bottom: 16px; inset-inline-end: 16px; width: 54px; height: 54px; }
}

/* Page Hero (used on subpage layouts) */
.page-hero { padding: 5rem 0 3rem; text-align: center; }
.page-hero-inner { max-width: 820px; margin: 0 auto; padding: 0 2rem; }
.page-hero-tag { font-family: var(--font-code); color: var(--cyan); font-size: 0.95rem; opacity: 0.85; letter-spacing: 1px; }
.page-hero-title { font-family: var(--font-code); font-size: 3rem; font-weight: 800; margin: 0.8rem 0 1.5rem; display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.page-hero-title .title-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-title .title-bracket { color: var(--purple); }
.page-hero-desc { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; max-width: 700px; margin: 0 auto; }
@media (max-width: 768px) { .page-hero { padding: 3rem 0 2rem; } .page-hero-title { font-size: 2rem; } .page-hero-desc { font-size: 1rem; } }

/* Plain text legal pages */
.legal-section { padding: 2rem 0 5rem; }
.legal-content { max-width: 820px; margin: 0 auto; padding: 0 2rem; color: var(--text-secondary); line-height: 1.85; font-size: 1rem; }
.legal-content h2 { font-family: var(--font-code); color: var(--primary); font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.legal-content p { margin-bottom: 1.2rem; }
.legal-content ul { padding-inline-start: 1.5rem; margin-bottom: 1.2rem; }
.legal-content li { margin-bottom: 0.5rem; }

/* Booking form */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.booking-info { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.booking-info h3 { font-family: var(--font-code); color: var(--primary); font-size: 1.2rem; margin-bottom: 1.2rem; }
.booking-step { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.booking-step-num { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: white; border-radius: 50%; font-family: var(--font-code); font-weight: 700; }
.booking-step-text { font-size: 0.95rem; color: var(--text-secondary); padding-top: 0.4rem; }
.booking-step-text b { color: var(--text-primary); display: block; margin-bottom: 0.3rem; }
@media (max-width: 768px) { .booking-grid { grid-template-columns: 1fr; } }

/* Blog cards (placeholder) */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all var(--transition-smooth); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }
.blog-card-img { width: 100%; height: 180px; background: linear-gradient(135deg, rgba(192,132,252,0.18), rgba(103,232,249,0.12)); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2.5rem; }
.blog-card-body { padding: 1.5rem; }
.blog-card-tag { display: inline-block; font-family: var(--font-code); color: var(--cyan); font-size: 0.78rem; padding: 0.2rem 0.6rem; background: rgba(103,232,249,0.1); border-radius: 4px; margin-bottom: 0.8rem; }
.blog-card-title { font-family: var(--font-code); font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.7rem; line-height: 1.4; }
.blog-card-excerpt { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.blog-card-meta { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-code); display: flex; gap: 1rem; }

/* Section CTA (View All buttons) */
.section-cta { text-align: center; margin-top: 3rem; }
.section-cta .btn { display: inline-flex; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem; position: relative; transition: all var(--transition-smooth); overflow: hidden; }
.testimonial-card::before { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: radial-gradient(circle at top right, rgba(192,132,252,0.18), transparent 60%); pointer-events: none; }
.testimonial-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 20px 35px rgba(0,0,0,0.3); }
.testimonial-quote-icon { position: absolute; top: 1.5rem; right: 1.8rem; font-size: 2rem; color: var(--primary); opacity: 0.25; }
[dir="rtl"] .testimonial-quote-icon { right: auto; left: 1.8rem; transform: scaleX(-1); }
.testimonial-stars { display: flex; gap: 0.3rem; color: var(--accent); font-size: 0.9rem; margin-bottom: 1.2rem; }
.testimonial-text { color: var(--text-secondary); line-height: 1.8; font-size: 0.98rem; margin-bottom: 1.8rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-1); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; flex-shrink: 0; }
.testimonial-info { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial-name { font-family: var(--font-code); color: var(--text-primary); font-weight: 700; font-size: 0.95rem; }
.testimonial-role { color: var(--text-muted); font-size: 0.85rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all var(--transition); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 8px 25px rgba(192,132,252,0.15); }
.faq-question { width: 100%; padding: 1.3rem 1.5rem; display: flex; align-items: center; gap: 1rem; background: transparent; border: 0; color: var(--text-primary); font-family: var(--font-code); font-size: 1rem; font-weight: 600; cursor: pointer; text-align: inherit; transition: background var(--transition); }
.faq-question:hover { background: rgba(192,132,252,0.05); }
.faq-q-icon { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.faq-q-text { flex: 1; }
.faq-toggle { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg-darker); border-radius: 8px; color: var(--primary); transition: all var(--transition-smooth); flex-shrink: 0; }
.faq-item.open .faq-toggle { background: var(--gradient-1); color: white; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.8; padding-inline-start: 3.7rem; }

/* CTA */
.cta-section { padding: 5rem 2rem; }
.cta-container { max-width: 1200px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 4rem 3rem; position: relative; overflow: hidden; text-align: center; }
.cta-bg-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(192,132,252,0.18), transparent 40%), radial-gradient(circle at 80% 70%, rgba(103,232,249,0.15), transparent 40%); pointer-events: none; }
.cta-content { position: relative; z-index: 2; }
.cta-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(192,132,252,0.12); border: 1px solid rgba(192,132,252,0.3); color: var(--primary); padding: 0.4rem 1rem; border-radius: 20px; font-family: var(--font-code); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.cta-title { font-family: var(--font-code); font-size: 2.5rem; font-weight: 800; margin-bottom: 1.2rem; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.cta-text { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; max-width: 700px; margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) { .cta-section { padding: 3rem 1rem; } .cta-container { padding: 2.5rem 1.5rem; border-radius: 16px; } .cta-title { font-size: 1.6rem; } .cta-text { font-size: 0.95rem; } .cta-buttons { flex-direction: column; gap: 1rem; } .cta-buttons .btn { width: 100%; justify-content: center; } }

/* Footer Top */
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand .brand-logo { font-size: 1.4rem; margin-bottom: 0.8rem; }
.footer-tagline { color: var(--text-muted); font-family: var(--font-code); font-size: 0.9rem; }
.footer-heading { font-family: var(--font-code); color: var(--text-primary); font-size: 1rem; margin-bottom: 1rem; font-weight: 700; }
.footer-contact, .footer-quick { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-phone, .footer-quick a { color: var(--text-secondary); text-decoration: none; font-family: var(--font-code); font-size: 0.9rem; transition: color var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-phone i, .footer-quick a i { color: var(--primary); font-size: 0.85rem; }
.footer-phone:hover, .footer-quick a:hover { color: var(--primary); }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; } .footer-contact, .footer-quick { align-items: center; } }

/* Contact */
.contact-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1.5rem; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: all var(--transition-smooth); align-items: center; }
.contact-item:hover { border-color: var(--primary); transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.contact-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); border-radius: 12px; color: white; font-size: 1.5rem; flex-shrink: 0; }
.contact-details { flex: 1; }
.contact-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.3rem; font-family: var(--font-code); }
.contact-value { color: var(--primary); font-weight: 600; text-decoration: none; font-family: var(--font-code); display: block; word-break: break-word; }
.contact-value:hover { color: var(--cyan); }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { position: relative; }
.form-input { width: 100%; padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; 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(192,132,252,0.1); }
.form-textarea { resize: vertical; min-height: 150px; }
.btn-submit { align-self: flex-start; }

/* Footer */
.main-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 0; margin-top: 4rem; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-text-wrapper { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-text { color: var(--text-secondary); font-size: 0.95rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; line-height: 1.6; }
.footer-copyright { color: var(--text-primary); font-weight: 600; }
.footer-divider { color: var(--text-muted); }
.footer-built { color: var(--text-secondary); }
.footer-author { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-by-text { color: var(--text-muted); }
.footer-author-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); text-decoration: none; font-weight: 700; transition: all var(--transition-fast); padding: 0.2rem 0.5rem; border-radius: 6px; }
.footer-author-link:hover { color: var(--cyan); background: rgba(192,132,252,0.1); transform: translateY(-2px); }
.footer-author-link i { font-size: 0.85rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social-link { width: 40px; height: 40px; 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-fast); }
.footer-social-link:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }

.fade-in { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RTL adjustments */
[dir="rtl"] .timeline { padding-inline-start: 2rem; padding-inline-end: 0; }
[dir="rtl"] .timeline::before { left: auto; right: 0; }
[dir="rtl"] .timeline-marker { left: auto; right: -2.5rem; }
[dir="rtl"] .timeline-content:hover { transform: translateX(-5px); }
[dir="rtl"] .contact-item:hover { transform: translateX(-5px); }
[dir="rtl"] .badge-1 { right: auto; left: -10%; }
[dir="rtl"] .badge-2 { right: auto; left: -15%; }
[dir="rtl"] .badge-3 { left: auto; right: -15%; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-image-wrapper { order: -1; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-social { justify-content: center; }
}
@media (max-width: 768px) {
    .nav-container { padding: 0.8rem 1rem; }
    .nav-menu { position: fixed; top: 60px; left: -100%; width: 100%; background: var(--bg-card); flex-direction: column; padding: 2rem 1rem; border-top: 1px solid var(--border); transition: left var(--transition); z-index: 999; max-height: calc(100vh - 60px); overflow-y: auto; gap: 0.5rem; }
    [dir="rtl"] .nav-menu { left: auto; right: -100%; transition: right var(--transition); }
    .nav-menu.active { left: 0; }
    [dir="rtl"] .nav-menu.active { left: auto; right: 0; }
    .nav-link { width: 100%; justify-content: flex-start; padding: 1rem; border-radius: 8px; }
    .menu-toggle { display: flex; }
    .main-content { margin-top: 60px; }
    .hero-section { min-height: auto; padding: 2rem 0; }
    .hero-container { padding: 0 1rem; gap: 2rem; }
    .hero-name { font-size: 2rem; margin-bottom: 1rem; }
    .hero-title { font-size: 1.2rem; margin-bottom: 1rem; }
    .hero-description { font-size: 1rem; margin-bottom: 2rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
    .btn { width: 100%; justify-content: center; padding: 0.9rem 1.5rem; }
    .hero-social { flex-wrap: wrap; gap: 1rem; }
    .social-icon { width: 45px; height: 45px; }
    .section { padding: 2rem 0; }
    .section-container { padding: 0 1rem; }
    .section-header { flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
    .section-title { font-size: 1.8rem; flex-wrap: wrap; }
    .section-line { width: 100%; margin-inline-start: 0; margin-top: 0.5rem; }
    .about-stats { grid-template-columns: 1fr; gap: 1rem; }
    .stat-item { padding: 1.5rem; }
    .stat-number { font-size: 2rem; }
    .code-block { padding: 1.5rem; font-size: 0.8rem; }
    .skills-grid { grid-template-columns: 1fr; gap: 2rem; }
    .skill-category { padding: 2rem; }
    .timeline { padding-inline-start: 1.5rem; }
    .timeline-item { padding-inline-start: 2rem; padding-bottom: 3rem; }
    .timeline-marker { left: -1.75rem; width: 14px; height: 14px; }
    [dir="rtl"] .timeline-marker { left: auto; right: -1.75rem; }
    .timeline-content { padding: 1.5rem; }
    .timeline-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .timeline-title { font-size: 1.3rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-item { padding: 1.5rem; flex-direction: column; text-align: center; gap: 1rem; }
    .contact-icon { margin: 0 auto; }
    .footer-container { padding: 0 1rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .hero-image-container { width: 280px; height: 280px; }
    .floating-badge { display: none; }
    .scroll-indicator { display: none; }
}
@media (max-width: 480px) {
    html { font-size: 14px; }
    .brand-logo { font-size: 1.2rem; }
    .lang-toggle, .theme-toggle { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
    .hero-name { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .hero-image-container { width: 220px; height: 220px; }
    .stat-number { font-size: 1.8rem; }
    .footer-author { flex-direction: column; gap: 0.3rem; }
}