/* =============================================================
   ANKUR SAINI — PORTFOLIO STYLESHEET
   =============================================================
   Table of Contents
   ---------------------------------------------------------
   00. CSS Variables / Design Tokens
   01. Reset & Base
   02. Custom Cursor
   03. Loader
   04. Scroll Progress
   05. Noise Overlay
   06. Glass Effect
   07. Navbar
   08. Buttons
   09. Hero Section
   10. Section Headings (shared)
   11. About Section
   12. Skills Section
   13. Experience Timeline
   14. Projects Section
   15. Case Study Modal
   16. Gallery Section
   17. Lightbox
   18. Process Section
   19. Testimonials Section
   20. Services Section
   21. Available Banner
   22. Resume Section
   23. Social Section
   24. Contact Section
   25. Footer
   26. Responsive Overrides
   27. Scrollbar
   ============================================================= */


/* ----------------------------------------------------------
   00. CSS Variables / Design Tokens
   ---------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary:   #2563EB;
  --secondary: #7C3AED;
  --accent:    #06B6D4;
  --success:   #22C55E;

  /* Backgrounds */
  --bg-light:      #F8FAFC;
  --bg-dark:       #0B1120;
  --surface-light: #FFFFFF;
  --surface-dark:  #101a2e;

  /* Text */
  --text-light:  #0f172a;
  --text-dark:   #e8ecf6;
  --muted-light: #5b6577;
  --muted-dark:  #8b96ac;

  /* Borders */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-dark:  rgba(255, 255, 255, 0.09);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}


/* ----------------------------------------------------------
   01. Reset & Base
   ---------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-light);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: none;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

::selection {
  background: var(--primary);
  color: #fff;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

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

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

section {
  position: relative;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}


/* ----------------------------------------------------------
   02. Custom Cursor
   ---------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  transition: opacity 0.2s;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(37, 99, 235, 0.5);
  transition: transform 0.15s ease-out, opacity 0.2s, background 0.2s, border-color 0.2s;
}

.cursor-ring.hovering {
  transform: translate(-50%, -50%) scale(1.8);
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
}

body.dark .cursor-ring {
  border-color: rgba(6, 182, 212, 0.6);
}


/* ----------------------------------------------------------
   03. Loader
   ---------------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader .mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.35em;
  color: #fff;
  font-weight: 600;
}

#loader .bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

#loader .bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: loadbar 1.4s ease forwards;
}

@keyframes loadbar {
  to { width: 100%; }
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}


/* ----------------------------------------------------------
   04. Scroll Progress
   ---------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 9998;
  width: 0%;
}


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


/* ----------------------------------------------------------
   06. Glass Effect
   ---------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-light);
}

body.dark .glass {
  background: rgba(16, 26, 46, 0.55);
  border: 1px solid var(--border-dark);
}


/* ----------------------------------------------------------
   07. Navbar
   ---------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
  padding: 10px 0;
}

#navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 100px;
  padding: 10px 12px 10px 22px;
}

#navbar.scrolled .inner {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 100px;
  color: var(--muted-light);
  transition: 0.25s;
}

body.dark .nav-links a {
  color: var(--muted-dark);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
  background: rgba(37, 99, 235, 0.08);
}

body.dark .nav-links a:hover,
body.dark .nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
}


/* ----------------------------------------------------------
   08. Buttons
   ---------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: none;
  border: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-light);
}

body.dark .btn-ghost {
  border-color: var(--border-dark);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 12.5px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  cursor: none;
  background: transparent;
  transition: 0.25s;
  color: var(--text-light);
}

body.dark .icon-btn {
  border-color: var(--border-dark);
  color: #fff;
}

.icon-btn:hover {
  border-color: var(--primary);
}


/* ----------------------------------------------------------
   09. Hero Section
   ---------------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

/* Aurora blobs */
.aurora {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.b1 { width: 520px; height: 520px; background: var(--primary); top: -10%; left: -8%; }
.b2 { width: 460px; height: 460px; background: var(--secondary); top: 10%; right: -10%; opacity: 0.4; }
.b3 { width: 380px; height: 380px; background: var(--accent); bottom: -5%; left: 30%; opacity: 0.32; }

body.dark .blob {
  opacity: 0.28;
}

/* Hero layout */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-heading {
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--text-light);
}

