/* =====================================================
   SLEEK PORTFOLIO — BASE LAYOUT STYLESHEET
   Foundation styles. styles.css applies the theme on top.
   ===================================================== */

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; --banner-h: 36px; }
body { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.7; overflow-x: hidden; min-height: 100vh; }
h2 { line-height: 1.2; }
h3 { line-height: 1.3; }
h4 { line-height: 1.4; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; transition: color 0.2s; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SKIP LINK ────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 1rem; background: #ea580c; color: #fff !important; padding: 0.6rem 1.25rem; border-radius: 0 0 8px 8px; z-index: 9999; font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: top 0.2s ease; box-shadow: 0 4px 16px rgba(234,88,12,0.4); }
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

/* ── PAGE TRANSITION ──────────────────────────────── */
.page-transition { position: fixed; inset: 0; background: #060d1a; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity 0.3s; }

/* ── SCROLL PROGRESS ──────────────────────────────── */
/* Width is driven by --scroll-pct CSS custom property set from JS */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px;
  width: var(--scroll-pct, 0%);
  z-index: 9997; transition: width 0.1s linear;
}

/* ── LOADING SCREEN ───────────────────────────────── */
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9996; transition: opacity 0.4s, visibility 0.4s; animation: loading-timeout 0s 3s forwards; }
@keyframes loading-timeout { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; border-top-width: 3px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FAB ──────────────────────────────────────────── */
/* Visibility is controlled by the .visible class toggled from JS */
.fab {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 500; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  transform: translateY(10px);
}
.fab.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ── NAVIGATION ───────────────────────────────────── */
nav { position: fixed; top: 36px; left: 0; right: 0; z-index: 900; padding: 0 1.5rem; height: 64px; overflow: visible; transition: top 0.25s ease; }
/* JS adds .nav--scrolled when scrollY > 100 */
nav.nav--scrolled { background: rgba(6,13,26,0.98) !important; }
.nav-container { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; }
.logo-icon { width: 36px; height: 36px; border-radius: 8px; background: #ea580c; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; }
.logo-text { color: inherit; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.9rem; transition: background 0.2s, color 0.2s; }
.menu-toggle { display: none; font-size: 1.2rem; padding: 0.5rem; color: inherit; border-radius: 8px; transition: background 0.2s; }

/* ── Desktop More dropdown ────────────────────────── */
.nav-more { position: relative; }
.nav-more-toggle { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.9rem; transition: color 0.2s; cursor: pointer; }
.nav-more-icon { font-size: 0.7rem; transition: transform 0.25s; }
.nav-more.open .nav-more-icon { transform: rotate(180deg); }
.nav-more-menu { position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 180px; border-radius: 10px; padding: 0.5rem; display: none; flex-direction: column; gap: 0.1rem; z-index: 100; }
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu a { display: block; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.875rem; }

/* Hide mobile-only elements on desktop */
.nav-drawer-header,
.nav-back-item,
.nav-more-item,
.nav-more-btn-item { display: none; }

/* ── CONTAINER ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── SECTIONS ─────────────────────────────────────── */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-family: 'Sora', sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; height: 3px; width: 60px; border-radius: 2px; margin: 0.5rem auto 0; background: #ea580c; }
.section-subtitle { font-size: 1rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }
.section-heading-primary { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: #f97316; }
.section-heading-spaced { margin-top: 1.5rem; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(64px + var(--banner-h, 36px));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Animated background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.hero-orb--1 { width: 600px; height: 600px; background: #ea580c; top: -200px; left: -150px; animation-duration: 14s; }
.hero-orb--2 { width: 400px; height: 400px; background: #f97316; bottom: -100px; right: -100px; animation-duration: 10s; animation-delay: -4s; }
.hero-orb--3 { width: 300px; height: 300px; background: #1a3560; top: 40%; left: 40%; animation-duration: 16s; animation-delay: -8s; opacity: 0.25; }
@keyframes orb-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Layout */
.hero-container {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5rem;
  position: relative; z-index: 1; width: 100%;
}

/* ── LEFT CONTENT ─────────────────────────────────── */
.hero-content { display: flex; flex-direction: column; gap: 0; }

/* Availability badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #86efac;
  width: fit-content; margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Name */
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.highlight { color: #f97316; }
.hero-surname {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0;
  margin-top: 0.2rem;
}

/* Static role tags */
.hero-role-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.hero-role-tag {
  padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(234,88,12,0.1);
  border: 1px solid rgba(234,88,12,0.3);
  color: #fb923c;
}

/* Hero subtitle (static dot-separated roles) */
.hero-subtitle {
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

/* Description */
.description {
  font-size: 1rem; line-height: 1.8;
  max-width: 520px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}
.description strong { color: #fff; font-weight: 700; }

/* CTA buttons */
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Stats */
.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: 3.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  width: fit-content;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: #f97316; line-height: 1;
}
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); white-space: nowrap; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* Social links */
.hero-socials {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero-social {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.hero-social:hover {
  border-color: #ea580c; color: #f97316;
  background: rgba(234,88,12,0.1);
  transform: translateY(-2px);
}
.hero-social svg { display: block; }
.hero-social-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.12); margin: 0 0.25rem; }
.hero-resume-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700;
  border: 1px solid rgba(234,88,12,0.4);
  color: #f97316;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-resume-link:hover { background: rgba(234,88,12,0.12); border-color: #ea580c; transform: translateY(-2px); }

/* ── RIGHT: IMAGE ─────────────────────────────────── */
.hero-image-wrap {
  position: relative;
  width: 380px; height: 380px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Rotating ring */
.hero-image-ring {
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(#060d1a, #060d1a) padding-box,
    conic-gradient(from 0deg, #ea580c 0%, #f97316 25%, transparent 50%, #ea580c 75%, #f97316 100%) border-box;
  animation: ring-spin 24s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* Glow */
.hero-image-glow {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,0.25) 0%, transparent 70%);
  filter: blur(24px);
  animation: glow-pulse 3s ease-in-out infinite alternate;
}
@keyframes glow-pulse { from { opacity: 0.6; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }

/* Photo */
.hero-photo {
  width: 340px; height: 340px;
  object-fit: cover; border-radius: 50%;
  position: relative; z-index: 2;
  border: 4px solid rgba(234,88,12,0.3);
  box-shadow: 0 0 0 8px rgba(234,88,12,0.08), 0 32px 80px rgba(0,0,0,0.6);
  background: #ffffff;
}

/* Floating skill chips */
.hero-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(10,22,40,0.9);
  border: 1px solid rgba(234,88,12,0.35);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  animation: chip-float 4s ease-in-out infinite alternate;
}
.hero-chip i { color: #f97316; font-size: 0.75rem; }
.hero-chip--tl { top: 20px;  left: -30px;  animation-delay: 0s; }
.hero-chip--tr { top: 40px;  right: -30px; animation-delay: -1s; }
.hero-chip--bl { bottom: 50px; left: -20px; animation-delay: -2s; }
.hero-chip--br { bottom: 30px; right: -20px; animation-delay: -3s; }
@keyframes chip-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  z-index: 2;
}
.hero-scroll-arrows {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hero-scroll-arrow {
  font-size: 1rem;
  color: #ea580c !important;
  display: block;
  animation: arrow-cascade 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(234,88,12,0.6));
}
.hero-scroll-arrow--1 { animation-delay: 0s;   opacity: 0.4; }
.hero-scroll-arrow--2 { animation-delay: 0.3s; opacity: 0.4; }
.hero-scroll-arrow--3 { animation-delay: 0.6s; opacity: 0.4; }

@keyframes arrow-cascade {
  0%   { opacity: 0.2; transform: translateY(-4px); }
  40%  { opacity: 1;   transform: translateY(2px);  color: #f97316; }
  80%  { opacity: 0.3; transform: translateY(6px);  }
  100% { opacity: 0.2; transform: translateY(-4px); }
}

/* ── HERO RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 6rem;
  }
  .hero-image-wrap { margin: 0 auto; width: 280px; height: 280px; }
  .hero-photo { width: 260px; height: 260px; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .hero-cta { justify-content: center; }
  .hero-stats { margin: 0 auto 2rem; }
  .hero-socials { justify-content: center; }
  .description { margin-left: auto; margin-right: auto; }
  .hero-chip--tl { left: -10px; }
  .hero-chip--tr { right: -10px; }
  .hero-chip--bl { left: -10px; }
  .hero-chip--br { right: -10px; }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-image-wrap { width: 220px; height: 220px; }
  .hero-photo { width: 200px; height: 200px; }
  .hero-chip { display: none; }
  .hero-stats { gap: 0.75rem; padding: 0.85rem 1rem; flex-wrap: nowrap; width: 100%; justify-content: space-between; }
  .hero-stat-num { font-size: 1.1rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .hero-stat-divider { height: 28px; }
  .hero-cta { flex-wrap: nowrap; gap: 0.5rem; }
  .hero-cta .btn { flex: 1; justify-content: center; font-size: 0.85rem; padding: 0.65rem 0.75rem; white-space: nowrap; }
}

/* ── ABOUT ────────────────────────────────────────── */
.about-content { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 1rem; font-size: 1rem; line-height: 1.8; }
.about-text p { max-width: 65ch; }
.about-seeking { padding: 1rem 1.25rem; border-radius: 8px; font-size: 0.95rem; }
.about-highlights { display: flex; flex-direction: column; gap: 1rem; }
.highlight-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; border-radius: 12px; }
.highlight-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; color: #fff; }
.highlight-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.highlight-item p { font-size: 0.85rem; }

/* Learning widget */
.learning-widget { padding: 1.25rem; border-radius: 12px; }
.learning-widget-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.learning-pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.learning-title { font-size: 0.85rem; font-weight: 700; }
.learning-items { display: flex; flex-direction: column; gap: 0.5rem; }
.learning-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; }
.learning-item i { width: 16px; text-align: center; color: #f97316; }

/* ── SKILLS / ACADEMICS GRID ──────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.skill-category { padding: 1.5rem; border-radius: 14px; }
.skill-category-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.skill-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; color: #fff; }
.skill-title { font-size: 1rem; font-weight: 700; }
.skill-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.75rem; }
.skill-item { padding: 0.5rem 0; font-size: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.skill-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.skill-item:last-child { border-bottom: none; }

/* Skill progress bars */
.skill-bar-wrap { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.skill-bar-item { display: flex; flex-direction: column; gap: 0.3rem; }
.skill-bar-label { display: flex; justify-content: space-between; font-size: 0.8rem; }
.skill-bar-name { font-weight: 600; }
.skill-bar-pct { opacity: 0.5; font-size: 0.75rem; }
.skill-bar-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.skill-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
  width: 0%; transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-bar-fill.animated { width: var(--pct); }

/* ── SECTION DIVIDERS ─────────────────────────────── */
.section-divider {
  width: 100%; overflow: hidden; line-height: 0;
  margin-top: -1px;
}
.section-divider svg { display: block; width: 100%; }

/* ── ACTIVE NAV LINK ──────────────────────────────── */
.nav-links a.active-nav {
  color: #f97316 !important;
  background: rgba(234,88,12,0.08);
  border-radius: 6px;
}

/* ── TESTIMONIAL INITIALS AVATAR ──────────────────── */
.testimonial-avatar-initials {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
}

/* ── CERT BADGE LINKS ─────────────────────────────── */
.cert-item { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; font-size: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 0.5rem; }
.cert-item:last-child { border-bottom: none; }
.cert-item-name { display: flex; align-items: center; gap: 0.5rem; }
.cert-item-name::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.cert-verify { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid rgba(234,88,12,0.35); color: #f97316; white-space: nowrap; transition: background 0.2s; }
.cert-verify:hover { background: rgba(234,88,12,0.12); }

/* ── CONTACT FORM STATUS ──────────────────────────── */
.form-status.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
.form-status.error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25);  color: #fca5a5; }

/* ── AWARDS ───────────────────────────────────────── */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.award-card { padding: 2rem 1.5rem; border-radius: 14px; text-align: center; }
.award-badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 1rem; color: #fff; }
.award-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.award-meta { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem; }
.award-description { font-size: 0.875rem; line-height: 1.7; }

/* ── PROJECTS ─────────────────────────────────────── */
.projects-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { border-radius: 14px; overflow: hidden; }
.project-image { position: relative; overflow: hidden; height: 200px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.project-card:hover .project-overlay { opacity: 1; }
.project-links { display: flex; gap: 0.75rem; }
.project-link { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; background: #fff; color: #ea580c; }
.project-content { padding: 1.25rem; }
.project-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-description { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-tag { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

/* Code preview card */
.project-image--code { background: #0a1628; display: flex; align-items: center; justify-content: center; }
.project-code-preview { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.25rem; font-family: 'Courier New', monospace; font-size: 0.78rem; width: 100%; }
.code-line { display: block; }
.code-tag { color: #60a5fa; }
.code-attr { color: #f97316; }
.code-val { color: #86efac; }

/* Case study banner */
.case-study-banner { padding: 1.5rem 2rem; border-radius: 14px; margin-top: 0; margin-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.case-study-badge { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(234,88,12,0.15); color: #fb923c; display: inline-block; margin-bottom: 0.5rem; }
.case-study-banner-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.case-study-banner-desc { font-size: 0.875rem; line-height: 1.6; max-width: 480px; }
.case-study-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.case-study-stat { display: flex; flex-direction: column; }
.cs-stat-value { font-size: 1.25rem; font-weight: 800; color: #f97316; }
.cs-stat-label { font-size: 0.72rem; opacity: 0.7; }
.case-study-banner-btn { padding: 0.7rem 1.4rem; border-radius: 8px; font-size: 0.875rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; transition: background 0.2s, transform 0.2s; flex-shrink: 0; }
.case-study-banner-btn:hover { transform: translateY(-2px); }

/* ── TIMELINE ─────────────────────────────────────── */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 1rem 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, #ea580c, #f97316); }
.timeline-item { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 1.5rem; margin-bottom: 2.5rem; align-items: start; }
.timeline-item:nth-child(odd) .timeline-date { text-align: right; order: 0; }
.timeline-item:nth-child(odd) .timeline-dot { order: 1; }
.timeline-item:nth-child(odd) .timeline-card { order: 2; }
.timeline-item:nth-child(even) .timeline-card { order: 0; }
.timeline-item:nth-child(even) .timeline-dot { order: 1; }
.timeline-item:nth-child(even) .timeline-date { order: 2; text-align: left; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #ea580c; background: #060d1a; margin-top: 0.5rem; position: relative; z-index: 1; justify-self: center; }
.timeline-date { font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; white-space: nowrap; align-self: start; margin-top: 0.25rem; display: inline-block; }
.timeline-card { padding: 1.25rem 1.5rem; border-radius: 14px; }
.timeline-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: 999px; display: inline-block; margin-bottom: 0.5rem; }
.timeline-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.timeline-desc { font-size: 0.875rem; line-height: 1.7; }
.timeline-quote { padding: 0.75rem 1rem; border-left: 3px solid #ea580c; border-radius: 0 8px 8px 0; margin: 0.75rem 0; font-style: italic; font-size: 0.875rem; }
.timeline-quote-lead { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.7; }
.timeline-quote-author { font-size: 0.8rem; font-weight: 600; margin-top: 0.25rem; }

/* ── TESTIMONIALS ─────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card { padding: 1.75rem; border-radius: 14px; display: flex; flex-direction: column; }
.testimonial-quote { margin-bottom: 1rem; font-size: 1.5rem; opacity: 0.4; }
.testimonial-text { font-size: 0.9rem; line-height: 1.8; font-style: italic; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.testimonial-name { font-size: 0.9rem; font-weight: 700; }
.testimonial-role { font-size: 0.78rem; opacity: 0.6; }

/* ── LANGUAGES ────────────────────────────────────── */
.languages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.language-card { padding: 1.25rem; border-radius: 14px; }
.language-flag { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 0.75rem; }
.language-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.language-bar { height: 6px; border-radius: 3px; overflow: hidden; margin: 0.5rem 0; background: rgba(255,255,255,0.1); }
.language-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.level-native, .level-fluent, .level-conversational { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; display: inline-block; }

/* ── CONTACT SECTION ──────────────────────────────── */
.contact { padding: 5rem 0; }
.contact-vision { margin-bottom: 4rem; }

/* Vision cards */
.contact-heading { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.contact-muted { font-size: 0.95rem; line-height: 1.8; }

/* Get in touch layout */
.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }

/* Contact info column */
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; color: #fff; }
.contact-item h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-item p { font-size: 0.9rem; }
.contact-link { font-size: 0.9rem; transition: color 0.2s; }

/* Follow me row */
.contact-follow { margin-top: 0.5rem; padding: 1.25rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.contact-follow-label { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.15rem; }
.contact-follow-sub { font-size: 0.78rem; opacity: 0.6; margin-bottom: 0.75rem; }
.contact-social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.contact-social-icon { width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.contact-social-icon:hover { transform: translateY(-2px); border-color: #ea580c; background: rgba(234,88,12,0.12); }
.contact-social-icon svg { display: block; }

/* Contact form */
.contact-form { padding: 2rem; border-radius: 18px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border-radius: 8px; font-family: inherit; font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-status { font-size: 0.875rem; margin-top: 0.75rem; padding: 0.6rem 1rem; border-radius: 6px; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn, .btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; border: 1px solid transparent; font-family: inherit; }
.btn-primary, .btn { background: linear-gradient(135deg, #ea580c, #f97316); color: #fff; }
.btn-primary:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234,88,12,0.35); }
.btn-secondary { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: #ea580c; }

/* ── FOOTER ───────────────────────────────────────── */
footer { padding: 4rem 0 0; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo { display: inline-flex; }
.footer-tagline { font-size: 0.85rem; font-weight: 600; opacity: 0.7; }
.footer-bio { font-size: 0.85rem; line-height: 1.7; opacity: 0.6; max-width: 280px; }
.footer-links-group { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; color: #f97316; }
.footer-links-list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-list li a { font-size: 0.875rem; opacity: 0.75; transition: opacity 0.2s, color 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.footer-links-list li a:hover { opacity: 1; color: #f97316; }
.footer-links-list li a i { width: 14px; text-align: center; font-size: 0.8rem; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.08); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding: 1.5rem 0; font-size: 0.82rem; opacity: 0.6; }
.footer-top-link { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.footer-top-link:hover { opacity: 1; color: #f97316; }

/* ── REVEAL ANIMATIONS ────────────────────────────── */
/* Default: always visible. JS adds .js class to <html> to enable animations.
   JS adds .active class when element enters viewport. */
.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-up {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal,
.js .reveal-left,
.js .reveal-right,
.js .reveal-scale,
.js .reveal-up {
  opacity: 0;
  transform: translateY(28px);
}
.js .reveal-left  { transform: translateX(-28px); }
.js .reveal-right { transform: translateX(28px); }
.js .reveal.active,
.js .reveal-left.active,
.js .reveal-right.active,
.js .reveal-scale.active,
.js .reveal-up.active {
  opacity: 1;
  transform: none;
}

/* Stagger items (skill-item, tech-tag) */
.js .stagger-item { opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.js .stagger-item.animate { opacity: 1; transform: none; }

/* ── TOOLTIP ──────────────────────────────────────── */
.tooltip { position: relative; }
.tooltiptext { position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.tooltip:hover .tooltiptext { opacity: 1; }

/* ── MOBILE STICKY CTA ────────────────────────────── */
.mobile-sticky-cta { display: none; position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); padding: 0.75rem 1.75rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700; z-index: 400; background: linear-gradient(135deg, #ea580c, #f97316); color: #fff; box-shadow: 0 8px 32px rgba(234,88,12,0.4); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .contact-vision { grid-template-columns: 1fr; }
  .timeline::before { left: 12px; }
  .timeline-item { grid-template-columns: 24px 1fr; gap: 1rem; }
  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date { display: none; }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { order: 0; }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card { order: 1; }
  .timeline-dot { justify-self: start; margin-left: 5px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  /* Hide desktop More dropdown on mobile */
  .nav-desktop-more { display: none !important; }

  /* ── Drawer ── */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 88vw); height: 100vh;
    flex-direction: column; align-items: stretch;
    padding: 0; gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 9990;
  }
  .nav-links.active { transform: translateX(0); }

  /* Dim overlay */
  .nav-links.active::before {
    content: '';
    position: fixed; inset: 0;
    right: min(300px, 88vw);
    background: rgba(0,0,0,0.45);
    z-index: -1;
  }

  /* ── Drawer header (title + X close) ── */
  .nav-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
  .nav-drawer-title {
    font-family: 'Sora', sans-serif;
    font-size: 1rem; font-weight: 800;
    color: #fff;
  }
  .nav-close-btn {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: rgba(255,255,255,0.7);
    cursor: pointer; transition: background 0.2s, color 0.2s;
    background: rgba(255,255,255,0.06);
  }
  .nav-close-btn:hover { background: rgba(234,88,12,0.15); color: #f97316; }

  /* ── All nav items ── */
  .nav-links > li { width: 100%; }

  /* Main + more items — same style */
  .nav-main-item,
  .nav-more-item,
  .nav-back-item,
  .nav-more-btn-item { display: block; }

  .nav-main-item > a,
  .nav-more-item > a {
    display: flex; align-items: center; gap: 0.85rem;
    width: 100%; padding: 0.85rem 1.25rem;
    font-size: 1rem; font-weight: 500;
    border-radius: 0; transition: background 0.15s, color 0.15s;
  }
  .nav-main-item > a i,
  .nav-more-item > a i { width: 18px; text-align: center; font-size: 0.9rem; opacity: 0.7; }

  /* More Pages trigger button — same look as a link */
  .nav-more-trigger {
    display: flex; align-items: center; gap: 0.85rem;
    width: 100%; padding: 0.85rem 1.25rem;
    font-size: 1rem; font-weight: 500;
    cursor: pointer; transition: background 0.15s, color 0.15s;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.25rem;
  }
  .nav-more-trigger i:first-child { width: 18px; text-align: center; font-size: 0.9rem; opacity: 0.7; }
  .nav-more-arrow { margin-left: auto; font-size: 0.75rem; opacity: 0.5; }

  /* Back button */
  .nav-back-btn {
    display: flex; align-items: center; gap: 0.85rem;
    width: 100%; padding: 0.85rem 1.25rem;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #f97316;
  }
  .nav-back-btn i { width: 18px; text-align: center; }

  /* More items hidden by default, shown in more-view */
  .nav-more-item,
  .nav-back-item { display: none; }

  /* Main items hidden in more-view */
  .nav-links.nav-more-view .nav-main-item { display: none; }
  .nav-links.nav-more-view .nav-more-item { display: block; }
  .nav-links.nav-more-view .nav-back-item { display: block; }
  .nav-links.nav-more-view .nav-drawer-title { font-size: 0; } /* hide "Menu" text */
  .nav-links.nav-more-view .nav-drawer-title::before { content: 'More Pages'; font-size: 1rem; }

  .mobile-sticky-cta { display: flex; }
}

@media (max-width: 540px) {
  section { padding: 3.5rem 0; }
  .skills-grid, .awards-grid, .projects-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .case-study-banner { flex-direction: column; }
}

/* ── ABOUT PHOTO ──────────────────────────────────── */
.about-photo-wrap {
  position: relative; width: fit-content;
  margin-bottom: 1.5rem;
}
.about-photo {
  width: 200px; height: 200px;
  border-radius: 20px; object-fit: cover;
  border: 3px solid rgba(234,88,12,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  display: block;
}
.about-photo-badge {
  position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(6,13,26,0.9);
  border: 1px solid rgba(234,88,12,0.35);
  color: #f97316;
  backdrop-filter: blur(8px);
}
.about-photo-badge i { margin-right: 0.3rem; }

/* ── THEME TOGGLE ─────────────────────────────────── */
.nav-right-group {
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-search-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-search-btn:hover { border-color: #ea580c; color: #f97316; background: rgba(234,88,12,0.1); }
html.light-mode .nav-search-btn { border-color: rgba(0,0,0,0.15); color: #334155; background: rgba(0,0,0,0.05); }
html.light-mode .nav-search-btn:hover { border-color: #ea580c; color: #ea580c; background: rgba(234,88,12,0.08); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: #ea580c; color: #f97316; background: rgba(234,88,12,0.1); }
.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

/* Light mode — icon swap */
html.light-mode .theme-icon-light { display: none; }
html.light-mode .theme-icon-dark  { display: block; }

/* ── LIGHT MODE OVERRIDES ─────────────────────────── */
html.light-mode {
  --lm-bg:     #f8fafc;
  --lm-bg2:    #f1f5f9;
  --lm-card:   #ffffff;
  --lm-border: rgba(0,0,0,0.1);
  --lm-text:   #0f172a;
  --lm-text2:  #334155;
  --lm-text3:  #64748b;
}

/* ── Base ── */
html.light-mode body                    { background: var(--lm-bg)   !important; color: var(--lm-text) !important; }
html.light-mode p                       { color: var(--lm-text2) !important; }
html.light-mode h1,html.light-mode h2,
html.light-mode h3,html.light-mode h4  { color: var(--lm-text)  !important; }
html.light-mode a                       { color: #ea580c !important; }
html.light-mode strong,html.light-mode b { color: var(--lm-text) !important; }
html.light-mode span                    { color: inherit; }

/* ── Nav ── */
html.light-mode nav                     { background: rgba(248,250,252,0.95) !important; border-bottom-color: var(--lm-border) !important; box-shadow: 0 1px 12px rgba(0,0,0,0.08) !important; }
html.light-mode .logo-text              { color: var(--lm-text) !important; }
html.light-mode .nav-links a            { color: var(--lm-text2) !important; }
html.light-mode .nav-links a:hover      { color: #ea580c !important; background: rgba(234,88,12,0.08) !important; }
html.light-mode .nav-links a.active-nav { color: #ea580c !important; background: rgba(234,88,12,0.1) !important; font-weight: 700 !important; }
html.light-mode .nav-more-toggle        { color: var(--lm-text2) !important; }
html.light-mode .nav-more-menu          { background: #fff !important; border-color: var(--lm-border) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important; }
html.light-mode .nav-more-menu a        { color: var(--lm-text2) !important; }
html.light-mode .nav-drawer-header      { border-bottom-color: var(--lm-border) !important; }
html.light-mode .nav-drawer-title       { color: var(--lm-text) !important; }
html.light-mode .nav-close-btn          { color: var(--lm-text2) !important; background: rgba(0,0,0,0.05) !important; }
html.light-mode .nav-main-item > a,
html.light-mode .nav-more-trigger       { color: var(--lm-text2) !important; }
html.light-mode .nav-links.active       { background: rgba(248,250,252,0.97) !important; border-left-color: var(--lm-border) !important; }

/* ── Sections ── */
html.light-mode section                 { background: var(--lm-bg)  !important; }
html.light-mode section:nth-child(even) { background: var(--lm-bg2) !important; }
html.light-mode .section-bg-secondary,
html.light-mode #about                  { background: var(--lm-bg2) !important; }
html.light-mode .section-title          { color: #ea580c !important; }
html.light-mode .section-title::after   { background: #ea580c !important; }
html.light-mode .section-subtitle       { color: var(--lm-text2) !important; }
html.light-mode .section-heading-primary { color: #ea580c !important; }

/* ── Hero ── */
html.light-mode .hero                   { background: linear-gradient(135deg,#f8fafc 0%,#f1f5f9 60%,#e2e8f0 100%) !important; }
html.light-mode .hero-orb               { opacity: 0.06 !important; }
html.light-mode .hero-grid-lines        { opacity: 0.4 !important; }
html.light-mode .hero-badge             { background: rgba(34,197,94,0.1) !important; border-color: rgba(34,197,94,0.3) !important; color: #16a34a !important; }
html.light-mode .hero-title             { color: var(--lm-text) !important; }
html.light-mode .hero-surname           { color: var(--lm-text3) !important; }
html.light-mode .description            { color: var(--lm-text2) !important; }
html.light-mode .description strong     { color: var(--lm-text) !important; }
html.light-mode .hero-roles             { color: var(--lm-text2) !important; }
html.light-mode .hero-stats             { background: rgba(0,0,0,0.04) !important; border-color: var(--lm-border) !important; }
html.light-mode .hero-stat-num          { color: #ea580c !important; }
html.light-mode .hero-stat-label        { color: var(--lm-text3) !important; }
html.light-mode .hero-stat-divider      { background: var(--lm-border) !important; }
html.light-mode .hero-social            { border-color: var(--lm-border) !important; color: var(--lm-text2) !important; }
html.light-mode .hero-social:hover      { border-color: #ea580c !important; color: #ea580c !important; background: rgba(234,88,12,0.08) !important; }
html.light-mode .hero-resume-link       { border-color: rgba(234,88,12,0.4) !important; color: #ea580c !important; }
html.light-mode .hero-scroll-hint       { color: var(--lm-text3) !important; }
html.light-mode .hero-image-ring        { background: linear-gradient(#f8fafc,#f8fafc) padding-box, conic-gradient(from 0deg,#ea580c 0%,#f97316 25%,transparent 50%,#ea580c 75%,#f97316 100%) border-box !important; }

/* ── About ── */
html.light-mode .about-text p           { color: var(--lm-text2) !important; }
html.light-mode .about-seeking          { background: rgba(234,88,12,0.06) !important; border-left-color: #ea580c !important; color: var(--lm-text2) !important; }
html.light-mode .highlight-item         { background: var(--lm-card) !important; border-color: var(--lm-border) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }
html.light-mode .highlight-item h3      { color: var(--lm-text) !important; }
html.light-mode .highlight-item p       { color: var(--lm-text2) !important; }
html.light-mode .learning-widget        { background: var(--lm-card) !important; border-color: var(--lm-border) !important; }
html.light-mode .learning-title         { color: var(--lm-text) !important; }
html.light-mode .learning-item          { color: var(--lm-text2) !important; }
html.light-mode .about-photo-badge      { background: rgba(255,255,255,0.95) !important; color: #ea580c !important; border-color: rgba(234,88,12,0.3) !important; }

/* ── Skills / Academics ── */
html.light-mode .skill-category         { background: var(--lm-card) !important; border-color: var(--lm-border) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }
html.light-mode .skill-title            { color: var(--lm-text) !important; }
html.light-mode .skill-list             { border-top-color: var(--lm-border) !important; }
html.light-mode .skill-item             { color: var(--lm-text2) !important; border-bottom-color: var(--lm-border) !important; }
html.light-mode .skill-bar-label        { color: var(--lm-text2) !important; }
html.light-mode .skill-bar-name         { color: var(--lm-text) !important; }
html.light-mode .skill-bar-pct          { color: var(--lm-text3) !important; }
html.light-mode .skill-bar-track        { background: rgba(0,0,0,0.08) !important; }

html.light-mode #impact               { background: #f8fafc !important; }
html.light-mode #impact .award-card   { background: #ffffff !important; border-color: rgba(0,0,0,0.1) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important; }
html.light-mode #impact .award-title  { color: #0f172a !important; }
html.light-mode #impact .award-description { color: #334155 !important; }
html.light-mode #impact .award-meta   { color: #ea580c !important; }

/* ── Awards ── */
html.light-mode .award-card             { background: var(--lm-card) !important; border-color: var(--lm-border) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }
html.light-mode .award-title            { color: var(--lm-text) !important; }
html.light-mode .award-description      { color: var(--lm-text2) !important; }

/* ── Projects ── */
html.light-mode .project-card           { background: var(--lm-card) !important; border-color: var(--lm-border) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }
html.light-mode .project-title          { color: var(--lm-text) !important; }
html.light-mode .project-description    { color: var(--lm-text2) !important; }
html.light-mode .filter-btn             { background: rgba(0,0,0,0.05) !important; border-color: var(--lm-border) !important; color: var(--lm-text2) !important; }
html.light-mode .filter-btn.active,
html.light-mode .filter-btn:hover       { background: #ea580c !important; color: #fff !important; border-color: #ea580c !important; }

/* ── Timeline ── */
html.light-mode .timeline-card          { background: var(--lm-card) !important; border-color: var(--lm-border) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }
html.light-mode .timeline-title         { color: var(--lm-text) !important; }
html.light-mode .timeline-desc          { color: var(--lm-text2) !important; }
html.light-mode .timeline-date          { background: var(--lm-bg2) !important; border-color: var(--lm-border) !important; color: var(--lm-text) !important; }
html.light-mode .timeline-quote         { background: rgba(234,88,12,0.05) !important; color: var(--lm-text2) !important; }
html.light-mode .timeline-quote-author  { color: var(--lm-text3) !important; }

/* ── Testimonials ── */
html.light-mode .testimonial-card       { background: var(--lm-card) !important; border-color: var(--lm-border) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; }
html.light-mode .testimonial-text       { color: var(--lm-text2) !important; }
html.light-mode .testimonial-name       { color: var(--lm-text) !important; }
html.light-mode .testimonial-role       { color: var(--lm-text3) !important; }
html.light-mode .testimonial-author     { border-top-color: var(--lm-border) !important; }

/* ── Contact ── */
html.light-mode .contact                { background: var(--lm-bg2) !important; }
html.light-mode .contact-heading        { color: var(--lm-text) !important; }
html.light-mode .contact-muted          { color: var(--lm-text2) !important; }
html.light-mode .contact-highlight-card { background: var(--lm-card) !important; border-color: var(--lm-border) !important; }
html.light-mode .contact-item h3        { color: var(--lm-text3) !important; }
html.light-mode .contact-item p,
html.light-mode .contact-link           { color: var(--lm-text2) !important; }
html.light-mode .contact-follow         { background: var(--lm-card) !important; border-color: var(--lm-border) !important; }
html.light-mode .contact-follow-label   { color: var(--lm-text) !important; }
html.light-mode .contact-follow-sub     { color: var(--lm-text3) !important; }
html.light-mode .contact-social-icon    { border-color: var(--lm-border) !important; }
html.light-mode .contact-form           { background: var(--lm-card) !important; border-color: var(--lm-border) !important; }
html.light-mode .form-group label       { color: var(--lm-text2) !important; }
html.light-mode .form-group input,
html.light-mode .form-group textarea    { background: var(--lm-bg2) !important; border-color: var(--lm-border) !important; color: var(--lm-text) !important; }
html.light-mode .form-group input::placeholder,
html.light-mode .form-group textarea::placeholder { color: var(--lm-text3) !important; }
html.light-mode .form-group input:focus,
html.light-mode .form-group textarea:focus { border-color: #ea580c !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(234,88,12,0.1) !important; }

/* ── Footer ── */
html.light-mode footer                  { background: #1e293b !important; }
html.light-mode .footer-tagline,
html.light-mode .footer-bio             { color: rgba(255,255,255,0.6) !important; }
html.light-mode .footer-links-title     { color: rgba(255,255,255,0.4) !important; }
html.light-mode .footer-links-list li a { color: rgba(255,255,255,0.7) !important; }
html.light-mode .footer-copy            { color: rgba(255,255,255,0.4) !important; }
html.light-mode .footer-top-link        { color: rgba(255,255,255,0.5) !important; }
html.light-mode .footer-divider         { background: rgba(255,255,255,0.1) !important; }

/* ── Misc ── */
html.light-mode .scroll-progress        { background: linear-gradient(90deg,#ea580c,#f97316) !important; }
html.light-mode .spinner                { border-color: rgba(0,0,0,0.1) !important; border-top-color: #ea580c !important; }
html.light-mode .loading                { background: var(--lm-bg) !important; }
html.light-mode .fab                    { background: linear-gradient(135deg,#ea580c,#f97316) !important; color: #fff !important; }
html.light-mode .tech-tag               { background: rgba(234,88,12,0.08) !important; color: #c2410c !important; border-color: rgba(234,88,12,0.2) !important; }
html.light-mode .timeline-tag           { background: rgba(234,88,12,0.08) !important; color: #c2410c !important; }
html.light-mode .award-meta             { color: #ea580c !important; }
html.light-mode .section-wave path      { fill: var(--lm-bg) !important; }

/* ── ACTIVE NAV LINK ──────────────────────────────── */
.nav-links a.active-nav {
  color: #f97316 !important;
  background: rgba(234,88,12,0.1) !important;
  border-radius: 6px;
  font-weight: 700 !important;
}

/* ── SECTION WAVE DIVIDERS ────────────────────────── */
.section-wave {
  display: block; width: 100%;
  overflow: hidden; line-height: 0;
  margin-top: -1px;
}
.section-wave svg { display: block; width: 100%; }

/* ── FAB IMPROVEMENTS ─────────────────────────────── */
.fab {
  width: 52px !important; height: 52px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(234,88,12,0.45) !important;
  font-size: 1rem !important;
}
.fab.visible {
  opacity: 1 !important; visibility: visible !important;
  transform: translateY(0) !important;
}

/* ── GITHUB WIDGET ────────────────────────────────── */
.github-widget {
  border-radius: 12px; padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 0.25rem;
}
.github-widget__header {
  display: flex; align-items: center; gap: 0.6rem;
}
.github-widget__icon { font-size: 1rem; }
.github-widget__title { font-size: 0.85rem; font-weight: 700; flex: 1; }
.github-widget__link {
  font-size: 0.72rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.3rem;
  transition: color 0.2s;
}
.github-widget__link i { font-size: 0.6rem; }
.github-widget__stats { display: flex; flex-direction: column; gap: 0.4rem; }
.github-widget__stat {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem;
}
.github-widget__stat i { width: 14px; text-align: center; font-size: 0.75rem; }
.github-widget__cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.github-widget__cta:hover { transform: translateY(-1px); }

/* ── PROJECT STATUS BADGE ─────────────────────────── */
.project-status {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.55rem;
  border-radius: 999px; margin-bottom: 0.5rem;
}
.project-status--live { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.project-status--live i { font-size: 0.45rem; animation: pulse-dot 1.5s infinite; }
.project-status--wip  { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #f59e0b; }
.project-status--soon { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }

/* ── PRINT STYLESHEET ─────────────────────────────── */
@media print {
  /* Hide non-essential elements */
  nav, .fab, .scroll-progress, .loading, .page-transition,
  .hero-bg, .hero-scroll-hint, .hero-cta, .hero-socials,
  .projects-filter, .project-overlay, .contact-form,
  .mobile-sticky-cta, footer { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  section { background: #fff !important; padding: 1.5rem 0 !important; break-inside: avoid; }
  .container { max-width: 100% !important; padding: 0 1rem !important; }

  h1, h2, h3, h4 { color: #000 !important; }
  p, li, span { color: #333 !important; }
  .section-title { color: #ea580c !important; font-size: 14pt !important; }

  .hero { min-height: auto !important; padding: 1rem 0 !important; }
  .hero-container { flex-direction: row !important; gap: 1.5rem !important; }
  .hero-photo { width: 120px !important; height: 120px !important; }
  .hero-title { font-size: 20pt !important; }
  .hero-badge, .hero-stats { display: none !important; }

  .skill-category, .project-card, .award-card,
  .highlight-item, .timeline-card {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  a { color: #ea580c !important; text-decoration: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
  a[href^="#"]::after,
  a[href^="mailto"]::after { content: ""; }
}

/* ══════════════════════════════════════════════════════
   UX IMPROVEMENTS
   ══════════════════════════════════════════════════════ */

/* ── 1. KEYBOARD FOCUS RINGS ──────────────────────────
   Visible orange ring on keyboard focus, hidden on mouse */
:focus-visible {
  outline: 2px solid #ea580c !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
/* Remove default outline — we handle it with :focus-visible */
:focus:not(:focus-visible) { outline: none !important; }

/* Specific elements that need a larger ring */
.skill-category:focus-visible,
.project-card:focus-visible,
.timeline-card:focus-visible,
.award-card:focus-visible,
.testimonial-card:focus-visible {
  outline: 2px solid #ea580c !important;
  outline-offset: 4px !important;
  border-radius: 14px;
}
.nav-links a:focus-visible,
.nav-more-toggle:focus-visible,
.menu-toggle:focus-visible,
.theme-toggle:focus-visible,
.fab:focus-visible {
  outline: 2px solid #ea580c !important;
  outline-offset: 2px !important;
  border-radius: 6px;
}
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid #ea580c !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(234,88,12,0.2) !important;
}
.skill-bar-fill:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid #ea580c !important;
  outline-offset: 2px !important;
}

/* ── 3. FORM SUCCESS ANIMATION ────────────────────────── */
.form-success-overlay {
  position: fixed; inset: 0; z-index: 9995;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: success-fade 3.5s ease forwards;
}
@keyframes success-fade {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}
.form-success-card {
  background: #0f1e35;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: success-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes success-pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 2px solid rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #22c55e;
  animation: check-draw 0.5s ease 0.2s both;
}
@keyframes check-draw {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}
.form-success-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: #fff;
}
.form-success-sub { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Confetti particles */
.confetti-particle {
  position: fixed; width: 8px; height: 8px;
  border-radius: 2px; pointer-events: none; z-index: 9994;
  animation: confetti-fall var(--dur, 2s) ease var(--delay, 0s) forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Light mode success card */
html.light-mode .form-success-card {
  background: #ffffff;
  border-color: rgba(34,197,94,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
html.light-mode .form-success-title { color: #0f172a; }
html.light-mode .form-success-sub   { color: #475569; }

/* ── COPY EMAIL BUTTON ────────────────────────────── */
.copy-email-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem; cursor: pointer;
  margin-left: 0.4rem; vertical-align: middle;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.copy-email-btn:hover { background: rgba(234,88,12,0.12); border-color: rgba(234,88,12,0.35); color: #f97316; }
.copy-email-btn.copied { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.35); color: #22c55e; }
html.light-mode .copy-email-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #64748b; }
html.light-mode .copy-email-btn:hover { background: rgba(234,88,12,0.08); border-color: rgba(234,88,12,0.3); color: #ea580c; }

/* ── FAB — mobile position fix ────────────────────── */
@media (max-width: 768px) {
  .fab {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
  }
}

/* ── IMAGE SKELETON SHIMMER ───────────────────────── */
.project-image picture,
.project-image img {
  background: linear-gradient(90deg, #0a1628 25%, #132848 50%, #0a1628 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.project-image img[src],
.project-image picture { background: none; animation: none; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── LOGO PHOTO ───────────────────────────────────── */
.logo-photo {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2px solid rgba(234,88,12,0.5);
  flex-shrink: 0;
  display: block;
}

/* ── MOBILE UX FIXES ──────────────────────────────── */

/* iOS safe area — FAB above home indicator */
.fab {
  bottom: calc(2rem + env(safe-area-inset-bottom)) !important;
}

/* Minimum 44px tap targets on social icons */
.hero-social,
.contact-social-icon,
.ar-social,
.b-author-card__socials a {
  min-width: 44px !important;
  min-height: 44px !important;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: #f97316; }
.breadcrumb__sep { color: rgba(255,255,255,0.25); font-size: 0.65rem; }
.breadcrumb__current { color: rgba(255,255,255,0.7); font-weight: 600; }
html.light-mode .breadcrumb { color: #64748b; }
html.light-mode .breadcrumb a { color: #475569; }
html.light-mode .breadcrumb a:hover { color: #ea580c; }
html.light-mode .breadcrumb__current { color: #334155; }

/* TOC */
.ar-toc {
  position: sticky; top: 80px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 1.25rem;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.ar-toc__title {
  font-family: 'Sora', sans-serif; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4); margin-bottom: 0.75rem;
}
.ar-toc__list { display: flex; flex-direction: column; gap: 0.1rem; list-style: none; }
.ar-toc__item a {
  display: block; padding: 0.4rem 0.6rem; border-radius: 6px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  transition: background 0.15s, color 0.15s; border-left: 2px solid transparent;
}
.ar-toc__item a:hover { color: #f97316; background: rgba(234,88,12,0.06); }
.ar-toc__item a.active { color: #f97316 !important; border-left-color: #ea580c; background: rgba(234,88,12,0.08); }
html.light-mode .ar-toc { background: #fff; border-color: rgba(0,0,0,0.1); }
html.light-mode .ar-toc__title { color: #64748b; }
html.light-mode .ar-toc__item a { color: #475569; }
html.light-mode .ar-toc__item a:hover { color: #ea580c; }

/* Article layout with TOC sidebar */
.ar-layout { display: grid; grid-template-columns: 1fr 220px; gap: 3rem; max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; }
.ar-layout .ar-body__inner { max-width: 100%; }
@media (max-width: 860px) {
  .ar-layout { grid-template-columns: 1fr; }
  .ar-toc { display: none; }
}

/* Related articles */
.ar-related { border-top: 1px solid rgba(255,255,255,0.08); padding: 2.5rem 1.5rem; }
.ar-related__inner { max-width: 680px; margin: 0 auto; }
.ar-related__title { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 1.25rem; }
.ar-related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ar-related__card {
  padding: 1.25rem; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.ar-related__card:hover { background: rgba(234,88,12,0.05); border-color: rgba(234,88,12,0.2); }
.ar-related__tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #f97316; }
.ar-related__name { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.4; }
.ar-related__meta { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.ar-related__badge { font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); width: fit-content; }
html.light-mode .ar-related { border-top-color: rgba(0,0,0,0.08); background: #f8fafc; }
html.light-mode .ar-related__title { color: #0f172a; }
html.light-mode .ar-related__card { background: #fff; border-color: rgba(0,0,0,0.1); }
html.light-mode .ar-related__name { color: #0f172a; }
html.light-mode .ar-related__meta { color: #64748b; }

/* ALU / MCF logos */
.credential-logos { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }
.credential-logo { height: 36px; width: auto; object-fit: contain; border-radius: 6px; opacity: 0.85; transition: opacity 0.2s; filter: brightness(1.1); }
.credential-logo:hover { opacity: 1; }
html.light-mode .credential-logo { filter: none; }

/* ── HERO TRUST BAR ───────────────────────────────── */
.hero-trust {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin-top: 0.5rem; margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; width: fit-content;
}
.hero-trust__label {
  font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.hero-trust__item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-trust__item:hover { color: #f97316; }
.hero-trust__logo {
  width: 24px; height: 24px;
  border-radius: 5px; object-fit: contain;
  background: #fff; padding: 2px;
  flex-shrink: 0;
}
.hero-trust__sep { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* Light mode */
html.light-mode .hero-trust { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.1) !important; }
html.light-mode .hero-trust__label { color: #64748b !important; }
html.light-mode .hero-trust__item { color: #334155 !important; }
html.light-mode .hero-trust__item:hover { color: #ea580c !important; }

@media (max-width: 480px) {
  .hero-trust { gap: 0.5rem; }
  .hero-trust__item span { display: none; }
}

/* ── CONTACT FORM CHARACTER COUNTER ──────────────────── */
.form-char-count {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.3rem;
  transition: color 0.2s, font-weight 0.2s;
}
html.light-mode .form-char-count { color: #94a3b8; }

/* ── CONTACT SEEKING LIST ─────────────────────────────── */
.contact-seeking-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-seeking-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.contact-seeking-list li i {
  color: #22c55e;
  font-size: 0.8rem;
  flex-shrink: 0;
}
html.light-mode .contact-seeking-list li { color: #334155; }

/* ── FOOTER VISITORS ──────────────────────────────────── */
.footer-visitors {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── #7 AVAILABILITY BANNER ───────────────────────────── */
.avail-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 950;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
  background-size: 200% 100%;
  animation: banner-slide 6s linear infinite;
  border-bottom: none;
  padding: 0;
  height: 36px;
  display: flex;
  align-items: center;
}
@keyframes banner-slide {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.avail-banner[style*="display:none"],
.avail-banner[style*="display: none"] {
  pointer-events: none;
}
.avail-banner__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.6rem;
  flex: 1; padding: 0 3rem 0 1rem;
  justify-content: center;
}
.avail-banner__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}
.avail-banner__text { font-size: 0.78rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avail-banner__text strong { color: #fff; font-weight: 800; }
.avail-banner__cta {
  font-size: 0.72rem; font-weight: 700;
  color: #fff !important;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.6rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.avail-banner__cta:hover { background: rgba(255,255,255,0.28); color: #fff !important; }
.avail-banner__close {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.8);
  cursor: pointer; transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.avail-banner__close:hover { background: rgba(255,255,255,0.2); color: #fff; }
html.light-mode .avail-banner { background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #ea580c 100%); background-size: 200% 100%; animation: banner-slide 6s linear infinite; }
html.light-mode .avail-banner__text { color: #fff; }
html.light-mode .avail-banner__text strong { color: #fff; }
html.light-mode .avail-banner__close { color: rgba(255,255,255,0.8); }
html.light-mode .avail-banner__cta { color: #fff !important; }

@media (max-width: 600px) {
  .avail-banner__text { font-size: 0.72rem; }
  .avail-banner__cta { display: none; }
}

/* ── #1 COMMAND PALETTE ───────────────────────────────── */
.cmd {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
}
.cmd[hidden] { display: none; }
.cmd__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.cmd__box {
  position: relative; z-index: 1;
  width: min(600px, 92vw);
  background: #0f1e35;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: cmd-pop 0.15s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cmd-pop {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.cmd__search-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cmd__search-icon { color: rgba(255,255,255,0.35); font-size: 0.9rem; flex-shrink: 0; }
.cmd__input {
  flex: 1; background: none; border: none; outline: none;
  font-family: inherit; font-size: 1rem;
  color: #fff; caret-color: #f97316;
}
.cmd__input::placeholder { color: rgba(255,255,255,0.3); }
.cmd__esc {
  font-size: 0.7rem; padding: 0.2rem 0.45rem; border-radius: 5px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4); flex-shrink: 0;
}
.cmd__list { max-height: 320px; overflow-y: auto; padding: 0.5rem; list-style: none; }
.cmd__item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem; border-radius: 8px;
  font-size: 0.9rem; color: rgba(255,255,255,0.75);
  cursor: pointer; transition: background 0.12s;
}
.cmd__item--active,
.cmd__item:hover { background: rgba(234,88,12,0.12); color: #fff; }
.cmd__item-icon { width: 16px; text-align: center; color: #f97316; font-size: 0.85rem; flex-shrink: 0; }
.cmd__footer {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 0.55rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem; color: rgba(255,255,255,0.3);
}
.cmd__footer span {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.cmd__footer span:last-child { border-right: none; }
.cmd__footer kbd {
  padding: 0.1rem 0.35rem; border-radius: 4px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  font-family: inherit; font-size: 0.7rem;
}
.cmd__footer-hint { margin-left: auto; }

/* Light mode */
html.light-mode .cmd__box { background: #fff; border-color: rgba(0,0,0,0.12); box-shadow: 0 24px 60px rgba(0,0,0,0.2); }
html.light-mode .cmd__input { color: #0f172a; }
html.light-mode .cmd__input::placeholder { color: #94a3b8; }
html.light-mode .cmd__search-icon { color: #94a3b8; }
html.light-mode .cmd__esc { background: #f1f5f9; border-color: rgba(0,0,0,0.1); color: #64748b; }
html.light-mode .cmd__search-wrap { border-bottom-color: rgba(0,0,0,0.08); }
html.light-mode .cmd__item { color: #334155; }
html.light-mode .cmd__item--active, html.light-mode .cmd__item:hover { background: rgba(234,88,12,0.08); color: #0f172a; }
html.light-mode .cmd__footer { border-top-color: rgba(0,0,0,0.08); color: #94a3b8; }
html.light-mode .cmd__footer span { border-right-color: rgba(0,0,0,0.1); }
html.light-mode .cmd__footer kbd { background: #f1f5f9; border-color: rgba(0,0,0,0.1); }
html.light-mode .cmd__backdrop { background: rgba(0,0,0,0.35); }

/* ══════════════════════════════════════════════════════
   ENHANCED RESPONSIVENESS — ALL SCREEN SIZES
   ══════════════════════════════════════════════════════ */

/* ── ULTRA-WIDE / 4K (1920px+) ───────────────────────── */
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  .hero-container { max-width: 1600px; gap: 8rem; }
  .hero-title { font-size: 5rem; }
  .hero-image-wrap { width: 460px; height: 460px; }
  .hero-photo { width: 420px; height: 420px; }
  .section-title { font-size: 3rem; }
  .projects-grid { grid-template-columns: repeat(4, 1fr); }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
  .awards-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 2.5fr 1fr 1fr 1fr; }
}

/* ── LARGE DESKTOP (1440px–1919px) ───────────────────── */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container { max-width: 1320px; }
  .hero-container { max-width: 1320px; gap: 6rem; }
  .hero-title { font-size: clamp(3rem, 4.5vw, 4.5rem); }
  .hero-image-wrap { width: 420px; height: 420px; }
  .hero-photo { width: 380px; height: 380px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── STANDARD DESKTOP (1200px–1439px) ────────────────── */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container { max-width: 1160px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── SMALL DESKTOP / LARGE LAPTOP (1024px–1199px) ─────── */
@media (min-width: 1024px) and (max-width: 1199px) {
  .container { max-width: 980px; }
  .hero-container { gap: 3.5rem; }
  .hero-title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .hero-image-wrap { width: 320px; height: 320px; }
  .hero-photo { width: 290px; height: 290px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ── TABLET LANDSCAPE (768px–1023px) ─────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { max-width: 740px; padding: 0 1.25rem; }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding-top: 5rem;
  }
  .hero-image-wrap { margin: 0 auto; width: 300px; height: 300px; }
  .hero-photo { width: 275px; height: 275px; }
  .hero-badge, .hero-cta, .hero-stats, .hero-socials, .hero-trust { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-socials { justify-content: center; }
  .description { margin-left: auto; margin-right: auto; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .timeline::before { left: 12px; }
  .timeline-item { grid-template-columns: 24px 1fr; gap: 1rem; }
  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date { display: none; }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { order: 0; }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card { order: 1; }
  .timeline-dot { justify-self: start; margin-left: 5px; }
}

/* ── TABLET PORTRAIT (600px–767px) ───────────────────── */
@media (min-width: 600px) and (max-width: 767px) {
  .container { padding: 0 1rem; }
  nav { padding: 0 1rem; }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-top: 5.5rem;
    padding-bottom: 2rem;
  }
  .hero-image-wrap { margin: 0 auto; width: 260px; height: 260px; }
  .hero-photo { width: 238px; height: 238px; }
  .hero-badge, .hero-cta, .hero-stats, .hero-socials, .hero-trust { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; width: 100%; }
  .hero-socials { justify-content: center; }
  .description { margin-left: auto; margin-right: auto; max-width: 90%; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .avail-banner__text { font-size: 0.7rem; }
  section { padding: 4rem 0; }
}

/* ── LARGE PHONE (480px–599px) ───────────────────────── */
@media (min-width: 480px) and (max-width: 599px) {
  .container { padding: 0 1rem; }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .hero-image-wrap { margin: 0 auto; width: 240px; height: 240px; }
  .hero-photo { width: 218px; height: 218px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .hero-badge, .hero-cta, .hero-stats, .hero-socials, .hero-trust { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; gap: 0.5rem; }
  .hero-stats { justify-content: center; flex-wrap: wrap; width: 100%; gap: 0.75rem; }
  .hero-socials { justify-content: center; }
  .description { margin-left: auto; margin-right: auto; font-size: 0.95rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .section-title { font-size: 1.6rem; }
  .hero-chip { display: none; }
}

/* ── SMALL PHONE (360px–479px) ───────────────────────── */
@media (max-width: 479px) {
  .container { padding: 0 0.875rem; }
  nav { padding: 0 0.875rem; height: 58px; }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
    padding: 5rem 0.875rem 2rem;
  }
  .hero-title { font-size: clamp(1.75rem, 8.5vw, 2.2rem); }
  .hero-image-wrap { margin: 0 auto; width: 210px; height: 210px; }
  .hero-photo { width: 190px; height: 190px; }
  .hero-badge { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
  .hero-badge, .hero-cta, .hero-stats, .hero-socials, .hero-trust { margin-left: auto; margin-right: auto; }
  .hero-cta { flex-direction: column; align-items: center; gap: 0.5rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 0.75rem; width: 100%; }
  .hero-stat-num { font-size: 1.1rem; }
  .hero-stat-label { font-size: 0.62rem; }
  .hero-stat-divider { display: none; }
  .hero-socials { justify-content: center; gap: 0.4rem; }
  .hero-trust { flex-wrap: wrap; justify-content: center; }
  .hero-trust__item span { display: none; }
  .description { font-size: 0.9rem; margin-left: auto; margin-right: auto; }
  .projects-grid,
  .skills-grid,
  .awards-grid,
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .about-content,
  .contact-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.9rem; }
  .hero-chip { display: none; }
  .hero-scroll-hint { display: none; }
  .projects-stats-bar { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; }
  .projects-stat-item { padding: 0 0.75rem; }
  .projects-stat-divider { height: 1.5rem; }
  .contact-form { padding: 1.25rem; }
  .timeline-card { padding: 1rem 1.1rem; }
  .avail-banner__cta { display: none; }
  .avail-banner__text { font-size: 0.68rem; }
}

/* ── EXTRA SMALL PHONE (below 360px) ─────────────────── */
@media (max-width: 359px) {
  .container { padding: 0 0.75rem; }
  .hero-title { font-size: 1.6rem; }
  .hero-image-wrap { width: 185px; height: 185px; }
  .hero-photo { width: 165px; height: 165px; }
  .section-title { font-size: 1.35rem; }
  .btn, .btn-primary, .btn-secondary { font-size: 0.82rem; padding: 0.7rem 1.1rem !important; }
}

/* ── NAV HEIGHT ADJUSTMENT for banner ────────────────── */
@media (min-width: 1440px) {
  nav { top: 36px; }
  .hero { padding-top: calc(64px + 36px + 2rem); }
}

/* ── LARGE SCREEN NAV improvements ───────────────────── */
@media (min-width: 1440px) {
  nav { height: 68px; }
  .nav-container { max-width: 1320px; }
  .nav-links a { font-size: 0.95rem; padding: 0.45rem 0.85rem; }
  .logo { font-size: 1.15rem; }
}

@media (min-width: 1920px) {
  nav { height: 72px; }
  .nav-container { max-width: 1600px; }
  .nav-links a { font-size: 1rem; }
}

/* ── HERO RESPONSIVE CHIP POSITIONS ──────────────────── */
@media (min-width: 1440px) {
  .hero-chip--tl { left: -50px; }
  .hero-chip--tr { right: -50px; }
  .hero-chip--bl { left: -40px; }
  .hero-chip--br { right: -40px; }
}

/* ── TIMELINE responsive for mid-screens ─────────────── */
@media (min-width: 768px) and (max-width: 900px) {
  .timeline::before { left: 12px; }
  .timeline-item { grid-template-columns: 24px 1fr; gap: 1rem; }
  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date { display: none; }
  .timeline-dot { justify-self: start; margin-left: 5px; }
}

/* ── SECTION PADDING for larger screens ──────────────── */
@media (min-width: 1440px) {
  section { padding: 6rem 0; }
  .section-header { margin-bottom: 4rem; }
}

@media (min-width: 1920px) {
  section { padding: 8rem 0; }
  .hero-container { padding: 2rem 1.5rem 4rem; }
}

/* ── CONTACT FORM wider on large screens ─────────────── */
@media (min-width: 1440px) {
  .contact-content { gap: 4rem; }
  .contact-form { padding: 2.5rem; }
}

/* ── PROJECTS GRID for large screens ─────────────────── */
@media (min-width: 1440px) {
  .projects-grid { gap: 2rem; }
}
