/* ============================================
   MAGHREB BYTE V3 - Premium Digital Agency
   Master Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #A6FF00;
  --primary-rgb: 166, 255, 0;
  --primary-dark: #7acc00;
  --primary-glow: rgba(166, 255, 0, 0.3);
  --primary-glow-strong: rgba(166, 255, 0, 0.6);
  --bg: #000000;
  --bg-alt: #050505;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --glass-bg: rgba(0, 0, 0, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 30px rgba(166, 255, 0, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection { background: rgba(166, 255, 0, 0.3); color: #000; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(166, 255, 0, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(166, 255, 0, 0.4); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ============================================
   MINIMAL PREMIUM LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.loading-brand-first {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.loading-brand-last {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.loading-logo-img {
  height: 32px;
  width: auto;
}

.loading-bar-track {
  width: 200px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-glow-strong), 0 0 16px var(--primary-glow);
  transition: width 0.3s ease;
}

.loading-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 2px;
  margin-top: 16px;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(166, 255, 0, 0.02) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   NAVIGATION - GLASSMORPHISM
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo-text { color: #ffffff; letter-spacing: 2px; }
.nav-logo-accent { color: var(--primary); letter-spacing: 2px; }

.nav-logo-img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

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

.nav-cta {
  padding: 8px 18px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switcher a {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 4px;
  transition: var(--transition);
  text-transform: uppercase;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--primary);
  background: rgba(166, 255, 0, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(166, 255, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.hero-floating-lights {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-light {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: lightFloat 8s ease-in-out infinite;
}

.hero-light:nth-child(1) {
  top: 15%;
  left: 10%;
  background: rgba(166, 255, 0, 0.15);
  animation-delay: 0s;
}

.hero-light:nth-child(2) {
  bottom: 20%;
  right: 15%;
  background: rgba(166, 255, 0, 0.1);
  animation-delay: 3s;
}

.hero-light:nth-child(3) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(166, 255, 0, 0.05);
  animation-delay: 6s;
  width: 400px;
  height: 400px;
}

@keyframes lightFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-brand-first { color: #ffffff; }
.hero-brand-last { color: var(--primary); }

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-description {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(166, 255, 0, 0.06);
  border: 1px solid rgba(166, 255, 0, 0.12);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.hero-title .line {
  display: block;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: var(--transition);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  box-shadow: 0 4px 20px rgba(166, 255, 0, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(166, 255, 0, 0.3);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  position: relative;
  padding: 120px 40px;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   SERVICES CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-slow);
  cursor: pointer;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(166, 255, 0, 0.03), transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(166, 255, 0, 0.1), transparent 50%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 255, 0, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(166, 255, 0, 0.06);
  border: 1px solid rgba(166, 255, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  transition: var(--transition);
}

.service-card:hover .service-card-icon {
  background: rgba(166, 255, 0, 0.1);
  box-shadow: 0 0 20px rgba(166, 255, 0, 0.1);
}

.service-card-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover .service-card-number {
  color: rgba(166, 255, 0, 0.04);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.15;
}

.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-feature:hover {
  background: var(--bg-card-hover);
  border-color: rgba(166, 255, 0, 0.1);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  background: rgba(166, 255, 0, 0.08);
  border: 1px solid rgba(166, 255, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.about-feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.about-visual {
  position: relative;
}

.about-visual-inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  overflow: hidden;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-stat {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-stat:hover {
  border-color: rgba(166, 255, 0, 0.15);
  box-shadow: var(--shadow-glow);
}

.about-stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--primary-glow);
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stats-section {
  padding: 100px 40px;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 50px 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 255, 0, 0.3), transparent);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 255, 0, 0.15);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px var(--primary-glow);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(166, 255, 0, 0.06), transparent);
  pointer-events: none;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: rgba(166, 255, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(166, 255, 0, 0.05);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder { color: var(--text-muted); }

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

.form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23888'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-select:focus {
  border-color: rgba(166, 255, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(166, 255, 0, 0.05);
}

.form-select option { background: #111; color: #fff; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-info-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(166, 255, 0, 0.1);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(166, 255, 0, 0.08);
  border: 1px solid rgba(166, 255, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.newsletter-cta {
  position: relative;
  padding: 100px 40px;
  overflow: hidden;
}

.newsletter-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(166, 255, 0, 0.03), transparent);
  pointer-events: none;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 255, 0, 0.3), transparent);
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.newsletter-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form .form-input {
  flex: 1;
}

.newsletter-form .btn {
  white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 80px 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-brand .nav-logo-accent { color: var(--primary); letter-spacing: 2px; }

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

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(166, 255, 0, 0.08);
  border-color: rgba(166, 255, 0, 0.15);
  color: var(--primary);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-contact-icon {
  color: var(--primary);
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.text-reveal {
  overflow: hidden;
}

.text-reveal-inner {
  display: block;
  transform: translateY(100%);
  animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
  to { transform: translateY(0); }
}

/* Float animation for cards */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(166, 255, 0, 0.1); }
  50% { box-shadow: 0 0 40px rgba(166, 255, 0, 0.2); }
}

