/* ==========================================================================
   Alpesh Rathod — Premium Portfolio Design System (2026)
   Inspired by Stripe / Linear / Vercel — light, minimal, high-trust
   ========================================================================== */

:root {
  --bg: #f4f5f7;
  --bg-elevated: #ffffff;
  --bg-soft: #eef0f4;
  --ink: #0b1220;
  --ink-secondary: #3d4659;
  --muted: #6b7385;
  --border: rgba(11, 18, 32, 0.08);
  --border-strong: rgba(11, 18, 32, 0.14);
  --accent: #0d8a72;
  --accent-hover: #0a6f5c;
  --accent-soft: rgba(13, 138, 114, 0.1);
  --accent-ring: rgba(13, 138, 114, 0.28);
  --navy: #12182a;
  --navy-soft: #1c2438;
  --success: #1f9d6a;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.06), 0 2px 6px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 24px 48px rgba(11, 18, 32, 0.08), 0 8px 16px rgba(11, 18, 32, 0.04);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --container: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-soft);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244, 245, 247, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(11, 18, 32, 0.04);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 1rem auto;
    max-height: calc(100vh - var(--header-h) - 1.5rem);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(13, 138, 114, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(18, 24, 42, 0.06), transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, var(--bg) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(31, 157, 106, 0.18);
  animation: pulse-dot 2.4s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(31, 157, 106, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(31, 157, 106, 0.08);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}

.hero-panel {
  background: linear-gradient(160deg, #161d31 0%, #0f1424 100%);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 138, 114, 0.35), transparent 70%);
  top: -60px;
  right: -40px;
}

.hero-panel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
  position: relative;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.hero-stat strong {
  display: block;
  font-size: 1.65rem;
  color: #fff;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-panel-footer {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.hero-panel-footer strong {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-brand {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .btn-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-group .btn {
    width: 100%;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  padding: 1.25rem 0 2.5rem;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  text-align: center;
  padding: 0.5rem;
}

.trust-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 550;
}

@media (max-width: 720px) {
  .trust-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .trust-strip-inner {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-y) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  border: none;
}

.section-dark h2,
.section-dark h3,
.section-dark .section-title {
  color: #fff;
}

.section-dark .section-kicker {
  color: rgba(13, 200, 160, 0.95);
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.58);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  margin-bottom: 0.9rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

.about-copy p {
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

.about-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem 2rem;
}

.about-orbit {
  position: absolute;
  inset: 8% 6%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(13, 138, 114, 0.18), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(18, 24, 42, 0.08), transparent 50%),
    linear-gradient(160deg, #eef2f6 0%, #e4e9f0 100%);
  border: 1px solid var(--border);
  z-index: 0;
}

.code-window {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  background: #12182a;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.code-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.code-dot:nth-child(1) {
  background: #ff6b6b;
}
.code-dot:nth-child(2) {
  background: #ffd166;
}
.code-dot:nth-child(3) {
  background: #06d6a0;
}

.code-filename {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-body {
  margin: 0;
  padding: 1.25rem 1.35rem 1.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.code-body .c-kw {
  color: #7dd3c0;
}
.code-body .c-type {
  color: #9ecbff;
}
.code-body .c-fn {
  color: #ffd28a;
}

.about-float-cards {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-md);
  min-width: 128px;
  animation: float-soft 5.5s ease-in-out infinite;
}

.float-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.float-card span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 550;
}

.float-card:nth-child(1) {
  top: 8%;
  left: 0;
  animation-delay: 0s;
}

.float-card:nth-child(2) {
  top: 18%;
  right: 0;
  animation-delay: 0.8s;
}

.float-card:nth-child(3) {
  bottom: 6%;
  left: 12%;
  animation-delay: 1.4s;
}

.float-card.accent {
  background: linear-gradient(135deg, #12182a, #1a2740);
  border-color: transparent;
  color: #fff;
}

.float-card.accent strong {
  color: #fff;
  font-size: 0.95rem;
}

.float-card.accent span {
  color: rgba(159, 240, 214, 0.9);
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    min-height: 360px;
    order: -1;
  }

  .float-card:nth-child(1) {
    left: 4%;
  }

  .float-card:nth-child(2) {
    right: 4%;
  }
}

@media (max-width: 560px) {
  .about-visual {
    min-height: 300px;
    padding-inline: 0;
  }

  .code-window {
    width: 100%;
  }

  .code-body {
    font-size: 0.7rem;
    padding: 1rem;
  }

  .float-card {
    min-width: 110px;
    padding: 0.65rem 0.75rem;
  }

  .float-card strong {
    font-size: 0.95rem;
  }

  .float-card:nth-child(3) {
    left: 4%;
    right: auto;
    bottom: 2%;
  }
}

.info-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.info-list span:first-child {
  color: var(--muted);
  font-weight: 550;
}

.info-list span:last-child,
.info-list a {
  color: var(--ink);
  font-weight: 500;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 550;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .info-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* --------------------------------------------------------------------------
   Cards / Services / Expertise
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 138, 114, 0.28);
  color: inherit;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Skills
   -------------------------------------------------------------------------- */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
  gap: 1rem;
}

.skill-top h3 {
  font-size: 1rem;
  margin: 0;
}

.skill-top span {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
}

.progress {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #19b896);
  border-radius: inherit;
  transition: width 1.1s var(--ease);
}

.skill-card.is-visible .progress > i {
  width: var(--value);
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .skills-layout {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: var(--navy);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card .project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.5s var(--ease);
  z-index: -2;
}

.project-card:hover .project-bg {
  transform: scale(1.05);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 28, 0.15) 0%,
    rgba(12, 16, 28, 0.55) 45%,
    rgba(12, 16, 28, 0.92) 100%
  );
  z-index: -1;
}

