/* =============================================================
   STYLE.CSS — Pedro Alves Portfolio
   Premium Cinematic Design System
   ============================================================= */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Background palette — deep digital dark */
  --bg-0: #010107;
  --bg-1: #03030b;
  --bg-2: #060613;
  --bg-3: #0a0a1c;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);

  /* Accent colors — electric blue-cyan spectrum */
  --cyan: #00d4ff;
  --blue: #4169ff;
  --purple: #8b5cf6;
  --cyan-d: rgba(0, 212, 255, 0.12);
  --blue-d: rgba(65, 105, 255, 0.12);
  --purple-d: rgba(139, 92, 246, 0.12);

  /* Text */
  --text-primary: #eef2ff;
  --text-secondary: #7b88b0;
  --text-muted: #3a4060;

  /* Borders */
  --border: rgba(255, 255, 255, 0.065);
  --border-accent: rgba(0, 212, 255, 0.28);

  /* Glow effects */
  --glow-cyan: 0 0 48px rgba(0, 212, 255, 0.22);
  --glow-blue: 0 0 48px rgba(65, 105, 255, 0.22);
  --glow-sm: 0 0 24px rgba(0, 212, 255, 0.18);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --section-py: clamp(80px, 10vw, 130px);
  --container-max: 1300px;
  --container-px: clamp(20px, 5vw, 80px);
  --nav-h: 76px;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);

  /* Z-index */
  --z-preloader: 9999;
  --z-cursor: 9990;
  --z-modal: 9000;
  --z-header: 100;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }
body.modal-open { overflow: hidden; }

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* Selection */
::selection { background: rgba(0, 212, 255, 0.22); color: var(--text-primary); }

/* i18n transition */
.lang-fade-out { opacity: 0; transition: opacity 0.28s ease !important; }
.lang-fade-in { opacity: 1; transition: opacity 0.32s ease !important; }

/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* Section label pill */
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 18px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: var(--cyan-d);
  margin-bottom: 24px;
}
.label-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink-dot 2.2s infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 60px;
}

/* Gradient text */
.grad-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   4. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }
.d5 { transition-delay: 0.5s !important; }
.d6 { transition-delay: 0.6s !important; }
.d7 { transition-delay: 0.7s !important; }

/* ============================================================
   5. CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--cyan);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(0, 212, 255, 0.55);
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              background 0.35s ease,
              opacity 0.25s ease;
}
.cursor-ring.hovered {
  width: 60px; height: 60px;
  background: rgba(0, 212, 255, 0.07);
  border-color: var(--cyan);
}

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

.pre-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.pre-logo span { color: var(--cyan); }

.pre-count {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.05em;
  line-height: 1;
  min-width: 3ch;
  text-align: center;
}

.pre-bar-wrap {
  width: 220px;
  height: 2px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.pre-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 100px;
  box-shadow: var(--glow-sm);
  transition: width 0.06s linear;
}

.pre-text {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   7. HEADER & NAV
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-header);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#header.scrolled {
  background: rgba(1, 1, 7, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--cyan);
  border-radius: 100px;
}

/* Language Switcher */
.lang-sw {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  flex-shrink: 0;
}
.lang-btn {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

/* Nav CTA Button */
.nav-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 10px 22px;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-sm);
}

/* Menu Toggle (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 100px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile fullscreen nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(1, 1, 7, 0.97);
  backdrop-filter: blur(24px);
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 28px;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--cyan); }
.mobile-nav-lang {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.mobile-nav-lang .lang-btn {
  font-size: 0.85rem;
  padding: 8px 18px;
}

/* ============================================================
   8. HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) var(--container-px) 80px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-carousel-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-carousel-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease-in-out-cubic);
  filter: blur(8px); /* Transparência e blur aplicados aqui */
}

.hero-video-item.active {
  opacity: 0.35;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1,1,7,0.3), var(--bg-0));
  z-index: 1;
  backdrop-filter: blur(2px);
}

/* Ambient glows */
.hero-glow-a {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
}
.hero-glow-a.g1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(65,105,255,0.1) 0%, transparent 70%);
  top: -150px; right: -150px;
}
.hero-glow-a.g2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  bottom: -50px; left: -100px;
}

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

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--cyan);
  border: 1px solid var(--border-accent);
  background: var(--cyan-d);
  padding: 9px 22px;
  border-radius: 100px;
  margin-bottom: 36px;
  opacity: 0;
  animation: hero-in 0.8s var(--ease-out-expo) 0.6s forwards;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: blink-dot 2s infinite;
}

