/* ===================================
   MIND WEB - Professional CSS
   Cybersecurity & Programming Company
   =================================== */

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

/* ===== CSS Variables ===== */
:root {
  --primary: #00d4ff;
  --primary-dark: #0090b3;
  --secondary: #00ff88;
  --accent: #7b2fff;
  --dark: #020b18;
  --dark-2: #050f1e;
  --dark-3: #081428;
  --dark-card: #0d1b2e;
  --dark-border: #1a2d45;
  --text-primary: #e8f4fd;
  --text-secondary: #8ba8c4;
  --text-muted: #4a6b8a;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7b2fff 100%);
  --gradient-secondary: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
  --gradient-dark: linear-gradient(135deg, #020b18 0%, #081428 100%);
  --glow-primary: 0 0 20px rgba(0, 212, 255, 0.4);
  --glow-secondary: 0 0 20px rgba(0, 255, 136, 0.3);
  --glow-accent: 0 0 30px rgba(123, 47, 255, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

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

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

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

::-webkit-scrollbar-track {
  background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

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

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.heading-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 10px;
  margin: 16px auto 24px;
  position: relative;
}

.heading-divider::after {
  content: '';
  position: absolute;
  right: -10px;
  top: -2px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ===== Buttons ===== */
.btn-primary-mw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.btn-primary-mw:hover::before {
  left: 100%;
}

.btn-primary-mw:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
  color: #fff;
}

.btn-outline-mw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  padding: 13px 31px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-mw:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
  color: var(--primary);
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.preloader-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.preloader-logo-img {
  max-width: 180px;
  height: auto;
  animation: pulse-logo 2s var(--ease-smooth) infinite alternate;
}

@keyframes pulse-logo {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.8));
  }
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--dark-border);
  border-radius: 10px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  animation: preloader-fill 1.5s ease forwards;
}