/* Data stream effect */
.data-stream {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(166, 255, 0, 0.1), transparent);
  animation: dataStream 4s ease infinite;
}

@keyframes dataStream {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* Cyber line effect */
.cyber-line {
  position: absolute;
  background: rgba(166, 255, 0, 0.05);
  transition: var(--transition-slow);
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-actions { flex-direction: row-reverse; }
[dir="rtl"] .about-grid { direction: rtl; }
[dir="rtl"] .contact-grid { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .form-row { direction: rtl; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .service-card-number { right: auto; left: 24px; }
[dir="rtl"] .newsletter-form { flex-direction: row-reverse; }
[dir="rtl"] .footer-social { flex-direction: row-reverse; }
[dir="rtl"] .form-select { background-position: left 16px center; }
[dir="rtl"] .loading-brand { flex-direction: row; }
[dir="rtl"] .footer-contact-item { flex-direction: row-reverse; }
[dir="rtl"] .nav-logo { flex-direction: row; }
[dir="rtl"] .about-feature { flex-direction: row-reverse; }
[dir="rtl"] .contact-info-item { flex-direction: row-reverse; }
[dir="rtl"] .hero-buttons { flex-direction: row-reverse; }
[dir="rtl"] .hero-brand { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 20px; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-brand { margin-bottom: 16px; }
  .hero-brand-first { font-size: 13px; letter-spacing: 4px; }
  .hero-brand-last { font-size: 13px; letter-spacing: 4px; }
  .hero-tagline { font-size: clamp(20px, 5vw, 28px); }
  .hero-description { font-size: 14px; margin-bottom: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about-stat { padding: 20px 12px; }
  .about-stat-number { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-section { padding: 60px 20px; }
  .loading-brand-first { font-size: 16px; letter-spacing: 4px; }
  .loading-brand-last { font-size: 16px; letter-spacing: 4px; }
  .loading-logo-img { height: 26px; }
  .loading-bar-track { width: 160px; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .btn { padding: 14px 24px; font-size: 13px; }
  .contact-form-wrap { padding: 24px; }
  .newsletter-inner { padding: 40px 24px; }
  .hero-brand-first { font-size: 11px; letter-spacing: 3px; }
  .hero-brand-last { font-size: 11px; letter-spacing: 3px; }
  .hero-tagline { font-size: clamp(18px, 5vw, 22px); }
  .loading-brand-first { font-size: 14px; letter-spacing: 3px; }
  .loading-brand-last { font-size: 14px; letter-spacing: 3px; }
  .loading-bar-track { width: 140px; }
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px;
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(120px, 20vw, 200px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 60px var(--primary-glow);
}

.error-page p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 20px 0 30px;
}

/* ============================================
   BLOG & PORTFOLIO PAGES
   ============================================ */
.page-header {
  padding: 160px 40px 80px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 255, 0, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(166, 255, 0, 0.05), transparent);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--primary); }

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.portfolio-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 255, 0, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(166, 255, 0, 0.03), transparent);
}

.portfolio-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-body {
  padding: 24px;
}

.portfolio-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.portfolio-card-tech span {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(166, 255, 0, 0.06);
  border: 1px solid rgba(166, 255, 0, 0.1);
  border-radius: 4px;
  color: var(--primary);
}

.portfolio-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.portfolio-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-card-link {
  gap: 8px;
}

/* ============================================
   UTILITY
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.glow { box-shadow: var(--shadow-glow); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.gap-16 { gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* ============================================
   LEGAL PAGES (PRIVACY & TERMS)
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.legal-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 48px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

[dir="rtl"] .legal-intro {
  border-left: none;
  border-right: 3px solid var(--primary);
  border-radius: 8px 0 0 8px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--primary);
}

.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}
