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

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

:root {
  color-scheme: dark;
  /* Two-color system:
     - Base (charcoal): backgrounds + surfaces
     - Accent (camel): highlights + buttons + links */
  --bg: #0b0c0f;
  --bg-elev: #121318;
  --bg-alt: #0f1014;
  --text: #f4f1ea;
  --muted: #c9c2b7;
  --muted-2: #ded6c9;
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.16);
  --brand: #c8a46a;
  --brand-2: var(--brand);
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}

body.theme-light {
  color-scheme: light;
  --bg: #fbf7f0;
  --bg-elev: #ffffff;
  --bg-alt: #f4efe6;
  --text: #121212;
  --muted: #3e3a34;
  --muted-2: #2b2823;
  --border: rgba(0, 0, 0, 0.10);
  --border-2: rgba(0, 0, 0, 0.14);
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.14);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ==========
   Layout helpers
   ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-alt {
  background-color: var(--bg-alt);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .big {
  display: block;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.05);
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  margin-top: -1.8rem;
}

.section-heading p {
  max-width: 520px;
  margin: 0.75rem auto 0;
  color: var(--muted);
}

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

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

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

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

/* ==========
   Buttons
   ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background-color: color-mix(in srgb, var(--brand) 82%, white);
  border-color: color-mix(in srgb, var(--brand) 82%, white);
}

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

.btn-outline:hover {
  background-color: var(--text);
  color: var(--bg);
}

/* ==========
   Navbar
   ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 78%, transparent));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 0.15rem;
}

.navbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-color: var(--brand);
  transition: width 0.2s ease;
}

.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar-inner {
    padding-inline: 1rem;
  }

  .navbar-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    background-color: var(--bg);
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .navbar-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-toggle {
    display: block;
  }
}

/* ==========
   Hero
   ========== */
.hero {
  padding-top: 5.5rem;
  background: radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 18%, var(--bg)), var(--bg) 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

.hero-greeting {
  font-size: 20px;
  letter-spacing: 0.3em;
  color: var(--brand);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.3rem);
  margin-top: 0.75rem;
  font-weight: 800;
}

.hero-title span {
  color: var(--brand);
}

.hero-typing {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  min-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
}

.hero-actions {
  margin-top: 1.8rem;
}

.hero-actions a + a {
  margin-left: 0.8rem;
}

.hero-image-wrap {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.hero-image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 18%, transparent), transparent 50%);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-badge {
  position: absolute;
  left: -1rem;
  bottom: -1.2rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-badge {
    position: static;
    display: inline-flex;
    margin-top: 1rem;
  }
}

/* ==========
   About
   ========== */
.about-modern {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3.25rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-modern {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
}

.about-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}

.about-title {
  margin-top: 0.55rem;
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.about-title span {
  color: var(--brand);
}

.about-underline {
  margin-top: 0.8rem;
  width: 3.25rem;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}

.about-body {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: color-mix(in srgb, var(--text) 86%, transparent);
}

.about-body p + p {
  margin-top: 0.85rem;
}

.about-stats {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.8rem;
  align-items: flex-end;
}

.stat-value {
  color: var(--brand);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-links {
  margin-top: 1.4rem;
}

.about-visual {
  display: grid;
  place-items: center;
}

.about-visual-card {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background: radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.about-visual-card::before,
.about-visual-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--brand) 40%, transparent);
  opacity: 0.95;
}

.about-visual-card::before {
  top: 22px;
  right: 22px;
}

.about-visual-card::after {
  left: 22px;
  bottom: 22px;
}

.about-visual-image {
  width: 76%;
  height: 76%;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(1.02) contrast(1.03);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(2px);
}

.about-visual-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: color-mix(in srgb, var(--text) 90%, transparent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========
   Resume
   ========== */
/* ==========
   Experience Timeline
   ========== */
.experience-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.experience-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.experience-title {
  margin-top: 0.65rem;
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
}

.experience-title span {
  color: var(--brand);
}

.experience-title-underline {
  width: 3.25rem;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  margin: 0.95rem auto 0;
}

.experience-timeline {
  position: relative;
  padding: 1.2rem 0 1.6rem;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42px;
  bottom: 42px;
  width: 3px;
  transform: translateX(-50%);
  background: var(--brand);
  opacity: 0.95;
  border-radius: 999px;
}

.experience-end-dot {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 20px 70px color-mix(in srgb, var(--brand) 40%, transparent);
  z-index: 2;
}

.experience-end-dot-top {
  top: 22px;
}

.experience-end-dot-bottom {
  bottom: 22px;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: start;
  margin: 2.3rem 0;
  position: relative;
  z-index: 1;
}

.experience-dot {
  grid-column: 2;
  justify-self: center;
  margin-top: 26px;
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 999px;
}

.experience-card {
  grid-column: 3;
  width: min(420px, 100%);
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
  padding: 1.05rem 1.1rem 1.25rem;
}

.experience-item.left .experience-card {
  grid-column: 1;
}

.experience-date-pill {
  display: inline-block;
  padding: 0.33rem 0.72rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 850;
}

.experience-org {
  margin-top: 0.75rem;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text);
}

