/* ============================================================
   GWF.NINJA — Main Stylesheet
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --clr-bg:           #ffffff;
  --clr-bg-alt:       #f8fafc;
  --clr-bg-dark:      #080e1f;
  --clr-bg-dark2:     #0d1630;
  --clr-primary:      #2563eb;
  --clr-secondary:    #0ea5e9;
  --clr-grad:         linear-gradient(135deg, #2563eb, #0ea5e9);
  --clr-text:         #0f172a;
  --clr-text-muted:   #64748b;
  --clr-text-light:   #94a3b8;
  --clr-border:       #e2e8f0;
  --clr-white:        #ffffff;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 5rem;
  --sp-3xl: 8rem;

  /* Layout */
  --max-w:  1200px;
  --pad:    1.5rem;

  /* Effects */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.12);
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --ease:       0.3s ease;

  /* Nav */
  --nav-h: 72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.text-grad {
  background: var(--clr-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section        { padding: 4rem 0; }
.section--alt   { background: var(--clr-bg-alt); }
.section--dark  { background: var(--clr-bg-dark); }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--clr-grad);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: var(--sp-sm);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--clr-grad);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.5);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}

.btn--outline:hover {
  background: rgba(37,99,235,0.06);
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.nav--scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--clr-white);
  transition: color var(--ease);
}

.nav__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  transition: all var(--ease);
}

.nav__linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10,102,194,0.08);
}

.nav--scrolled .nav__linkedin {
  border-color: rgba(0,0,0,0.15);
  color: var(--clr-text-muted);
}

.nav--scrolled .nav__linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10,102,194,0.08);
}

.nav__logo span {
  background: var(--clr-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav--scrolled .nav__logo { color: var(--clr-text); }

.nav__logo-ninja {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  margin-left: 1px;
  -webkit-text-fill-color: rgba(255,255,255,0.7);
}

.nav--scrolled .nav__logo-ninja {
  color: var(--clr-text-muted);
  -webkit-text-fill-color: var(--clr-text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-grad);
  border-radius: 2px;
  transition: width var(--ease);
}

.nav__link:hover { color: var(--clr-white); }
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }
.nav__link--active { color: var(--clr-white); }

.nav--scrolled .nav__link         { color: var(--clr-text-muted); }
.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active { color: var(--clr-text); }

.nav__resume {
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: var(--ease);
}

.nav--scrolled .nav__toggle span { background: var(--clr-text); }

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   7. HERO — HOME
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--clr-bg-dark);
  overflow: hidden;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Top-right glow */
.hero__glow-1 {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
  top: -300px; right: -200px;
  pointer-events: none;
}

/* Bottom-left glow */
.hero__glow-2 {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 65%);
  bottom: -200px; left: -150px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 6rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.hero__left {
  flex: 1;
  min-width: 0;
  max-width: 640px;
}

.hero__right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* push photo top down to align with the h1 "Garrett" (eyebrow height + margin) */
  padding-top: 2.75rem;
}

.hero__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--clr-bg-dark) 0%, transparent 25%);
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.hero__photo {
  width: 380px;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--clr-secondary);
  border-radius: 2px;
}

.hero__name {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 0.4rem;
}

.hero__title {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.hero__tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

/* Hero stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero__stat {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--ease), background var(--ease);
}

.hero__stat:hover {
  border-color: rgba(14,165,233,0.25);
  background: rgba(14,165,233,0.04);
}

.hero__stat-value {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero__scroll i { font-size: 0.9rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   8. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--clr-bg-dark);
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.page-hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.page-hero__label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--clr-secondary);
  border-radius: 2px;
}

.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: -0.035em;
}

.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.85rem;
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================================
   9. EXPERTISE CARDS (home)
   ============================================================ */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.exp-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.exp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: transparent;
}

.exp-card:hover::before { transform: scaleX(1); }

.exp-card__icon {
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  background: var(--clr-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.exp-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.exp-card__desc {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ============================================================
   10. SKILLS (home)
   ============================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.skill-group {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--ease);
}

.skill-group:hover {
  border-color: rgba(14,165,233,0.25);
  background: rgba(14,165,233,0.04);
}

.skill-group__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

.section-label--light {
  color: var(--clr-secondary);
}

.section-label--light::before {
  background: var(--clr-secondary);
}

.section-title--light {
  color: var(--clr-white);
}

/* ============================================================
   11. HOME — CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--clr-bg-dark);
  padding: 3rem 0;
}

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip__text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--clr-white);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cta-strip__text p {
  color: rgba(255,255,255,0.45);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* ============================================================
   11. WRITING CARDS (home)
   ============================================================ */
.writing__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

.writing-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: all var(--ease);
  color: inherit;
}

.writing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
  transform: translateX(4px);
}

