/* ============================================================
   PORTFOLIO ALEXANDRE JOURDAN — MAIN STYLESHEET
   ============================================================ */


/* ---- CSS Custom Properties ---- */
:root {
  --navy:       #233A5F;
  --navy-dark:  #1a2d4a;
  --navy-light: #2e4d7a;
  --navy-alpha: rgba(35, 58, 95, 0.08);
  --dark:       #1a1a2e;
  --gray:       #6b7280;
  --gray-light: #f8f9fb;
  --gray-mid:   #e5e7eb;
  --white:      #ffffff;
  --font:       'Poppins', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 1px 3px rgba(35,58,95,0.08), 0 1px 2px rgba(35,58,95,0.06);
  --shadow:     0 4px 24px rgba(35,58,95,0.10);
  --shadow-lg:  0 10px 40px rgba(35,58,95,0.15);
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  24px;
  --max-w:      1200px;
  --nav-h:      72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ---- Skip Link (Accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  border-color: var(--gray-mid);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark);
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.75; }

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-logo span {
  color: var(--navy);
}

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

.nav-links a {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--navy-alpha);
}
.nav-links a.active {
  color: var(--white);
  background: var(--navy);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(35,58,95,0.25);
}

.navbar.scrolled .nav-inner {
  border-bottom: none;
}

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

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-mid);
  color: var(--gray);
  font-size: 0.95rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.nav-social a:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--navy-alpha);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--navy-alpha); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--navy);
  background: var(--navy-alpha);
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  z-index: 100;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  padding: 0.5rem;
  font-family: inherit;
  opacity: 0;
  animation: scrollIndicatorFadeIn 1s ease 1.5s forwards;
}
.scroll-indicator-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(35,58,95,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 1.8s ease-in-out infinite;
  transition: border-color var(--transition), background var(--transition);
}
.scroll-indicator:hover .scroll-indicator-ring {
  border-color: var(--navy);
  background: rgba(35,58,95,0.06);
}
.scroll-indicator-ring svg {
  color: var(--navy);
  opacity: 0.7;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes scrollIndicatorFadeIn {
  to { opacity: 1; }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 5rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--navy-dark); }
.back-to-top.on-dark {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.back-to-top.on-dark:hover {
  background: var(--gray-light);
}

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

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-alpha);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-title span { color: var(--navy); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35,58,95,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-mid);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { gap: 0.75rem; }

/* ============================================================
   HERO SECTION (Home)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(35,58,95,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero-content {
  max-width: 560px;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--navy);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  margin-top: 0.2rem;
}

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

.hero-photo-ring {
  width: 340px; height: 340px;
  border-radius: 50%;
  padding: 6px;
  position: relative;
  background: var(--white);
}

/* Gradient rotating ring */
.hero-photo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--navy) 0%,
    rgba(35,58,95,0.5) 30%,
    rgba(35,58,95,0.08) 55%,
    rgba(35,58,95,0.4) 80%,
    var(--navy) 100%
  );
  animation: spin 12s linear infinite reverse;
  z-index: -1;
}

/* Outer dashed slow ring */
.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px dashed rgba(35,58,95,0.25);
  animation: spin 35s linear infinite;
}

.hero-photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(10%);
  transition: filter var(--transition);
}
.hero-photo-ring:hover img { filter: grayscale(0%); }

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

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #eef1f7 0%, #f8f9fb 60%, #e8edf5 100%);
  border-bottom: 1px solid var(--gray-mid);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(35,58,95,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(35,58,95,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1rem;
}
.page-breadcrumb a { color: var(--navy); }
.page-breadcrumb a:hover { text-decoration: underline; }

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.page-hero-title span { color: var(--navy); }

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 100%;
  line-height: 1.7;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy-alpha);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-mid);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0.3rem; /* aligned with center of date badge (≈23px tall, center ≈11.5px) */
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  transition: background var(--transition);
}

.timeline-item:hover .timeline-dot { background: var(--navy); }

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

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-alpha);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.timeline-company {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.timeline-org {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
}

.timeline-duration {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(35,58,95,0.08);
  border-radius: 999px;
  padding: .15rem .6rem;
  margin-left: .5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-list li {
  font-size: 0.88rem;
  color: var(--gray);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}

.timeline-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 0.75rem;
  top: 0.05rem;
}

/* Timeline role row — logo alongside title + org */
.timeline-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-role-row > div {
  flex: 1;
  min-width: 0;
}

/* Company logo inline with role/org */
.timeline-logo {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.timeline-item:hover .timeline-logo { opacity: 1; }

/* ============================================================
   SKILL BARS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.skill-item {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-item:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.skill-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.skill-bar-track {
  height: 5px;
  background: var(--gray-mid);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--navy);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tag skills */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-mid);
  color: var(--dark);
  background: var(--white);
  transition: all var(--transition);
}
.tag:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tag.active {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}
.tag.active:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  cursor: default;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card-header {
  background: var(--gray-light);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--gray-mid);
}

.project-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy-alpha);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy);
  flex-shrink: 0;
}

.project-card-company {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.project-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--navy-alpha);
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

