/* =============================================
   JOSEPH SAN NICOLAS — Personal Site
   Flat Design System | 2025
   Compiled from src/sass/main.scss
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --navy:        #0d1b2a;
  --navy-light:  #1b2a40;
  --blue:        #1a56db;
  --blue-light:  #3b82f6;
  --teal:        #0d9488;
  --teal-light:  #14b8a6;
  --bg:          #f5f7fa;
  --bg-alt:      #edf2f7;
  --white:       #ffffff;
  --text:        #1a202c;
  --body:        #4a5568;
  --muted:       #a0aec0;
  --border:      #e2e8f0;
  --border-dark: #cbd5e0;
  --red:         #e53e3e;
  --gold:        #d69e2e;
  --green:       #38a169;

  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:       68px;
  --max-w:       1200px;
  --gutter:      2rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 5rem 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }

.page-content { padding-top: var(--nav-h); }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---- Typography ---- */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.75;
}

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

.divider {
  width: 48px;
  height: 4px;
  background: var(--blue-light);
  margin-bottom: 1.75rem;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer;
  line-height: 1;
}
.btn--primary {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
}
.btn--primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn--outline-dark:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}
.btn--teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--teal:hover {
  background: #0a7c72;
  border-color: #0a7c72;
}
.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.72rem;
}

/* ====================================
   NAVIGATION
   ==================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--blue-light);
}

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

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav__logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav__logo-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-light);
  transition: width 0.2s;
}
.nav__link:hover,
.nav__link.active {
  color: var(--white);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta {
  background: var(--blue-light) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 0;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--blue) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ====================================
   HOME HERO
   ==================================== */
.hero {
  background: var(--navy);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  top: 0; right: 0;
  width: 48%;
  height: 100%;
  background: var(--navy-light);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero__accent-v {
  position: absolute;
  top: 0; right: calc(48% - 4px);
  width: 4px;
  height: 100%;
  background: var(--blue-light);
  z-index: 1;
}

.hero__dots {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(6, 8px);
  grid-template-rows: repeat(8, 8px);
  gap: 12px;
  z-index: 1;
  opacity: 0.12;
}
.hero__dots span {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--white);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--blue-light);
}

.hero__name {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.hero__name span { color: var(--blue-light); }

.hero__title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.4rem;
}

.hero__location {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ====================================
   STATS BAR
   ==================================== */
.stats-bar {
  background: var(--blue-light);
  padding: 1.75rem 0;
}
.stats-bar__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat { text-align: center; color: var(--white); }
.stat__number {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-top: 0.2rem;
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

.about__photo { position: relative; }

.about__photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border: 3px solid var(--navy);
  position: relative;
  overflow: hidden;
}
.about__photo-frame::after {
  content: '';
  position: absolute;
  top: 14px; left: 14px;
  right: -14px; bottom: -14px;
  border: 3px solid var(--blue-light);
  z-index: -1;
  pointer-events: none;
}
.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__bio {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about__bio strong { color: var(--text); font-weight: 700; }
.about__bio em { font-style: italic; color: var(--text); }

.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2.25rem;
}
.skill-tag {
  padding: 0.3rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-dark);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ====================================
   FEATURE CARDS (Home)
   ==================================== */
.feature-card {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--blue-light);
}
.feature-card:hover { border-color: var(--blue-light); }

.feature-card__icon {
  width: 52px; height: 52px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card__text {
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.feature-card__link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.feature-card__link:hover { text-decoration: underline; }

/* ====================================
   PHILOSOPHY QUOTE
   ==================================== */
.philosophy {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.philosophy__quote {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  max-width: 820px;
  margin: 1rem auto 1.5rem;
  font-style: italic;
}
.philosophy__attr {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

/* ====================================
   PAGE HERO (Sub-pages)
   ==================================== */
.page-hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  border-bottom: 4px solid var(--blue-light);
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  top: 0; right: 0;
  width: 35%;
  height: 100%;
  background: var(--navy-light);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.page-hero__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-hero__label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--blue-light);
}
.page-hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.page-hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* ====================================
   RESUME GALLERY
   ==================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1.25rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all 0.18s;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.resume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resume-card {
  background: var(--white);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.resume-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.resume-card__thumb {
  aspect-ratio: 8.5/11;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  overflow: hidden;
  position: relative;
}
.resume-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.resume-card__body { padding: 1.25rem; }

.resume-card__tag {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-alt);
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.resume-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.resume-card__date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.resume-card__actions {
  display: flex;
  gap: 0.5rem;
}
.resume-card__actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  font-size: 0.68rem;
}

/* ====================================
   TIMELINE
   ==================================== */
.timeline-section { padding: 5rem 0; }

.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--border);
  z-index: 0;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.timeline-entry__left { padding-top: 0.5rem; }
.timeline-entry__right { padding-top: 0.5rem; }
.timeline-entry__left { text-align: right; }
.timeline-entry__right { text-align: left; }

.timeline-entry__dot {
  width: 18px;
  height: 18px;
  background: var(--blue-light);
  border: 3px solid var(--bg);
  outline: 3px solid var(--blue-light);
  flex-shrink: 0;
  margin-top: 0.8rem;
  align-self: flex-start;
  justify-self: center;
}

.timeline-entry__date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 1.5rem;
  text-align: left;
}