.project-body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  color: #fff;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1220;
  background: #9ff0d6;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.project-body h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.project-body h3 a {
  color: inherit;
}

.project-body h3 a:hover {
  color: #9ff0d6;
}

.project-body p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.project-meta span {
  font-size: 0.72rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Experience timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.timeline-org {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 550;
  margin-bottom: 0.75rem;
}

.timeline-item p {
  margin-bottom: 0.75rem;
}

.timeline-item ul {
  display: grid;
  gap: 0.4rem;
}

.timeline-item li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.timeline-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.edu-card,
.award-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.edu-card h3,
.award-card h3 {
  font-size: 1.05rem;
}

.edu-card .meta,
.award-card .meta {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 550;
}

@media (max-width: 800px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.quote-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.quote-meta {
  font-size: 0.88rem;
  color: #9ff0d6;
  font-weight: 600;
}

@media (max-width: 900px) {
  .testimonials-track {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item[open] {
  border-color: rgba(13, 138, 114, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item p {
  padding: 0 1.35rem 1.25rem;
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  padding: 0 0 var(--section-y);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #12182a 0%, #1a2744 55%, #0d4f44 120%);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(2.5rem, 5vw, 3.75rem);
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 138, 114, 0.35), transparent 70%);
}

.cta-panel > * {
  position: relative;
}

.cta-panel h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  max-width: 16ch;
  margin-bottom: 0.85rem;
}

@media (max-width: 560px) {
  .cta-panel {
    padding: 1.75rem 1.25rem;
  }

  .cta-panel h2 {
    max-width: none;
  }

  .cta-panel .btn-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-panel .btn {
    width: 100%;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 220px;
    height: 220px;
  }

  .project-card {
    min-height: 240px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.cta-panel p {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.cta-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

.cta-checks span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cta-checks span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(159, 240, 214, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239ff0d6'%3E%3Cpath d='M6.5 11.2 3.3 8l1-1 2.2 2.2L11.7 4l1 1z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 0.85rem;
}

.contact-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-tile .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.contact-tile a,
.contact-tile .value {
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

@media (max-width: 860px) {
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.62);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.85rem;
}

.site-footer p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #9ff0d6;
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.socials a:hover {
  background: rgba(13, 138, 114, 0.25);
  border-color: rgba(159, 240, 214, 0.35);
  color: #9ff0d6;
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font-weight: 650;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.whatsapp-float:hover {
  background: #0e7a6e;
  color: #fff;
  transform: translateY(-2px);
}

.whatsapp-float svg {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: none;
  place-items: center;
  z-index: 900;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

#backToTop.is-visible {
  display: grid;
}

#backToTop:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.stack-sm {
  display: grid;
  gap: 0.75rem;
}
