/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080c10;
  --bg-2: #0d1117;
  --bg-card: #111820;
  --text: #e8edf2;
  --text-muted: #8a96a3;
  --accent: #00c896;
  --accent-2: #00e5a8;
  --accent-glow: rgba(0,200,150,0.18);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(0,200,150,0.35);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);

  /* Light section palette */
  --light-bg: #f5f7fa;
  --light-bg-2: #eef1f6;
  --light-card: #ffffff;
  --light-text: #0f1620;
  --light-text-muted: #5a6578;
  --light-border: rgba(0,0,0,0.08);
  --light-border-hover: rgba(0,200,150,0.45);
  --light-accent-glow: rgba(0,200,150,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }

img { display: block; width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── CURSOR ─── */
.cursor {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor.active { width: 52px; height: 52px; background: var(--accent-glow); }

/* ─── LOADER ─── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block; margin-bottom: 16px;
}
.loader-bar {
  width: 200px; height: 2px;
  background: var(--border);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.05s linear;
}

/* ─── CONTAINER ─── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
/* Nav links color on scrolled (light header) */
.header.scrolled .nav-links a { color: #5a6578; }
.header.scrolled .nav-links a:hover { color: #0f1620; }
.header.scrolled .logo { color: #0f1620; }
.header.scrolled .hamburger span { background: #0f1620; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent);
  color: #000;
  font-size: 0.875rem; font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--accent-2);
  box-shadow: 0 0 24px rgba(0,229,168,0.6), 0 0 48px rgba(0,200,150,0.3);
  transform: translateY(-1px);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}
.mobile-menu {
  display: none; 
  /* position: fixed; */
  inset: 0; top: 70px;
  background: rgba(245,247,250,0.98);
  backdrop-filter: blur(30px);
  z-index: 850;
  flex-direction: column; align-items: center; justify-content: center;
}
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 16px 0; }
.mobile-menu ul li a {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  color: var(--light-text-muted);
  transition: color var(--transition);
}
.mobile-menu ul li a:hover { color: var(--accent); }
.mobile-menu.open { display: flex; }

/* ─── SECTION BASICS ─── */
.section { padding: 100px 0; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
}
.section-header { margin-bottom: 60px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 100px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,0.12), transparent 70%);
  top: -100px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,100,200,0.08), transparent 70%);
  bottom: -100px; left: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 0 8px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,200,150,0.25);
  padding: 8px 16px; border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--accent); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > * { display: block; }
.accent-line { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
}
.hero-cta-group {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
}
.hero-stats {
  display: flex; align-items: center; gap: 32px;
  opacity: 0;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem; font-weight: 800;
  color: var(--text);
}
.stat span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all var(--transition);
  cursor: none;
  border: none;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 32px rgba(0,229,168,0.7), 0 0 64px rgba(0,200,150,0.4), 0 0 100px rgba(0,200,150,0.2);
  transform: translateY(-2px);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* Hero scroll */
.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s 2.5s forwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-grow 2s ease-in-out infinite;
}
@keyframes scroll-grow {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(15px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── ABOUT (LIGHT SECTION) ─── */
.about { background: var(--light-bg); }
.about .section-tag {
  color: var(--accent);
  background: var(--light-accent-glow);
  border-color: rgba(0,200,150,0.25);
}
.about .section-title { color: var(--light-text); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-frame {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 24px;
  background: linear-gradient(135deg, #dde3ed, #eef1f6);
  border: 1px solid var(--light-border);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.about-img-placeholder svg { width: 100%; height: 100%; }
.about-img-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--accent);
  color: #000;
  font-size: 0.8125rem; font-weight: 700;
  padding: 10px 16px; border-radius: 100px;
  display: flex; align-items: center; gap: 8px;
}
.about-img-badge svg { width: 16px; height: 16px; fill: #000; }
.about-text .section-title { margin-bottom: 20px; }
.about-bio {
  color: var(--light-text-muted);
  margin-bottom: 16px; line-height: 1.8;
}
.about-bio strong { color: var(--light-text); }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 24px 0;
}
.about-tags span {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--accent);
  background: var(--light-accent-glow);
  border: 1px solid rgba(0,200,150,0.25);
  padding: 6px 14px; border-radius: 100px;
}
.about-meta {
  display: flex; gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--light-border);
  margin-top: 8px;
}
.meta-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  color: var(--accent);
}
.meta-item span { font-size: 0.8125rem; color: var(--light-text-muted); }

