/* ─────────────────────────────────────────────
   LML.cc Clone — Enhanced Design System v2
   Richer backgrounds, haptics, AiRUDH brand,
   better responsiveness, micro-animations
   ───────────────────────────────────────────── */

/* Fonts loaded via <link> in HTML <head> — avoids @import render-blocking chain */

/* ═══ TOKENS ═══ */
:root {
  --primary: #0a0a0a;
  --secondary: #1a1a1a;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, .15);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .45);
  --dim: rgba(255, 255, 255, .12);
  --border: rgba(255, 255, 255, .08);
  --gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --glow: 0 0 30px rgba(0, 255, 136, .25), 0 0 60px rgba(0, 255, 136, .08);
  --nav-h: 80px;
  --container: 1440px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.25, .46, .45, .94);
  --bounce: cubic-bezier(.68, -.55, .27, 1.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  line-height: 1.55;
}

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

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 10px;
}

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

button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: none;
}

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

ul,
ol {
  list-style: none;
}

/* ═══ CUSTOM CURSOR ═══ */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width .2s var(--spring), height .2s var(--spring), background .2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .3s var(--spring), height .3s var(--spring), border-color .2s;
}

#cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
}

#cursor-ring.click {
  width: 32px;
  height: 32px;
}

@media(pointer:coarse) {

  #cursor,
  #cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto;
  }
}

/* ═══ SCROLL PROGRESS ═══ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #00ccff, var(--accent));
  z-index: 10002;
  transition: width .05s linear;
  box-shadow: 0 0 8px rgba(0, 255, 136, .5);
}

/* ═══ PAGE TRANSITION ═══ */
#page-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
}

#page-overlay.enter {
  animation: ptIn .45s var(--ease) forwards;
}

#page-overlay.leave {
  animation: ptOut .45s var(--ease) forwards;
}

@keyframes ptIn {
  0% {
    transform: scaleY(0);
    transform-origin: bottom
  }

  100% {
    transform: scaleY(1);
    transform-origin: bottom
  }
}

@keyframes ptOut {
  0% {
    transform: scaleY(1);
    transform-origin: top
  }

  100% {
    transform: scaleY(0);
    transform-origin: top
  }
}

/* ═══ LOADER ═══ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity .6s var(--ease);
}

#loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -.04em;
  color: var(--text);
  position: relative;
  text-shadow: 0 0 20px rgba(0, 255, 136, .15);
}

.loader-brand span {
  color: var(--accent);
  text-shadow:
    0 0 10px rgba(0, 255, 136, .8),
    0 0 30px rgba(0, 255, 136, .5),
    0 0 60px rgba(0, 255, 136, .25),
    0 0 100px rgba(0, 255, 136, .1);
  animation: brandGlow 2.5s ease-in-out infinite alternate;
}

.loader-bar {
  width: 180px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 1px;
  transition: width .8s var(--ease);
}

/* ═══ NAVIGATION ═══ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 5000;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

#nav.scrolled {
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.03em;
  color: var(--text);
  position: relative;
  text-shadow: 0 0 15px rgba(0, 255, 136, .08);
}

.nav-logo span {
  color: var(--accent);
  text-shadow:
    0 0 8px rgba(0, 255, 136, .6),
    0 0 20px rgba(0, 255, 136, .3),
    0 0 40px rgba(0, 255, 136, .12);
  transition: text-shadow .3s;
}

.nav-logo:hover span {
  text-shadow:
    0 0 10px rgba(0, 255, 136, 1),
    0 0 30px rgba(0, 255, 136, .7),
    0 0 60px rgba(0, 255, 136, .35),
    0 0 100px rgba(0, 255, 136, .15);
}

.nav-logo::after {
  content: '™';
  font-size: .45rem;
  vertical-align: super;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: .875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
  position: relative;
  transition: color .25s;
  letter-spacing: .01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-size: .8rem;
  font-weight: 600;
  padding: .55rem 1.5rem;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  transition: transform .2s var(--spring), box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-100%);
  transition: none;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--glow);
}

.nav-cta:hover::before {
  transform: translateX(100%);
  transition: transform .5s;
}

/* Mobile Nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 5001;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: .3s;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

@media(max-width:768px) {
  #nav {
    padding: 0 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(10, 10, 10, .96);
    backdrop-filter: blur(30px);
    z-index: 4999;
    transform: translateX(100%);
    transition: .4s var(--ease);
    padding: 2rem;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .nav-cta {
    font-size: 1rem;
    padding: .8rem 2rem;
  }
}

/* ═══ LAYOUT ═══ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 4rem;
}

@media(max-width:768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media(max-width:480px) {
  .container {
    padding: 0 1rem;
  }
}

.section {
  padding: 10rem 0;
  position: relative;
}

@media(max-width:1024px) {
  .section {
    padding: 7rem 0;
  }
}

@media(max-width:768px) {
  .section {
    padding: 5rem 0;
  }
}

@media(max-width:480px) {
  .section {
    padding: 3.5rem 0;
  }
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.divider {
  height: 1px;
  background: var(--border);
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 4rem) 4rem 6rem;
  overflow: hidden;
}

@media(max-width:768px) {
  .hero {
    padding: calc(var(--nav-h)+2rem) 1.5rem 4rem;
  }
}

@media(max-width:480px) {
  .hero {
    padding: calc(var(--nav-h)+1.5rem) 1rem 3rem;
  }
}

/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(0, 255, 136, .06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 120, 255, .04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(100, 0, 255, .03) 0%, transparent 60%);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    filter: hue-rotate(0deg) blur(0);
  }

  100% {
    filter: hue-rotate(15deg) blur(0);
  }
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Geometric grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0% {
    background-position: 0 0
  }

  100% {
    background-position: 60px 60px
  }
}

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

/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.h-shape {
  position: absolute;
  border: 1px solid rgba(0, 255, 136, .08);
  animation: floatShape 8s ease-in-out infinite;
}

.h-shape:nth-child(1) {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.h-shape:nth-child(2) {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 25%;
  transform: rotate(45deg);
  animation-delay: -3s;
}

.h-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 30%;
  right: 35%;
  animation-delay: -5s;
  border-color: rgba(0, 120, 255, .06);
}

.h-shape:nth-child(4) {
  width: 60px;
  height: 60px;
  bottom: 25%;
  left: 15%;
  transform: rotate(30deg);
  animation-delay: -2s;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  50% {
    transform: translateY(-20px) rotate(8deg)
  }
}

.hero-headline {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 72px);
  line-height: clamp(3rem, 9.5vw, 80px);
  letter-spacing: -2px;
}

@media(max-width:480px) {
  .hero-headline {
    letter-spacing: -1px;
  }
}

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-sub {
  font-size: clamp(.95rem, 2.2vw, 1.35rem);
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 600px;
}

.hero-sub .typewriter {
  border-right: 2px solid var(--accent);
  padding-right: 3px;
  animation: blinkCaret .8s step-end infinite;
}

@keyframes blinkCaret {

  0%,
  100% {
    border-color: var(--accent)
  }

  50% {
    border-color: transparent
  }
}

/* Floating achievement badges */
.hero-badges {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.h-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(15px);
  animation: badgeIn .5s var(--spring) forwards;
}

