/* ============================================ */
/*  DIGITAL ORIGAMI — Premium Agency Website    */
/*  Design System & Complete Stylesheet         */
/* ============================================ */

/* ==================== */
/* 1. ROOT / VARIABLES  */
/* ==================== */
:root {
  /* Logo-derived gradient palette */
  --color-blue: #3b82f6;
  --color-indigo: #6366f1;
  --color-violet: #8b5cf6;
  --color-purple: #a855f7;
  --color-fuchsia: #d946ef;
  --color-pink: #ec4899;
  --color-rose: #f43f5e;
  --color-orange: #f97316;
  --color-amber: #f59e0b;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #3b82f6, #8b5cf6, #d946ef, #ec4899, #f97316);
  --gradient-subtle: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15), rgba(217,70,239,0.15));
  --gradient-glow: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);

  /* Backgrounds */
  --bg-primary: #050508;
  --bg-secondary: #0a0a12;
  --bg-card: rgba(12, 12, 20, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.025);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  cursor: none;
  background-color: #050508;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #050508;
  background: var(--bg-primary);
  color: #f1f5f9;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, textarea, select {
  font-family: inherit;
  cursor: none;
}

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

ul, ol {
  list-style: none;
}

/* Noise overlay for texture — kept subtle and below content */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* ==================== */
/* 3. TYPOGRAPHY        */
/* ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-violet);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}

.bg-blob-1 {
  width: 700px;
  height: 700px;
  background: var(--color-blue);
  top: -300px;
  left: -200px;
  animation: blob-drift-1 25s ease-in-out infinite;
}

.bg-blob-2 {
  width: 550px;
  height: 550px;
  background: var(--color-fuchsia);
  top: 40%;
  right: -250px;
  animation: blob-drift-2 30s ease-in-out infinite;
}

.bg-blob-3 {
  width: 450px;
  height: 450px;
  background: var(--color-orange);
  bottom: -150px;
  left: 25%;
  animation: blob-drift-3 20s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 80px) scale(1.1); }
  66% { transform: translate(-50px, 150px) scale(0.9); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, -60px) scale(1.15); }
  66% { transform: translate(60px, 100px) scale(0.85); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -80px) scale(1.1); }
  66% { transform: translate(-100px, -40px) scale(0.95); }
}

/* ==================== */
/* 5. CUSTOM CURSOR     */
/* ==================== */
.cursor-diamond {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease-spring),
              height 0.35s var(--ease-spring),
              opacity 0.3s;
  will-change: transform;
}

.cursor-diamond::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  transform: rotate(45deg);
  border-radius: 4px;
  transition: border-radius 0.35s var(--ease-spring),
              transform 0.35s var(--ease-spring),
              border-color 0.3s;
}

.cursor-diamond.hovering {
  width: 52px;
  height: 52px;
}

.cursor-diamond.hovering::before {
  border-radius: 50%;
  transform: rotate(0deg);
  border-color: var(--color-violet);
}

.cursor-diamond.clicking::before {
  transform: rotate(45deg) scale(0.7);
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  will-change: transform;
  transition: opacity 0.3s, transform 0.2s;
}

.cursor-diamond.hovering ~ .cursor-dot,
.cursor-dot.hide {
  opacity: 0;
  transform: scale(0);
}

/* Hide cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-diamond, .cursor-dot { display: none !important; }
  *, *::before, *::after { cursor: auto !important; }
  html, body { cursor: auto; }
}

/* ==================== */
/* 6. PRELOADER         */
/* ==================== */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 10005;
  transition: opacity 0.8s var(--ease-out-expo),
              visibility 0.8s;
}

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

.preloader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 32px;
  animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: 3px;
  transition: width 0.3s;
}

.preloader-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(139,92,246,0.3)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 40px rgba(139,92,246,0.6)); }
}

/* ==================== */
/* 7. NAVIGATION        */
/* ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

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

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: -2px;
}

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

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s var(--ease-out-expo);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  transition: transform 0.3s var(--ease-spring),
              box-shadow 0.3s;
  display: inline-block;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-violet);
}

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

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

.hero-title {
  margin-bottom: 24px;
}

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

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  animation: line-reveal 1s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(2) .line-inner {
  animation-delay: 0.15s;
}

.hero-title .line:nth-child(3) .line-inner {
  animation-delay: 0.3s;
}

@keyframes line-reveal {
  to { transform: translateY(0); }
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
  opacity: 0;
  animation: fade-up 0.8s 0.6s var(--ease-out-expo) forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s 0.8s var(--ease-out-expo) forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  background: var(--gradient-main);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--border-subtle);
  transition: all 0.4s var(--ease-spring);
  position: relative;
}

.btn-outline:hover {
  border-color: var(--color-violet);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Hero 3D Scene */
.hero-3d-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 550px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-logo-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  z-index: 5;
  animation: hero-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.4))
          drop-shadow(0 0 120px rgba(217, 70, 239, 0.2));
}

.hero-logo-float img {
  width: 100%;
  height: auto;
}

