:root {
  --bg: #050505;
  --bg-alt: #101010;
  --card: #151515;
  --accent: #2563eb; /* or whatever solid accent color you want */
  --accent-gradient: linear-gradient(to right, #9333ea, #2563eb);
  --accent-soft: rgba(255, 45, 117, 0.16);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --border: #262626;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.8);
  --transition-fast: 0.25s ease;
  --max-width: 1120px;
  --timeline-overlap: -8rem;   /* negative = how much each job overlaps the previous */
  --timeline-gap-bottom: 6rem; /* normal gap below each card */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: radial-gradient(circle at top, #111111 0, #050505 40%, #000000 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* LAYOUT */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0 2.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.9rem, 2.2vw, 2.4rem);
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 42rem;          
  font-size: 1rem;
  line-height: 1.6;          
  margin: 0 auto;            
  text-align: center;        
}
/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(38, 38, 38, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* LEFT: brand (logo + name) */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 999px;   /* circular logo if square image */
  object-fit: cover;
}

.nav-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

/* CENTER: nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
  color: #e5e5e5;

  /* bigger & stronger text */
  font-size: 1rem;          /* increase/decrease as you like */
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #9333ea, #2563eb);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
  animation: nav-links-bounce 0.6s ease;
}

/* RIGHT: CTA */
.nav-cta {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(82, 82, 82, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: #111111;
  color: #f5f5f5;
  transition:
    background var(--transition-fast),
    border var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* bounce + gradient on hover */
.nav-cta:hover {
  background: linear-gradient(to right, #9333ea, #2563eb);
  color: #000;
  border-color: transparent;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);

  animation: nav-cta-bounce 0.6s ease;
}

.nav-cta .arrow {
  font-size: 0.9rem;
}

/* bounce keyframes */
@keyframes nav-cta-bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-4px); }
  55%  { transform: translateY(2px); }
  80%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes nav-links-bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-4px); }
  55%  { transform: translateY(2px); }
  80%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}



/* Mobile nav */
.nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: #f5f5f5;
  margin: 4px 0;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu-open .nav-links {
    position: absolute;
    inset: 52px 1.2rem auto 1.2rem;
    background: #111111;
    border-radius: 1rem;
    border: 1px solid #262626;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.9);
  }

  .nav-menu-open .nav-cta {
    display: inline-flex;
    margin-top: 0.4rem;
  }
}


/* HERO */
/* HERO – full-screen, image on right, fade into black on left */
.hero {
  position: relative;
  min-height: 100vh; /* make sure it takes full screen height */
  display: flex;
  align-items: center;
  justify-content: center; /* horizontally center everything */
  overflow: hidden;
  text-align: center; /* optional – centers text too */
}

/* Background image on the right */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hr_fsae.jpg"); /* <-- your hero image */
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  z-index: -2;
  padding-left: 120%;
}

/* Dark gradient overlay so it blends into black on the left */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #050505 0%,        /* solid black on far left */
    #050505 40%,       /* keep left third dark for text */
    rgba(5, 5, 5, 0.5) 65%,
    rgba(5, 5, 5, 0) 80%  /* fully show image on the right */
  );
  z-index: -1;
}

/* Text container sits on top of background */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}



.hero-role {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


.hero-title {
  font-size: clamp(4rem, 4vw, 4rem);
  font-weight: 750;
  padding-bottom: 2rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 28rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem; /* adds breathing room between buttons */
  margin-top: 1rem;
}


/* Hero contact info block (under name) */
/* ===== HERO CONTACT (2-column layout) ===== */
.hero-contact {
  margin-top: 0.9rem;
  margin-bottom: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.9rem;
  flex-wrap: wrap; /* allows wrap on small screens */
}

.hero-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.hero-contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(to right, #9333ea, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #000;
  flex-shrink: 0;
}

.hero-contact a {
  color: var(--text);
}

.hero-contact a:hover {
  text-decoration: underline;
}

/* Responsive: stack vertically on mobile */
@media (max-width: 650px) {
  .hero-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}


.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.7rem 1.45rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-image: linear-gradient(to right, #9333ea, #2563eb);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
  animation: btn-primary-bounce 0.6s ease;
}

.btn-ghost {
  background: #111111;
  border-color: #3f3f3f;
  color: #f5f5f5;
}

.btn-ghost:hover {
  background: #181818;
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
  animation: btn-ghost-bounce 0.6s ease;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  border: 1px solid #3f3f3f;
  background: #111111;
  color: #e5e5e5;
}

/* we don't need the separate image column anymore */
.hero-right {
  display: none;
}

.hero-image-wrapper {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

@keyframes btn-primary-bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-4px); }
  55%  { transform: translateY(2px); }
  80%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes btn-ghost-bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-4px); }
  55%  { transform: translateY(2px); }
  80%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

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

  .hero-right {
    order: -1;
  }

  .hero-image {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 60px);
  }

  .hero::after {
    background: linear-gradient(
      to bottom,
      #050505 0%,
      rgba(5, 5, 5, 0.85) 40%,
      rgba(5, 5, 5, 0.4) 70%,
      rgba(5, 5, 5, 0) 100%
    );
  }

  .hero-inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-left {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ABOUT */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
}