.timeline-card__type {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.timeline-card__type--work { background: #dbeafe; color: #1e40af; }
.timeline-card__type--edu  { background: #d1fae5; color: #065f46; }
.timeline-card__type--proj { background: #fef3c7; color: #92400e; }
.timeline-card__type--cert { background: #f3e8ff; color: #5b21b6; }

.timeline-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-card__org {
  font-size: 0.82rem;
  color: var(--body);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.timeline-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.timeline-card__desc a {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 600;
}
.timeline-card__desc a:hover { text-decoration: underline; }

.timeline-year-marker {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.timeline-year-marker span {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
}

/* ====================================
   BIOGRAPHY / BLOG
   ==================================== */
.bio-featured {
  background: var(--white);
  border: 2px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
  overflow: hidden;
}

.bio-featured__image {
  background: var(--navy-light);
  min-height: 380px;
  overflow: hidden;
  position: relative;
}
.bio-featured__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.bio-featured__content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-featured__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--blue-light);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.bio-featured__title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.bio-featured__excerpt {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.bio-featured__meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}
.blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-card__image {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card__image img { transform: scale(1.03); }

.blog-card__body { padding: 1.5rem; }

.blog-card__tag {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-alt);
  color: var(--body);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.blog-card__meta {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.blog-card__meta span + span::before {
  content: '·';
  margin-right: 1rem;
}

/* ====================================
   CONTACT
   ==================================== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-info-card {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.contact-info-card__icon {
  width: 56px; height: 56px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.4rem;
}

.contact-info-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-info-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.contact-info-card__value a:hover { color: var(--blue-light); }

.contact-form {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 3rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.form-input,
.form-textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.18s, background 0.18s;
  width: 100%;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue-light);
  background: var(--white);
}
.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 5rem 0 2.5rem;
  border-top: 4px solid var(--blue-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.footer__brand-title {
  font-size: 0.68rem;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}
.footer__bio {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 320px;
}

.footer__heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.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 0.18s;
}
.footer__link:hover { color: var(--blue-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color 0.18s, color 0.18s;
}
.footer__social-link:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

/* ====================================
   RESUME CARD EXTRAS
   ==================================== */
.resume-card__thumb { position: relative; }

.resume-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--navy);
  color: var(--blue-light);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  z-index: 1;
}
.resume-card__badge--empty {
  background: var(--bg-alt);
  color: var(--muted);
}
.resume-card__thumb--empty img { opacity: 0.4; filter: grayscale(1); }

.resume-btn-disabled {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px dashed var(--border);
  color: var(--muted);
  cursor: not-allowed;
  background: var(--bg-alt);
  user-select: none;
}

/* ====================================
   PREVIEW MODAL
   ==================================== */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.preview-modal[hidden] { display: none; }

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(3px);
}

.preview-modal__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  width: 100%;
  max-width: 980px;
  height: 90vh;
  max-height: 940px;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--navy);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--blue-light);
}

.preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 62px;
  background: var(--navy);
  border-bottom: 3px solid var(--blue-light);
  flex-shrink: 0;
  gap: 1rem;
}

.preview-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
  min-width: 0;
}

.preview-modal__type {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--blue-light);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  align-self: flex-start;
}

.preview-modal__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-modal__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.preview-modal__close {
  width: 38px; height: 38px;
  border: 2px solid rgba(255,255,255,0.22);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}
.preview-modal__close:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.preview-modal__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}

.preview-frame {
  width: 100%; height: 100%;
  border: none;
  display: block;
  background: var(--white);
}

