/* =========================================================
   DynamicDestiny — style.css
   Dark, glassmorphic, neon-accented landing page
   ========================================================= */

:root {
  /* Palette */
  --bg-deep: #0B1026;
  --bg-surface: #12192F;
  --indigo: #4F46E5;
  --cyan: #06B6D4;
  --violet: #7C3AED;
  --neon-cyan: #00E5FF;
  --white: #FFFFFF;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-dim: rgba(255, 255, 255, 0.65);
  --text-dimmer: rgba(255, 255, 255, 0.45);

  --grad-main: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 50%, var(--cyan) 100%);
  --grad-text: linear-gradient(90deg, var(--neon-cyan), var(--indigo) 60%, var(--violet));

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --container-w: 1240px;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  cursor: default;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--violet); color: var(--white); }

/* Background ambient gradient wash */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.18), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(6, 182, 212, 0.14), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(124, 58, 237, 0.16), transparent 50%),
    var(--bg-deep);
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--indigo), var(--cyan)); border-radius: 10px; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 17px; line-height: 1.6; }

section { position: relative; padding: 120px 0; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.loader-logo span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.loader-bar { width: 220px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.loader-progress { width: 0%; height: 100%; background: var(--grad-main); box-shadow: 0 0 12px var(--neon-cyan); }

/* =========================================================
   CURSOR EFFECTS (desktop only)
   ========================================================= */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 3;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--neon-cyan); border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: transform 0.15s ease, opacity 0.3s ease;
  will-change: transform;
}
@media (max-width: 900px), (hover: none) {
  .cursor-glow, .cursor-dot { display: none; }
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-main);
  z-index: 9997;
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* =========================================================
   PARTICLES
   ========================================================= */
#particles {
  position: fixed; inset: 0; z-index: -1; opacity: 0.6;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(11, 16, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: var(--container-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.logo span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-dim); position: relative; transition: color 0.3s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--grad-text); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 13px; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
  background: var(--grad-main); background-size: 200% auto;
  color: var(--white);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover { background-position: right center; box-shadow: 0 8px 40px rgba(6, 182, 212, 0.55); transform: translateY(-3px); }

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: var(--white);
}
.btn-glass:hover { border-color: var(--neon-cyan); box-shadow: 0 0 25px rgba(0, 229, 255, 0.25); transform: translateY(-3px); }

.btn-outline {
  border: 1px solid var(--glass-border);
  padding: 11px 24px; font-size: 13.5px;
}
.btn-outline:hover { border-color: var(--neon-cyan); box-shadow: 0 0 18px rgba(0, 229, 255, 0.25); }

.btn-lg { padding: 19px 40px; font-size: 16px; }

.ripple-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0); animation: rippleAnim 0.7s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 160px 0 80px; overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none;
}
.glow-1 { width: 500px; height: 500px; background: rgba(79, 70, 229, 0.35); top: -100px; left: -100px; animation: floatGlow 12s ease-in-out infinite; }
.glow-2 { width: 450px; height: 450px; background: rgba(6, 182, 212, 0.28); bottom: -80px; right: -80px; animation: floatGlow 14s ease-in-out infinite reverse; }
@keyframes floatGlow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

.hero-blob {
  position: absolute; z-index: -1; opacity: 0.5; filter: blur(2px);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morphBlob 10s ease-in-out infinite;
}
.blob-1 { width: 340px; height: 340px; background: linear-gradient(135deg, var(--violet), transparent); top: 15%; right: 8%; }
.blob-2 { width: 260px; height: 260px; background: linear-gradient(135deg, var(--cyan), transparent); bottom: 8%; left: 5%; animation-delay: -4s; }
@keyframes morphBlob {
  0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { border-radius: 63% 37% 41% 59% / 56% 41% 59% 44%; }
}

.hero-inner {
  max-width: var(--container-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}

.hero-title {
  font-size: clamp(36px, 5.2vw, 64px);
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span, .hero-title .line { }

.hero-subtitle {
  font-size: 18px; color: var(--text-dim); line-height: 1.65;
  max-width: 520px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-mini-stats { display: flex; align-items: center; gap: 22px; }
.hero-mini-stats strong { display: block; font-family: var(--font-display); font-size: 22px; }
.hero-mini-stats span { font-size: 12.5px; color: var(--text-dimmer); }
.hero-mini-stats .divider { width: 1px; height: 32px; background: var(--glass-border); }

/* Hero phone visual */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone-wrap { position: relative; width: 320px; height: 560px; }
.phone {
  position: absolute; inset: 0;
  border-radius: 46px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 60px rgba(79,70,229,0.25), inset 0 0 0 1px rgba(255,255,255,0.05);
  padding: 14px;
  animation: phoneFloat 5s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes phoneFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(1.2deg); } }

.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: var(--bg-deep); border-radius: 20px; z-index: 2; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(160deg, #131a35, #0b1026);
  padding: 40px 20px 20px;
}
.app-ui-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.app-ui-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-main); flex-shrink: 0; }
.app-ui-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.app-ui-lines span { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.app-ui-lines span:first-child { width: 70%; }
.app-ui-lines span:last-child { width: 45%; background: rgba(255,255,255,0.07); }

.app-ui-card { height: 90px; border-radius: 16px; margin-bottom: 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); background-image: linear-gradient(135deg, rgba(79,70,229,0.35), rgba(6,182,212,0.2)); }
.app-ui-card.small { height: 54px; background-image: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(0,229,255,0.15)); }