body.dark .hero-heading {
  color: var(--text-dark);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 0.82em;
  font-weight: 500;
  vertical-align: middle;
  margin: 0 4px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  line-height: 1.2;
}

.hero-pill-white {
  background: var(--surface-light);
  color: var(--text-light);
  border: 1px solid var(--border-light);
}

body.dark .hero-pill-white {
  background: var(--surface-dark);
  color: var(--text-dark);
  border-color: var(--border-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-pill-dark {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid transparent;
}

body.dark .hero-pill-dark {
  background: var(--primary);
  color: #ffffff;
}

.hero-highlight {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-light);
  max-width: 520px;
  margin-bottom: 34px;
}

body.dark .hero-sub {
  color: var(--muted-dark);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-meta div {
  font-size: 12px;
  color: var(--muted-light);
  font-family: var(--font-mono);
}

body.dark .hero-meta div {
  color: var(--muted-dark);
}

.hero-meta b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-light);
  font-weight: 700;
}

body.dark .hero-meta b {
  color: #fff;
}

/* Hero visual / character */
.hero-visual {
  position: relative;
  height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

.hero-char {
  position: relative;
  z-index: 2;
  height: 96%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(15, 23, 42, 0.22));
}

body.dark .hero-char {
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

/* Floating skill chips */
.skill-chip {
  position: absolute;
  z-index: 3;
  padding: 11px 18px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  animation: floaty 5s ease-in-out infinite;
  color: #0f172a;
}

body.dark .skill-chip {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.chip-blue   { background: #cfe0ff; top:  6%; left:  -4%; animation-delay: 0s; }
.chip-yellow { background: #ffe8a3; top:  2%; right: -2%; animation-delay: 0.9s; }
.chip-orange { background: #ffd2b0; top: 32%; right:-10%; animation-delay: 1.7s; }
.chip-green  { background: #d3f5c4; top: 44%; left: -14%; animation-delay: 0.4s; }
.chip-purple { background: #e3d9ff; bottom: 14%; left: -6%; animation-delay: 2.3s; }
.chip-pink   { background: #ffd6e8; bottom: 10%; right: -4%; animation-delay: 1.3s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  z-index: 2;
}

body.dark .scroll-cue {
  color: var(--muted-dark);
}

.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--primary), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}

@keyframes scrolldown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ----------------------------------------------------------
   10. Section Headings (shared utilities)
   ---------------------------------------------------------- */
.section-pad {
  padding: 120px 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--primary);
}

.sec-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.sec-desc {
  color: var(--muted-light);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.7;
}

body.dark .sec-desc {
  color: var(--muted-dark);
}

.alt-bg { background: var(--surface-light); }
body.dark .alt-bg { background: var(--surface-dark); }

.muted-txt { color: var(--muted-light); }
body.dark .muted-txt { color: var(--muted-dark); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------------------------
   11. About Section
   ---------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
  margin-top: 60px;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.about-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

.about-char {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  filter: drop-shadow(0 26px 36px rgba(15, 23, 42, 0.2));
}

body.dark .about-char {
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.55));
}

.about-quote {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 22px;
  color: var(--text-light);
}

body.dark .about-quote {
  color: var(--text-dark);
}

.about-copy p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted-light);
  margin-bottom: 18px;
}

body.dark .about-copy p {
  color: var(--muted-dark);
}

.about-copy h4.beliefs-title {
  font-size: 14px;
  font-weight: 700;
  margin: 36px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: var(--primary);
}

.beliefs-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.beliefs-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-light);
  font-family: var(--font-body);
}

body.dark .beliefs-list li {
  color: var(--muted-dark);
}

.beliefs-list li span {
  display: inline;
}

.beliefs-list li strong {
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
}

body.dark .beliefs-list li strong {
  color: var(--text-dark);
}

.beliefs-list li .bullet-pointer {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 4.5px;
  flex-shrink: 0;
}

.tag {
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  color: var(--muted-light);
  font-family: var(--font-mono);
}