.writing-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: #0a66c2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.writing-card__body { flex: 1; }

.writing-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.writing-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.writing-card__tags {
  font-size: 0.68rem;
  color: var(--clr-primary);
  font-weight: 600;
}

.writing-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.writing-card__desc {
  font-size: 0.83rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.writing-card__arrow {
  color: var(--clr-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--ease);
}

.writing-card:hover .writing-card__arrow { transform: translateX(4px); }

/* ============================================================
   12. TIMELINE (experience page)
   ============================================================ */
.timeline-wrap {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-secondary), transparent);
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 3rem;
}

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

/* Dot */
.tl-item::before {
  content: '';
  position: absolute;
  left: -6px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--clr-grad);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  z-index: 1;
}

.tl-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--ease);
}

.tl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.18);
}

.tl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tl-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(37,99,235,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.tl-company {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: 600;
}

.tl-role {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tl-bullets li {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.tl-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clr-secondary);
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: rgba(37,99,235,0.07);
  color: var(--clr-primary);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============================================================
   12. CERTIFICATIONS
   ============================================================ */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--ease);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.18);
  transform: translateY(-2px);
}

.cert-badge {
  width: 64px; height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-text);
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin-top: 0.15rem;
}

.cert-date {
  font-size: 0.68rem;
  color: var(--clr-text-light);
  margin-top: 0.1rem;
}

/* ============================================================
   13. PROJECTS
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.proj-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}

.proj-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.proj-card__top {
  height: 6px;
  background: var(--clr-grad);
}

.proj-card__body {
  padding: 1.75rem 1.75rem 1.25rem;
  flex: 1;
}

.proj-category {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(37,99,235,0.08);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

.proj-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.proj-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

.proj-impact {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(37,99,235,0.05);
  border-left: 3px solid var(--clr-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--clr-primary);
  font-weight: 600;
}

.proj-card__foot {
  padding: 1.1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-primary);
  transition: gap var(--ease);
}

.proj-link:hover { gap: 0.6rem; }

/* ============================================================
   14. ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--clr-text); }

.about-highlights { display: flex; flex-direction: column; gap: 1rem; }

.hl-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  transition: all var(--ease);
}

.hl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.18);
}

.hl-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--clr-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hl-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.hl-desc {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* Education */
.edu-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 720px;
  transition: all var(--ease);
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.18);
}

.edu-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--clr-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.edu-school { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.25rem; }
.edu-degree { font-size: 0.9rem; color: var(--clr-text-muted); margin-bottom: 0.25rem; }
.edu-dates  { font-size: 0.75rem; font-weight: 700; color: var(--clr-primary); }

.edu-notes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--clr-bg-dark);
  padding: 3.5rem 0 0;
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer__brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.footer__brand-name span {
  background: var(--clr-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer__nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--ease);
}

.footer__link:hover { color: var(--clr-white); }

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  transition: all var(--ease);
}

.footer__social a:hover {
  border-color: rgba(14,165,233,0.4);
  color: var(--clr-secondary);
  background: rgba(14,165,233,0.05);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   16. SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--clr-grad);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ============================================================
   17. ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   17. LARGE SCREENS
   ============================================================ */
@media (min-width: 1440px) {
  html { font-size: 17px; }
  :root {
    --max-w: 1400px;
    --pad:   2rem;
  }
  .section { padding: 5.5rem 0; }
  .hero__content {
    padding-top:    calc(var(--nav-h) + 4rem);
    padding-bottom: 8rem;
  }
}

@media (min-width: 1920px) {
  html { font-size: 18px; }
  :root {
    --max-w: 1680px;
    --pad:   2.5rem;
  }
  .section { padding: 7rem 0; }
}

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .hero__content {
    flex-direction: column-reverse;
    gap: 2.5rem;
  }

  .hero__right { width: 100%; justify-content: center; }

  .hero__photo {
    width: 260px;
    height: 340px;
  }

  .hero__photo-wrap::before {
    background: linear-gradient(to top, var(--clr-bg-dark) 0%, transparent 20%);
  }

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

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-bg-dark2);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--pad);
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }

  .nav__links.open { display: flex; }

  .nav__link {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav__link:last-child { border-bottom: none; }
  .nav__toggle { display: flex; }

  .section { padding: 2.5rem 0; }

  .footer__main { flex-direction: column; gap: 2rem; }
}

@media (max-width: 520px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
  .projects__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; }
}
