/* ============================================================
   Shaniur.com — Main Stylesheet
   Colour Palette: Blue #1a5fa8 | Red #c0392b | Green #27ae60
   Mode: Light
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --blue-dark:    #0d3b6e;
  --blue-primary: #1a5fa8;
  --blue-mid:     #2475cc;
  --blue-light:   #dceeff;
  --blue-xlight:  #f0f6ff;

  --red-primary:  #c0392b;
  --red-light:    #fdecea;

  --green-primary:#27ae60;
  --green-light:  #e8f8ef;

  --bg-page:      #f7f9fc;
  --bg-white:     #ffffff;
  --bg-alt:       #f0f5fb;

  --text-dark:    #12243a;
  --text-body:    #2d3e53;
  --text-muted:   #607080;
  --text-xmuted:  #8fa0b0;

  --border:       #d8e2ef;
  --border-light: #eaf0f8;

  --shadow-sm:    0 2px 8px rgba(26,95,168,.08);
  --shadow-md:    0 4px 20px rgba(26,95,168,.13);
  --shadow-lg:    0 8px 40px rgba(26,95,168,.18);

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  --nav-h:        70px;
  --transition:   0.35s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: 'DM Sans', Tahoma, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section-title {
  font-family: 'DM Sans', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .4rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 2.8rem;
}

.section-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: .6rem;
}

section { padding: 90px 0; }

/* fade-in-up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .12s ease, transform .12s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26,95,168,.10);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-primary);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: .8; }

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

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-body);
  padding: .3rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--blue-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--blue-primary);
  color: #fff !important;
  padding: .5rem 1.2rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f6ff 0%, #fafcff 50%, #f0faf5 100%);
  padding-top: var(--nav-h);
}

/* Animated background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--blue-primary);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 350px; height: 350px;
  background: var(--green-primary);
  bottom: -80px; left: -80px;
  animation-delay: 3s;
}
.hero-blob-3 {
  width: 250px; height: 250px;
  background: var(--red-primary);
  top: 40%; right: 25%;
  animation-delay: 6s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(20px,-15px) scale(1.05); }
  66%       { transform: translate(-10px,20px) scale(.95); }
}

/* SVG animated grid lines in hero */
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .04;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 60px 0;
}

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

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  color: var(--blue-primary);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
  animation: fadeInDown .12s ease both;
}

.hero-greeting .dot {
  width: 7px; height: 7px;
  background: var(--green-primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

.hero-name {
  font-family: 'DM Sans', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeInUp .14s .02s ease both;
}

.hero-name span { color: var(--blue-primary); }

.hero-titles {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.6rem;
  min-height: 2.2rem;
  animation: fadeInUp .14s .04s ease both;
}

.hero-titles .typed-title {
  color: var(--text-body);
  font-weight: 600;
  border-right: 2px solid var(--blue-primary);
  padding-right: 3px;
}

.hero-summary {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 560px;
  animation: fadeInUp .14s .06s ease both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.2rem;
  animation: fadeInUp .14s .08s ease both;
}

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

.hero-stat-num {
  font-family: 'DM Sans', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

.hero-stat:nth-child(2) .hero-stat-num { color: var(--green-primary); }
.hero-stat:nth-child(3) .hero-stat-num { color: var(--red-primary); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp .14s .10s ease both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26,95,168,.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,95,168,.4);
}

.btn-outline {
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary);
}
.btn-outline:hover {
  background: var(--blue-xlight);
  transform: translateY(-2px);
}

.btn-linkedin {
  border: 2px solid #0a66c2;
  color: #0a66c2;
  background: #fff;
}
.btn-linkedin:hover {
  background: #0a66c2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(10,102,194,.3);
}

/* Hero logo panel */
.hero-logo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeInRight .16s .04s ease both;
}

.hero-logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.hero-logo-wrap svg { width: 100%; height: 100%; }

/* Profile photo inside hero logo wrap */
.hero-photo {
  position: absolute;
  /* inset 8 px from container edge so the gradient ring SVG shows around it */
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 50%;
  object-fit: cover;
  /* favour the face — top-centre crop */
  object-position: center 15%;
  /* soft shadow behind the photo */
  box-shadow: 0 8px 40px rgba(26,95,168,.22), 0 2px 12px rgba(0,0,0,.12);
  z-index: 1;
}

/* Orbiting dots */
.orbit {
  position: absolute;
  inset: -20px;
  animation: spin 12s linear infinite;
}
.orbit-2 {
  inset: -40px;
  animation: spin 20s linear infinite reverse;
  opacity: .5;
}

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

.orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform-origin: 0 0;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-xmuted);
  font-size: .75rem;
  letter-spacing: .1em;
  animation: bounce 2s ease infinite;
}

.scroll-hint svg { opacity: .5; }

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── About / Summary ──────────────────────────────────────── */
#about {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
}

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

.about-highlight {
  border-left: 3px solid var(--blue-primary);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.05rem;
  margin: 1.8rem 0;
}

.about-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-primary);
  margin-bottom: 1.2rem;
}

.about-info-row {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.about-info-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: .9rem;
  color: var(--text-body);
}

.about-info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-primary);
}

.about-info-item strong {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .1rem;
}

.about-divider {
  height: 1px;
  background: var(--border-light);
  margin: 1rem 0;
}

/* ── Competencies ─────────────────────────────────────────── */
#competencies {
  background: var(--bg-alt);
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.comp-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}

.comp-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-icon.blue   { background: var(--blue-xlight); color: var(--blue-primary); }
.comp-icon.green  { background: var(--green-light);  color: var(--green-primary); }
.comp-icon.red    { background: var(--red-light);    color: var(--red-primary); }