body.dark .tag {
  border-color: var(--border-dark);
  color: var(--muted-dark);
}

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.stat {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

body.dark .stat {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

body.dark .stat:hover {
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.stat b {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.stat span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-light);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark .stat span {
  color: var(--muted-dark);
}


/* ----------------------------------------------------------
   12. Skills Section
   ---------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.skill-card {
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--border-light);
  transition: 0.35s;
  background: var(--surface-light);
}

body.dark .skill-card {
  border-color: var(--border-dark);
  background: var(--surface-dark);
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.social-card .sc-icon svg {
  display: block;
}

.skill-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
}

.skill-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.07);
  color: var(--primary);
  font-family: var(--font-mono);
}

body.dark .chip {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}


/* ----------------------------------------------------------
   13. Experience Timeline
   ---------------------------------------------------------- */
.timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 38px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: linear-gradient(var(--primary), var(--secondary), var(--accent));
}

.t-item {
  position: relative;
  padding-bottom: 40px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-dot {
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2.5px solid var(--primary);
}

body.dark .t-dot {
  background: var(--bg-dark);
}

.t-dot.current {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.t-card {
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px 32px;
  background: var(--surface-light);
  transition: 0.3s;
}

body.dark .t-card {
  border-color: var(--border-dark);
  background: var(--surface-dark);
}

.t-card.current {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.t-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.t-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.t-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

body.dark .t-badge {
  border-color: var(--border-dark);
}

.t-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.t-role {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.3;
}

.t-company {
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  margin-top: 2px;
}

.t-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-light);
  border: 1px solid var(--border-light);
  padding: 6px 13px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

body.dark .t-period {
  color: var(--muted-dark);
  border-color: var(--border-dark);
}

.t-period.current {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

.t-desc {
  color: var(--muted-light);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}

body.dark .t-desc {
  color: var(--muted-dark);
}

.t-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}


/* ----------------------------------------------------------
   14. Projects Section
   ---------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 56px;
}

.project-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface-light);
  cursor: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s;
}

body.dark .project-card {
  border-color: var(--border-dark);
  background: var(--surface-dark);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
}

body.dark .project-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.project-thumb {
  aspect-ratio: 16 / 10.5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb .p-label {
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
  padding: 0 30px;
  text-align: center;
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
}

.project-thumb img,
.project-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-thumb svg,
.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-thumb .p-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 55%);
}

.project-body {
  padding: 26px 28px 28px;
}

.p-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.p-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 100px;
}

body.dark .p-tags span {
  color: var(--muted-dark);
  border-color: var(--border-dark);
}

.project-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.65;
  margin-bottom: 18px;
}

body.dark .project-body p {
  color: var(--muted-dark);
}

.p-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-link svg {
  transition: transform 0.3s;
}

.project-card:hover .p-link svg {
  transform: translate(3px, -3px);
}


/* ----------------------------------------------------------
   15. Case Study Modal
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--surface-light);
  max-width: 760px;
  width: 100%;
  border-radius: 26px;
  padding: 0;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

body.dark .modal-box {
  background: var(--surface-dark);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-hero {
  height: 220px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  border: none;
  backdrop-filter: blur(6px);
}

.modal-content {
  padding: 34px 38px 40px;
}

.modal-content h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.modal-content .mc-sub {
  color: var(--muted-light);
  font-size: 14px;
  margin-bottom: 26px;
}

body.dark .modal-content .mc-sub {
  color: var(--muted-dark);
}

.mc-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

body.dark .mc-meta {
  border-color: var(--border-dark);
}

.mc-meta div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  margin-bottom: 5px;
}

body.dark .mc-meta div span {
  color: var(--muted-dark);
}

.mc-meta div b {
  font-size: 13.5px;
  font-weight: 600;
}

.mc-block {
  margin-bottom: 24px;
}

.mc-block h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}

.mc-block p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted-light);
}

body.dark .mc-block p {
  color: var(--muted-dark);
}

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

.mc-steps span {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 500;
}

body.dark .mc-steps span {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
}


/* ----------------------------------------------------------
   16. Gallery Section
   ---------------------------------------------------------- */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 44px 0 36px;
}

.gfilter {
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  cursor: none;
  background: transparent;
  color: var(--muted-light);
  font-family: var(--font-body);
  transition: 0.25s;
}

body.dark .gfilter {
  border-color: var(--border-dark);
  color: var(--muted-dark);
}

.gfilter.active,
.gfilter:hover,
body.dark .gfilter.active,
body.dark .gfilter:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}

.g-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: none;
  width: 100%;
}

.g-item .g-inner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.g-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.g-item:hover img {
  transform: scale(1.05);
}

.g-cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
  opacity: 0;
  transition: 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.g-item:hover .g-cap {
  opacity: 1;
}


/* ----------------------------------------------------------
   17. Lightbox
   ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.92);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: 90vw;
  height: 85vh;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  border: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  border: none;
  transition: background 0.25s, transform 0.25s;
  z-index: 2200;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-nav.prev {
    left: 12px;
  }
  .lightbox-nav.next {
    right: 12px;
  }
}



/* ----------------------------------------------------------
   18. Process Section
   ---------------------------------------------------------- */
.process-track {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  margin-top: 56px;
  padding: 30px 10px;
  scrollbar-width: none;
  position: relative;
}

.process-track::-webkit-scrollbar {
  display: none;
}

.process-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light), var(--primary), var(--accent), var(--border-light));
  z-index: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