.about-image-wrapper {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.about-image {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}

.about-content {
  max-width: 32rem;
}

.about-text {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

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

  .about-image {
    max-height: 240px;
  }
}

/* STATS STRIP */

/* STATS STRIP WITH BIG NUMBERS */

#stats {
  padding-top: 0rem;
  padding-bottom: 2.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  padding: 0 1.8rem 1rem 1.8rem;
  border-radius: 24px;
  /* border: 1px solid #262626;
  background: #0b0b0b; */
}

.stat {
  text-align: center;
  padding: 0 0.75rem;
}

.stat-number-wrapper {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.stat-number {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


.stat-suffix {
  font-size: 2.1rem;
  font-weight: 700;
  margin-left: 0.1rem;
  color: var(--accent);
}

.stat-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stat-description {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 18rem;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .stats-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.6rem 1.3rem;
  }

  .stat {
    text-align: left;
    padding: 0.3rem 0;
  }

  .stat-description {
    margin-left: 0;
  }
}

/* COMPANY LOGO CAROUSEL */

#companies {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.logo-carousel {
  width: 100%;
  max-width: 1100px;          /* controls how many logos are visible (~6) */
  overflow: hidden;
  /* border-top: 1px solid #262626;
  border-bottom: 1px solid #262626; */
  /* padding: 1.8rem 0;          controls overall height of strip */
  position: relative;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 0;                 /* 🔧 remove gap so JS math matches layout */
  will-change: transform;
}