.h-badge:nth-child(1) {
  animation-delay: 1.8s;
}

.h-badge:nth-child(2) {
  animation-delay: 2s;
}

.h-badge:nth-child(3) {
  animation-delay: 2.2s;
}

.h-badge:nth-child(4) {
  animation-delay: 2.4s;
}

.h-badge .b-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

@keyframes badgeIn {
  to {
    opacity: 1;
    transform: none
  }
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .2s var(--spring), box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: translateX(-100%);
}

.hero-cta:hover {
  transform: scale(1.05) !important;
  box-shadow: var(--glow);
}

.hero-cta:hover::before {
  transform: translateX(100%);
  transition: transform .5s;
}

.hero-cta-sec {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
  padding: .8rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all .25s;
}

.hero-cta-sec:hover {
  background: var(--text);
  color: var(--primary);
  border-color: var(--text);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 2;
}

@media(max-width:768px) {
  .scroll-indicator {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.scroll-indicator span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, .15);
  position: relative;
  overflow: hidden;
}

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

@keyframes scrollPulse {
  0% {
    top: -100%
  }

  50% {
    top: 100%
  }

  100% {
    top: -100%
  }
}

/* ═══ ABOUT (2-col) ═══ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media(max-width:768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-photo {
  width: clamp(260px, 100%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  margin: 0 auto;
  transition: transform .6s var(--spring), box-shadow .6s var(--spring);
  border: 2px solid rgba(0, 255, 136, .2);
  position: relative;
  box-shadow:
    0 0 25px rgba(0, 255, 136, .15),
    0 0 60px rgba(0, 255, 136, .08),
    0 0 100px rgba(0, 200, 255, .05);
}

/* Professional background glow behind photo */
.about-photo::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 255, 136, .12) 0%, rgba(0, 255, 136, .04) 40%, transparent 70%),
    radial-gradient(circle at 30% 30%, rgba(0, 200, 255, .06) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(100, 0, 255, .04) 0%, transparent 50%);
  z-index: -1;
  animation: photoGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes photoGlow {
  0% {
    opacity: .7;
    transform: scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
    filter: blur(2px);
  }
}

@keyframes ringPulse {

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

  50% {
    transform: scale(1.06);
    opacity: 0
  }
}