@keyframes hero-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotateY(0deg); }
  25% { transform: translate(-50%, -50%) translateY(-18px) rotateY(5deg); }
  50% { transform: translate(-50%, -50%) translateY(-8px) rotateY(0deg); }
  75% { transform: translate(-50%, -50%) translateY(-22px) rotateY(-5deg); }
}

/* Glow ring behind logo */
.hero-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%) rotateX(75deg);
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.1),
              inset 0 0 60px rgba(139, 92, 246, 0.05);
  animation: glow-spin 12s linear infinite;
}

.hero-glow-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 20%;
  width: 30px;
  height: 6px;
  background: var(--color-violet);
  border-radius: 6px;
  filter: blur(3px);
  box-shadow: 0 0 20px var(--color-violet);
}

@keyframes glow-spin {
  to { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

/* Orbiting shapes */
.float-shape {
  position: absolute;
  opacity: 0.7;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}

.float-shape.triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.float-shape.diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-1 {
  width: 28px;
  height: 28px;
  background: var(--color-blue);
  top: 12%;
  left: 8%;
  animation: float-shape-1 8s infinite;
}

.shape-2 {
  width: 18px;
  height: 18px;
  background: var(--color-violet);
  top: 8%;
  right: 20%;
  animation: float-shape-2 10s 1s infinite;
}

.shape-3 {
  width: 24px;
  height: 24px;
  background: var(--color-fuchsia);
  bottom: 25%;
  left: 5%;
  animation: float-shape-3 9s 0.5s infinite;
}

.shape-4 {
  width: 16px;
  height: 16px;
  background: var(--color-pink);
  bottom: 10%;
  right: 15%;
  animation: float-shape-4 7s 1.5s infinite;
}

.shape-5 {
  width: 22px;
  height: 22px;
  background: var(--color-orange);
  top: 35%;
  right: 3%;
  animation: float-shape-5 11s 0.8s infinite;
}

.shape-6 {
  width: 14px;
  height: 14px;
  background: var(--color-amber);
  bottom: 40%;
  left: 15%;
  animation: float-shape-6 8s 2s infinite;
}

.shape-7 {
  width: 10px;
  height: 10px;
  background: var(--color-indigo);
  top: 55%;
  right: 8%;
  animation: float-shape-7 9s 1.2s infinite;
}

.shape-8 {
  width: 20px;
  height: 20px;
  background: var(--color-purple);
  top: 20%;
  left: 25%;
  animation: float-shape-8 10s 0.3s infinite;
}

@keyframes float-shape-1 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-30px) rotate(180deg) scale(1.2); }
}

@keyframes float-shape-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(-120deg); }
}

@keyframes float-shape-3 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(15px, -20px) rotate(90deg); }
  66% { transform: translate(-10px, -35px) rotate(200deg); }
}

@keyframes float-shape-4 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-28px) rotate(145deg) scale(0.8); }
}

@keyframes float-shape-5 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-20px, -22px) rotate(-160deg); }
}

@keyframes float-shape-6 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(200deg); }
}

@keyframes float-shape-7 {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50% { transform: translate(-12px, -24px) rotate(90deg) scale(1.3); }
}

@keyframes float-shape-8 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  35% { transform: translate(10px, -25px) rotate(120deg); }
  70% { transform: translate(-15px, -10px) rotate(240deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.8s 1.5s var(--ease-out-expo) forwards;
}

.scroll-indicator span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gradient-main);
  animation: scroll-line-move 2s ease-in-out infinite;
}

@keyframes scroll-line-move {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* ==================== */
/* 9. SERVICES          */
/* ==================== */
#services {
  position: relative;
}

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

.services-header .section-subtitle {
  margin: 0 auto;
}

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



.service-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.5s var(--ease-out-expo),
              border-color 0.4s,
              box-shadow 0.4s;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: var(--gradient-main);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

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

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 80px rgba(139, 92, 246, 0.08);
}

/* Glare overlay */
.service-card .card-glare {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 60%);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  position: relative;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  background: var(--gradient-subtle);
  z-index: -1;
  opacity: 0.5;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Bottom row centering for 5 cards */
.services-bottom-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 808px;
  margin: 24px auto 0;
}

/* ==================== */
/* 10. PORTFOLIO        */
/* ==================== */
#portfolio {
  position: relative;
}

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

.portfolio-header .section-subtitle {
  margin: 0 auto;
}

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

.portfolio-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s,
              border-color 0.4s;
  transform-style: preserve-3d;
}

.portfolio-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
              0 0 80px rgba(139, 92, 246, 0.08);
}

.portfolio-video-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.portfolio-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-video-wrapper video {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
  z-index: 3;
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(139, 92, 246, 0.6);
  border-color: var(--color-violet);
}

.video-play-btn.playing {
  opacity: 0;
  pointer-events: none;
}

.portfolio-info {
  padding: 28px;
}

.portfolio-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-violet);
  margin-bottom: 10px;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50px;
}

.portfolio-info h3 {
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.9rem;
}