.comp-card h3 {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ── Experience ───────────────────────────────────────────── */
#experience {
  background: var(--bg-white);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-primary), var(--green-primary), var(--red-primary));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin-bottom: 3rem;
}

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

.tl-dot {
  position: absolute;
  left: -2rem;
  top: .4rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--blue-primary);
  z-index: 1;
  transition: transform var(--transition);
}

.tl-item:nth-child(2) .tl-dot { border-color: var(--blue-primary); }
.tl-item:nth-child(3) .tl-dot { border-color: var(--green-primary); }
.tl-item:nth-child(4) .tl-dot { border-color: var(--green-primary); }
.tl-item:nth-child(5) .tl-dot { border-color: var(--red-primary); }
.tl-item:nth-child(6) .tl-dot { border-color: var(--blue-primary); }
.tl-item:nth-child(7) .tl-dot { border-color: var(--text-muted); }

.tl-item:hover .tl-dot { transform: scale(1.3); }

.tl-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.tl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateX(4px);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .8rem;
}

.tl-org {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.tl-period {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue-xlight);
  color: var(--blue-primary);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.tl-role {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: .25rem;
}

.tl-location {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.tl-desc {
  font-size: .93rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.tl-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.tl-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.tl-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  margin-top: .5rem;
}

.tl-item:nth-child(3) .tl-list li::before { background: var(--green-primary); }
.tl-item:nth-child(4) .tl-list li::before { background: var(--green-primary); }
.tl-item:nth-child(5) .tl-list li::before { background: var(--red-primary); }

.tl-achievement {
  margin-top: 1rem;
  padding: .9rem 1rem;
  background: var(--blue-xlight);
  border-left: 3px solid var(--blue-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  color: var(--text-body);
  font-style: italic;
}

/* "Earlier Career" sub-section */
.earlier-section {
  margin-top: 3rem;
}

.earlier-section h3 {
  font-family: 'DM Sans', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border-light);
}

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

.earlier-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.earlier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.earlier-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .2rem;
}

.earlier-card .role {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .15rem;
}

.earlier-card .period {
  font-size: .78rem;
  color: var(--text-xmuted);
  margin-bottom: .9rem;
}

.earlier-card p {
  font-size: .87rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ── Education ────────────────────────────────────────────── */
#education {
  background: var(--bg-alt);
}

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

.edu-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.edu-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-icon.blue  { background: var(--blue-xlight); color: var(--blue-primary); }
.edu-icon.green { background: var(--green-light); color: var(--green-primary); }

.edu-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .25rem;
}

.edu-card .institution {
  font-size: .88rem;
  color: var(--blue-primary);
  font-weight: 600;
  margin-bottom: .2rem;
}

.edu-card .period {
  font-size: .82rem;
  color: var(--text-muted);
}

/* Languages */
.lang-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: .6rem 1.2rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.lang-pill .lang-level {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  background: var(--bg-white);
}

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

.contact-info h3 {
  font-family: 'DM Sans', Tahoma, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: .7rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-linkedin {
  margin-bottom: 2rem;
}

.contact-note {
  background: var(--green-light);
  border: 1px solid rgba(39,174,96,.2);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  font-size: .85rem;
  color: var(--text-body);
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}

.contact-note svg { flex-shrink: 0; margin-top: 1px; color: var(--green-primary); }

/* Contact form */
.contact-form-wrap {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.6rem;
}

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

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

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(26,95,168,.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.honeypot { display: none !important; }

.form-submit { width: 100%; justify-content: center; margin-top: .5rem; }

.form-msg {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
}
.form-msg.success {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--green-light);
  color: #1a7a3e;
  border: 1px solid rgba(39,174,96,.3);
}
.form-msg.error {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--red-light);
  color: var(--red-primary);
  border: 1px solid rgba(192,57,43,.3);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.footer-logo { color: #fff; opacity: .9; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-top: .5rem;
}

/* ── Back to top ──────────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--blue-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,95,168,.35);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 900;
}
#back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-logo-panel { order: -1; }
  .hero-logo-wrap { width: 140px; height: 140px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline { padding-left: 1.5rem; }
  .tl-dot { left: -1.5rem; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; box-shadow: var(--shadow-md); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
  .comp-grid { grid-template-columns: 1fr; }
  .earlier-grid { grid-template-columns: 1fr; }

  /* Timeline: stack period badge below company name, above role */
  .tl-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
  }
  .tl-org-group {
    width: 100%;
  }
  .tl-period {
    /* sits on its own line, indented to align with company name (past logo) */
    margin-left: 0;
  }

  /* Shrink logo slightly on small screens so name has more room */
  .tl-logo-wrap {
    width: 60px;
    height: 36px;
  }
}

/* ── Company / institution logos ─────────────────────────── */

/* Timeline logo slot — sits left of company name */
.tl-org-group {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
}

.tl-logo-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  overflow: hidden;
}

.tl-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Earlier career card logo */
.earlier-card-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .55rem;
}

.earlier-logo-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  overflow: hidden;
}

.earlier-logo-wrap .tl-logo {
  max-width: 100%;
  max-height: 100%;
}

.earlier-card-header h4 { margin-bottom: 0; }

/* Education logo — replaces the generic SVG icon */
.edu-logo-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px;
  overflow: hidden;
}

.edu-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* The fallback SVG icon inside edu-logo-wrap — hidden until img fails */
.edu-logo-wrap .edu-icon {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
}

/* Language flag images */
.lang-flag-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  border: 1px solid var(--border-light);
}

.lang-flag-fallback {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
  font-family: monospace;
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  #navbar, #back-top, .scroll-hint, .hero-blob, .hero-logo-panel { display: none; }
  section { padding: 30px 0; }
}
