/* Jawad Parvez Portfolio — full-page parallax + GSAP */

:root {
  --navy: #1e3a5f;
  --navy-dark: #0a1628;
  --navy-mid: #0f2744;
  --navy-light: #2d5a8a;
  --slate: #334155;
  --muted: #64748b;
  --body: #e2e8f0;
  --body-dark: #1f2937;
  --bg: #060d18;
  --bg-tint: rgba(30, 58, 95, 0.08);
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --radius: 16px;
  --nav-h: 68px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --section-gradient: linear-gradient(180deg, transparent, var(--bg-tint), transparent);
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: #93c5fd;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ── Particles & global parallax ── */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.global-parallax {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.gp-orb-1 {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
  top: -15%;
  right: -10%;
  animation: float-orb 18s ease-in-out infinite;
}

.gp-orb-2 {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent 70%);
  bottom: 20%;
  left: -12%;
  animation: float-orb 22s ease-in-out infinite reverse;
}

.gp-orb-3 {
  width: 35vw;
  height: 35vw;
  max-width: 400px;
  max-height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  top: 45%;
  left: 35%;
  animation: float-orb 26s ease-in-out infinite;
}

.gp-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}

body.has-cursor .cursor-glow {
  opacity: 1;
}

#main {
  position: relative;
  z-index: 2;
}

/* ── Glass ── */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.glass-dark {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
}

.nav-logo:hover {
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  padding: 0.5rem 1.1rem !important;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  border-radius: 8px;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  background: transparent;
}

.section-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  will-change: transform;
}

.deco-ring-1 {
  width: 500px;
  height: 500px;
  top: 10%;
  right: -8%;
}

.deco-ring-2 {
  width: 300px;
  height: 300px;
  bottom: 15%;
  left: -5%;
  border-color: rgba(59, 130, 246, 0.15);
}

.deco-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(6, 13, 24, 0.8), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: inline-block;
}

.hero-title .accent {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.25rem;
}

.hero-summary {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.hero-meta a {
  color: rgba(255, 255, 255, 0.65);
}

.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-hint span {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  position: relative;
}

.scroll-hint span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.2; }
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

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

.btn-lg {
  padding: 1rem 2rem;
  width: 100%;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-loader {
  display: block;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Sections ── */

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-band {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0;
  position: relative;
  background: transparent;
}

.section-bg,
.parallax-band-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
  background: var(--section-gradient);
}

.section-bg-light,
.section-bg-dots,
.parallax-band-bg,
.parallax-band-bg.band-alt {
  background: var(--section-gradient);
}

.section-bg-dots {
  background-image: none;
  mask-image: none;
}

.parallax-band-bg .band-mesh,
.band-mesh-alt {
  background:
    radial-gradient(ellipse 50% 40% at 20% 50%, rgba(59, 130, 246, 0.06), transparent),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(6, 182, 212, 0.05), transparent);
  animation: mesh-shift 12s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

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

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

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.section-sub {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  max-width: 560px;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-card {
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  display: inline;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-2);
}

.stat-text {
  font-size: 2rem !important;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* ── Skills ── */

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

.skill-group {
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.skill-group:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.skill-group h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.tags span {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), transform var(--transition);
}

.skill-group:hover .tags span {
  background: rgba(59, 130, 246, 0.12);
}

.tags span:hover {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.2);
}

/* ── Timeline ── */

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

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(255, 255, 255, 0.1));
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px var(--accent-glow);
}

.timeline-content {
  padding: 1.5rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-content:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.timeline-meta time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.timeline-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.timeline-content h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.timeline-company {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.timeline-content ul {
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.timeline-content li {
  margin-bottom: 0.35rem;
}

/* ── Projects ── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.project-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  background: var(--glass);
  border-color: rgba(59, 130, 246, 0.25);
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.project-card.featured .project-icon {
  margin-bottom: 0;
  width: 64px;
  height: 64px;
  font-size: 0.8rem;
}

.project-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tags span {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.8);
}

.project-link {
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-link:hover {
  color: #fff;
}

/* ── Education ── */

.edu-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 560px;
  transition: transform var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
}

.edu-icon {
  font-size: 2.5rem;
}

.edu-card h3 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.edu-card p {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Contact ── */

.contact-section {
  padding: 5rem 0;
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

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

.contact-item {
  display: block;
  padding: 1.1rem 1.25rem;
  color: #fff;
  transition: transform var(--transition), border-color var(--transition);
}

.contact-item:hover {
  transform: translateX(6px);
  color: #fff;
  border-color: rgba(59, 130, 246, 0.3);
}

.contact-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.3rem;
}

/* ── Contact Form ── */

.contact-form {
  padding: 2rem;
}

.contact-form h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 0.75rem;
}

/* ── Toast ── */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(15, 39, 68, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}

/* ── Footer ── */

.footer {
  position: relative;
  z-index: 2;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  padding: 2rem 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── GSAP initial states ── */

/* GSAP sets initial hidden state in JS — keep content visible if JS fails */
.gsap-fade,
.gsap-reveal {
  opacity: 1;
  transform: none;
}

.js-ready .gsap-fade,
.js-ready .gsap-reveal {
  opacity: 0;
}

/* ── Responsive ── */

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

  .project-card.featured {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(6, 13, 24, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

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

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .cursor-glow {
    display: none;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

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

  .js-ready .gsap-fade,
  .js-ready .gsap-reveal,
  .gsap-fade,
  .gsap-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