.service-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-list li {
  font-size: 0.82rem;
  color: var(--gray);
  padding-left: 1.1rem;
  position: relative;
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.blog-card-cover {
  height: 160px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-mid);
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.blog-card-excerpt {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  margin-bottom: 0.75rem;
}
.contact-info-item:hover { border-color: var(--navy); }

.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy-alpha);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-info-value a {
  transition: color var(--transition);
}
.contact-info-value a:hover { color: var(--navy); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(35,58,95,0.1);
}
.form-control::placeholder { color: var(--gray); font-size: 0.875rem; }

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

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

.about-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--gray-mid);
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}
.about-badge-icon {
  font-size: 1.25rem;
}
.about-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}
.about-badge-sub {
  font-size: 0.72rem;
  color: var(--gray);
}

.about-section { margin-bottom: 2.5rem; }

.about-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-mid);
}

.about-section p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.about-value {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-value span { color: var(--navy); }

/* Education */
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-mid);
}
.edu-item:last-child { border-bottom: none; }

.edu-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy-alpha);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
}

.edu-degree {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.edu-school {
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 0.15rem;
}
.edu-year {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.15rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: var(--nav-h);
}

.page-404-inner {
  max-width: 480px;
}

.page-404-num {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  opacity: 0.12;
  letter-spacing: -0.04em;
  margin-bottom: -1rem;
  position: relative;
  z-index: 0;
}

.page-404-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-404-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-social-link:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ---- Hide skill percentages ---- */
.skill-pct { display: none; }

/* ============================================================
   PROJECTS HOVER GRID
   ============================================================ */
.projects-hover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-hover-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
}

.project-hover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.project-hover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  color: var(--navy);
  font-size: 2.5rem;
  gap: 0.5rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.project-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 58, 95, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-overlay-logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.project-overlay-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.project-hover-card:hover .project-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-hover-card:hover .project-hover-img,
.project-hover-card:hover .project-hover-placeholder {
  transform: scale(1.04);
}

.project-hover-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.project-hover-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

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

.project-hover-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}

/* ---- Logos band bigger ---- */
.logos-band-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.logos-band-inner img {
  height: 110px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
}
.logos-band-inner img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ---- Footer 2-col ---- */
.footer-top-2col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ============================================================
   HOME — FEATURED SECTIONS
   ============================================================ */
.home-featured-exp {
  background: var(--gray-light);
  border-top: 1px solid var(--gray-mid);
}

.exp-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Logos band */
.logos-band {
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  padding: 1.75rem 0;
  overflow: hidden;
}

.logos-track {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.logos-track img {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
  flex-shrink: 0;
}
.logos-track img:hover { opacity: 0.85; filter: grayscale(0); }

/* CTA Banner */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.cta-banner .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
}

.cta-banner .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.cta-banner .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.divider {
  height: 1px;
  background: var(--gray-mid);
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   EXPERIENCE PAGE LAYOUT
   ============================================================ */
.exp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* No sticky — sidebar scrolls naturally with the page */
.exp-timeline-col,
.exp-sidebar {
  /* just normal grid children */
}

/* Skills section on index — responsive wrapper */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo-wrap { position: static !important; max-width: 320px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

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

  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .hero-greeting, .hero-actions { justify-content: center; }
  .hero-photo-wrap { order: -1; margin: 0 auto; }
  .hero-photo-ring { width: 260px; height: 260px; }
  .hero-desc { max-width: 100%; }

  .footer-top, .footer-top-2col { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }

  .exp-preview-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-layout { gap: 2rem; }
  .projects-hover-grid { grid-template-columns: repeat(2, 1fr); }

  /* Index skills responsive */
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* About: no sticky on mobile */
  .about-photo-wrap { position: static !important; max-width: 100%; }

  /* Experience page: single column on mobile (natural DOM order: timeline → sidebar) */
  .exp-layout {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Logo band on mobile */
  .logos-band-inner { gap: 1.5rem; }
  .logos-band-inner img { height: 64px !important; max-width: 140px !important; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero-title { font-size: 2.75rem; }
  .hero-photo-ring { width: 220px; height: 220px; }
  .projects-hover-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 4rem; right: 1.25rem; }

  /* Hide project overlay logos on small screens to avoid overlap */
  .project-overlay-logo { display: none; }

  /* Logos band on very small screens */
  .logos-band-inner img { height: 52px !important; max-width: 110px !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .back-to-top, .nav-mobile { display: none !important; }
  body { padding-top: 0; }
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: opacity;
}
#page-loader.active { opacity: 1; pointer-events: all; }

/* ---- GIF Preloader ---- */
#page-loader-gif {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.96);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-overlay.active { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  line-height: 1;
}
.lightbox-close:hover { color: var(--white); }

.lightbox-img-wrap {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav-prev { left: -56px; }
.lightbox-nav-next { right: -56px; }
.lightbox-nav.hidden { display: none; }

.lightbox-info {
  text-align: center;
}
.lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.lightbox-counter {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.lightbox-no-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.lightbox-no-img svg { opacity: 0.3; }

/* Footer description word-break fix */
.footer-brand p {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: manual;
}

/* ============================================================
   RESPONSIVE EXTRA
   ============================================================ */
@media (max-width: 768px) {
  .lightbox-nav-prev { left: -8px; }
  .lightbox-nav-next { right: -8px; }
}

@media (max-width: 520px) {
  .lightbox-nav { display: none; }
  .lightbox-inner { gap: 0.75rem; }
}