body.dark .process-line {
  background: linear-gradient(90deg, var(--border-dark), var(--primary), var(--accent), var(--border-dark));
}

.p-step {
  flex: 0 0 260px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 24px;
  background: var(--surface-light);
  position: relative;
  overflow: hidden;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

body.dark .p-step {
  border-color: var(--border-dark);
  background: var(--surface-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.p-step-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.p-step:hover .p-step-glow {
  opacity: 0.04;
}

body.dark .p-step:hover .p-step-glow {
  opacity: 0.06;
}

.p-step:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

body.dark .p-step:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.p-num-bg {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.03);
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease;
}

body.dark .p-num-bg {
  color: rgba(255, 255, 255, 0.02);
}

.p-step:hover .p-num-bg {
  color: rgba(15, 23, 42, 0.06);
}

body.dark .p-step:hover .p-num-bg {
  color: rgba(255, 255, 255, 0.04);
}

.p-icon {
  font-size: 32px;
  margin-bottom: 20px;
  background: var(--bg-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

body.dark .p-icon {
  background: var(--bg-dark);
}

.p-step .p-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.p-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.p-step p {
  font-size: 13.5px;
  color: var(--muted-light);
  line-height: 1.6;
}

body.dark .p-step p {
  color: var(--muted-dark);
}


/* ----------------------------------------------------------
   19. Testimonials Section
   ---------------------------------------------------------- */
.test-track-wrap {
  overflow-x: auto;
  margin-top: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.test-track-wrap::-webkit-scrollbar {
  display: none;
}

.test-track-wrap.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.test-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 40px;
}

.test-card {
  width: 460px;
  flex-shrink: 0;
  border-radius: 24px;
  padding: 38px 36px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

body.dark .test-card {
  border-color: var(--border-dark);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.28;
  margin-bottom: 6px;
}

.stars {
  color: #f5a524;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.test-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 26px;
  flex: 1;
}

body.dark .test-card p {
  color: var(--text-dark);
}

.test-who {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

body.dark .test-who {
  border-color: var(--border-dark);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-display);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-who b    { font-size: 14.5px; display: block; }
.test-who span { font-size: 12.5px; color: var(--muted-light); }

body.dark .test-who span {
  color: var(--muted-dark);
}


/* ----------------------------------------------------------
   20. Services Section
   ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.service-card {
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-light);
  position: relative;
  transition: 0.35s;
  overflow: hidden;
}

body.dark .service-card {
  border-color: var(--border-dark);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.14);
}

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

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.35s;
}

.service-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card .ic svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13.5px;
  color: var(--muted-light);
  line-height: 1.65;
  margin-bottom: 18px;
}

body.dark .service-card p {
  color: var(--muted-dark);
}

.service-card .p-link {
  font-size: 12.5px;
}


/* ----------------------------------------------------------
   21. Available Banner
   ---------------------------------------------------------- */
.avail {
  border-radius: 32px;
  padding: 70px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.avail::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.35), transparent 45%);
}

.avail .dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.25);
  display: inline-block;
  margin-right: 8px;
}

.avail h2 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 38px);
  max-width: 680px;
  margin: 20px auto 30px;
  position: relative;
  z-index: 2;
  line-height: 1.35;
}

