/* ========================================
   HUNG MAI — Portfolio Styles
   Dark Cinematic Minimal
   ======================================== */

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary: #0B1120;
  --bg-secondary: #111827;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --accent-teal: #2EC4B6;
  --accent-blue: #4A7CF7;
  --accent-gradient: linear-gradient(135deg, #2EC4B6, #4A7CF7);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --nav-height: 80px;
  --container-max: 1280px;
  --section-padding: clamp(80px, 12vh, 160px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto; /* Lenis handles this */
}

html.lenis, html.lenis body {
  height: auto;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

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

ul { list-style: none; }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background: var(--accent-teal);
  color: var(--bg-primary);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ---------- Section Defaults ---------- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(40px, 6vh, 80px);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section__number {
  color: var(--accent-teal);
  font-family: var(--font-heading);
  font-weight: 600;
}

.section__line {
  width: 40px;
  height: 1px;
  background: var(--border-hover);
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Custom Cursor ---------- */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(46, 196, 182, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

.cursor-dot.is-hovering {
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
}

.cursor-ring.is-hovering {
  width: 56px;
  height: 56px;
  border-color: rgba(74, 124, 247, 0.5);
}

/* ---------- Gradient Orbs ---------- */
.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-teal);
  top: -200px;
  right: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  bottom: -150px;
  left: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 80px) scale(1.1); }
  66% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -60px) scale(1.05); }
  66% { transform: translate(-50px, 50px) scale(0.95); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -60%) scale(1.15); }
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.is-scrolled {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Supra', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

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

.nav__logo img {
  transition: opacity 0.3s;
}

.nav__logo:hover img {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-teal);
  transition: width 0.3s var(--ease-out);
}

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

.nav__links a:hover::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lang-toggle__option {
  color: var(--text-muted);
  transition: color 0.3s;
}

.lang-toggle__option--active {
  color: var(--accent-teal);
}

.lang-toggle__divider {
  color: var(--text-muted);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 196, 182, 0.3);
}

.btn--full {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

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

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__links a {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.4s, color 0.3s;
}

.mobile-menu.is-open .mobile-menu__links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(5) a { transition-delay: 0.3s; }

.mobile-menu__links a:hover {
  color: var(--accent-teal);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) clamp(20px, 4vw, 60px) 60px;
  position: relative;
}

.hero__content {
  max-width: 900px;
  text-align: center;
}

.hero__eyebrow {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-teal);
  margin-bottom: 32px;
  opacity: 0;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.hero__line {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 60px;
  opacity: 0;
}

.hero__scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ========== MARQUEE ========== */
.marquee {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: flex;
}

.marquee__content {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 30s linear infinite;
}

.marquee__content span {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== ABOUT ========== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  margin-bottom: clamp(60px, 8vh, 100px);
}

.about__statement {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.about__bio {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-secondary);
  line-height: 1.8;
}

.about__photo-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-secondary);
  transition: box-shadow 1s var(--ease-out);
}

.about__photo-wrapper.is-revealed {
  box-shadow: 0 12px 40px rgba(46, 196, 182, 0.15);
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.9) contrast(1.1);
  transition: filter 1s var(--ease-out), transform 1s var(--ease-out);
}

.about__photo-wrapper.is-revealed .about__photo {
  filter: grayscale(0%) brightness(1) contrast(1);
  transform: scale(1.05);
}

.about__photo-fallback {
  background: var(--accent-gradient);
  opacity: 0.15;
}

.about__photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  pointer-events: none;
  transition: border-color 1s var(--ease-out);
}

.about__photo-wrapper.is-revealed::after {
  border-color: rgba(46, 196, 182, 0.3);
}

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: clamp(40px, 6vh, 80px);
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.stat__suffix {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ========== SERVICES ========== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 40px);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card--large {
  grid-row: span 1;
}

.service-card--wide {
  grid-column: span 2;
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== PROJECTS ========== */
.projects {
  overflow: hidden;
}

.projects__wrapper {
  overflow: hidden;
}

.projects__track {
  display: flex;
  gap: 32px;
  padding: 0 clamp(20px, 4vw, 60px);
  width: max-content;
}

.project-card {
  width: clamp(320px, 30vw, 420px);
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(32px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s var(--ease-out);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.project-card--accent {
  border-color: rgba(46, 196, 182, 0.2);
  background: rgba(46, 196, 182, 0.03);
}

.project-card__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.project-card__tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  padding: 4px 12px;
  background: rgba(46, 196, 182, 0.1);
  border-radius: 4px;
  width: fit-content;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}

.project-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-card__metric {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-card__metric--highlight {
  color: var(--accent-teal);
}

/* ========== PROCESS ========== */
.process__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(28px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.process__item:first-child {
  border-top: 1px solid var(--border);
}

.process__step {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  transition: color 0.3s;
}

.process__item:hover .process__step {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  margin-bottom: 8px;
}

.process__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== TECH STACK ========== */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.tech__category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.tech__category-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin-bottom: 16px;
}

.tech__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech__item {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.tech__item:hover {
  border-color: var(--accent-teal);
  color: var(--text-primary);
}

/* ========== CONTACT ========== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact__headline {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact__note {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__link {
  font-size: 16px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.contact__link:hover {
  color: var(--accent-teal);
}

/* Form */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group--full {
  grid-column: span 2;
}

.form__group label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.form__group input,
.form__group select,
.form__group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.3s;
  cursor: pointer;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--accent-teal);
  cursor: text;
}

.form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

.contact__form .btn {
  grid-column: span 2;
}

.form__success {
  grid-column: span 2;
  color: var(--accent-teal);
  font-size: 15px;
  text-align: center;
}

.form__error {
  grid-column: span 2;
  color: #f87171;
  font-size: 15px;
  text-align: center;
}

/* ========== FOOTER ========== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__name {
  font-family: 'Supra', sans-serif;
  font-size: 18px;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__social a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer__social a:hover {
  color: var(--accent-teal);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer__legal-btn {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.footer__legal-btn:hover {
  color: var(--text-secondary);
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.modal__content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(32px, 4vw, 48px);
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.modal__content h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent-teal);
}

.modal__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal__content a {
  color: var(--accent-teal);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal__close:hover {
  color: var(--text-primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-dot, .cursor-ring {
    display: none;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero__headline {
    font-size: clamp(40px, 12vw, 72px);
  }

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

  .about__image {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

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

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

  .service-card--wide {
    grid-column: span 1;
  }

  .project-card {
    width: 85vw;
  }

  .process__step {
    width: 50px;
    font-size: 32px;
  }

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

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

  .form__group--full {
    grid-column: span 1;
  }

  .contact__form .btn {
    grid-column: span 1;
  }

  .form__success, .form__error {
    grid-column: span 1;
  }

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

@media (max-width: 480px) {
  .about__stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ---------- Utility: hidden elements for animation ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}