.about-photo:hover {
  transform: translateY(-10px);
  box-shadow:
    0 0 35px rgba(0, 255, 136, .25),
    0 0 80px rgba(0, 255, 136, .12),
    0 0 140px rgba(0, 200, 255, .08);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}

.about-body h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.about-body p {
  color: rgba(255, 255, 255, .7);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: clamp(.9rem, 1.8vw, 1.125rem);
}

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

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}

.skill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .4rem 1rem;
  border: 1px solid rgba(0, 255, 136, .25);
  border-radius: 100px;
  transition: background .2s, color .2s, transform .2s;
}

.skill-tag:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.05);
}

/* ═══ BRAND MANIFESTO ═══ */
.manifesto {
  text-align: center;
  padding: 8rem 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, .03) 0%, transparent 70%);
  position: relative;
}

.manifesto-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: -.06em;
  line-height: .85;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--text) 20%, var(--accent) 60%, #00ccff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: brandShimmer 4s ease-in-out infinite alternate, brandGradientShift 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, .3)) drop-shadow(0 0 60px rgba(0, 255, 136, .12));
  position: relative;
}

@keyframes brandShimmer {
  0% {
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, .2)) drop-shadow(0 0 50px rgba(0, 255, 136, .08)) brightness(1);
  }

  100% {
    filter: drop-shadow(0 0 25px rgba(0, 255, 136, .4)) drop-shadow(0 0 80px rgba(0, 255, 136, .18)) brightness(1.15);
  }
}

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

@keyframes brandGlow {
  0% {
    text-shadow:
      0 0 10px rgba(0, 255, 136, .6),
      0 0 25px rgba(0, 255, 136, .3),
      0 0 50px rgba(0, 255, 136, .15);
  }
  100% {
    text-shadow:
      0 0 15px rgba(0, 255, 136, .9),
      0 0 40px rgba(0, 255, 136, .5),
      0 0 80px rgba(0, 255, 136, .25),
      0 0 120px rgba(0, 255, 136, .1);
  }
}

.manifesto-sub {
  font-size: clamp(.85rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.manifesto-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.5rem;
}

/* ═══ PROJECTS (masonry, filter, hover) ═══ */
.filter-tabs {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  padding: .45rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all .25s var(--ease);
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--accent);
  border-color: var(--accent);
}

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

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

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

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--secondary);
  aspect-ratio: 4/3;
  transition: transform .4s var(--spring);
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--spring), filter .3s;
}

.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(.55);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, .92) 100%);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}

@media(max-width:480px) {
  .card-overlay {
    padding: 1.25rem;
  }
}

.project-card:hover .card-overlay {
  transform: translateY(0);
}

.card-overlay h3 {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}

.card-overlay p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-overlay .card-tags {
  display: flex;
  gap: .4rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 3px;
  background: rgba(0, 255, 136, .12);
  color: var(--accent);
}

.card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--muted);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity .3s, transform .3s var(--spring);
}

.project-card:hover .card-arrow {
  opacity: 1;
  transform: none;
}

/* ═══ STATS ═══ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

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

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

.stat-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  transition: background .25s;
  position: relative;
  overflow: hidden;
}

.stat-cell:last-child {
  border-right: none;
}

@media(max-width:768px) {
  .stat-cell {
    padding: 2rem 1.5rem;
  }

  .stat-cell:nth-child(even) {
    border-right: none;
  }
}

.stat-cell:hover {
  background: rgba(0, 255, 136, .03);
}

.stat-cell:hover .stat-num {
  color: var(--accent);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .4rem;
  transition: color .3s;
}

.stat-label {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ═══ CTA ═══ */
.cta-section {
  text-align: center;
  padding: 10rem 0;
}

@media(max-width:768px) {
  .cta-section {
    padding: 5rem 0;
  }
}

.cta-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 8vw, 5rem);
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 2.5rem;
}

.cta-ghost {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .15);
  -webkit-text-fill-color: transparent;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ BUTTONS ═══ */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 2.25rem;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  transition: transform .2s var(--spring), box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: translateX(-100%);
}

.btn-accent:hover {
  transform: scale(1.05);
  box-shadow: var(--glow);
}

.btn-accent:hover::before {
  transform: translateX(100%);
  transition: transform .5s;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 2.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s, gap .25s;
}

.btn-outline:hover {
  background: var(--text);
  color: var(--primary);
  border-color: var(--text);
  gap: 1.1rem;
}

/* ═══ WhatsApp CONNECT HUB ═══ */
.connect-hub {
  text-align: center;
  padding: 4rem 3rem;
  background: var(--secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.connect-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, .04), transparent 70%);
}

.ch-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -.03em;
  margin-bottom: .5rem;
  position: relative;
}

.ch-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  position: relative;
}

.connect-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

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

.ca-btn {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .85rem;
  transition: all .3s var(--spring);
  position: relative;
  overflow: hidden;
}