.app-ui-chart { display: flex; align-items: flex-end; gap: 8px; height: 60px; margin: 18px 0; }
.app-ui-chart span { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad-main); opacity: 0.8; animation: barPulse 2.4s ease-in-out infinite; }
.app-ui-chart span:nth-child(1) { height: 40%; animation-delay: 0s; }
.app-ui-chart span:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.app-ui-chart span:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.app-ui-chart span:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.app-ui-chart span:nth-child(5) { height: 60%; animation-delay: 0.8s; }
@keyframes barPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.app-ui-btn { height: 44px; border-radius: 14px; background: var(--grad-main); box-shadow: 0 0 20px rgba(6,182,212,0.4); }

.float-icon {
  position: absolute; width: 52px; height: 52px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: iconFloat 4s ease-in-out infinite;
}
.icon-1 { top: 8%; left: -8%; animation-delay: 0s; color: #3DDC84; }
.icon-2 { top: 2%; right: -6%; animation-delay: 0.6s; }
.icon-3 { bottom: 20%; left: -12%; animation-delay: 1.2s; color: #61DAFB; }
.icon-4 { bottom: 6%; right: -8%; animation-delay: 1.8s; color: #FFD166; }
.icon-5 { top: 45%; right: -14%; animation-delay: 2.4s; color: #7C3AED; }
@keyframes iconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.orbit-ring { position: absolute; border: 1px dashed rgba(0,229,255,0.18); border-radius: 50%; top: 50%; left: 50%; }
.ring-1 { width: 420px; height: 420px; margin: -210px 0 0 -210px; animation: spin 30s linear infinite; }
.ring-2 { width: 500px; height: 500px; margin: -250px 0 0 -250px; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-indicator span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dimmer); }
.mouse { width: 24px; height: 38px; border: 2px solid var(--glass-border); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 4px; height: 8px; border-radius: 2px; background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); animation: wheelMove 1.6s ease-in-out infinite; }
@keyframes wheelMove { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  padding: 40px 32px; border-radius: var(--radius);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(6,182,212,0.1));
  transition: opacity 0.4s ease;
}
.service-card:hover { transform: translateY(-10px); border-color: rgba(0,229,255,0.35); box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 30px rgba(6,182,212,0.15); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 22px;
  background: var(--grad-main); display: flex; align-items: center; justify-content: center;
  font-size: 24px; position: relative; z-index: 1;
  animation: iconBounce 3s ease-in-out infinite;
}
@keyframes iconBounce { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-4deg); } }
.service-card h3 { font-size: 19px; margin-bottom: 12px; position: relative; z-index: 1; }
.service-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; position: relative; z-index: 1; }

/* =========================================================
   STATS
   ========================================================= */
.stats { padding: 100px 0; }
.stats-bg {
  position: absolute; inset: 0; margin: 0 24px; border-radius: 32px;
  background: linear-gradient(120deg, rgba(79,70,229,0.16), rgba(124,58,237,0.12), rgba(6,182,212,0.14));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; padding: 60px 20px; }
.stat-number {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-dim); font-size: 14.5px; margin-top: 8px; letter-spacing: 0.02em; }

/* =========================================================
   PROCESS TIMELINE
   ========================================================= */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 40px; }