/* ─── PROJECTS ─── */
.projects { overflow: hidden; }
.slider-track-wrapper { position: relative; margin-top: 0; overflow: hidden; }
.slider-track {
  display: flex; gap: 24px;
  padding: 20px 0 20px 40px;
  overflow: visible;
  cursor: grab;
  user-select: none;
  will-change: transform;
}
.slider-track:active { cursor: grabbing; }
.project-card {
  flex: 0 0 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border-hover);
}
.card-img {
  height: 200px; position: relative;
  display: flex; align-items: flex-end; padding: 16px;
}
.card-img-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}
.card-body { padding: 24px; }
.card-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 10px;
}
.card-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.card-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.card-tech span {
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.card-result {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 8px 12px; border-radius: 8px;
  margin-bottom: 20px;
}
.card-result svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  transition: gap var(--transition);
}
.card-cta svg { width: 16px; height: 16px; }
.card-cta:hover { gap: 12px; }
.slider-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 32px 0 0;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: all var(--transition);
}
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--border);
  transition: all var(--transition); cursor: none;
  border: none; padding: 0;
}
.dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ─── SKILLS (LIGHT SECTION) ─── */
.skills { background: var(--light-bg); }
.skills .section-tag {
  color: var(--accent);
  background: var(--light-accent-glow);
  border-color: rgba(0,200,150,0.25);
}
.skills .section-title { color: var(--light-text); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.skill-item {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.skill-item:hover {
  border-color: var(--light-border-hover);
  background: linear-gradient(135deg, var(--light-card), rgba(0,200,150,0.06));
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.skill-icon {
  width: 48px; height: 48px;
  background: var(--light-accent-glow);
  border: 1px solid rgba(0,200,150,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.skill-icon svg { width: 35px; height: 35px; }
.skill-item span { font-size: 0.875rem; font-weight: 500; color: var(--light-text-muted); }
.skill-item:hover span { color: var(--light-text); }

/* ─── SERVICES (LIGHT SECTION) ─── */
.services { background: var(--light-bg-2); }
.services .section-tag {
  color: var(--accent);
  background: var(--light-accent-glow);
  border-color: rgba(0,200,150,0.25);
}
.services .section-title { color: var(--light-text); }
.services .section-sub { color: var(--light-text-muted); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, var(--light-accent-glow));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--light-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px var(--light-border-hover);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-head);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 20px;
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 12px; position: relative; z-index: 1;
  color: var(--light-text);
}
.service-card p {
  font-size: 0.875rem; color: var(--light-text-muted);
  line-height: 1.7; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.service-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.service-tags span {
  font-size: 0.75rem; font-weight: 500;
  color: var(--light-text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--light-border);
  padding: 4px 10px; border-radius: 6px;
}

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--bg-2); }
.testi-slider { position: relative; overflow: hidden; }
.testi-track { display: flex; gap: 24px; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.testi-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.testi-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.testi-stars { color: #f5a623; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testi-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8125rem; color: #000;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-weight: 600; font-size: 0.9rem; }
.testi-author span { color: var(--text-muted); font-size: 0.8125rem; }
.testi-nav {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 32px;
}

/* ─── CONTACT (LIGHT SECTION) ─── */
.contact { background: var(--light-bg); }
.contact .section-tag {
  color: var(--accent);
  background: var(--light-accent-glow);
  border-color: rgba(0,200,150,0.25);
}
.contact .section-title { color: var(--light-text); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start;
}
.contact-left .section-title { margin-bottom: 16px; }
.contact-sub { color: var(--light-text-muted); line-height: 1.75; margin-bottom: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  color: var(--light-text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.contact-link svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.contact-link:hover { color: var(--light-text); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.8125rem; font-weight: 500; color: var(--light-text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--light-text);
  font-family: var(--font-body); font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.form-group select { cursor: none; }
.form-group select option { background: #fff; color: var(--light-text); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(90,101,120,0.5); }
.form-status { font-size: 0.875rem; text-align: center; padding: 8px; min-height: 28px; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #ff6b6b; }

/* ─── FOOTER ─── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-inner {}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 60px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-socials a svg { width: 18px; height: 18px; }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-links-group h4 {
  font-family: var(--font-head);
  font-size: 0.875rem; font-weight: 700;
  margin-bottom: 20px; color: var(--text);
}
.footer-links-group ul { list-style: none; }
.footer-links-group ul li { margin-bottom: 12px; }
.footer-links-group ul li a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links-group ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--text-muted); }

/* ─── REVEAL ANIMATIONS (initial states) ─── */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-50px); }
.reveal-right { opacity: 0; transform: translateX(50px); }
.skill-item.reveal-up { opacity: 0; transform: none; }

/* ─── RESPONSIVE ─── */
@media (hover: none) and (pointer: coarse) {
  /* Touch/mobile: hide custom cursor, restore default */
  .cursor, .cursor-dot { display: none !important; }
  body { cursor: auto; }
  .hamburger { cursor: pointer; }
  .slider-btn, .dot { cursor: pointer; }
  .form-group select { cursor: pointer; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-card { flex: 0 0 calc(50% - 12px); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { max-width: 360px; margin: 0 auto; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .testi-card { flex: 0 0 calc(100% - 0px); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-stats { gap: 20px; }
  .about-meta { gap: 24px; }
  .section { padding: 70px 0; }
  .slider-track { padding: 20px 0 20px 16px; }
  .project-card { flex: 0 0 300px; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 130px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .skill-item { aspect-ratio: auto; padding: 20px 12px; }
}
/* ─── TYPING ANIMATION ─── */
.typing-word {
  color: var(--accent);
}
.typing-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 2px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── CARD READ MORE ─── */
.card-desc { position: relative; }
.card-desc-rest { display: none; }
.card-read-more {
  display: inline;
  background: none; border: none; padding: 0;
  color: var(--accent);
  font-size: inherit;
  font-family: inherit;
  cursor: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
  margin-left: 2px;
}
.card-read-more:hover { opacity: 0.75; }

/* ─── PROJECT MODAL ─── */
.proj-modal-overlay {
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.proj-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.proj-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%; max-width: 780px;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,200,150,0.08);
  display: flex; flex-direction: column;
  position: relative;
}
.proj-modal-inner {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.proj-modal-inner::-webkit-scrollbar { width: 4px; }
.proj-modal-inner::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* Close button */
.proj-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px;
  background: rgba(8,12,16,0.5);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: none;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.proj-modal-close svg { width: 16px; height: 16px; }
.proj-modal-close:hover { background: var(--accent-glow); border-color: var(--border-hover); color: var(--accent); }

/* Banner */
.proj-modal-banner {
  padding: 40px 36px 32px;
  position: relative;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 10px;
}
.proj-modal-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(8,12,16,0.75) 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}
.proj-modal-category {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,200,150,0.3);
  padding: 5px 12px; border-radius: 100px;
  width: fit-content;
  position: relative; z-index: 1;
}
.proj-modal-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  position: relative; z-index: 1;
  line-height: 1.1;
}
.proj-modal-result {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-weight: 600; font-size: 0.9rem;
  position: relative; z-index: 1;
}
.proj-modal-result svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Body */
.proj-modal-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 28px; }

.proj-modal-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.proj-modal-section { display: flex; flex-direction: column; gap: 10px; }

.proj-modal-label {
  font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 7px;
}
.proj-modal-label svg { width: 14px; height: 14px; flex-shrink: 0; }

.proj-modal-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* Highlights */
.proj-modal-highlights {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.proj-modal-highlights li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text);
  line-height: 1.5;
}
.proj-modal-highlights li svg {
  width: 14px; height: 14px;
  flex-shrink: 0; margin-top: 3px;
  color: var(--accent);
}

/* Footer */
.proj-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.proj-modal-tech {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.proj-modal-tech span {
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 8px;
}
.proj-modal-meta {
  display: flex; align-items: center; gap: 20px;
}
.proj-modal-duration {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-muted); font-size: 0.875rem;
}
.proj-modal-duration svg { width: 14px; height: 14px; color: var(--accent); }
.proj-modal-live {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; font-size: 0.875rem;
}
.proj-modal-live svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .proj-modal-body { padding: 24px 20px; }
  .proj-modal-banner { padding: 28px 20px 24px; }
  .proj-modal-cols { grid-template-columns: 1fr; }
  .proj-modal-footer { flex-direction: column; align-items: flex-start; }
  .proj-modal-meta { flex-wrap: wrap; }
}

/* ─── COMPACT FOOTER ─── */
.footer-compact {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-slim {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-slim .logo {
  font-size: 1.6rem;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
  line-height: 1.65;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.7;
}