@keyframes preloader-fill {
  0% {
    width: 0%;
  }

  60% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

/* ===== Navbar ===== */
.navbar-mw {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar-mw.scrolled {
  background: rgba(2, 11, 24, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-mw .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 45px;
  width: auto;
  transition: transform 0.4s var(--ease-smooth), filter 0.4s var(--ease-smooth);
  filter: drop-shadow(0px 0px 5px rgba(0, 212, 255, 0.2));
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0px 0px 15px rgba(0, 212, 255, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

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

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

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

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-phone:hover {
  color: var(--primary);
}

.nav-phone i {
  color: var(--primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 10px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.nav-mobile a:hover {
  color: var(--primary);
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(60px);
  }
}

.hero-glow-1 {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-eyebrow .blink {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s step-end infinite;
  box-shadow: 0 0 8px var(--secondary);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: #fff;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .green-text {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-border);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
}

.hero-card-main {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
}

.hero-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.hero-card-header {
  background: var(--dark-2);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--dark-border);
}

.hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-card-dot:nth-child(1) {
  background: #ff5f56;
}

.hero-card-dot:nth-child(2) {
  background: #ffbd2e;
}

.hero-card-dot:nth-child(3) {
  background: #27c93f;
}

.hero-card-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-code-block {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  height: 330px;
  /* Fixed height to prevent jumping */
  overflow: hidden;
}

.code-line {
  display: flex;
  gap: 12px;
}

.code-line-num {
  color: var(--text-muted);
  min-width: 20px;
  text-align: right;
}

.code-keyword {
  color: #c792ea;
}

.code-class {
  color: #82aaff;
}

.code-string {
  color: #c3e88d;
}

.code-func {
  color: var(--primary);
}

.code-comment {
  color: #546e7a;
}

.code-var {
  color: #f78c6c;
}

.code-op {
  color: var(--text-secondary);
}

.hero-floating-badge {
  position: absolute;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite;
}

.hero-floating-badge:nth-child(2) {
  animation-delay: -2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-badge-1 {
  bottom: -20px;
  left: -30px;
}

.hero-badge-2 {
  top: -20px;
  right: -30px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.badge-icon.green {
  background: rgba(0, 255, 136, 0.15);
  color: var(--secondary);
}

.badge-icon.blue {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary);
}

.badge-text-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.badge-text-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

/* ===== Clients Section ===== */
.clients-section {
  padding: 50px 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  background: var(--dark-2);
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.clients-track-wrap {
  overflow: hidden;
  position: relative;
}

.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.clients-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-2), transparent);
}

.clients-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-2), transparent);
}

.clients-track {
  display: flex;
  gap: 60px;
  animation: scroll-track 25s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

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

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

.client-logo {
  width: 120px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  filter: grayscale(1) brightness(2);
  transition: var(--transition);
  flex-shrink: 0;
}

.client-logo:hover {
  opacity: 1;
  filter: none;
}

.client-logo img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
}

/* ===== Services Section ===== */
.services-section {
  padding: 120px 0;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(123, 47, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.service-card {
  background: rgba(13, 27, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.15);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
}

.service-icon.cyan {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.service-icon.green {
  background: rgba(0, 255, 136, 0.1);
  color: var(--secondary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.service-icon.purple {
  background: rgba(123, 47, 255, 0.1);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(123, 47, 255, 0.2);
}

.service-icon.orange {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

.service-icon.red {
  background: rgba(255, 80, 80, 0.1);
  color: #ff5050;
  box-shadow: 0 0 20px rgba(255, 80, 80, 0.2);
}

.service-icon.teal {
  background: rgba(0, 220, 180, 0.1);
  color: #00dcb4;
  box-shadow: 0 0 20px rgba(0, 220, 180, 0.2);
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-tag.green {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.2);
  color: var(--secondary);
}

.service-tag.purple {
  background: rgba(123, 47, 255, 0.08);
  border-color: rgba(123, 47, 255, 0.2);
  color: var(--accent);
}

/* ===== About Section ===== */
.about-section {
  padding: 120px 0;
  background: var(--dark-2);
  position: relative;
}

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

.about-image-wrap {
  position: relative;
}

.about-image-main {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-card);
  position: relative;
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 400px;
}

.about-logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 2;
  position: relative;
}

.about-image-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--glow-primary);
  z-index: 2;
}

.about-exp-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  display: block;
  line-height: 1;
}

.about-exp-txt {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-tech-badge {
  position: absolute;
  top: 30px;
  left: -30px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  z-index: 2;
}

.about-tech-icon {
  font-size: 1.5rem;
}

.about-tech-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.about-tech-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.about-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-percent {
  font-size: 0.8rem;
  color: var(--primary);
  font-family: var(--font-mono);
}

.skill-bar {
  height: 4px;
  background: var(--dark-border);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-highlights {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.highlight-item i {
  color: var(--secondary);
  font-size: 0.85rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(13, 27, 46, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  display: none;
  animation: fadeSlide 0.5s ease;
  position: relative;
}

.testimonial-card.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 24px;
  left: 40px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars i {
  color: #ffd700;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-border);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
  box-shadow: var(--glow-primary);
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 120px 0;
  background: var(--dark-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: var(--dark);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--dark-border);
  padding-top: 16px;
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  padding: 120px 0;
  position: relative;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--dark-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-primary);
}

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

.portfolio-item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(13, 27, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  cursor: pointer;
}

.portfolio-hidden {
  display: none !important;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.15);
  z-index: 10;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 11, 24, 0.95) 0%, rgba(2, 11, 24, 0.3) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

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

.portfolio-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: var(--transition);
}

.portfolio-item-cat {
  font-size: 0.8rem;
  color: var(--primary);
  transform: translateY(10px);
  transition: var(--transition);
  transition-delay: 0.05s;
}

.portfolio-item:hover .portfolio-item-title,
.portfolio-item:hover .portfolio-item-cat {
  transform: translateY(0);
}

.portfolio-item-link {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-item-link {
  opacity: 1;
  transform: scale(1);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 120px 0;
  background: var(--dark-2);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 27, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}

.contact-form-wrap {
  background: rgba(13, 27, 46, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  position: relative;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-control-mw {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}

.form-control-mw:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

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

.form-status {
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer-mw {
  background: var(--dark-3);
  border-top: 1px solid var(--dark-border);
}

.footer-top {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

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

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.2));
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

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

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.footer-links li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--primary);
  transform: translateX(6px);
}

.footer-links li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--dark-border);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copyright a {
  color: var(--primary);
}

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

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* ===== Back to Top ===== */
.back-to-top-mw {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 500;
  border: none;
  box-shadow: var(--glow-primary);
  transition: var(--transition);
  text-decoration: none;
}

.back-to-top-mw:hover {
  transform: translateY(-4px) scale(1.1);
  color: #fff;
}

.back-to-top-mw.visible {
  display: flex;
}

/* ===== Animations (Scroll) ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Container ===== */
.container-mw {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* =====================================================
   PROFESSIONAL RESPONSIVE SYSTEM — Mind Web
   Breakpoints:
     xl:   ≥1400px  (Large/4K Desktop)
     lg:   ≤1199px  (Small Desktop)
     md:   ≤1024px  (Tablet Landscape)
     sm:   ≤768px   (Tablet Portrait / Large Mobile)
     xs:   ≤600px   (Large Mobile)
     xxs:  ≤480px   (Standard Mobile)
     tiny: ≤375px   (Small Mobile)
   ===================================================== */

/* ===== LARGE/4K DESKTOP (≥1400px) ===== */
@media (min-width: 1400px) {
  .container-mw {
    max-width: 1360px;
  }

  .hero-container {
    max-width: 1360px;
    gap: 100px;
  }

  .services-grid,
  .portfolio-grid {
    gap: 32px;
  }

  .section-subtitle {
    max-width: 700px;
  }
}

/* ===== SMALL DESKTOP (≤1199px) ===== */
@media (max-width: 1199px) {
  .hero-container {
    gap: 48px;
  }

  .hero-code-block {
    font-size: 0.73rem;
    padding: 20px;
  }

  .about-grid {
    gap: 60px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: 100%;
  }
}

/* ===== TABLET LANDSCAPE (≤1024px) ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

  .hero-text-wrap {
    max-width: 700px;
    margin: 0 auto;
  }

  .hero-description {
    margin: 0 auto 40px;
    max-width: 580px;
  }

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

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

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
    margin: 48px auto 0;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  .services-section,
  .about-section,
  .testimonials-section,
  .faq-section,
  .portfolio-section,
  .contact-section {
    padding: 90px 0;
  }

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

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

  .about-image-wrap {
    max-width: 520px;
    margin: 0 auto;
  }

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

  .about-text .section-title {
    text-align: center !important;
  }

  .about-highlights {
    justify-content: center;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: 100%;
  }

  .nav-cta .btn-primary-mw {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links li a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
}

/* ===== TABLET PORTRAIT / LARGE MOBILE (≤768px) ===== */
@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .navbar-mw {
    padding: 12px 0;
  }

  .container-mw {
    padding: 0 20px;
  }

  .hero-content {
    padding: 85px 0 50px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 28px;
    margin-top: 36px;
    max-width: 100%;
  }

  .hero-stat-number {
    font-size: 1.7rem;
  }

  .services-section,
  .about-section,
  .testimonials-section,
  .faq-section,
  .portfolio-section,
  .contact-section {
    padding: 70px 0;
  }

  .footer-top {
    padding: 56px 0 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .about-image-main img {
    height: 350px;
  }

  .about-exp-badge {
    right: -4px;
    bottom: -12px;
    padding: 14px 18px;
  }

  .about-exp-num {
    font-size: 2rem;
  }

  .about-tech-badge {
    left: -4px;
    top: 24px;
  }

  .about-skills {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .testimonial-card::before {
    font-size: 3.5rem;
    left: 24px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

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

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .back-to-top-mw {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  [data-tilt] {
    transform: none !important;
  }

  .service-card:hover {
    transform: translateY(-4px);
  }

  .portfolio-item:hover {
    transform: translateY(-4px);
  }
}

/* ===== LARGE MOBILE (≤600px) ===== */
@media (max-width: 600px) {
  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }

  .about-tech-badge {
    display: none;
  }

  .clients-track-wrap::before,
  .clients-track-wrap::after {
    width: 40px;
  }

  .client-logo {
    width: 80px;
  }

  .testimonials-slider {
    padding: 0;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* ===== STANDARD MOBILE (≤480px) ===== */
@media (max-width: 480px) {
  .container-mw {
    padding: 0 16px;
  }

  .hero-content {
    padding: 76px 0 40px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    letter-spacing: -0.5px;
    line-height: 1.1;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .btn-primary-mw,
  .hero-actions .btn-outline-mw {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat-number {
    font-size: 1.4rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0;
  }

  .services-section,
  .about-section,
  .testimonials-section,
  .faq-section,
  .portfolio-section,
  .contact-section {
    padding: 56px 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    letter-spacing: -0.5px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  .heading-divider {
    margin: 12px auto 20px;
  }

  .section-badge {
    font-size: 0.68rem;
    letter-spacing: 1px;
    padding: 5px 12px;
  }

  .btn-primary-mw,
  .btn-outline-mw {
    padding: 12px 22px;
    font-size: 0.88rem;
  }

  .about-image-main img {
    height: 280px;
  }

  .about-exp-badge {
    right: 0;
    bottom: -10px;
    padding: 12px 14px;
  }

  .about-exp-num {
    font-size: 1.7rem;
  }

  .about-exp-txt {
    font-size: 0.65rem;
  }

  .cyber-terminal-panel {
    height: 180px;
    font-size: 0.72rem;
  }

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

  .portfolio-filters {
    gap: 6px;
    margin-bottom: 32px;
  }

  .portfolio-filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .testimonial-card {
    padding: 24px 18px;
  }

  .testimonial-card::before {
    font-size: 3rem;
    top: 16px;
    left: 18px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .contact-form-wrap {
    padding: 24px 18px;
  }

  .form-control-mw {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .nav-mobile a {
    font-size: 1.2rem;
  }

  .nav-mobile {
    gap: 20px;
  }

  .preloader-logo-img {
    max-width: 140px;
  }
}

/* ===== VERY SMALL MOBILE (≤375px) ===== */
@media (max-width: 375px) {
  .hero-title {
    font-size: clamp(1.5rem, 7.5vw, 1.9rem);
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }

  .hero-stats .hero-stat:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--dark-border);
    padding-top: 16px;
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.3rem, 7vw, 1.6rem);
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .about-image-main {
    min-height: 220px;
  }

  .testimonial-text {
    font-size: 0.88rem;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .nav-mobile a {
    font-size: 1.1rem;
  }

  .nav-mobile {
    gap: 16px;
  }

  .faq-question {
    padding: 14px 16px;
  }

  .faq-question-text {
    font-size: 0.85rem;
  }

  .contact-form-wrap {
    padding: 20px 14px;
  }

  .footer-top {
    padding: 40px 0 28px;
  }

  .btn-primary-mw,
  .btn-outline-mw {
    padding: 11px 18px;
    font-size: 0.85rem;
  }
}

/* ========== MODERN CURSOR ========== */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {

  body,
  a,
  button,
  input,
  textarea,
  select,
  .service-card,
  .portfolio-item,
  .nav-logo,
  .faq-question,
  .faq-item {
    cursor: none !important;
  }
}

@media (max-width: 768px),
(hover: none),
(pointer: coarse) {
  #modern-cursor {
    display: none !important;
  }
}

#modern-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  margin-top: -8px;
  /* Arrow pointer tip adjustment */
  margin-left: -8px;
  /* Arrow pointer tip adjustment */
  pointer-events: none;
  z-index: 999999;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8));
  will-change: transform;
}

#modern-cursor svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), fill 0.3s ease;
  transform-origin: top left;
}

#modern-cursor.hover svg {
  transform: scale(1.3) rotate(-10deg);
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 2px;
}

/* ========== CREATIVE EFFECTS ========== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 9999999;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
  transition: width 0.1s ease-out;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* ========== CYBER GLITCH EFFECT ========== */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -2px 0 var(--primary);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(22px, 9999px, 83px, 0);
  }

  5% {
    clip: rect(66px, 9999px, 86px, 0);
  }

  10% {
    clip: rect(35px, 9999px, 56px, 0);
  }

  15% {
    clip: rect(48px, 9999px, 19px, 0);
  }

  20% {
    clip: rect(89px, 9999px, 3px, 0);
  }

  25% {
    clip: rect(58px, 9999px, 47px, 0);
  }

  30% {
    clip: rect(29px, 9999px, 81px, 0);
  }

  35% {
    clip: rect(4px, 9999px, 45px, 0);
  }

  40% {
    clip: rect(96px, 9999px, 31px, 0);
  }

  45% {
    clip: rect(61px, 9999px, 60px, 0);
  }

  50% {
    clip: rect(13px, 9999px, 40px, 0);
  }

  55% {
    clip: rect(84px, 9999px, 53px, 0);
  }

  60% {
    clip: rect(6px, 9999px, 95px, 0);
  }

  65% {
    clip: rect(80px, 9999px, 20px, 0);
  }

  70% {
    clip: rect(44px, 9999px, 91px, 0);
  }

  75% {
    clip: rect(18px, 9999px, 73px, 0);
  }

  80% {
    clip: rect(74px, 9999px, 89px, 0);
  }

  85% {
    clip: rect(25px, 9999px, 36px, 0);
  }

  90% {
    clip: rect(33px, 9999px, 98px, 0);
  }

  95% {
    clip: rect(54px, 9999px, 51px, 0);
  }

  100% {
    clip: rect(98px, 9999px, 2px, 0);
  }
}

/* ========== CYBER SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

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

/* ========== MAGNETIC BUTTON UX ========== */
.magnetic-btn {
  /* Using a softer, very fast transition for the bounding box reset, JS handles direct movement */
  transition: transform 0.2s cubic-bezier(0.1, 0.5, 0.3, 1), background 0.3s, box-shadow 0.3s;
  will-change: transform;
}

/* Mobile nav CTA area styles */
.nav-mobile-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}

.nav-mobile-phone-link {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.nav-mobile-phone-link i {
  color: var(--primary);
}

.nav-mobile-phone-link:hover {
  color: var(--primary);
}

.nav-mobile-cta-area .btn-primary-mw {
  width: 100%;
  justify-content: center;
}

/* ===== Dark Mode Toggle Button ===== */
.dark-mode-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 12px;
}

.dark-mode-toggle:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--primary);
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* ===== Theme Transition (Smooth Dark to Light) ===== */
body,
.hero,
.hero-grid,
.hero-card-main,
.service-card,
.faq-item,
.contact-form-wrap,
.form-control-mw,
.footer-mw,
.footer-bottom,
.testimonial-card,
.portfolio-item,
.clients-section,
.about-section,
.navbar-mw,
.social-link,
.contact-card,
.footer-social-link {
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Light Mode Theme ===== */
body.light-mode {
  --dark: #ede9e3;
  --dark-2: #e3dfd8;
  --dark-3: #d9d5ce;
  --dark-card: #f5f2ed;
  --dark-border: #cdc8c0;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #8896a6;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.06);
}

body.light-mode .hero {
  background: linear-gradient(135deg, #ede9e3 0%, #e3dfd8 100%);
}

body.light-mode .navbar-mw.scrolled {
  background: rgba(237, 233, 227, 0.95);
  border-bottom-color: #cdc8c0;
}

body.light-mode .preloader {
  background: #ede9e3;
}

body.light-mode .hero-grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
}

body.light-mode .hero-title {
  color: #1a1a2e;
}

body.light-mode .hero-card-main {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .service-card {
  background: #f5f2ed;
  border-color: #d9d5ce;
}

body.light-mode .service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.1);
}

body.light-mode .faq-item {
  background: #f5f2ed;
  border-color: #d9d5ce;
}

body.light-mode .contact-form-wrap {
  background: #f5f2ed;
}

body.light-mode .form-control-mw {
  background: #ede9e3;
  border-color: #cdc8c0;
  color: #1a1a2e;
}

body.light-mode .footer-mw {
  background: #1a1a2e;
}

body.light-mode .footer-mw .footer-social-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #8ba8c4;
}

body.light-mode .footer-mw .footer-social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  color: #00d4ff;
}

body.light-mode .footer-mw .footer-desc,
body.light-mode .footer-mw .footer-links li a,
body.light-mode .footer-mw .footer-copyright {
  color: #8ba8c4;
}

body.light-mode .footer-mw .footer-col-title {
  color: #e8f4fd;
}

body.light-mode .footer-mw .footer-links li a:hover,
body.light-mode .footer-mw .footer-copyright a {
  color: #00d4ff;
}

body.light-mode .footer-mw .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.light-mode .footer-mw .footer-bottom-links a {
  color: #8ba8c4;
}

body.light-mode .dark-mode-toggle {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
  color: #d97706;
}

body.light-mode .dark-mode-toggle:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #b45309;
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

body.light-mode .nav-hamburger span {
  background: #1a1a2e;
}

body.light-mode ::selection {
  background: rgba(0, 212, 255, 0.2);
  color: #1a1a2e;
}

body.light-mode .testimonial-card {
  background: #f5f2ed;
  border-color: #d9d5ce;
}

body.light-mode .portfolio-item {
  border-color: #d9d5ce;
}

body.light-mode .clients-section {
  background: #e3dfd8;
}

body.light-mode .about-section {
  background: #ede9e3;
}

body.light-mode .social-link {
  background: #ede9e3;
  border-color: #cdc8c0;
  color: #1a1a2e;
}

body.light-mode .social-link:hover {
  color: var(--primary);
}

body.light-mode .contact-card {
  background: rgba(0, 0, 0, 0.04);
  border-color: #cdc8c0;
}

body.light-mode .contact-card-icon {
  color: #0090b3;
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.25);
}