.avail .eyebrow-w {
  position: relative;
  z-index: 2;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
}

.avail .btn-primary {
  background: #fff;
  color: var(--primary);
  position: relative;
  z-index: 2;
}


/* ----------------------------------------------------------
   22. Resume Section
   ---------------------------------------------------------- */
.resume-card {
  border-radius: 26px;
  padding: 46px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

body.dark .resume-card {
  border-color: var(--border-dark);
}

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

.resume-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
}

.resume-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ----------------------------------------------------------
   23. Social Section
   ---------------------------------------------------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}

body.dark .social-card {
  border-color: var(--border-dark);
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  background: var(--brand-glow);
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

body.dark .social-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.social-card:hover::before {
  opacity: 1;
}

.social-card .sc-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s;
}

.social-card:hover .sc-icon {
  transform: scale(1.12);
}

.social-card .sc-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.social-card span {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 600;
}


/* ----------------------------------------------------------
   24. Contact Section
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 50px;
  margin-top: 56px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  margin-bottom: 9px;
}

body.dark .field label {
  color: var(--muted-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--surface-light);
  font-family: var(--font-body);
  font-size: 14px;
  color: inherit;
  transition: 0.25s;
  outline: none;
}

body.dark .field input,
body.dark .field select,
body.dark .field textarea {
  border-color: var(--border-dark);
  background: var(--surface-dark);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info {
  display: grid;
  gap: 14px;
  align-content: start;
}

.info-card {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.dark .info-card {
  border-color: var(--border-dark);
}

.info-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.info-card .ic svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-light);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

body.dark .info-card span {
  color: var(--muted-dark);
}

.info-card b {
  font-size: 13.5px;
}

/* Form success state */
.success-anim {
  display: none;
  text-align: center;
  padding: 50px 20px;
}

.success-anim.show {
  display: block;
}

.check-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}


/* ----------------------------------------------------------
   25. Footer
   ---------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

body.dark footer {
  border-color: var(--border-dark);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-quote {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  max-width: 340px;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 16px;
}

body.dark .footer-col h5 {
  color: var(--muted-dark);
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  margin-bottom: 11px;
  color: var(--muted-light);
}

body.dark .footer-col a {
  color: var(--muted-dark);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--muted-light);
}

body.dark .footer-bottom {
  border-color: var(--border-dark);
  color: var(--muted-dark);
}

#back-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}

body.dark #back-top {
  border-color: var(--border-dark);
}


/* ----------------------------------------------------------
   26. Responsive Overrides
   ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; margin-top: 20px; }
  .skill-chip { font-size: 10.5px; padding: 9px 14px; }
  .chip-blue, .chip-green, .chip-purple { left: 0; }
  .chip-yellow, .chip-orange, .chip-pink { right: 0; }
}

@media (max-width: 900px) {
  .about-grid     { grid-template-columns: 1fr; }
  .about-visual   { min-height: 380px; }
  .skills-grid    { grid-template-columns: 1fr 1fr; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .social-grid    { grid-template-columns: repeat(3, 1fr); }
  .masonry        { grid-template-columns: repeat(3, 1fr); }
  .nav-links      { display: none; }
  .hamburger {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    cursor: none;
  }
  body.dark .hamburger { border-color: var(--border-dark); }
}

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

@media (max-width: 768px) {
  .container    { padding: 0 20px; }
  .section-pad  { padding: 80px 0; }
  .stat-grid    { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  .skills-grid   { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .masonry       { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .social-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero-visual  { height: 360px; }
  .skill-chip   { display: none; }
  .skill-chip.chip-blue, .skill-chip.chip-pink { display: inline-flex; }
  .mc-meta      { grid-template-columns: 1fr 1fr; }
  .field-row    { grid-template-columns: 1fr; }
}

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

@media (max-width: 1024px) {
  .cursor-dot,
  .cursor-ring  { display: none; }
  body          { cursor: auto; }
}


/* ----------------------------------------------------------
   27. Scrollbar
   ---------------------------------------------------------- */
::-webkit-scrollbar         { width: 9px; }
::-webkit-scrollbar-track   { background: transparent; }
::-webkit-scrollbar-thumb   { background: var(--border-light); border-radius: 10px; }
body.dark ::-webkit-scrollbar-thumb { background: var(--border-dark); }
