/* ==========================================================================
   Muhammad Syahuri — Personal Branding Website
   Design: Light-corporate mode (personal branding default)
   Brand: Navy #022f52, Teal #2bb8c6, White #FAFAFA, Dark gray #1a1a1a
   Font: Plus Jakarta Sans (Google Fonts)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --navy: #022f52;
  --navy-dark: #011f36;
  --navy-light: #0a4a75;
  --teal: #2bb8c6;
  --teal-dark: #1f99a7;
  --teal-light: #5fcfd9;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f4f6f8;
  --bg-dark: var(--navy);
  --bg-dark-2: var(--navy-dark);

  /* Text */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #8a8a8a;
  --text-on-dark: #ffffff;
  --text-on-dark-secondary: rgba(255, 255, 255, 0.75);
  --text-on-dark-muted: rgba(255, 255, 255, 0.55);

  /* Borders */
  --border: #e4e7eb;
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-strong: #cdd2d8;

  /* Accents */
  --accent: var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-soft: rgba(43, 184, 198, 0.10);
  --accent-soft-2: rgba(43, 184, 198, 0.18);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(2, 47, 82, 0.06);
  --shadow-sm: 0 2px 8px rgba(2, 47, 82, 0.08);
  --shadow-md: 0 4px 16px rgba(2, 47, 82, 0.10);
  --shadow-lg: 0 12px 40px rgba(2, 47, 82, 0.14);
  --shadow-xl: 0 24px 60px rgba(2, 47, 82, 0.18);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  /* Layout */
  --container-max: 1200px;
  --text-max: 720px;
  --navbar-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.text-on-dark {
  color: var(--text-on-dark);
}

.text-on-dark h1, .text-on-dark h2, .text-on-dark h3, .text-on-dark h4 {
  color: var(--text-on-dark);
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.gradient-word {
  background: linear-gradient(107deg, var(--teal) 30%, var(--navy-light) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  max-width: var(--text-max);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-sm {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-dark {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-on-dark);
}

.section-tint {
  background: var(--bg-secondary);
}

.section-tint-2 {
  background: var(--bg-tertiary);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: var(--text-max);
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--teal);
  color: #fff;
}

.btn-accent:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: 0.9375rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn svg, .btn img {
  width: 1.125em;
  height: 1.125em;
}

/* -------------------------------------------------------------------------- */
/*   6. Navbar */
/*   Fixed (not sticky) for reliability across browsers.
     Sticky breaks when a parent has overflow:hidden/auto.
     Solid fallback bg first; backdrop-filter enhances only if supported. */
/* -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Solid fallback for browsers without backdrop-filter support */
  background: #ffffff;
  /* Enhanced: semi-transparent + blur where supported */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

/* Fallback: if backdrop-filter is not supported, keep solid white */
@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .navbar {
    background: #ffffff;
  }
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Offset main content to account for fixed navbar height */
main {
  padding-top: var(--navbar-height);
}

/* Hero and page-header sit under the fixed navbar.
   Pull up by navbar height so the dark header starts at the very top
   of the viewport (under the transparent-blur navbar), then add the
   navbar height back into top padding so content isn't hidden. */
.hero,
.page-header {
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: calc(var(--navbar-height) + clamp(3rem, 6vw, 5rem));
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  color: var(--navy);
}

.navbar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-nav a {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-nav a:hover {
  color: var(--navy);
  background: var(--bg-tertiary);
}

.navbar-nav a.active {
  color: var(--navy);
  font-weight: 600;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
  margin-inline: auto;
}

.navbar-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
@media (max-width: 900px) {
  .navbar-nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    padding: 1rem 1.5rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition), visibility 0s linear var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    will-change: transform;
  }

  .navbar-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition), visibility 0s;
  }

  .navbar-nav a {
    padding: 0.875rem 0.5rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .navbar-cta .btn {
    display: none;
  }

  .navbar-cta .btn-mobile {
    display: flex;
    margin-top: 1rem;
    width: 100%;
  }

  .navbar-toggle {
    display: flex;
  }
}

.navbar-cta .btn-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Hero (Home)
   -------------------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(43, 184, 198, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 80%, rgba(10, 74, 117, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-dark) 100%);
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-on-dark-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(43, 184, 198, 0.15), rgba(10, 74, 117, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
}

.hero-photo .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-on-dark-muted);
  text-align: center;
  padding: 2rem;
}

.hero-photo .placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    max-width: 320px;
    margin-inline: auto;
    order: -1;
  }
}