body.light-mode .footer-social-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e8f4fd;
}

/* ===== PERFORMANCE OPTIMIZATIONS (Option 7) ===== */
.lazy-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ===== HOLOGRAPHIC CARDS (Option 4) ===== */
.holographic-card {
  position: relative;
  overflow: hidden;
}

.holographic-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.15),
      transparent 40%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: overlay;
}

.holographic-card[data-tilt-glare="true"]::after {
  display: none;
  /* Avoid clashing with vanilla-tilt built-in glare if both are used, but we map our own */
}

.holographic-card:hover::after {
  opacity: 1;
}

body.light-mode .holographic-card::after {
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.8),
      transparent 40%);
}

/* ===== CYBER TERMINAL (Option 2) ====== */
.cyber-terminal-panel {
  background: #050f1e;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #00ff88;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 255, 136, 0.1);
  height: 250px;
  overflow-y: hidden;
  position: relative;
  margin-top: 24px;
}

.cyber-terminal-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.cyber-line {
  margin-bottom: 8px;
  display: block;
}

.cyber-error {
  color: #ff5050;
}

.cyber-warn {
  color: #f59e0b;
}

.cyber-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00ff88;
  animation: blink 1s infinite;
  vertical-align: middle;
}

body.light-mode .cyber-terminal-panel {
  background: #1a1a2e;
}

