/* ================= VARIABLES ================= */
:root {
  --bg: #070815;
  --bg-alt: #0b0d1f;
  --card: #10132a;
  --card-2: #151935;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f5fb;
  --muted: #9aa0bf;
  --primary: #7c5cff;
  --primary-2: #5b7cff;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #5b7cff 100%);
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* ================= COMMON ================= */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b9a6ff;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.tag.center { display: table; margin: 0 auto 14px; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 50px;
}
.section-title.left { text-align: left; margin-bottom: 20px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s, box-shadow .25s, background .25s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(124, 92, 255, .5); }
.btn-outline { border-color: rgba(255, 255, 255, .35); }
.btn-outline:hover { background: rgba(255, 255, 255, .07); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 8, 21, .85);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--primary); font-family: "JetBrains Mono", monospace; font-size: 20px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--muted); position: relative; padding: 6px 0; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; width: 30px; flex-direction: column; gap: 6px; }
.menu-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  background:
    radial-gradient(circle at 80% 30%, rgba(124, 92, 255, .18), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(91, 124, 255, .1), transparent 40%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 800; line-height: 1.1; }
.hero-role { font-size: clamp(22px, 3vw, 34px); font-weight: 700; margin: 12px 0 20px; min-height: 1.3em; }
.typed { color: #c4b5fd; }
.cursor { color: var(--primary); animation: blink 1s infinite; font-weight: 300; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.tools-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.tools { display: flex; gap: 14px; flex-wrap: wrap; }
.tool, .mini {
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  border-radius: 9px;
}
.tool { width: 46px; height: 46px; transition: transform .25s; border: 1px solid var(--border); }
.tool:hover { transform: translateY(-5px); }
.tool-ps { background: #001e36; color: #31a8ff; }
.tool-ae { background: #00005b; color: #9999ff; }
.tool-pr { background: #00005b; color: #ea77ff; }
.tool-meta { background: #0a1a33; color: #1877f2; font-size: 24px; }
.tool-vs { background: #0b1f33; color: #22a6f2; }
.tool-mind { background: #1d1236; color: #f5a524; }

/* hero visual */
.hero-visual { position: relative; height: 560px; display: flex; justify-content: center; align-items: center; }
.hero-circle {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: var(--grad); filter: blur(2px); opacity: .9;
  box-shadow: 0 0 120px rgba(124, 92, 255, .45);
  animation: float 6s ease-in-out infinite;
}
.dots {
  position: absolute; top: 10px; right: 10px; width: 90px; height: 90px;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
}
.photo-frame {
  position: relative; width: 360px; height: 470px;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.5);
  transform-origin: 62% 58%;
  transition: transform .6s;
}
.photo-frame:hover img { transform: scale(1.6); }

.code-card {
  position: absolute; left: -20px; bottom: 30px;
  background: rgba(16, 19, 42, .92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite reverse;
}
.code-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 8px; font-size: 12px; gap: 30px; }
.code-head i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.code-card pre { color: #dfe3ff; line-height: 1.6; }
.code-card .k { color: #c084fc; }
.code-card .s { color: #fb923c; }
.code-card .n { color: #34d399; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ================= ABOUT ================= */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.langs { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.lang {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 10px; font-size: 14px;
}
.lang b { color: #c4b5fd; }
.flag { font-size: 11px; font-weight: 800; background: var(--grad); padding: 3px 7px; border-radius: 5px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stat { display: flex; gap: 16px; align-items: center; padding: 32px 26px; }
.stat:nth-child(odd) { border-right: 1px solid var(--border); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, .15); color: #a78bfa;
  border: 1px solid rgba(124, 92, 255, .3);
}
.stat h3 { font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat p { color: var(--muted); font-size: 14px; }

/* ================= SERVICES ================= */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.service-group {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px;
  transition: border-color .3s, transform .3s;
}
.service-group:hover { border-color: rgba(124, 92, 255, .45); transform: translateY(-5px); }
.service-group h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.service-group h3 small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: auto; border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 12px #8b5cf6; }
.dot-2 { background: #5b7cff; box-shadow: 0 0 12px #5b7cff; }
.service-group ul { list-style: none; display: grid; gap: 14px; }
.service-group li { color: var(--muted); padding-left: 22px; position: relative; font-size: 15px; }
.service-group li::before { content: "▹"; position: absolute; left: 0; color: var(--primary); }
.service-group li b { color: var(--text); font-weight: 600; }

/* ================= SKILLS ================= */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 50px; }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 600; font-size: 15px; }
.skill-head em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 14px; }
.mini { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
.bar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 10px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }

/* ================= EXPERIENCE ================= */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#8b5cf6, rgba(91, 124, 255, .1)); }
.t-item {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 26px;
}
.t-item::before {
  content: ""; position: absolute; left: -34px; top: 30px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid #8b5cf6; box-shadow: 0 0 12px #8b5cf6;
}
.t-date { font-size: 13px; font-weight: 600; color: #c4b5fd; }
.t-item h3 { font-size: 20px; margin: 4px 0 2px; }
.t-sub { color: #8f9bff; font-size: 14px; margin-bottom: 10px; }
.t-item p:last-child { color: var(--muted); font-size: 15px; }

/* ================= PROJECTS ================= */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -20px 0 40px; }
.filter {
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 18px; border-radius: 30px; font-size: 14px; transition: .25s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--grad); color: #fff; border-color: transparent; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.project:hover { transform: translateY(-8px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 20px 40px rgba(124, 92, 255, .15); }
.project.hide { display: none; }
.p-thumb { height: 200px; position: relative; display: grid; place-items: center; overflow: hidden; }
.p-num { position: absolute; top: 14px; left: 16px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); z-index: 2; }
.p-body { padding: 22px 22px 20px; }
.p-body h3 { font-size: 18px; margin-bottom: 6px; }
.p-body p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.p-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.p-cat { color: var(--muted); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }
.p-foot a { color: #a78bfa; font-weight: 600; }
.p-foot a:hover { color: #fff; }

/* placeholder thumbnails */
.thumb-1 { background: linear-gradient(135deg, #1e1050, #3b1d8f); }
.thumb-2 { background: linear-gradient(135deg, #2a0b3d, #7a1f5c); }
.thumb-3 { background: linear-gradient(135deg, #0c1e46, #1d4ed8); }
.thumb-4 { background: linear-gradient(135deg, #2b1a05, #b45309); }
.thumb-5 { background: linear-gradient(135deg, #062a2a, #0f766e); }
.thumb-6 { background: linear-gradient(135deg, #1a1033, #6d28d9); }
.project:hover .p-thumb > div { transform: scale(1.08); }
.p-thumb > div { transition: transform .5s; }

.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.mock-chart i { width: 22px; background: rgba(255, 255, 255, .85); border-radius: 5px 5px 0 0; }
.mock-chart i:nth-child(1) { height: 30%; } .mock-chart i:nth-child(2) { height: 45%; }
.mock-chart i:nth-child(3) { height: 40%; } .mock-chart i:nth-child(4) { height: 65%; }
.mock-chart i:nth-child(5) { height: 80%; } .mock-chart i:nth-child(6) { height: 100%; background: #a3e635; }

.mock-play {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .7);
  font-size: 26px; padding-left: 5px; color: #fff; backdrop-filter: blur(4px);
}

.mock-browser {
  width: 70%; height: 130px; background: #f1f5ff; border-radius: 8px; padding: 10px;
  display: grid; grid-template-columns: repeat(3, 8px) 1fr; grid-template-rows: 8px 1fr 1fr; gap: 6px;
}
.mock-browser b { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.mock-browser b:nth-child(2) { background: #fbbf24; } .mock-browser b:nth-child(3) { background: #34d399; }
.mock-browser div { grid-column: 1 / -1; background: #c7d2fe; border-radius: 4px; }
.mock-browser div:nth-of-type(1) { grid-column: 4; background: none; }
.mock-browser div:nth-of-type(2) { background: #6366f1; }

.mock-posts { display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; }
.mock-posts i { height: 64px; border-radius: 8px; background: rgba(255, 255, 255, .85); }
.mock-posts i:nth-child(2) { background: #fde68a; } .mock-posts i:nth-child(3) { background: #fb923c; }

.mock-map { position: relative; width: 180px; height: 120px; }
.mock-map i { position: absolute; width: 46px; height: 22px; border-radius: 12px; background: rgba(255, 255, 255, .85); }
.mock-map i:nth-child(1) { left: 67px; top: 49px; background: #5eead4; }
.mock-map i:nth-child(2) { left: 0; top: 0; } .mock-map i:nth-child(3) { right: 0; top: 0; }
.mock-map i:nth-child(4) { left: 0; bottom: 0; } .mock-map i:nth-child(5) { right: 0; bottom: 0; }

.mock-phone {
  width: 80px; height: 150px; border-radius: 16px; border: 4px solid rgba(255, 255, 255, .9);
  padding: 14px 8px; display: grid; gap: 8px; grid-template-rows: 2fr 1fr 1fr; margin-top: 40px;
}
.mock-phone div { background: rgba(255, 255, 255, .8); border-radius: 5px; }
.mock-phone div:first-child { background: #c4b5fd; }

/* featured real projects */
.featured { display: grid; gap: 30px; margin-bottom: 30px; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.feature:nth-child(even) .f-media { order: 2; }
.f-media {
  position: relative; display: block; border: none; padding: 0; background: #0d0f22;
  overflow: hidden; min-height: 340px; cursor: zoom-in; width: 100%;
}
.f-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; transition: transform .6s; }
.feature:hover .f-media img { transform: scale(1.04); }
.f-media-logo, .f-media-ai { cursor: default; display: grid; place-items: center; }
.f-media-logo { background: radial-gradient(circle at 50% 40%, #1e3a8a, #0b1530 70%); }
.f-media-logo img { position: static; width: 55%; height: auto; object-fit: contain; border-radius: 18px; }
.f-media-ai { background: radial-gradient(circle at 30% 30%, #4c1d95, #0b0d1f 70%); }
.ai-mock { display: flex; gap: 18px; align-items: center; }
.ai-video { width: 170px; height: 110px; border-radius: 12px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: 30px; }
.ai-lines { display: grid; gap: 10px; }
.ai-lines i { display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.75); width: 140px; }
.ai-lines i:nth-child(2) { width: 110px; background: #c4b5fd; }
.ai-lines i:nth-child(3) { width: 125px; }
.ai-lines i:nth-child(4) { width: 80px; background: #a78bfa; }
.f-media-video { cursor: default; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 40%, #3b2a14, #0d0f22 70%); }
.f-media-video video { height: 460px; max-height: 70vh; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; box-shadow: var(--shadow); }
.f-count {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 12px; font-weight: 600;
  background: rgba(7, 8, 21, .8); border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; color: #fff;
  backdrop-filter: blur(6px);
}
.f-count.soon { color: #c4b5fd; }
.f-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.p-num-inline { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #a78bfa; }
.f-body h3 { font-size: 22px; line-height: 1.3; }
.f-body p { color: var(--muted); font-size: 15px; }
.f-points { list-style: none; display: grid; gap: 8px; }
.f-points li { color: var(--muted); font-size: 14px; padding-left: 20px; position: relative; }
.f-points li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 700; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font-size: 12px; font-weight: 600; color: #c4b5fd; background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .3); padding: 4px 10px; border-radius: 6px; }
.f-body > .btn, .f-btns { margin-top: auto; }
.f-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* work blocks: strategy, design, video */
.work-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 30px; }
.wb-head { max-width: 760px; margin-bottom: 24px; display: grid; gap: 10px; }
.wb-head h3 { font-size: 22px; line-height: 1.3; }
.wb-head p { color: var(--muted); font-size: 15px; }

.strategy { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.mindmap { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; padding: 0; height: 460px; cursor: zoom-in; }
.mindmap img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s; }
.mindmap:hover img { transform: scale(1.05); }
.strategy-points { display: grid; gap: 12px; align-content: start; }
.sp { display: grid; gap: 2px; padding: 14px 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); border-left: 3px solid var(--primary); }
.sp b { font-size: 15px; }
.sp span { color: var(--muted); font-size: 14px; }
.strategy-points .btn { justify-self: start; margin-top: 6px; }

.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.post { padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: none; cursor: zoom-in; aspect-ratio: 1; }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover img { transform: scale(1.06); }

.vid { background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vid video { display: block; width: 100%; background: #000; }
.vid figcaption { padding: 12px 14px; display: grid; gap: 2px; }
.vid figcaption b { font-size: 14px; }
.vid figcaption span { color: var(--muted); font-size: 12.5px; }
.videos-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.videos-wide video { aspect-ratio: 16 / 9; }
.videos-tall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.videos-tall video { aspect-ratio: 9 / 16; object-fit: cover; }

.ads { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { font-size: 24px; line-height: 1.2; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.kpi em.up { color: #34d399; }
.ads-shot { position: relative; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.ads-shot img { width: 100%; display: block; transition: transform .6s; }
.ads-shot:hover img { transform: scale(1.03); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(3, 4, 12, .94);
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px;
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.lightbox figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }
.lightbox figcaption em { font-style: normal; margin-left: 8px; color: #a78bfa; }
.lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 26px; }
.lb-nav {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: #fff; font-size: 30px; line-height: 1; transition: .25s;
}
.lb-nav:hover { background: var(--grad); }

/* ================= CONTACT ================= */
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.contact-text p { color: var(--muted); margin-bottom: 28px; max-width: 480px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-card h3 { font-size: 18px; margin-bottom: 18px; }
.c-row { display: flex; align-items: center; gap: 14px; color: var(--muted); padding: 10px 0; transition: color .25s; }
.c-row:hover { color: var(--text); }
.c-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 92, 255, .15); color: #a78bfa; }
.follow { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #b9a6ff; font-weight: 600; margin: 22px 0 12px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted); transition: .25s;
}
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px); }

.contact-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .3); }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(37, 211, 102, .45); }
.c-ico-wa { background: rgba(37, 211, 102, .15); color: #25d366; }

.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .25s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1; animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--border); padding: 26px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-inline: 70px; }
@media (max-width: 640px) { .footer-inner { justify-content: center; text-align: center; padding-bottom: 70px; padding-inline: 0; } }
.heart { color: #f43f5e; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px;
  border: none; background: var(--grad); color: #fff; font-size: 20px; z-index: 90;
  opacity: 0; pointer-events: none; transform: translateY(20px); transition: .3s;
  box-shadow: 0 10px 25px rgba(124, 92, 255, .4);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ================= REVEAL ANIMATION ================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-buttons, .tools { justify-content: center; }
  .section-title.left { text-align: center; }
  .about-text, .contact-text { text-align: center; }
  .about-text .tag, .contact-text .tag { display: table; margin: 0 auto 14px; }
  .langs { justify-content: center; }
  .contact-text p { margin-inline: auto; }
  .contact-btns { justify-content: center; }
  .skills-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .f-media { order: 0; }
  .f-media { min-height: 0; aspect-ratio: 16 / 10; }
  .f-media-video { aspect-ratio: auto; }
  .f-media-video video { height: auto; width: min(300px, 100%); }
  .strategy, .ads { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .videos-tall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: 260px;
    flex-direction: column; gap: 26px; padding: 100px 34px;
    background: rgba(11, 13, 31, .98); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .35s;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 17px; }
  .menu-toggle { display: flex; z-index: 101; }
  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  section { padding: 75px 0; }
  .hero-visual { height: 470px; }
  .hero-circle { width: 300px; height: 300px; }
  .photo-frame { width: 270px; height: 360px; }
  .code-card { left: 0; bottom: 0; font-size: 11px; padding: 10px 14px; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { border-right: none; }
  .stat:not(:last-child) { border-bottom: 1px solid var(--border); }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .service-group { padding: 26px 22px; }
  .f-body { padding: 24px 20px; }
  .work-block { padding: 22px 16px; }
  .videos-wide { grid-template-columns: 1fr; }
  .videos-tall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mindmap { height: 340px; }
  .lightbox { padding: 16px 8px; gap: 6px; }
  .lb-nav { width: 38px; height: 38px; font-size: 22px; }
  .ai-video { width: 120px; height: 80px; }
  .ai-lines i { width: 90px; }
}