/* Page header (for non-home pages) */
.page-header {
  background: var(--navy);
  color: var(--text-on-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(43, 184, 198, 0.15), transparent 60%),
    linear-gradient(160deg, var(--navy-dark), var(--navy));
  z-index: 0;
}

.page-header > .container {
  position: relative;
  z-index: 1;
  max-width: var(--text-max);
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-on-dark-secondary);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.card-hover:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  color: var(--teal-dark);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.625rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.card-link:hover {
  color: var(--navy);
}

.card-link svg {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* Coming soon badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-soon {
  background: var(--accent-soft);
  color: var(--teal-dark);
  border: 1px solid var(--accent-soft-2);
}

.badge-active {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.card-coming-soon {
  position: relative;
  opacity: 0.85;
}

.card-coming-soon .card-icon {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   9. Logo Parade / Clients
   -------------------------------------------------------------------------- */
.logo-parade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 56px;
  min-width: 120px;
  text-align: center;
  transition: all var(--transition-fast);
}

.logo-item:hover {
  border-color: var(--border-strong);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   10. Portfolio Grid & Filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--teal);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* Break the uniformity: first item spans wider (featured) */
.portfolio-grid .portfolio-item:first-child {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid .portfolio-item:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid .portfolio-item:first-child {
    grid-column: span 1;
  }
}

.portfolio-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

/* Break the triad variation: portfolio uses a different radius (md not lg),
   a different shadow scale (md not lg), and a border-color shift instead of translateY */
.portfolio-item:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-tertiary), #e8edf1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-thumb .placeholder {
  color: var(--text-tertiary);
  text-align: center;
  padding: 1rem;
}

.portfolio-thumb .placeholder svg {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

.portfolio-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.portfolio-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.portfolio-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}

.portfolio-meta {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   11. Timeline (Profil)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: var(--text-max);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--teal);
  transform: translateX(calc(-50% + 7px));
}

.timeline-year {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.timeline-item h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.timeline-place {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. Skill tags
   -------------------------------------------------------------------------- */
.skill-group {
  margin-bottom: 1.75rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   13. Biodata
   -------------------------------------------------------------------------- */
.biodata-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

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

.biodata-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-tertiary), #e0e6ec);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
}

.biodata-photo .placeholder {
  color: var(--text-tertiary);
  text-align: center;
  padding: 1.5rem;
}

.biodata-photo .placeholder svg {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

.biodata-list {
  display: grid;
  gap: 1rem;
}

.biodata-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.biodata-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.biodata-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.biodata-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. Contact / Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

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

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.contact-channels {
  display: grid;
  gap: 1rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 0;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

/* Break the radius+shadow+translateY triad: use a left accent bar + bg tint,
   no lift, no shadow, flat (zero) radius unlike cards/portfolio */
.contact-channel:hover {
  border-left-color: var(--teal);
  background: var(--bg-secondary);
  color: inherit;
}

.contact-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--teal-dark);
  flex-shrink: 0;
}

.contact-channel-icon svg {
  width: 24px;
  height: 24px;
}

.contact-channel-info h4 {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.contact-channel-info p {
  font-size: 1.0625rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

/* What happens next steps — asymmetric stagger, not a flat 3-column grid */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  align-items: start;
}

/* Break the symmetry: stagger the middle and last steps downward */
.steps .step:nth-child(2) {
  margin-top: 2rem;
}
.steps .step:nth-child(3) {
  margin-top: 4rem;
}

/* Connector line behind the step numbers */
.steps {
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps .step:nth-child(2),
  .steps .step:nth-child(3) {
    margin-top: 0;
  }
  .steps::before {
    display: none;
  }
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.step h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   15. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--navy);
  color: var(--text-on-dark);
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(43, 184, 198, 0.2), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(10, 74, 117, 0.3), transparent 60%);
  z-index: 0;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-on-dark-secondary);
  font-size: 1.125rem;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-banner .btn {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-dark);
  color: var(--text-on-dark-secondary);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

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

.footer-brand {
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 320px;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.625rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--teal);
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  display: grid;
  gap: 0.625rem;
}

.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-cta h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-cta p {
  color: var(--text-on-dark-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.footer-bottom a {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
}

.footer-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   17. Scroll Reveal Animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.maxw-720 { max-width: var(--text-max); }
.mx-auto { margin-inline: auto; }
.hidden { display: none; }

/* --------------------------------------------------------------------------
   19. Reduced Motion
   -------------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. Misc
   -------------------------------------------------------------------------- */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: 2.5rem;
}

.note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  margin-top: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}