/* ===== FORMATTING OVERRIDES FOR ARABIC (RTL) ===== */
html[lang="en"] .ar {
  display: none !important;
}

html[lang="ar"] .en {
  display: none !important;
}

html[lang="ar"] .ar {
  display: inline-block;
}

html[lang="ar"] {
  font-family: 'Cairo', 'Inter', sans-serif;
}

html[lang="ar"] .hero-title,
html[lang="ar"] .section-title,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: 'Cairo', 'Inter', sans-serif;
}

html[lang="ar"] .hero-eyebrow,
html[lang="ar"] .section-badge {
  letter-spacing: 0;
}

/* ===== Form Success Animation (#11) ===== */
.form-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeInOverlay 0.4s ease forwards;
}

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

.form-success-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.1);
  animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: scale(0.8);
}

@keyframes popIn {
  to {
    transform: scale(1);
  }
}

.form-success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: #fff;
  animation: checkPop 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform: scale(0);
}

@keyframes checkPop {
  0% {
    transform: scale(0) rotate(-45deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.form-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.form-success-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.form-success-close {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-success-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* ===================================================
   ABOUT SECTION — ANIMATED BACKGROUND EFFECTS
   =================================================== */

/* Fix image-main to work with logo */
.about-logo-img {
  position: relative;
  z-index: 2;
  width: 65%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 0;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
  animation: aboutLogoFloat 5s ease-in-out infinite;
}

@keyframes aboutLogoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Make image-wrap a proper positioning context */
.about-image-wrap {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full-area animated background container */
.about-anim-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

/* Glowing blob behind the logo */
.about-glow-blob {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18) 0%, rgba(123, 47, 255, 0.12) 45%, transparent 70%);
  border-radius: 50%;
  animation: aboutGlowPulse 4s ease-in-out infinite alternate;
  filter: blur(24px);
}

@keyframes aboutGlowPulse {
  0% {
    opacity: 0.5;
    transform: scale(0.85);
  }

  100% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Rotating rings */
.about-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.about-ring-1 {
  width: 55%;
  height: 55%;
  border: 1.5px dashed rgba(0, 212, 255, 0.35);
  animation: aboutRingRotate 18s linear infinite;
}

.about-ring-2 {
  width: 75%;
  height: 75%;
  border: 1px solid rgba(123, 47, 255, 0.25);
  animation: aboutRingRotate 28s linear infinite reverse;
}

.about-ring-3 {
  width: 95%;
  height: 95%;
  border: 1px dashed rgba(0, 255, 136, 0.15);
  animation: aboutRingRotate 38s linear infinite;
}

@keyframes aboutRingRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Fix ring positioning */
.about-ring-1,
.about-ring-2,
.about-ring-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Orbiting dots on ring-1 */
.about-orbit {
  position: absolute;
  width: 55%;
  height: 55%;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  animation: aboutRingRotate 18s linear infinite;
  transform: translate(-50%, -50%);
}

.about-orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.about-orbit-dot-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
}

.about-orbit-dot-2 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.about-orbit-dot-3 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(123, 47, 255, 0.8);
}

/* Image-main is the containing card — animations live INSIDE it */
.about-image-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 480px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 46, 0.4);
}