.portfolio-note {
  text-align: center;
  margin-top: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.portfolio-note span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== */
/* 11. ABOUT            */
/* ==================== */
#about {
  position: relative;
}

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

.about-content .section-title {
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-out-expo);
}

.pillar:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(8px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar h4 {
  margin-bottom: 4px;
  color: var(--text-primary);
}

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

/* About visual side */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-stats-ring {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 440px;
  position: relative;
  margin: 0 auto;
}

.stat-ring-bg {
  display: none;
}

.stat-node {
  position: relative;
  padding: 32px 24px;
  border-radius: 20px;
  background: rgba(15, 15, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out-expo);
  white-space: normal;
}

/* Gradient border on hover */
.stat-node::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--gradient-main);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.25;
  transition: opacity 0.4s;
}

.stat-node:hover::before {
  opacity: 0.7;
}

/* Subtle top-edge shimmer */
.stat-node::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.stat-node:hover {
  border-color: transparent;
  transform: translateY(-6px);
  background: rgba(20, 20, 38, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 80px rgba(139, 92, 246, 0.1);
}

.stat-node h4 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.stat-node p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Center badge floating over the grid intersection */
.stat-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid rgba(139, 92, 246, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6),
              0 0 30px rgba(139, 92, 246, 0.15);
}

/* Gradient ring around center badge */
.stat-ring-center::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-main);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.5;
}

.stat-ring-center img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.5));
}

.stat-ring-center p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin-top: 2px;
}

/* ==================== */
/* 12. PROCESS          */
/* ==================== */
#process {
  position: relative;
  overflow: hidden;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-header .section-subtitle {
  margin: 0 auto;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border-subtle);
}

.process-timeline::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  height: 2px;
  width: 0;
  background: var(--gradient-main);
  transition: width 1.5s var(--ease-out-expo);
}

.process-timeline.animated::after {
  width: 76%;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-number {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  position: relative;
  z-index: 2;
  transition: all 0.5s var(--ease-out-expo);
}

.step-number svg {
  width: 36px;
  height: 36px;
}

.process-step:hover .step-number {
  border-color: var(--color-violet);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
  transform: translateY(-5px);
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================== */
/* 13. CONTACT          */
/* ==================== */
#contact {
  position: relative;
}

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

.contact-info {
  padding-top: 10px;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-bottom: 40px;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-out-expo);
}

.contact-method:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(6px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method span {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-method strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-spring);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill 0.3s;
}

.social-link:hover {
  border-color: var(--color-violet);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.social-link:hover svg {
  fill: var(--color-violet);
}

/* Contact Form */
.contact-form-wrapper {
  padding: 40px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: var(--gradient-main);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

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

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

.form-submit {
  margin-top: 8px;
}

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 18px 36px;
  font-size: 1rem;
}

/* ==================== */
/* 14. FOOTER           */
/* ==================== */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

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

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 24px;
}

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

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--color-violet);
}

/* ==================== */
/* 15. PARTICLES CANVAS */
/* ==================== */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ==================== */
/* 16. SCROLL REVEAL    */
/* ==================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.9);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Stagger delays for children */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* ==================== */
/* 17. UTILITIES        */
/* ==================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Gradient separator */
.section-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  border: none;
}

/* ==================== */
/* 18. RESPONSIVE       */
/* ==================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 90px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-3d-scene {
    order: 0;
    max-width: 400px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .services-bottom-row {
    grid-template-columns: 1fr;
    max-width: 392px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

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

  .about-visual {
    order: -1;
  }

  .about-stats-ring {
    max-width: 360px;
    margin: 0 auto;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-timeline::before,
  .process-timeline::after {
    display: none;
  }

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

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

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu overlay */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1000;
    animation: fade-in 0.3s;
  }

  .nav-links.mobile-open a {
    font-size: 1.4rem;
    color: var(--text-primary);
  }

  .nav-links.mobile-open .nav-cta {
    font-size: 1rem;
    padding: 14px 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px;
  }

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

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

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

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .about-stats-ring {
    gap: 16px;
  }

  .stat-node {
    padding: 22px 18px;
  }

  .stat-node h4 {
    font-size: 1.3rem;
  }

  .stat-ring-center {
    width: 80px;
    height: 80px;
  }

  .stat-ring-center img {
    width: 30px;
    height: 30px;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 56px;
  }

  h1 { font-size: 2.2rem; }

  .hero-badge {
    font-size: 0.72rem;
  }

  .btn-primary, .btn-outline {
    padding: 14px 28px;
    font-size: 0.88rem;
  }

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

  .about-stats-ring {
    gap: 12px;
    max-width: 300px;
  }

  .stat-node {
    padding: 20px 14px;
  }

  .stat-node h4 {
    font-size: 1.15rem;
  }

  .stat-ring-center {
    width: 70px;
    height: 70px;
  }

  .stat-ring-center img {
    width: 26px;
    height: 26px;
  }

  .stat-ring-center p {
    font-size: 0.48rem;
  }
}