/* each logo gets the same slot size + internal spacing */
.logo-item {
  flex: 0 0 140px;        /* keep if you like fixed slots */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  padding: 0 0.6rem;      /* ✅ spacing that IS included in offsetWidth */
  box-sizing: border-box;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Add extra spacing after Multimatic */
.logo-item img[alt="Multimatic"] {
  margin-left: 7rem;
  margin-right: 9rem;
}

/* logo itself just fits inside the slot */
.logo-item img {
  max-width: 100%;
  max-height: 42px;           /* logo height */
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(1.3);
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.logo-item:hover img {
  filter: grayscale(0) brightness(1);
}


@media (max-width: 768px) {
  .logo-carousel {
    max-width: 100%;
  }

  .logo-track {
    gap: 0;              /* 🔧 also remove gap here */
  }

  .logo-item {
    flex: 0 0 130px;
    padding: 0 0.5rem;   /* internal spacing on mobile */
  }

  .logo-item img {
    max-height: 32px;
  }

  .logo-item img[alt="Multimatic"] {
    margin-left: 4rem;
    margin-right: 4rem;
  }
}

/* ===== EXPERIENCE TIMELINE – VERTICAL CODE CARDS ===== */

.section-experience-timeline {
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

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

.exp-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.exp-subtitle {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* vertical timeline layout */
/* ===== EXPERIENCE TIMELINE – CENTERED LINE, ALTERNATING LEFT/RIGHT ===== */

.exp-timeline-vertical {
  position: relative;
  margin-top: 0.5rem;
}

.exp-timeline-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #111827, #4b5563, #111827);
}

/* each job row */
.exp-item {
  position: relative;
  display: flex;
  margin: 0 0 var(--timeline-gap-bottom);
}

/* for every job AFTER the first, pull it up by the same amount */
.exp-item + .exp-item {
  margin-top: var(--timeline-overlap);
}

/* odd jobs → left side */
.exp-item:nth-child(odd) {
  justify-content: flex-start;
}

/* even jobs → right side */
.exp-item:nth-child(even) {
  justify-content: flex-end;
}

/* node on the line */
.exp-node {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, 0);
  border-radius: 999px;
  background: #020617;
  border: 2px solid #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* card width */
.exp-card {
  max-width: 520px;
  width: 45%;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid #111827;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.9);
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 1rem;
}

/* --------- responsive: stack on mobile, line to the left --------- */

@media (max-width: 900px) {
  .exp-timeline-vertical {
    padding-left: 2.6rem;
  }

  .exp-timeline-vertical::before {
    left: 1.2rem;
    transform: none;
  }

  .exp-item,
  .exp-item:nth-child(odd),
  .exp-item:nth-child(even) {
    justify-content: flex-start;
  }

  .exp-item {
    margin: 0 0 2rem;
  }

  .exp-item + .exp-item {
    margin-top: 0;
  }

  .exp-node {
    left: 1.2rem;
  }

  .exp-card {
    width: 100%;
    max-width: 100%;
    margin-left: 1.5rem;
  }
}

/* top bar */
.code-header {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  background: #000;
  border-bottom: 1px solid #6b7280;
}

.code-dots {
  display: flex;
  gap: 0.25rem;
  margin-right: 0.8rem;
}

.code-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot-red {
  background: #ff5f57;
}
.dot-amber {
  background: #febc2e;
}
.dot-green {
  background: #28c840;
}

/* tabs */
.code-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.code-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  font-size: 0.75rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #0b1120;
  color: #6b7280;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tab-active {
  background: #000;
  border-color: #1d4ed8;
  color: #e5e7eb;
}

/* code body */
.code-body {
  padding: 0.7rem 0.9rem 0.85rem;
  background: #000;
}

.code-line {
  display: flex;
  gap: 0.6rem;
  line-height: 1.6;
  white-space: nowrap;
}

.line-number {
  width: 1.4rem;
  text-align: right;
  color: #4b5563;
  user-select: none;
}

/* indentation span */
.token-indent {
  display: inline-block;
  width: 1rem;
}

/* syntax colours */
.token-keyword {
  color: #22c55e;  /* const */
}
.token-variable {
  color: #e5e7eb;
}
.token-operator {
  color: #e5e7eb;
  margin: 0 0.2rem;
}
.token-punctuation {
  color: #e5e7eb;
}
.token-property {
  color: #60a5fa; /* title, company, etc. */
}
.token-string {
  color: #fbbf24; /* "string" */
}

/* mobile: keep vertical but closer to left edge */
@media (max-width: 768px) {
  .exp-timeline-vertical {
    padding-left: 2.6rem;
  }

  .exp-timeline-vertical::before,
  .exp-node {
    left: 1.2rem;
  }

  .exp-card {
    margin-left: 1.9rem;
    max-width: 100%;
  }
}

/* PROJECTS */

/* ===== PROJECTS: tag-based image grid ===== */

.section-projects {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
  text-align: center;              /* center all header text */
}

.section-projects .section-header {
  max-width: 900px;                /* limit text width */
  margin: 0 auto 2.5rem;           /* center horizontally */
}

.section-projects .project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;         /* center buttons */
  gap: 0.6rem;
  margin: 1.5rem auto 2.5rem;      /* vertical spacing */
}

/* Keep existing button styling */
.filter-btn {
  border: 1px solid #1d4ed8;
  background: #111111;
  color: #e5e5e5;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease,
    transform 0.15s ease;
}

.filter-btn.is-active {
  background: linear-gradient(to right, #9333ea, #2563eb);
  border-color: transparent;
  color: #000;
  transform: translateY(-1px);
}

.filter-btn:hover:not(.is-active) {
  border-color: #777;
}

/* Project grid stays full width */
.project-grid {
  margin-top: 2rem;
  column-count: 3;       /* number of columns on desktop */
  column-gap: 1.3rem;
}


/* each tile behaves like a block placed into the columns */
.project-tile {
  position: relative;
  display: inline-block; /* important for column layout */
  width: 100%;
  margin: 0 0 1.3rem;
  border-radius: 20px; 
  overflow: hidden;
  background: #050505;
  border: 1px solid #262626; 
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  color: inherit;
  break-inside: avoid;   /* prevent tiles from splitting between columns */
}

/* image just uses its natural aspect ratio */
.project-image {
  display: block;
  width: 100%;
  height: auto;
}

/* overlay on hover */

/* Centered hover overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(82, 82, 82, 0.45);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.35rem;
}


.project-overlay-text {
  font-size: 1.2rem;
  color: #fff;
}

.project-tile:hover .project-overlay {
  opacity: 1;
}

/* hover effects */
.project-tile:hover .project-image {
  transform: scale(1.1);
}

/* hidden state when filtered out */
.project-tile.is-hidden {
  display: none;
}

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

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


/* CONTACT */

/* ========== CONTACT SECTION ========== */

.section-contact {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Header block */
.contact-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.contact-tagline {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 3.5rem;
  align-items: flex-start;
}

/* Left column text */
.contact-left {
  font-size: 1rem;
}

.contact-blurb {
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-line {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: baseline;
}

.contact-line dt {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.contact-line dd {
  margin: 0;
  color: var(--text);
}

.contact-line a {
  color: var(--accent-text, #93c5fd); /* falls back if you don't have this var */
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* Right column: card form */
.contact-right {
  max-width: 520px;
  margin-left: auto;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #262626;
  background: #111111;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* make textarea pill-ish but with more height */
.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 6rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b7280;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

/* use your existing gradient button, but full width here */
.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* --- visual refinements --- */
.contact-form {
  background: linear-gradient(145deg, #111111 0%, #0a0a0a 100%);
  border: 1px solid #1f1f1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.contact-form input,
.contact-form textarea {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  color: #f5f5f5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #121212;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
}

.contact-form label {
  color: #a1a1aa;
  font-weight: 500;
}

.contact-submit {
  width: 100%;
  justify-content: center;
  background-image: linear-gradient(to right, #9333ea, #2563eb);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.contact-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.contact-status-success {
  color: #4ade80; /* green-ish */
}

.contact-status-error {
  color: #f97373; /* red-ish */
}



/* Responsive tweaks */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-right {
    margin-left: 0;
    max-width: 100%;
  }
}


/* FOOTER */
/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem 0;
  background: transparent; /* blend with dark theme */
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.footer-icons a {
  color: #a3a3a3;
  font-size: 1.6rem;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.footer-icons a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(147, 51, 234, 0.6), 0 0 12px rgba(37, 99, 235, 0.4);
}

.footer-icons a:hover {
  background: linear-gradient(to right, #9333ea, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.1);
}