/* About-image-wrap just wraps everything */
.about-image-wrap {
  position: relative;
}

/* Full-area animated background container fills about-image-main */
.about-anim-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.about-float-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  background: rgba(13, 27, 46, 0.85);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-float-1 {
  top: 8%;
  left: 4%;
  color: var(--primary);
  border-color: rgba(0, 212, 255, 0.4);
  animation: floatAnim1 6s ease-in-out infinite;
}

.about-float-2 {
  top: 22%;
  right: 2%;
  color: var(--secondary);
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(13, 27, 46, 0.85);
  animation: floatAnim2 5s ease-in-out infinite;
}

.about-float-3 {
  top: 50%;
  right: 0%;
  color: var(--accent);
  border-color: rgba(123, 47, 255, 0.4);
  animation: floatAnim3 7s ease-in-out infinite;
}

.about-float-4 {
  bottom: 20%;
  right: 4%;
  color: #00dcb4;
  border-color: rgba(0, 220, 180, 0.4);
  animation: floatAnim4 5.5s ease-in-out infinite;
}

.about-float-5 {
  bottom: 8%;
  left: 8%;
  color: #ffaa00;
  border-color: rgba(255, 170, 0, 0.4);
  animation: floatAnim5 6.5s ease-in-out infinite;
}

.about-float-6 {
  top: 50%;
  left: 0%;
  color: #ff5050;
  border-color: rgba(255, 80, 80, 0.4);
  animation: floatAnim1 8s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes floatAnim1 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-14px) rotate(4deg);
  }

  66% {
    transform: translateY(6px) rotate(-3deg);
  }
}

