/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a12;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c5cfc, #c084fc);
  border-radius: 999px;
  border: 2px solid #0a0a12;
}

::-webkit-scrollbar-thumb:hover {
  background: #c084fc;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121e;
  --bg-card: #16162a;
  --bg-card-hover: #1c1c38;
  --surface-glass: rgba(18, 18, 30, 0.72);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0eef6;
  --text-secondary: rgba(240, 238, 246, 0.55);
  --text-muted: rgba(240, 238, 246, 0.35);
  --accent: #7c5cfc;
  --accent-glow: rgba(124, 92, 252, 0.35);
  --accent-2: #c084fc;
  --accent-gradient: linear-gradient(135deg, #7c5cfc, #c084fc);
  --teal: #34d399;
  --teal-glow: rgba(52, 211, 153, 0.25);
  --coral: #f472b6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 60px var(--accent-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
}

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

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

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

html[lang="en"] body {
  font-family: var(--font-en);
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NOISE OVERLAY ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.4;
}

/* ===== PARTICLE CANVAS BACKGROUND ===== */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===== AMBIENT BACKGROUND ===== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.10;
  animation: float 20s ease-in-out infinite;
}

.ambient-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.ambient-orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--coral);
  bottom: 20%;
  left: -10%;
  animation-delay: -7s;
}

.ambient-orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--teal);
  top: 40%;
  right: 30%;
  animation-delay: -14s;
}

@keyframes float {

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

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
}

nav.scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.logo-img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-img {
  transform: scale(1.12) rotate(8deg);
  border-color: var(--accent-2);
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}


.navlinks {
  display: flex;
  gap: 36px;
  align-items: center;
}

.navlinks a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.navlinks a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: var(--transition);
}

.navlinks a:hover {
  color: var(--text-primary);
}

.navlinks a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-gradient);
  color: #fff;
  padding: 11px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

.menu-toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

@media (max-width: 768px) {

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

  .menu-toggle {
    display: block;
  }
}

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

.hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: hero-glow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -80px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: hero-glow 10s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.15) translate(20px, -20px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--teal-glow);
  background: rgba(52, 211, 153, 0.06);
  padding: 8px 20px 8px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.hero-badge span {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.08;
  max-width: 850px;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(124, 92, 252, 0.2));
  animation: textGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes textGlowPulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(124, 92, 252, 0.25));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(124, 92, 252, 0.75)) drop-shadow(0 0 35px rgba(192, 132, 252, 0.45));
  }

  100% {
    filter: drop-shadow(0 0 5px rgba(124, 92, 252, 0.25));
  }
}

.hero .lead {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

/* Buttons */
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  padding: 16px 34px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px var(--accent-glow);
}

.btn-ghost {
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 34px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 252, 0.06);
  transform: translateY(-3px);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
  text-align: center;
  position: relative;
}

.stat-ring-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
}

.stat-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring-bg {
  fill: none;
  stroke: rgba(124, 92, 252, 0.1);
  stroke-width: 3;
}

.stat-ring-bar {
  fill: none;
  stroke: url(#statGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 245;
  stroke-dashoffset: 245;
  transition: stroke-dashoffset 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-ring-wrap .number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat .number {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .stats-bar {
    gap: 24px;
  }

  .stat .number {
    font-size: 22px;
  }

  .stat-ring-wrap {
    width: 72px;
    height: 72px;
  }
}

/* ===== MARQUEE / TICKER ===== */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  background: rgba(18, 18, 30, 0.72);
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}

.ticker::before {
  left: 0;
  background: linear-gradient(to left, transparent, rgba(10, 10, 18, 0.98));
}

.ticker::after {
  right: 0;
  background: linear-gradient(to right, transparent, rgba(10, 10, 18, 0.98));
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  width: max-content;
  padding-inline-end: 48px;
}

.ticker span {
  font-size: 15px;
  color: rgba(240, 238, 246, 0.8);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(124, 92, 252, 0.12);
}

.ticker span b {
  color: var(--text-primary);
  font-weight: 700;
}

.ticker .sep {
  color: var(--accent-2);
  font-size: 10px;
  opacity: 0.95;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ===== SECTION LAYOUT ===== */
.section {
  padding: 110px 0;
  position: relative;
}

.section+.section {
  border-top: 1px solid var(--border);
}

.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}

.sec-header h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.sec-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--radius-full);
  background: rgba(192, 132, 252, 0.05);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reveal Variants */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-rotate {
  opacity: 0;
  transform: translateY(30px) rotate(3deg);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* 3D Tilt Light Reflection */
.tilt-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--tilt-x, 50%) var(--tilt-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .tilt-light,
.service-card:hover .tilt-light {
  opacity: 1;
}

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

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

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
}