.experience-role {
  margin-top: 0.45rem;
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.01em;
}

.experience-points {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
  color: color-mix(in srgb, var(--muted-2) 92%, transparent);
}

.experience-points li + li {
  margin-top: 0.5rem;
}

.experience-points li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.experience-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
}

@media (max-width: 900px) {
  .experience-timeline::before {
    left: 18px;
    transform: none;
  }

  .experience-end-dot {
    left: 18px;
    transform: none;
  }

  .experience-item {
    grid-template-columns: 18px 22px minmax(0, 1fr);
  }

  .experience-dot {
    grid-column: 2;
    margin-top: 26px;
  }

  .experience-card {
    grid-column: 3;
    width: 100%;
  }
}

.resume-group-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.underline {
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background-color: var(--brand);
  margin-bottom: 1.5rem;
}

.resume-grid {
  margin-top: 1rem;
}

.resume-card {
  background-color: var(--bg-elev);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
}

.resume-date {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.resume-card h3 {
  font-size: 1.3rem;
  margin-top: 0.4rem;
}

.resume-position {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  margin-top: 0.1rem;
}

.resume-card ul {
  margin-top: 0.9rem;
  padding-left: 1.1rem;
  color: var(--muted-2);
}

.resume-card li + li {
  margin-top: 0.35rem;
}

.resume-download {
  margin-top: 1.5rem;
  text-align: center;
}

/* ==========
   Projects
   ========== */
.projects-grid {
  margin-top: 1rem;
}

.project-card {
  background-color: var(--bg-elev);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
}

.project-media {
  position: relative;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.08);
}

.project-body {
  padding: 1.3rem 1.25rem 1.4rem;
}

.project-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.project-body p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.projects-more {
  margin-top: 3.2rem;
  text-align: center;
  padding: 3rem 1.25rem;
  border-radius: 26px;
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--brand) 10%, var(--bg)), var(--bg));
  background-size: cover;
  background-position: center;
}

.projects-more h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.projects-more span {
  color: var(--brand);
}

/* ==========
   Blogs
   ========== */
.blogs-grid {
  margin-top: 1rem;
}

.blog-card {
  background-color: var(--bg-elev);
  border-radius: 18px;
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-title {
  margin-top: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.blog-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

/* ==========
   Contact
   ========== */
.contact-modern-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.contact-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-title {
  margin-top: 0.65rem;
  font-size: clamp(2.2rem, 4.8vw, 3.1rem);
  line-height: 1.05;
  font-weight: 900;
}

.contact-title span {
  color: var(--brand);
}

.contact-title-underline {
  width: 3.1rem;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  margin: 1rem auto 0;
}

.contact-modern-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-modern-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.contact-left-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.contact-left-text {
  color: color-mix(in srgb, var(--text) 84%, transparent);
  max-width: 56ch;
}

.contact-info-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-info-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border-radius: 14px;
  padding: 0.95rem 1.0rem;
}

.contact-info-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 80%, transparent);
  font-weight: 800;
}

.contact-info-value {
  margin-top: 0.45rem;
  font-weight: 600;
}

.contact-follow {
  margin-top: 1.6rem;
}

.contact-follow-label {
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.contact-social {
  display: flex;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.contact-right {
  width: 100%;
}

.contact-form {
  width: 100%;
}

.form-row {
  margin-top: 1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

.consent {
  margin-top: 1.1rem;
}

.consent {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.consent input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.consent label {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 84%, transparent);
  margin: 0;
  line-height: 1.4;
}

.recaptcha {
  margin-top: 1.2rem;
}

.recaptcha-box {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: color-mix(in srgb, var(--text) 84%, transparent);
  font-weight: 600;
}

.recaptcha-check {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
}

.recaptcha-brand {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

.contact-send {
  width: 100%;
  margin-top: 1.25rem;
}

.social-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}

.social-icon-link:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ==========
   Footer
   ========== */
.footer {
  padding: 2.4rem 0 2.1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--brand);
}

.footer a:hover {
  text-decoration: underline;
}

/* ==========
   Utilities
   ========== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* ==========
   Preloader + motion
   ========== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 16%, var(--bg)), var(--bg) 60%);
  display: grid;
  place-items: center;
  padding: 2rem;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  width: min(620px, 100%);
  text-align: center;
}

.preloader-title {
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 4.3rem);
}

.preloader-subtitle {
  margin-top: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.preloader-bar {
  margin: 1.35rem auto 0;
  height: 10px;
  width: min(440px, 100%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  overflow: hidden;
  border: 1px solid var(--border);
}

.preloader-bar > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .btn,
  .project-media img,
  .blog-card,
  .reveal,
  .preloader,
  .preloader-bar > div,
  .theme-toggle,
  .social-icon-link {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