@keyframes floatAnim2 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) rotate(-5deg);
  }
}

@keyframes floatAnim3 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }

  40% {
    transform: translateY(14px) translateX(-6px);
  }

  80% {
    transform: translateY(-8px) translateX(4px);
  }
}

@keyframes floatAnim4 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

@keyframes floatAnim5 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  45% {
    transform: translateY(-16px) rotate(-4deg);
  }
}

/* Light mode adjustments */
body.light-mode .about-float-icon {
  background: rgba(240, 240, 255, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.light-mode .about-glow-blob {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, rgba(123, 47, 255, 0.07) 45%, transparent 70%);
}

/* Hide floating icons on mobile to keep it clean */
@media (max-width: 600px) {
  .about-float-icon {
    display: none;
  }

  .about-orbit {
    display: none;
  }

  .about-image-main {
    height: 320px;
  }
}

/* ===== Cyber Terminal — Full Width Below About Grid ===== */
.cyber-terminal-full {
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 260px;
  margin-top: 48px;
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
}

.cyber-terminal-full #terminalOutput {
  height: auto;
  min-height: 120px;
}

/* ===== OTP Verification Modal (#12) ===== */
.otp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.otp-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 460px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.otp-modal-overlay.active .otp-card {
  transform: translateY(0);
}