/* Title */
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 28px;
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out-expo) 0.8s forwards;
}
.hero-h1 .line2 {
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out-expo) 1.0s forwards;
}

/* CTA row */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 68px;
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out-expo) 1.2s forwards;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #080808;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  padding: 15px 32px;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 28px rgba(0, 212, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 48px rgba(0, 212, 255, 0.45);
}
.btn-primary svg { width: 18px; height: 18px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 30px;
  border-radius: 100px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: var(--cyan-d);
  transform: translateY(-3px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out-expo) 1.4s forwards;
}
.hero-stat { text-align: center; }
.hero-stat-v {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-l {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-sep {
  width: 1px; height: 44px;
  background: var(--border);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: hero-in 0.8s ease 2s forwards;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--border), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  width: 100%; height: 60%;
  background: var(--cyan);
  top: -60%;
  animation: scroll-drip 2.2s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { top: -60%; }
  100% { top: 160%; }
}
.scroll-txt {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

/* Hero animations */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   9. ABOUT
   ============================================================ */
#about {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(1, 1, 7, 0.95) 0%, rgba(1, 1, 7, 0.4) 60%, transparent 100%),
    url('../../images/meuFundo.png') center/cover no-repeat;
    
}

.about-grid {
  display: flex;
  justify-content: flex-start;
}

.about-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

/* About text content */
.about-content { }
.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.about-mini-stats {
  display: flex;
  gap: 36px;
  margin: 36px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ams-item { text-align: left; }
.ams-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.ams-val sup { font-size: 1rem; color: var(--cyan); }
.ams-lbl {
  font-size: 0.72rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   10. SERVICES
   ============================================================ */
#services {
  padding: var(--section-py) 0;
  position: relative;
}

.section-hdr { text-align: center; display: flex; flex-direction: column; align-items: center; }

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

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.4s ease;
  cursor: default;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.svc-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-accent);
  box-shadow: var(--glow-cyan);
}
.svc-card:hover::before { opacity: 1; }

.svc-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: color 0.3s ease;
}
.svc-card:hover .svc-num { color: rgba(0,212,255,0.08); }

.svc-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue-d), var(--cyan-d));
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.svc-card:hover .svc-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: var(--glow-sm);
}
.svc-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.svc-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.svc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ============================================================
   11. SKILLS
   ============================================================ */
#skills {
  padding: var(--section-py) 0;
  background: linear-gradient(to bottom, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.skill-card {
  flex: 0 0 calc(25% - 14px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
}

.skill-ring-wrap {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 20px;
}
.skill-ring-wrap svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.s-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 5;
}
.s-fill {
  fill: none;
  stroke: url(#sk-grad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 270;
  stroke-dashoffset: 270;
  transition: stroke-dashoffset 1.4s var(--ease-out-expo);
}
.skill-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.skill-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.skill-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}



/* ============================================================
   12. PORTFOLIO
   ============================================================ */
#portfolio { padding: var(--section-py) 0; }

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

/* Portfolio Categories */
.portfolio-category {
  margin-bottom: 80px;
}
.portfolio-category:last-child {
  margin-bottom: 0;
}
.category-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.pf-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/10;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.35s ease;
}
.pf-item.is-vertical {
  aspect-ratio: 9/16;
}
.pf-item.is-hidden { display: none; }
.pf-item:hover { transform: scale(1.025); }

.pf-thumb {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease-out-expo);
}
.pf-item:hover .pf-thumb { transform: scale(1.08); }

.pf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,1,7,0.92) 0%, rgba(1,1,7,0.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
}
.pf-item:hover .pf-overlay { opacity: 1; }

.pf-meta {
  position: absolute;
  bottom: 26px;
  left: 26px;
  text-align: left;
  pointer-events: none;
}

.pf-cat {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.8;
}

.pf-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  transform: scale(0.8);
  opacity: 0;
  text-decoration: none;
}
.pf-item:hover .pf-play-btn {
  transform: scale(1);
  opacity: 1;
}
.pf-play-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
  box-shadow: 0 0 30px var(--cyan);
}
.pf-play-btn svg { width: 24px; height: 24px; margin-left: 2px; }

/* ============================================================
   12.5. VIDEO MODAL
   ============================================================ */
#video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* ensure it's on top */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#video-modal.open { opacity: 1; visibility: visible; }

.vm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 1, 7, 0.95);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.vm-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}
.vm-close:hover {
  background: var(--cyan);
  color: #000;
  transform: scale(1.1);
}
.vm-close svg { width: 24px; height: 24px; }