.ca-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  border-radius: 8px;
}

.ca-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .15);
}

.ca-btn:hover::after {
  opacity: 1;
}

.ca-btn .ca-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ca-btn .ca-text {
  text-align: left;
  position: relative;
  z-index: 1;
}

.ca-btn .ca-label {
  font-weight: 600;
  font-size: .85rem;
  display: block;
}

.ca-btn .ca-hint {
  font-size: .65rem;
  color: var(--muted);
  margin-top: .1rem;
}

.ca-whatsapp {
  border-color: rgba(37, 211, 102, .25);
}

.ca-whatsapp::after {
  background: rgba(37, 211, 102, .06);
}

.ca-whatsapp:hover {
  border-color: rgba(37, 211, 102, .5);
  box-shadow: 0 0 20px rgba(37, 211, 102, .15);
}

.ca-whatsapp .ca-label {
  color: #25d366;
}

.ca-email {
  border-color: rgba(0, 120, 255, .2);
}

.ca-email::after {
  background: rgba(0, 120, 255, .05);
}

.ca-email:hover {
  border-color: rgba(0, 120, 255, .4);
  box-shadow: 0 0 20px rgba(0, 120, 255, .1);
}

.ca-linkedin {
  border-color: rgba(0, 119, 181, .2);
}

.ca-linkedin::after {
  background: rgba(0, 119, 181, .05);
}

.ca-linkedin:hover {
  border-color: rgba(0, 119, 181, .4);
}

.ca-schedule {
  border-color: rgba(0, 255, 136, .2);
}

.ca-schedule::after {
  background: rgba(0, 255, 136, .04);
}

.ca-schedule:hover {
  border-color: rgba(0, 255, 136, .4);
  box-shadow: 0 0 20px rgba(0, 255, 136, .1);
}

/* Optional collapsible form */
.form-toggle {
  margin-top: 2rem;
  font-size: .78rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  position: relative;
  transition: gap .2s;
}

.form-toggle:hover {
  gap: .65rem;
}

.form-toggle .ft-arrow {
  transition: transform .3s;
  font-size: .6rem;
}

.form-toggle.open .ft-arrow {
  transform: rotate(180deg);
}

.collapsible-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), margin .3s;
  margin-top: 0;
}

.collapsible-form.open {
  max-height: 800px;
  margin-top: 2rem;
}

/* ═══ CONTACT GRID ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

@media(max-width:768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info h2 {
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .3s var(--ease);
}

.contact-link:hover {
  padding-left: .75rem;
}

.cl-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cl-value {
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}

.contact-link:hover .cl-value {
  color: var(--accent);
}

.cl-arrow {
  font-size: .85rem;
  color: var(--muted);
  transition: transform .25s, color .2s;
}

.contact-link:hover .cl-arrow {
  transform: translate(4px, -4px);
  color: var(--text);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform .3s var(--spring), border-color .2s, background .2s;
}

.social-icon:hover {
  transform: rotate(360deg);
  border-color: var(--accent);
  background: rgba(0, 255, 136, .08);
}

/* ═══ FORM ═══ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color .25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .2);
}

.form-group select option {
  background: var(--primary);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.submit-btn {
  margin-top: .5rem;
  padding: 1.1rem 0;
  background: var(--accent);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  border-radius: 6px;
  transition: transform .2s var(--spring), box-shadow .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--glow);
}

.submit-btn.sent {
  background: #1a1a1a;
  color: var(--accent);
  pointer-events: none;
}

/* ═══ MARQUEE ═══ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}

.marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueScroll 25s linear infinite;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

@keyframes marqueScroll {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.mq-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.mq-item::after {
  content: '◇';
  font-size: .45rem;
  color: var(--accent);
}

/* ═══ FOOTER ═══ */
footer {
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .78rem;
  color: var(--muted);
}

@media(max-width:768px) {
  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }
}

footer a {
  color: var(--muted);
  transition: color .2s;
}

footer a:hover {
  color: var(--accent);
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, .2)) drop-shadow(0 0 20px rgba(0, 255, 136, .08));
}

/* ═══ FAB ═══ */
#fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, border-color .2s, color .2s, background .2s;
}

#fab.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#fab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 136, .06);
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--spring), transform .7s var(--spring);
}

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

.rd1 {
  transition-delay: .1s
}

.rd2 {
  transition-delay: .2s
}

.rd3 {
  transition-delay: .3s
}

.rd4 {
  transition-delay: .4s
}

/* ═══ PROCESS SECTION ═══ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

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

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

.proc-card {
  padding: 2.25rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .25s;
  position: relative;
}

.proc-card:hover {
  background: rgba(0, 255, 136, .02);
}

.proc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 1rem;
}

.proc-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.proc-desc {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.7;
}