.otp-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.otp-header {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.otp-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.otp-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

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

.otp-email-highlight {
  color: var(--primary);
  font-weight: 600;
  unicode-bidi: plaintext;
  display: inline-block;
}

.otp-inputs-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
  direction: ltr; /* Always LTR for OTP inputs code */
}

.otp-input-box {
  width: 50px;
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--dark-border);
  color: var(--text-primary);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-input-box:focus {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
  transform: translateY(-2px);
}

.otp-input-box.filled {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.02);
}

.otp-input-box.filled:focus {
  border-color: var(--primary);
}

.otp-status-msg {
  min-height: 22px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 8px 12px;
  display: none;
}

.otp-status-msg.error {
  display: block;
  color: #ff5050;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.15);
}

.otp-status-msg.info {
  display: block;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.otp-timer-wrap {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.otp-timer-count {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.otp-timer-count.warning {
  color: #f59e0b;
  animation: blinkTimer 1s infinite alternate;
}

@keyframes blinkTimer {
  0% { opacity: 1; }
  100% { opacity: 0.4; }
}

.otp-actions {
  display: flex;
  gap: 12px;
}

.otp-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  flex: 1;
}

.otp-btn-submit {
  background: var(--gradient-primary);
  color: #fff;
}

.otp-btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.otp-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.otp-btn-resend {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
}

.otp-btn-resend:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.otp-btn-resend:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.otp-btn-cancel {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.otp-btn-cancel:hover {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.2);
  color: #ff5050;
  transform: rotate(90deg);
}

body.light-mode .otp-modal-overlay {
  background: rgba(230, 226, 218, 0.85);
}

body.light-mode .otp-btn-resend {
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode .otp-btn-resend:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
}