@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PORTFOLIO FILTER + GRID ===== */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.filter-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--text-primary);
}

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

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

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

.card {
  background: rgba(22, 22, 42, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.card:hover {
  background: rgba(28, 28, 56, 0.7);
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: 0 20px 50px rgba(124, 92, 252, 0.15);
}

.card:hover::after {
  opacity: 0.04;
}

/* Glassmorphism Shimmer Effect */
.card::before,
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.05) 30%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.05) 70%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  pointer-events: none;
}

.card:hover::before,
.service-card:hover::after {
  left: 150%;
}

.card-media {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #151530, #1e1e44);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-media.card-media-slider {
  background: linear-gradient(160deg, #171734, #20204a);
  padding: 0;
}

.design-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.design-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.7s ease;
}

.design-slide.active {
  opacity: 1;
  transform: scale(1);
}

.card:hover .design-slide.active {
  transform: scale(1.02);
}

.design-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
  background: rgba(8, 10, 18, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
}

.design-dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  background: rgba(240, 238, 246, 0.45);
  padding: 0;
  margin: 0;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  flex-shrink: 0;
  transition: var(--transition);
}

.design-dot.active {
  background: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.2);
}

.card-media .ph-icon {
  font-size: 36px;
  opacity: 0.3;
  transition: var(--transition);
}

.card:hover .card-media .ph-icon {
  opacity: 0.6;
  transform: scale(1.15);
}

.card-media .ph-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.grid-card-video {
  pointer-events: none;
  user-select: none;
}

.social-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 18, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px var(--accent-glow);
  pointer-events: none;
  transition: var(--transition);
  z-index: 2;
}

.card:hover .media-play-badge {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.media-play-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 10, 18, 0.62);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

.card-body {
  padding: 24px 28px 28px;
  position: relative;
  z-index: 1;
}

.card-body .cat {
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.card-body h3 {
  font-size: 17px;
  margin-top: 8px;
  font-weight: 700;
}

.card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.7;
}

.upload-hint {
  margin-top: 40px;
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
  background: rgba(124, 92, 252, 0.02);
}

.upload-hint b {
  color: var(--text-primary);
}

/* ===== ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 780px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

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

.about-text p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.skills-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  border: 1px solid var(--border);
  background: rgba(124, 92, 252, 0.04);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.skill-chip:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 252, 0.1);
  transform: translateY(-2px);
}

/* Tools */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tool-badge:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.tool-badge .tool-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== CONTACT ===== */
.contact {
  padding: 110px 0 70px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-card h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  margin-bottom: 18px;
  position: relative;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.9;
  position: relative;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}

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

.footer-content span {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 800;
  font-size: 16px;
}

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

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

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

@media (max-width: 600px) {
  .footer-content {
    justify-content: center;
    text-align: center;
  }
}

/* ===== SCROLL PROGRESS & BACK TO TOP ===== */
.back-top-wrap {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top-wrap.show {
  opacity: 1;
  transform: translateY(0);
}

.progress-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-circle-bg {
  fill: rgba(18, 18, 30, 0.75);
  stroke: var(--border);
  stroke-width: 4px;
}

.progress-circle-bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.back-top-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-top-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ===== WORK PREVIEW MODAL ===== */
body.modal-open {
  overflow: hidden;
}

.work-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  padding: 22px;
  background: rgba(6, 6, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.work-preview-modal.open {
  opacity: 1;
  pointer-events: all;
}

.work-preview-shell {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-hover);
  background: linear-gradient(180deg, #121226, #0f1020);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
}

.preview-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.68);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.preview-close:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

.preview-media-wrap {
  aspect-ratio: 16/9;
  width: 100%;
  background: #08080f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-media-wrap img,
.preview-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08080f;
}

.preview-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-flip-stage {
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.preview-slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.45s ease;
}

.preview-slider-image.active {
  opacity: 1;
  transform: scale(1);
}

.preview-flip-stage.is-flipped .preview-slider-image.active {
  transform: scaleX(-1);
}

.preview-slide-caption {
  display: none;
}

.preview-slider-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  gap: 10px;
}

.preview-slider-nav {
  display: inline-flex;
  gap: 8px;
}

