/* ================================================
   Portfolio — Sayef Ali Khan
   Premium dark-theme design
   ================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #06060b;
  --bg-alt: #0a0a14;
  --card: #0e0f1a;
  --card-hover: #121321;
  --soft: #111320;
  --border: #1a1d2e;
  --border-hover: #2a2d4a;
  --text: #eef0f6;
  --text-secondary: #c8cdd8;
  --muted: #7a829e;
  --brand: #8b5cf6;
  --brand-light: #a78bfa;
  --brand-glow: rgba(139, 92, 246, .2);
  --brand-glow-strong: rgba(139, 92, 246, .35);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, .15);
  --warm: #f59e0b;
  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,.3);
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --shadow-glow: 0 0 40px rgba(139,92,246,.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--text); }
p { margin: 0 0 .75rem; }
ul { list-style: none; margin: 0; padding: 0; }

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color .25s var(--ease);
}
a:hover { color: var(--text); }

/* --- Utilities --- */
.muted { color: var(--muted); }
.small { font-size: .85rem; letter-spacing: .02em; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip-to-content */
.skip-link {
  position: fixed; top: -100%; left: 50%;
  transform: translateX(-50%);
  background: var(--brand); color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 100; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  padding: .8rem 2rem;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(139,92,246,.3);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139,92,246,.4);
}
.btn:hover::before { opacity: 1; }

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border-hover);
  color: var(--text-secondary);
  box-shadow: none;
}
.btn--ghost::before { display: none; }
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--text);
  background: rgba(139,92,246,.06);
  box-shadow: 0 0 20px rgba(139,92,246,.1);
}

.btn--sm {
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-size: .85rem;
  box-shadow: 0 2px 10px rgba(139,92,246,.2);
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 11, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  height: var(--header-h);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -.015em;
  position: relative;
}
.brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transition: width .3s var(--ease);
}
.brand:hover { color: #fff; }
.brand:hover::after { width: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--muted);
  padding: .45rem .8rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 60;
  transition: border-color .25s var(--ease);
}
.hamburger:hover { border-color: var(--brand); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
  position: absolute;
  left: 10px;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 25px; }

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 11, .97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 45;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.mobile-nav.open { display: flex; opacity: 1; }
.mobile-nav a {
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 500;
  padding: .7rem 2rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.mobile-nav a:hover { color: #fff; background: rgba(139,92,246,.08); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}

/* Multi-layer gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 75% -5%, rgba(139,92,246,.18), transparent 70%),
    radial-gradient(ellipse 600px 400px at 15% 80%, rgba(16,185,129,.07), transparent 65%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(139,92,246,.04), transparent 70%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  z-index: 0;
}

/* Subtle grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero__text { animation: fadeInUp .8s var(--ease-out) both; }

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.2);
  color: var(--brand-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.role-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero__text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero__text h1 .gradient-text {
  background: linear-gradient(135deg, var(--brand-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text > p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__social {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  animation: fadeInUp .8s .35s var(--ease-out) both;
}
.hero__social a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.hero__social a:hover {
  color: var(--brand-light);
  border-bottom-color: var(--brand);
}
.hero__social svg { width: 18px; height: 18px; fill: currentColor; }

.hero__image {
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeInUp .8s .15s var(--ease-out) both;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
/* Gradient border effect */
.hero__image::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,.4), transparent 50%, rgba(16,185,129,.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (min-width: 980px) {
  .hero { padding: 100px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
  padding: 80px 0;
  position: relative;
}
.section--alt {
  background: var(--soft);
}

/* Decorative top border for alt sections */
.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.2), transparent);
}

.section__header { margin-bottom: 2.75rem; }
.section__header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .6rem;
  position: relative;
  display: inline-block;
}
.section__header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 560px;
}

/* ================================================
   PROJECT CARDS
   ================================================ */
.grid { display: grid; gap: 24px; }

.cards {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease-out), border-color .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,.3), transparent 40%, transparent 60%, rgba(16,185,129,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139,92,246,.06);
}
.card:hover::before { opacity: 1; }

.card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.card__media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(14,15,26,.6));
  pointer-events: none;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  line-height: 1.35;
}
.card__body p {
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.65;
  flex: 1;
}

/* Featured / wide card */
.card--featured { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .card--featured { flex-direction: row; }
  .card--featured .card__media {
    flex: 0 0 48%;
    aspect-ratio: auto;
  }
  .card--featured .card__body {
    justify-content: center;
    padding: 32px;
  }
}

/* No-image card style */
.card--no-image {
  background: linear-gradient(135deg, var(--card) 0%, rgba(139,92,246,.04) 100%);
}
.card--no-image .card__body { padding: 28px; }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: .75rem;
}
.tags li {
  font-size: .75rem;
  font-weight: 500;
  color: var(--brand-light);
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.15);
  padding: .2rem .6rem;
  border-radius: 20px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.card:hover .tags li {
  background: rgba(139,92,246,.12);
  border-color: rgba(139,92,246,.25);
}

