/* =========================================================
   Fuad Hasan — Personal Portfolio
   Dark Editorial · Minimalist · Technical · Personal
   ========================================================= */

:root {
  --bg: #10110f;
  --surface: #191b18;
  --surface-2: #1e211d;
  --text: #f0f0e9;
  --muted: #999d91;
  --green: #b7ed65;
  --orange: #ff995e;
  --border: #30332d;
  --border-soft: #26292441;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: var(--green);
  color: #10110f;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--green);
  color: #10110f;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
}

.section--flush {
  border-top: 1px solid var(--border);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--green);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  text-wrap: balance;
}

.section-lead {
  color: var(--muted);
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.mono {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #10110f;
  border-color: var(--green);
}

.btn-primary:hover {
  background: #c6f583;
  border-color: #c6f583;
}

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

.btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(16, 17, 15, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(4px)) {
  .site-header {
    background: var(--bg);
  }
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-size: 0.95rem;
}

.brand-name span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.22s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ---------- Mobile Menu ---------- */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem var(--gutter);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
  }

  body.nav-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .mobile-menu a {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--border-soft);
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  }

  .mobile-menu a:hover,
  .mobile-menu a.active {
    color: var(--green);
    padding-left: 0.5rem;
  }

  .mobile-menu .mobile-cta {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--section-y));
  padding-bottom: var(--section-y);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 20% 15%,
      rgba(183, 237, 101, 0.06),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 70%,
      rgba(255, 153, 94, 0.05),
      transparent 50%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding-inline: var(--gutter);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--green);
}

.hero p.hero-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s var(--ease);
}

.hero-links a:hover {
  color: var(--green);
}

.hero-links svg {
  width: 18px;
  height: 18px;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
  margin: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.about-text {
  display: grid;
  gap: 1.25rem;
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.feature-card:hover {
  border-color: var(--green);
  background: var(--surface-2);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Skills ---------- */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.skill-category:hover {
  border-color: var(--green);
  background: var(--surface-2);
}

.skill-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.skill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.skill-badge--practiced {
  background: rgba(183, 237, 101, 0.12);
  color: var(--green);
  border: 1px solid rgba(183, 237, 101, 0.3);
}

.skill-badge--exploring {
  background: rgba(255, 153, 94, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 153, 94, 0.3);
}

.skill-badge--services {
  background: rgba(183, 237, 101, 0.1);
  color: var(--green);
  border: 1px solid var(--green);
}

.skill-category > .desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.skill-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-tools span {
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.skill-category:hover .skill-tools span {
  color: var(--text);
  border-color: var(--border);
}

.skill-refs {
  font-size: 0.78rem;
  color: var(--muted);
}

.skill-refs strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.project-card:hover {
  border-color: var(--green);
  background: var(--surface-2);
}

.project-card--featured {
  grid-template-columns: 1.1fr 1fr;
}

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

.project-media {
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.project-badge-row {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  pointer-events: none;
}

.project-badge {
  pointer-events: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 17, 15, 0.85);
  border: 1px solid var(--border);
  color: var(--muted);
  backdrop-filter: blur(6px);
}

.project-badge--green {
  color: var(--green);
  border-color: rgba(183, 237, 101, 0.4);
  background: rgba(183, 237, 101, 0.08);
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-content .desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.project-features li::before {
  content: "▸";
  color: var(--green);
  margin-right: 0.4rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-tech span {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  transition: color 0.2s var(--ease);
}

.project-links a:hover {
  color: #c6f583;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-links .sep {
  color: var(--border);
  pointer-events: none;
}

/* F Hasan Production Spotlight */
.fhp-spotlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.fhp-header {
  padding: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.fhp-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.fhp-header .lead {
  color: var(--muted);
  max-width: 55ch;
  font-size: 1.05rem;
}

.fhp-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

@media (max-width: 900px) {
  .fhp-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .fhp-services {
    grid-template-columns: 1fr;
  }
}

.fhp-service-col {
  background: var(--surface);
  padding: 1.5rem;
}

.fhp-service-col h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.fhp-service-col ul {
  display: grid;
  gap: 0.55rem;
}

.fhp-service-col li {
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  padding-left: 1.1rem;
}

.fhp-service-col li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--green);
}

.fhp-footer {
  padding: 1.5rem clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fhp-footer .cta-text {
  font-size: 0.95rem;
  color: var(--muted);
}

.fhp-footer .cta-text strong {
  color: var(--text);
}

/* ---------- Tech Stack ---------- */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tech-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.tech-category:hover {
  border-color: var(--green);
  background: var(--surface-2);
}

.tech-category h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-soft);
}

.tech-category ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-category li {
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tech-category:hover li {
  color: var(--text);
}

.tech-tag {
  font-size: 0.65rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem !important;
  border-radius: 999px !important;
}

.tech-tag--used {
  background: rgba(183, 237, 101, 0.12);
  color: var(--green);
  border-color: rgba(183, 237, 101, 0.3) !important;
}

.tech-tag--exploring {
  background: rgba(255, 153, 94, 0.12);
  color: var(--orange);
  border-color: rgba(255, 153, 94, 0.3) !important;
}

.tech-tag--familiar {
  background: rgba(153, 157, 145, 0.12);
  color: var(--muted);
  border-color: var(--border-soft) !important;
}

/* ---------- Beyond Coding ---------- */
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.beyond-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.beyond-card:hover {
  border-color: var(--green);
  background: var(--surface-2);
}

.beyond-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.beyond-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Learning Journey ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 700px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

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

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--green);
  z-index: 1;
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

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

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

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.contact-card:hover {
  border-color: var(--green);
  background: var(--surface-2);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-card .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
}

.contact-card .contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .form-row--double {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(183, 237, 101, 0.15);
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

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

.form-submit {
  margin-top: 0.5rem;
  width: 100%;
}

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

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(183, 237, 101, 0.12);
  border: 1px solid rgba(183, 237, 101, 0.3);
  color: var(--green);
}

.form-status.error {
  background: rgba(255, 153, 94, 0.12);
  border: 1px solid rgba(255, 153, 94, 0.3);
  color: var(--orange);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand .brand-name strong {
  font-size: 1.1rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.footer-bottom {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.footer-bottom a:hover {
  color: var(--green);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* stagger children */
.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-group .reveal:nth-child(6) { transition-delay: 400ms; }

/* ---------- Media queries ---------- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .hero-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Projects ---------- */
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .form-row--double {
    grid-template-columns: 1fr;
  }
}