.preview-nav-btn {
  border: 1px solid var(--border-hover);
  background: rgba(10, 10, 18, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.preview-nav-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.preview-slider-dots {
  display: inline-flex;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.4);
  backdrop-filter: blur(8px);
}

.preview-slide-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(240, 238, 246, 0.45);
  transition: var(--transition);
  padding: 0;
}

.preview-slide-dot.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-glow);
}

.preview-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 26px;
  line-height: 1.9;
  font-size: 15px;
  max-width: 560px;
}

.preview-empty b {
  color: var(--text-primary);
}

.preview-meta {
  padding: 22px 24px 28px;
  border-top: 1px solid var(--border);
}

.preview-category {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.preview-meta h3 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  margin: 0;
  font-weight: 800;
}

.preview-meta p {
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 15px;
}

@media (max-width: 640px) {
  .work-preview-modal {
    padding: 12px;
  }

  .work-preview-shell {
    border-radius: 16px;
  }

  .preview-meta {
    padding: 16px 16px 20px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ===== CINEMATIC PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #06060c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-intro-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(192, 132, 252, 0.4);
  opacity: 0;
  animation: preloaderImgFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes preloaderImgFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.preloader-text-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.preloader-name {
  font-family: var(--font-en);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: 2px;
  color: transparent;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent);
  width: 0;
  animation: typeName 1.2s steps(12, end) 1s forwards, blinkCursor 0.75s step-end infinite;
}

.preloader-subtitle {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typeSubtitle 1.2s steps(16, end) 2.4s forwards;
}

@keyframes typeName {
  to {
    width: 6.5em;
  }
}

@keyframes typeSubtitle {
  to {
    width: 11em;
  }
}

@keyframes blinkCursor {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent)
  }
}

/* ===== SPOTLIGHT GLOW ON CARDS ===== */
.card,
.service-card,
.n8n-node {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--spotlight-x) var(--spotlight-y),
      rgba(124, 92, 252, 0.12),
      transparent 60%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.card:hover .spotlight-overlay,
.service-card:hover .spotlight-overlay {
  opacity: 1;
}

/* ===== PROJECT JOURNEY / PROCESS TIMELINE ===== */
.process-section {
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.3) 0%, var(--bg-primary) 100%);
}

.process-intro {
  max-width: 680px;
  margin: -36px auto 56px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 38px;
  width: 3px;
  height: 100%;
  background: var(--border);
  border-radius: 3px;
  z-index: 1;
}

.process-line-fill {
  position: absolute;
  top: 0;
  right: 38px;
  width: 3px;
  height: 0%;
  background: var(--accent-gradient);
  border-radius: 3px;
  z-index: 2;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px var(--accent-glow);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.step-visible {
  opacity: 1;
  transform: translateX(0);
}

.process-step-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  z-index: 4;
  margin-top: 18px;
}

.process-step.step-visible .process-step-marker {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124, 92, 252, 0.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

.process-step-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  transition: var(--transition);
}

.process-step.step-visible .process-step-content {
  border-color: var(--border-hover);
}

.process-step-content:hover {
  background: var(--bg-card-hover);
  transform: translateX(-4px);
  box-shadow: var(--shadow-card);
}

.process-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.process-step-icon {
  font-size: 28px;
}

.process-step-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.process-step-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.process-step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.process-step-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.process-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.process-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  margin-top: 14px;
}

.process-duration::before {
  content: '⏱';
  font-size: 14px;
}

@media (max-width: 640px) {

  .process-timeline::before,
  .process-line-fill {
    right: 19px;
  }

  .process-step-marker {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .process-step {
    gap: 16px;
  }

  .process-step-content {
    padding: 20px;
  }
}

/* ===== FAQ ACCORDION ===== */
.faq-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(18, 18, 30, 0.5) 100%);
}

.faq-intro {
  max-width: 680px;
  margin: -36px auto 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}

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

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.open {
  border-color: rgba(124, 92, 252, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(124, 92, 252, 0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: right;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-2);
}

.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 92, 252, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-answer-inner strong {
  color: var(--text-primary);
}

/* ===== n8n WORKFLOW VISUALIZER ===== */
.workflow-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(18, 18, 30, 0.4) 100%);
}