.preview-image-wrap {
  width: 100%; height: 100%;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
}
.preview-image {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.preview-docx {
  width: 100%; height: 100%;
  overflow-y: auto;
  background: #dedede;
  padding: 2rem 1rem;
}
.preview-docx__page {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  padding: 4rem 4.5rem;
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #111;
  box-shadow: 0 2px 16px rgba(0,0,0,0.14);
}
.preview-docx__page h1,
.preview-docx__page h2,
.preview-docx__page h3 {
  font-family: Arial, Helvetica, sans-serif;
  margin: 1.5rem 0 0.5rem;
  color: #000;
  line-height: 1.2;
}
.preview-docx__page p  { margin-bottom: 0.65rem; }
.preview-docx__page ul,
.preview-docx__page ol { margin: 0.5rem 0 0.75rem 1.5rem; }
.preview-docx__page li { margin-bottom: 0.25rem; }
.preview-docx__page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.preview-docx__page td,
.preview-docx__page th {
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  vertical-align: top;
}

.preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.preview-unsupported {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 3rem 2rem;
  gap: 1rem;
}
.preview-unsupported__icon { font-size: 3rem; line-height: 1; }
.preview-unsupported p {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 440px;
  color: var(--body);
}
.preview-unsupported p strong { color: var(--text); }
.preview-unsupported code {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  font-size: 0.82em;
  font-family: 'Courier New', monospace;
  color: var(--navy);
  margin: 0.2rem 0;
}

@media (max-width: 640px) {
  .preview-modal { padding: 0; }
  .preview-modal__box {
    height: 100dvh;
    max-height: 100dvh;
    border: none;
    box-shadow: none;
  }
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
  .grid-3      { grid-template-columns: repeat(2, 1fr); }
  .grid-4      { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__photo { max-width: 280px; margin: 0 auto; }
  .resume-grid  { grid-template-columns: repeat(2, 1fr); }
  .blog-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  /* Timeline: stack to left */
  .timeline::before { left: 16px; }
  .timeline-entry {
    grid-template-columns: 0 24px 1fr;
    gap: 1.25rem;
  }
  .timeline-entry__left { display: none; }
  .timeline-entry__dot  { margin-top: 0.6rem; }
}

@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }
  .section { padding: 3.5rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .resume-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid   { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .bio-featured { grid-template-columns: 1fr; }
  .bio-featured__image { min-height: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1.25rem; text-align: center; }
  /* Nav mobile */
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--navy);
    padding: 1.25rem var(--gutter) 1.5rem;
    gap: 1rem;
    border-bottom: 3px solid var(--blue-light);
    z-index: 999;
  }
  .nav__link::after { display: none; }
  .nav__cta { display: inline-flex !important; }
  .nav__hamburger { display: flex; }
  /* Hero mobile */
  .hero__bg-shape { display: none; }
  .hero__accent-v { display: none; }
  .hero__name { font-size: 3.5rem; }
  .stats-bar__inner { gap: 2rem; }
  .stat__number { font-size: 2rem; }
}

@media (max-width: 480px) {
  .resume-grid { grid-template-columns: 1fr; }
  .hero__name  { font-size: 2.75rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ====================================
   SOCIAL PAGE
   ==================================== */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.social-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.social-panel {
  background: var(--white);
  border: 2px solid var(--border);
  overflow: hidden;
}

/* Panel header */
.social-panel__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border);
}
.social-panel__header--x  { background: #000; color: #fff; border-bottom-color: #333; }
.social-panel__header--li { background: #0a66c2; color: #fff; border-bottom-color: #0856a5; }
.social-panel__header--fb { background: #1877f2; color: #fff; border-bottom-color: #1264d3; }

.social-panel__platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.social-panel__platform-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 0.2rem;
  color: inherit;
}

.social-panel__handle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.social-panel__handle:hover { text-decoration: underline; }

.social-panel__follow-btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.social-panel__follow-btn:hover { opacity: 0.85; }
.social-panel__follow-btn--x  { background: #fff; color: #000; }
.social-panel__follow-btn--li { background: #fff; color: #0a66c2; }
.social-panel__follow-btn--fb { background: #fff; color: #1877f2; }

/* Panel body */
.social-panel__body { padding: 0; }

.social-panel__body--feed {
  background: #15202b;
}
.social-panel__body--feed a[class="twitter-timeline"] {
  display: block;
  padding: 2rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  text-decoration: none;
}

.social-panel__body--badge {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background: var(--bg);
}

/* Facebook "can't embed" card */
.social-panel__body--fb-note {
  padding: 2rem 1.5rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.social-panel__note {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}
.social-panel__ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #1877f2;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.social-panel__ext-link:hover { background: #1264d3; }

/* LinkedIn badge override — force dark theme display */
.LI-profile-badge { max-width: 330px; }

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