/* ================================================
   SKILLS
   ================================================ */
.skills-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-card h3::before {
  content: '';
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  flex-shrink: 0;
}

.skill-card--wide { grid-column: 1 / -1; }

.bullets { margin: 0; padding-left: 1.2rem; list-style: none; }
.bullets li {
  margin: .4rem 0;
  color: var(--text-secondary);
  font-size: .92rem;
  position: relative;
  padding-left: .4rem;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .5;
}

/* ================================================
   LANGUAGES
   ================================================ */
.lang-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 640px;
}
@media (min-width: 480px) {
  .lang-grid { grid-template-columns: 1fr 1fr; }
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color .3s var(--ease);
}
.lang-item:hover { border-color: var(--border-hover); }

.lang-item .lang-label {
  display: flex;
  justify-content: space-between;
  font-size: .92rem;
  font-weight: 500;
}
.lang-item .lang-label span:last-child {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
}

.lang-bar {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.lang-bar__fill {
  height: 100%;
  width: var(--level);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 3px;
  transition: width .8s var(--ease-out);
  box-shadow: 0 0 8px rgba(139,92,246,.3);
}

/* ================================================
   EXPERIENCE — Timeline
   ================================================ */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent), rgba(16,185,129,.2));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
  transition: background .3s var(--ease);
}
.timeline__item:hover::before { background: var(--brand); }

/* Connector line from dot to card */
.timeline__item::after {
  content: '';
  position: absolute;
  left: -20px;
  top: 31px;
  width: 16px;
  height: 1px;
  background: var(--border);
}

.timeline__item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.timeline__item p { margin-bottom: .35rem; font-size: .93rem; }
.timeline__item p:last-child { margin-bottom: 0; }

/* ================================================
   EDUCATION
   ================================================ */
.edu-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .edu-grid { grid-template-columns: 1fr 1fr; }
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 3px solid var(--brand);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.edu-card:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.edu-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }

/* ================================================
   CERTIFICATIONS
   ================================================ */
.cert-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

.cert-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cert-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.cert-year {
  font-family: 'Fira Code', monospace;
  font-size: .8rem;
  color: var(--brand-light);
  flex-shrink: 0;
  padding: 2px 8px;
  background: rgba(139,92,246,.08);
  border-radius: var(--radius-xs);
}
.cert-info { font-size: .92rem; font-weight: 500; }
.cert-info .cert-issuer {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
  margin-top: 3px;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-info p { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.contact-info a { color: var(--brand-light); }
.contact-info a:hover { color: var(--text); }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.25rem;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: .93rem;
  font-weight: 500;
  padding: .5rem 0;
  transition: color .25s var(--ease);
}
.contact-links a:hover { color: var(--brand-light); }
.contact-links svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; opacity: .7; }

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .25s var(--ease);
}
.contact-social a:hover {
  color: var(--brand-light);
  border-color: var(--brand);
  background: rgba(139,92,246,.06);
  box-shadow: 0 0 16px rgba(139,92,246,.12);
}
.contact-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Contact form */
.contact-form {
  display: grid;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form label span {
  display: block;
  color: var(--text-secondary);
  font-size: .86rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: rgba(6,6,11,.5);
  color: var(--text);
  font-family: inherit;
  font-size: .93rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); opacity: .5; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: rgba(139,92,246,.02);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.15), transparent);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer__inner p { margin: 0; color: var(--muted); font-size: .86rem; }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all .25s var(--ease);
}
.footer-social a:hover {
  color: var(--brand-light);
  border-color: var(--border);
  background: rgba(139,92,246,.04);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered reveals */
.reveal { opacity: 0; transform: translateY(24px); }

@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeInUp .7s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@supports not (animation-timeline: view()) {
  .reveal.revealed { animation: fadeInUp .6s var(--ease-out) both; }
}

/* Staggered children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 180ms; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 480px) {
  .hero__text h1 { font-size: 1.8rem; }
  .section { padding: 52px 0; }
  .container { padding-inline: 16px; }
  .card__body { padding: 18px; }
  .timeline { padding-left: 30px; }
  .timeline__item { padding: 18px; }
  .timeline__item::before { left: -27px; width: 10px; height: 10px; }
  .timeline__item::after { left: -17px; width: 12px; }
  .contact-form { padding: 22px; }
}

@media (max-width: 768px) {
  .hero { padding-top: 44px; }
  .hero__grid { gap: 32px; }
  .hero__social { gap: 16px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (min-width: 1200px) {
  .container { padding-inline: 32px; }
  .section { padding: 96px 0; }
  .hero { padding: 112px 0 96px; }
}

/* Selection color */
::selection {
  background: rgba(139,92,246,.25);
  color: #fff;
}