.vm-frame-wrap {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 16/9;
  z-index: 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out-expo), width 0.4s ease, aspect-ratio 0.4s ease;
}
#video-modal.is-vertical .vm-frame-wrap {
  aspect-ratio: 9/16;
  width: auto;
  height: 90vh;
  max-width: 90vw;
}
#video-modal.open .vm-frame-wrap { transform: scale(1); }

.vm-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}





/* ============================================================
   15. DIFFERENTIATORS
   ============================================================ */
#differentiators { padding: var(--section-py) 0; }

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

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
}
.diff-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}
.diff-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
}
.diff-card:hover::after { transform: scaleX(1); }

.diff-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--blue-d), var(--cyan-d));
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 20px;
}
.diff-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.diff-t {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.diff-d {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ============================================================
   16. TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: var(--section-py) 0;
  background: linear-gradient(to bottom, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
  overflow: hidden;
}

.test-slider {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
}
.test-track { overflow: hidden; }
.test-inner {
  display: flex;
  transition: transform 0.62s var(--ease-in-out-cubic);
}
.test-slide { min-width: 100%; padding: 16px; }

.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 40px;
  position: relative;
}
.test-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.7;
  color: var(--cyan);
  opacity: 0.08;
  position: absolute;
  top: 28px; left: 32px;
  pointer-events: none;
}

.test-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
}
.test-stars svg {
  width: 16px; height: 16px;
  fill: #fbbf24;
  color: #fbbf24;
}
.test-txt {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.78;
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.test-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bg-0);
  flex-shrink: 0;
}
.test-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.test-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.sl-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sl-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-d);
}
.sl-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sl-dots { display: flex; gap: 8px; align-items: center; }
.sl-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: var(--border);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.sl-dot.active { width: 26px; background: var(--cyan); }

/* ============================================================
   17. CTA SECTION
   ============================================================ */
#cta { padding: var(--section-py) 0; }

.cta-card {
  background: linear-gradient(135deg, var(--bg-3) 0%, #0a0a20 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(60px, 8vw, 100px) var(--container-px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 450px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
/* Grid lines in CTA */
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.012) 39px, rgba(255,255,255,0.012) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.012) 39px, rgba(255,255,255,0.012) 40px);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.cta-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  padding: 15px 30px;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.32);
}
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }

.btn-emailc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 100px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.btn-emailc:hover {
  border-color: var(--cyan);
  background: var(--cyan-d);
  transform: translateY(-3px);
}

/* ============================================================
   18. CONTACT
   ============================================================ */
#contact { padding: var(--section-py) 0; }

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

.contact-info-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  font-size: 0.96rem;
}
.contact-links { display: flex; flex-direction: column; gap: 10px; }

.cont-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cont-link:hover {
  border-color: var(--border-accent);
  transform: translateX(6px);
}
.cont-link-ico {
  width: 40px; height: 40px;
  background: var(--cyan-d);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.cont-link-ico svg { width: 17px; height: 17px; }
.cont-link-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1px;
}
.cont-link-val {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-ctrl {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  resize: none;
}
.form-ctrl::placeholder { color: var(--text-muted); }
.form-ctrl:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
textarea.form-ctrl { height: 130px; }
.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #080808;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 16px 32px;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: var(--glow-cyan); }
.form-submit svg { width: 18px; height: 18px; }

.avail-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 18px;
}
.avail-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  flex-shrink: 0;
  animation: blink-dot 2s infinite;
}

/* ============================================================
   19. FOOTER
   ============================================================ */
#footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-logo span { color: var(--cyan); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); text-align: center; }
.footer-dev-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 5px 5px 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.footer-dev-badge:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.ip-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.dev-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-hover);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.3s ease;
}
.dev-btn:hover {
  background: var(--cyan);
  color: var(--bg-0);
}
.dev-btn svg {
  transition: transform 0.3s ease;
}
.dev-btn:hover svg {
  transform: translate(1px, -1px);
}

/* ============================================================
   20. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { flex: 0 0 calc(33.333% - 12px); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .skill-card { flex: 0 0 calc(50% - 9px); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-sep { height: 30px; }
  .modal-details { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .about-mini-stats { gap: 24px; }
}

@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  .hero-stats { gap: 16px; }
  .stat-sep { display: none; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-wa, .btn-emailc { justify-content: center; }
  /* skill-card already 50% from 768px breakpoint */
  .modal-box { border-radius: 18px; }
  .modal-thumb-area { height: 180px; }
  .modal-body { padding: 22px; }
  .modal-proj-title { font-size: 1.4rem; }
}
