/* ============================================================
   SAARAH HOSSAIN — PORTFOLIO
   style.css
   ============================================================ */

/* 0. GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Surfaces */
  --bg:           #FAFAF8;
  --bg-alt:       #F2F5F5;
  --bg-card:      #FFFFFF;
  --bg-tag:       #E8F2F2;

  /* Text */
  --text:         #1E1E2E;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;

  /* Accent */
  --accent:       #1A7070;
  --accent-hover: #135858;
  --accent-light: #E0EEEE;

  /* Borders */
  --border:       #E2E8E8;
  --border-strong:#C4D4D4;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);

  /* Radius */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;

  /* Transitions */
  --transition:   0.2s ease;

  /* Layout */
  --max-width:    1100px;
  --nav-height:   64px;
}

[data-theme="dark"] {
  --bg:           #0F1117;
  --bg-alt:       #161B27;
  --bg-card:      #1A1F2E;
  --bg-tag:       #0D2E2E;

  --text:         #E8EAF0;
  --text-muted:   #9CA3AF;
  --text-light:   #6B7280;

  --accent:       #2AADAD;
  --accent-hover: #22C4C4;
  --accent-light: #0A2E2E;

  --border:       #252D3E;
  --border-strong:#364055;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

/* 3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

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

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  white-space: nowrap;
}

.section-heading::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border-strong);
  min-width: 2rem;
}

/* 5. SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* 6. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--accent); }

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Dark mode toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--transition), border-color var(--transition);
}
.hamburger:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 98;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover {
  color: var(--accent);
  background: var(--accent-light);
}
.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.mobile-menu-close:hover { color: var(--accent); }

/* 7. HERO
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-name {
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-french {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,112,112,0.25);
}

/* Hero photo */
.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 260px;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 3px solid var(--accent);
  box-shadow: 8px 8px 0 var(--accent-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.hero-photo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--accent-light);
}

/* 8. ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

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

.about-sidebar {}

.about-languages {
  margin-bottom: 2rem;
}

.about-languages h3 {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.lang-item .lang-flag {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}
.lang-item .lang-name { font-weight: 500; }
.lang-item .lang-level { color: var(--text-muted); }

.about-fun {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}
.about-fun strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* 9. EXPERIENCE / TIMELINE
   ============================================================ */
.experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.experience-header .section-heading {
  margin-bottom: 0;
  flex: 1;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border-strong);
  border-radius: 1px;
}

.timeline-group {
  margin-bottom: 3rem;
}

.timeline-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline-group-label::before {
  content: '';
  position: absolute;
  left: -2.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.timeline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.875rem;
  top: 1.5rem;
  width: 8px;
  height: 8px;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  transition: border-color var(--transition);
}
.timeline-item:hover::before {
  border-color: var(--accent);
}

.timeline-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.timeline-role { color: var(--text); }

.timeline-dates {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-org {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-org .location {
  font-weight: 400;
  color: var(--text-light);
}

.timeline-bullets {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  list-style: none;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: -1rem;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.15rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.edu-projects {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.edu-projects strong {
  color: var(--text);
  font-weight: 500;
}

/* 10. COMMUNITY & VOLUNTEERING
   ============================================================ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.community-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.community-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.community-card h3 {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.community-card .role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.community-card .period {
  font-size: 0.8rem;
  color: var(--text-light);
}

.community-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* More volunteering compact list */
.more-volunteering {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.more-volunteering h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.more-volunteering ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
.more-volunteering li {
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
}
.more-volunteering li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* SO callout */
.so-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  max-width: 480px;
}
.so-callout:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--text);
}
.so-callout .so-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.so-callout .so-text strong {
  display: block;
  font-size: 0.9rem;
}
.so-callout .so-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.so-callout .so-arrow {
  margin-left: auto;
  color: var(--text-light);
  font-size: 1rem;
}

/* Community extras row */
.community-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.25rem;
}
.community-extras span {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.community-extras span::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* 11. PROJECTS
   ============================================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-folder {
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}
.project-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.project-links a:hover { color: var(--accent); }
.project-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.project-card h3 {
  font-size: 1rem;
  color: var(--text);
}

.project-card .wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #B45309;
  background: #FEF3C7;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
[data-theme="dark"] .project-card .wip-badge {
  color: #FCD34D;
  background: #451A03;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.project-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.project-stars::before {
  content: '★';
  color: #F59E0B;
}

.see-all-wrap {
  text-align: center;
}
.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.25rem;
  transition: all var(--transition);
}
.see-all-link:hover {
  background: var(--accent);
  color: #fff;
}
.see-all-link::after { content: ' →'; }

/* 12. SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-category h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg-tag);
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}
.tag:hover {
  background: var(--accent);
  color: #fff;
}

/* 13. CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cert-group h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.cert-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cert-badge::after {
  content: '↗';
  font-size: 0.7rem;
  color: var(--text-light);
}
.cert-badge:hover::after {
  color: var(--accent);
}

/* 14. CONTACT
   ============================================================ */
.contact-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  margin-bottom: 1rem;
}

.contact-inner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  margin-bottom: 2rem;
  transition: all var(--transition);
}
.contact-email:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,112,112,0.3);
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 15. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}
.footer-text a {
  color: var(--text-muted);
}
.footer-text a:hover { color: var(--accent); }

.footer-french {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

/* 16. TARDIS EASTER EGG
   ============================================================ */
.tardis-egg {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: tardis-float 4s ease-in-out infinite;
}
.tardis-egg:hover {
  animation: none;
  transform: scale(1.15) translateY(-3px);
}
.tardis-egg:hover .tardis-sign {
  opacity: 1;
}
.tardis-box {
  width: 22px;
  height: 30px;
  background: #003B8E;
  border-radius: 2px 2px 1px 1px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,59,142,0.4);
}
.tardis-box::before {
  content: '';
  display: block;
  width: 100%;
  height: 7px;
  background: #004FC4;
  border-bottom: 1px solid #0A3A9E;
}
.tardis-box::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 1px;
}
.tardis-light {
  width: 4px;
  height: 4px;
  background: #FFF176;
  border-radius: 50%;
  margin: 0 auto;
  margin-bottom: -2px;
  box-shadow: 0 0 4px #FFF176, 0 0 8px #FFF176;
  animation: tardis-pulse 2s ease-in-out infinite;
}
.tardis-sign {
  font-size: 5px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

@keyframes tardis-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes tardis-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #FFF176, 0 0 8px #FFF176; }
  50%       { opacity: 0.5; box-shadow: 0 0 2px #FFF176; }
}

/* 17. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26,112,112,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,112,112,0.45);
}

/* 18. SCROLL FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 19. HIDDEN (for project filter)
   ============================================================ */
.project-card[hidden] {
  display: none;
}

/* 20. RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-photo-wrap {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .hero-photo {
    width: 200px;
    height: 230px;
  }
  .hero-links {
    justify-content: center;
  }

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

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

  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* 21. RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }

  .hero { padding: 3rem 0 2.5rem; min-height: auto; }
  .hero-photo {
    width: 160px;
    height: 185px;
  }

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

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .tardis-egg {
    position: static;
    margin: 0.5rem auto 0;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