.workflow-intro {
  max-width: 700px;
  margin: -36px auto 44px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.n8n-canvas-container {
  background: #08080f;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.n8n-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 30px 30px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  z-index: 1;
}

.n8n-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.n8n-connections path {
  fill: none;
  stroke: rgba(124, 92, 252, 0.15);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.n8n-pulse-dot {
  animation: pulseMove 6s linear infinite;
}

@keyframes pulseMove {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}

.n8n-nodes {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.n8n-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 170px;
  max-width: 210px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.n8n-node:hover,
.n8n-node.active-node {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 25px rgba(124, 92, 252, 0.25), 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.n8n-node-icon {
  font-size: 26px;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.15);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.n8n-node:hover .n8n-node-icon,
.n8n-node.active-node .n8n-node-icon {
  background: var(--accent);
  color: #fff;
}

.n8n-node-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.n8n-node-type {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.n8n-node-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.n8n-node-status {
  margin-right: auto;
  font-size: 9px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--teal);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Interactive Details Card */
.n8n-details-card {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(22, 22, 42, 0.8) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.n8n-details-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gradient);
}

.n8n-details-content {
  max-width: 650px;
}

.n8n-details-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.n8n-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-gradient);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.n8n-details-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.n8n-details-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.n8n-details-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}

.tech-tag:hover {
  border-color: var(--accent-2);
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .n8n-canvas-container {
    padding: 40px 20px;
  }

  .n8n-nodes {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .n8n-node {
    flex: 1 1 45%;
    max-width: none;
  }

  .n8n-connections {
    display: none;
  }

  .n8n-details-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .n8n-node {
    flex: 1 1 100%;
  }
}



/* ===== CREATIVE QUOTES SECTION ===== */
.quotes-section {
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.2) 0%, rgba(10, 10, 18, 0.6) 100%);
  padding: 80px 0;
}

.quotes-container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(22, 22, 42, 0.6) 0%, rgba(30, 30, 60, 0.3) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quote-icon {
  font-size: 72px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--accent-2);
  opacity: 0.25;
  margin-bottom: -20px;
}

.quote-slider {
  position: relative;
  min-height: 120px;
  display: grid;
  place-items: center;
}

.quote-slide {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  grid-area: 1/1/2/2;
  pointer-events: none;
  width: 100%;
}

.quote-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quote-text {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.quote-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}

.quote-author::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.quote-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(240, 238, 246, 0.25);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.quote-dot.active {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Ambient Mouse Follower Glow */
.mouse-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}


/* ===== CUSTOM CURSOR ===== */
@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  .card,
  .service-card,
  .filter-btn,
  .nav-cta,
  .logo,
  .preview-close,
  .preview-nav-btn,
  .preview-slide-dot,
  .design-dot {
    cursor: none;
  }

  .custom-cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1), height 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s;
    box-shadow: 0 0 10px var(--accent-glow);
  }

  .custom-cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
  }

  .custom-cursor-circle.hovering {
    width: 0;
    height: 0;
    opacity: 0;
  }

  .custom-cursor-dot.hovering {
    background: var(--accent);
    width: 64px;
    height: 64px;
    opacity: 0.5;
  }
}

/* ===== TYPING EFFECT CURSOR ===== */
.typing-cursor {
  font-family: var(--font-en);
  font-weight: 300;
  color: var(--accent-2);
  animation: blink 0.8s infinite;
  margin-right: 4px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ===== ADVANCED VISUAL IMPROVEMENTS ===== */

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}

/* Image Hover Zoom Distortion */
.card-media img,
.card-media video,
.design-slide {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card-media img:not(.social-card-image),
.card:hover .card-media video,
.card:hover .design-slide.active {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.05);
}

.card:hover .social-card-image {
  transform: scale(1.05);
}

/* Parallax scroll support */
.parallax-scroll {
  will-change: transform;
}

/* ===== BACKEND SECTION ===== */
.backend-section {
  position: relative;
  overflow: hidden;
}

.backend-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 252, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.backend-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  box-shadow: var(--shadow-card), 0 0 40px rgba(124, 92, 252, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.backend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(124, 92, 252, 0.2);
  border-color: var(--accent);
}

.backend-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.backend-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.backend-card:hover .backend-img {
  transform: scale(1.03);
}

.backend-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.5;
  animation: pulse-glow 4s infinite alternate;
}

.graphic-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.35) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.5;
  animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.backend-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.backend-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124, 92, 252, 0.3);
}

.backend-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.backend-title span {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.graphic-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(244, 114, 182, 0.15);
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.graphic-title span {
  color: var(--coral);
  text-shadow: 0 0 15px rgba(244, 114, 182, 0.4);
}

.backend-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.backend-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.backend-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 15px;
}

.backend-features li .icon {
  font-size: 18px;
}

.backend-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tech-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}

.tech-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .backend-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}