.timeline-line {
  position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: rgba(255,255,255,0.1);
}
.timeline-progress { width: 100%; height: 0%; background: linear-gradient(var(--indigo), var(--cyan)); box-shadow: 0 0 10px var(--neon-cyan); }
.timeline-item { position: relative; padding-bottom: 56px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -40px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-deep); border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.12);
}
.timeline-content {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 26px 28px; backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.timeline-content:hover { transform: translateX(6px); border-color: rgba(0,229,255,0.3); }
.timeline-index { font-family: var(--font-display); font-size: 12.5px; color: var(--neon-cyan); letter-spacing: 0.1em; }
.timeline-content h3 { font-size: 19px; margin: 6px 0 8px; }
.timeline-content p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* =========================================================
   TECHNOLOGIES / MARQUEE
   ========================================================= */
.technologies { padding: 100px 0; overflow: hidden; }
.marquee { overflow: hidden; position: relative; padding: 20px 0; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-deep), transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marqueeScroll 28s linear infinite; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 30px; border-radius: 100px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  white-space: nowrap;
}
.tech-item i { font-size: 20px; color: var(--neon-cyan); }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 320px;
  border: 1px solid var(--glass-border);
}
.portfolio-media {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: rgba(255,255,255,0.35);
  transition: transform 0.6s var(--ease);
}
.portfolio-card:hover .portfolio-media { transform: scale(1.12); }
.grad-1 { background: linear-gradient(140deg, #4F46E5, #06B6D4); }
.grad-2 { background: linear-gradient(140deg, #7C3AED, #4F46E5); }
.grad-3 { background: linear-gradient(140deg, #06B6D4, #12192F); }
.grad-4 { background: linear-gradient(140deg, #4F46E5, #7C3AED); }
.grad-5 { background: linear-gradient(140deg, #00E5FF, #4F46E5); }
.grad-6 { background: linear-gradient(140deg, #7C3AED, #06B6D4); }

.portfolio-overlay {
  position: absolute; inset: 0; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(0deg, rgba(11,16,38,0.92) 10%, rgba(11,16,38,0.1) 65%, transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon-cyan); margin-bottom: 8px; }
.portfolio-overlay h3 { font-size: 21px; margin-bottom: 14px; }
.portfolio-actions { display: flex; gap: 10px; transform: translateY(10px); opacity: 0; transition: all 0.4s var(--ease) 0.1s; }
.portfolio-card:hover .portfolio-actions { transform: translateY(0); opacity: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  font-size: 14px; transition: background 0.3s, transform 0.3s;
}
.icon-btn:hover { background: var(--grad-main); transform: scale(1.1); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-carousel { position: relative; max-width: 720px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; transition: transform 0.7s var(--ease); }
.testi-card {
  flex: 0 0 100%;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 44px; backdrop-filter: blur(14px); text-align: center;
}
.testi-stars { color: #FFC857; font-size: 15px; margin-bottom: 20px; letter-spacing: 4px; }
.testi-card p { font-size: 18px; line-height: 1.7; color: var(--white); margin-bottom: 28px; font-weight: 300; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad-main);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.testi-person div:last-child { text-align: left; }
.testi-person strong { display: block; font-size: 14.5px; }
.testi-person span { font-size: 12.5px; color: var(--text-dimmer); }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all 0.3s; cursor: pointer; }
.testi-dot.active { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); width: 24px; border-radius: 6px; }

/* =========================================================
   CTA
   ========================================================= */
.cta { padding: 140px 0; text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(79,70,229,0.35), rgba(6,182,212,0.15) 45%, transparent 70%);
  filter: blur(40px); z-index: -1;
  animation: ctaPulse 5s ease-in-out infinite;
}
@keyframes ctaPulse { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.15); } }
.cta-inner h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 20px; }
.cta-inner p { color: var(--text-dim); font-size: 17px; max-width: 480px; margin: 0 auto 36px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding-top: 100px; background: var(--bg-surface); overflow: hidden; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; line-height: 0; transform: translateY(-99%); }
.footer-wave svg { width: 100%; height: 120px; display: block; }
.footer-wave path { fill: var(--bg-surface); }

.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 60px;
}
.footer-brand p { color: var(--text-dim); font-size: 14px; line-height: 1.65; margin: 18px 0 22px; max-width: 280px; }
.footer-col .social-icons { display: flex !important; gap: 14px !important; margin-top: 10px !important; }
.footer-col .social-icons a {
  width: 42px !important; height: 42px !important; border-radius: 50% !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: rgba(255, 255, 255, 0.03) !important; border: 1px solid var(--glass-border) !important; font-size: 16px !important;
  color: var(--text-dim) !important;
  transition: all 0.3s var(--ease) !important;
  margin-bottom: 0 !important;
}
.footer-col .social-icons a i {
  margin: 0 !important;
  width: auto !important;
  color: inherit !important;
}
.footer-col .social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
  color: var(--white);
}
.footer-col .social-icons a.twitter:hover {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}
.footer-col .social-icons a.linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}
.footer-col .social-icons a.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(214, 36, 159, 0.35);
}
.footer-col .social-icons a.dribbble:hover {
  background: #EA4C89;
  border-color: #EA4C89;
  box-shadow: 0 5px 15px rgba(234, 76, 137, 0.3);
}
.footer-col h4 { font-size: 15px; margin-bottom: 20px; font-family: var(--font-display); }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 13px; transition: color 0.3s; }
.footer-col a:hover { color: var(--neon-cyan); }
.footer-col a i { width: 16px; color: var(--neon-cyan); margin-right: 6px; }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px; color: var(--text-dimmer);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.4s var(--ease);
  z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--grad-main); box-shadow: 0 0 20px rgba(6,182,212,0.4); }

/* =========================================================
   MAGNETIC (JS-driven transform handled inline)
   ========================================================= */
.magnetic { will-change: transform; }

/* =========================================================
   CONTACT MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 16, 38, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(18, 25, 47, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(79, 70, 229, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 20px;
  color: var(--text-dim);
  transition: color 0.3s;
}
.modal-close:hover {
  color: var(--white);
}
.modal-header {
  margin-bottom: 28px;
}
.modal-header h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.modal-header p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dimmer);
}
.form-submit-btn {
  margin-top: 10px;
  justify-content: center;
  width: 100%;
}
.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .phone-wrap { width: 260px; height: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 80px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .timeline { padding-left: 32px; }
  .hero-mini-stats { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .btn { padding: 13px 24px; font-size: 13.5px; }
  .phone-wrap { width: 220px; height: 400px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
