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

:root {
  --navy:          #08101f;
  --navy-light:    #101c32;
  --navy-mid:      #1b2d4f;
  --accent:        #f5a623;
  --accent-dark:   #d9901a;
  --accent-glow:   rgba(245, 166, 35, 0.22);
  --accent-soft:   rgba(245, 166, 35, 0.08);
  --indigo:        #1a237e;
  --indigo-light:  #3949ab;
  --blue-light:    #eef2fb;
  --text:          #e8eaf6;
  --text-muted:    #94a3b8;
  --card-bg:       #ffffff;
  --section-alt:   #f5f7fa;
  --border-dark:   rgba(255,255,255,0.07);
  --border-light:  rgba(0,0,0,0.07);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.07);
  --shadow:        0 6px 28px rgba(0,0,0,0.10);
  --shadow-md:     0 12px 40px rgba(0,0,0,0.14);
  --shadow-lg:     0 24px 64px rgba(0,0,0,0.20);
  --radius:        20px;
  --radius-sm:     12px;
  --radius-xs:     8px;
  --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-bounce: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--section-alt);
  color: #1e2235;
  line-height: 1.7;
  overflow-x: hidden;
}
body.lang-my { font-family: 'Noto Sans Myanmar', 'Inter', system-ui, sans-serif; }
body.lang-ja { font-family: 'Noto Sans JP', 'Inter', system-ui, sans-serif; }

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff8c42);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8, 16, 31, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 32px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-badge {
  width: 34px; height: 34px;
  background: var(--accent);
  color: #08101f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-brand:hover .nav-brand-badge {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.25);
}
.nav-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.nav-brand-name em {
  font-style: normal;
  color: var(--accent);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 auto;
}
.nav-links > li > a {
  position: relative;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: left 0.22s ease, right 0.22s ease;
}
.nav-links > li > a:hover {
  color: #fff;
}
.nav-links > li > a:hover::after {
  left: 1.1rem; right: 1.1rem;
}
.nav-links > li > a.active {
  color: var(--accent);
}
.nav-links > li > a.active::after {
  left: 1.1rem; right: 1.1rem;
}
.nav-icon { display: none; }
.nav-lang-row { display: none; }
.nav-hire-row { display: none; }

/* Right-side actions cluster */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Hire Me CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1.05rem;
  background: var(--accent);
  color: #08101f;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.nav-cta .fa-arrow-right {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.nav-cta:hover .fa-arrow-right { transform: translateX(3px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
.nav-toggle.open {
  background: rgba(245,166,35,0.1);
  border-color: rgba(245,166,35,0.35);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle.open span { background: var(--accent); }
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.lang-btn .fa-globe { font-size: 0.75rem; color: var(--accent); }
.lang-caret {
  font-size: 0.55rem;
  transition: transform 0.2s;
  opacity: 0.5;
}
.lang-switcher:has(.lang-dropdown.open) .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10,18,35,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 0.4rem;
  min-width: 145px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 2000;
}
.lang-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}
.lang-option:hover { background: rgba(255,255,255,0.06); color: #fff; }
.lang-option.active { background: rgba(245,166,35,0.13); color: var(--accent); font-weight: 600; }
.lang-flag { font-size: 1rem; line-height: 1; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, #08101f 0%, #101c32 45%, #1b2d4f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dot grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(57,73,171,0.12) 0%, transparent 65%);
  top: 10%; right: 5%;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 8s infinite;
}
@keyframes float-up {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 720px;
  width: 100%;
}

/* Available badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.28);
  color: var(--accent);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.4);
  animation: pulse-green 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Avatar with spinning ring */
.hero-avatar-wrap {
  position: relative;
  width: 176px; height: 176px;
  margin: 0 auto 0.75rem;
}
.hero-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent) 0%, rgba(245,166,35,0.08) 45%, rgba(245,166,35,0.08) 55%, var(--accent) 100%);
  animation: spin-ring 5s linear infinite;
  z-index: 0;
}
.hero-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #101c32;
  z-index: 1;
}
@keyframes spin-ring { to { transform: rotate(360deg); } }

.hero-avatar {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(245,166,35,0.2);
}
/* Slideshow images — stack and crossfade */
.hero-slide {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 50%;
}
.hero-slide.active { opacity: 1; }

/* Dot indicators — sit between avatar wrap and the name */
.slide-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 1.4rem;
}
.slide-dots.visible { display: flex; }
.slide-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.4s, transform 0.4s;
  flex-shrink: 0;
}
.slide-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.avatar-fallback {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 0.6rem;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
  min-height: 1.6em;
  font-weight: 400;
}
.typing-cursor {
  color: var(--accent);
  animation: blink-cur 0.75s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}
@keyframes blink-cur { 50% { opacity: 0; } }

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.22);
  color: rgba(255,255,255,0.75);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  font-size: 0.87rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.tagline-sep { opacity: 0.4; }
.hero-tagline .fa-laravel { color: var(--accent); }
.hero-tagline .fa-map-marker-alt { color: var(--accent); }

.hero-social {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.hero-social a {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-bounce);
}
.hero-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 24px rgba(245,166,35,0.4);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.9rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.1px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 18px rgba(245,166,35,0.38);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245,166,35,0.52);
  filter: brightness(1.08);
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.5px;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 1;
}
.scroll-indicator i { font-size: 1rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== HERO ANIMATIONS ===== */

/* ── Keyframes ── */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-pop {
  from { opacity: 0; transform: scale(0.8) translateY(24px); }
  65%  { transform: scale(1.05) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes name-shimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}
@keyframes orb-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%, -53%) scale(1.1); opacity: 0.85; }
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-14px, -20px) scale(1.06); }
  66%  { transform: translate(10px, -8px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes grid-pan {
  from { background-position: 0 0; }
  to   { background-position: 36px 36px; }
}
@keyframes btn-shine {
  from { left: -120%; opacity: 1; }
  to   { left: 120%; opacity: 0.8; }
}
@keyframes scroll-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes stat-num-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Ambient background animations ── */
.hero-grid-overlay {
  animation: grid-pan 20s linear infinite;
}
.hero-orb-1 {
  animation: orb-breathe 10s ease-in-out infinite;
}
.hero-orb-2 {
  animation: orb-drift 8s ease-in-out infinite;
}

/* ── Hero content entrance stagger ── */
.hero-badge        { animation: hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.hero-avatar-wrap  { animation: hero-pop 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) 0.28s both; }
.hero h1           { animation: hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both,
                                name-shimmer 6s ease-in-out 2s infinite; }
.hero-subtitle     { animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.60s both; }
.hero-tagline      { animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both; }
.hero-social       { animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.84s both; }
.hero-cta          { animation: hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.98s both; }
.hero-stats        { animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.12s both; }

/* Scroll indicator: enter then loop-bounce */
.scroll-indicator  {
  animation: scroll-in 0.6s ease 1.45s both,
             bounce 2.4s ease-in-out 2.1s infinite;
}

/* Stat numbers pop in after the bar enters */
.hero-stat-num {
  animation: stat-num-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both;
}
.hero-stat:nth-child(3) .hero-stat-num { animation-delay: 1.5s; }
.hero-stat:nth-child(5) .hero-stat-num { animation-delay: 1.6s; }
.hero-stat:nth-child(7) .hero-stat-num { animation-delay: 1.7s; }

/* ── Name gradient shimmer ── */
.hero h1 {
  background: linear-gradient(100deg,
    #ffffff 15%,
    var(--accent) 46%,
    #f8d58a 52%,
    #ffffff 62%,
    #ffffff 100%
  );
  background-size: 280% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Button: one-time gloss sweep on load ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -120%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 0.75s ease-in-out 1.6s forwards;
  pointer-events: none;
  border-radius: inherit;
}

/* ── Social icons: hover pop feels bouncier ── */
.hero-social a {
  transition: background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}

/* ── Tagline chips: subtle hover lift ── */
.tagline-chip {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.tagline-chip:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

/* ── Hero services strip ── */
.hero-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  animation: hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.06s both;
}
.hero-svc-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hero-svc-pills {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(245,166,35,0.28);
  background: rgba(245,166,35,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1px;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.hero-svc-pill i {
  font-size: 0.78rem;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-svc-pill:hover {
  background: rgba(245,166,35,0.14);
  border-color: rgba(245,166,35,0.55);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section { padding: 6.5rem 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: rgba(26,35,126,0.08);
  color: var(--indigo-light);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(26,35,126,0.12);
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
#about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 5rem;
  align-items: start;
}

.about-image-col { display: flex; flex-direction: column; gap: 1.5rem; }

.about-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-deco {
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}
.about-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: block;
  z-index: 1;
}
.about-slide.active { opacity: 1; }
.about-slide-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 0.9rem;
}
.about-slide-dots.visible { display: flex; }
.about-slide-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(245,166,35,0.3);
  transition: background 0.4s, transform 0.4s;
  flex-shrink: 0;
}
.about-slide-dot.active { background: var(--accent); transform: scale(1.3); }
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.about-image-placeholder i { font-size: 4rem; color: var(--accent); opacity: 0.6; }

/* About stat counters */
.about-counters {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.about-counter-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.75rem;
  text-align: center;
  position: relative;
}
.about-counter-item + .about-counter-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border-light);
}
.count-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--indigo);
  line-height: 1;
  letter-spacing: -1px;
}
.count-plus {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.count-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.about-text p {
  color: #4a5568;
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
  line-height: 1.8;
}
.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: var(--section-alt);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--accent);
}
.about-info-item .label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}
.about-info-item .value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e2235;
}
.about-info-item .value a {
  color: var(--indigo);
  text-decoration: none;
  transition: var(--transition);
}
.about-info-item .value a:hover { color: var(--accent); }

/* ===== SKILLS ===== */
#skills {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
}
#skills .section-tag  { background: rgba(245,166,35,0.1); color: var(--accent); border-color: rgba(245,166,35,0.18); }
#skills .section-title { color: #fff; }
#skills .section-divider { background: linear-gradient(90deg, var(--accent), #ff8c42); }

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill-group-header {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.1rem;
}
.skill-group-icon {
  width: 30px; height: 30px;
  background: rgba(245,166,35,0.12);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: var(--transition);
  cursor: default;
}
.skill-card:hover {
  background: rgba(245,166,35,0.08);
  border-color: rgba(245,166,35,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(245,166,35,0.12);
}
.skill-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(245,166,35,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}
.skill-card:hover .skill-icon {
  background: rgba(245,166,35,0.2);
  transform: scale(1.1);
}
.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  line-height: 1.3;
}

/* ===== EXPERIENCE ===== */
#experience { background: var(--section-alt); }

.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(245,166,35,0.08) 100%);
}
.timeline-item {
  position: relative;
  padding: 0 0 3rem 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.6rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--section-alt);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: dot-pulse 2.5s ease-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow); }
  50%       { box-shadow: 0 0 0 9px rgba(245,166,35,0.06); }
}

.timeline-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.timeline-company-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.company-avatar {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.ca-blue   { background: linear-gradient(135deg, #1565c0, #1976d2); }
.ca-purple { background: linear-gradient(135deg, #6a1b9a, #8e24aa); }

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.2;
}
.timeline-company {
  font-size: 0.87rem;
  color: #6b7280;
  margin-top: 0.1rem;
  font-weight: 500;
}
.timeline-badge {
  background: var(--blue-light);
  color: var(--indigo-light);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(57,73,171,0.12);
}
.timeline-body ul {
  padding-left: 1.2rem;
  color: #4a5568;
}
.timeline-body ul li {
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.6;
}
.timeline-projects {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f4;
}
.timeline-projects h6 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.timeline-project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-light);
  color: var(--indigo-light);
  padding: 0.32rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.2rem 0.2rem 0.2rem 0;
  border: 1px solid rgba(57,73,171,0.1);
  transition: var(--transition);
}
.timeline-project-tag:hover {
  background: var(--indigo-light);
  color: #fff;
}

/* ===== PROJECTS ===== */
#projects { background: var(--card-bg); }

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

/* Featured card spans both columns */
.project-featured {
  grid-column: 1 / -1;
}
.project-featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark)) !important;
  transform: scaleX(1) !important;
}
.project-featured .project-card-body ul {
  columns: 2;
  column-gap: 2.5rem;
}
.project-featured .project-card-header { align-items: center; }
.project-featured .project-icon { width: 58px; height: 58px; font-size: 1.6rem; }

.featured-ribbon {
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(245,166,35,0.3);
  text-transform: uppercase;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: var(--transition);
}
.project-card:hover::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245,166,35,0.2);
}
.project-card-header {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.project-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  transition: var(--transition-bounce);
}
.project-card:hover .project-icon { transform: scale(1.1) rotate(-3deg); }

.icon-blue   { background: #dbeafe; color: #1d4ed8; }
.icon-green  { background: #dcfce7; color: #15803d; }
.icon-purple { background: #ede9fe; color: #6d28d9; }
.icon-orange { background: #ffedd5; color: #c2410c; }
.icon-teal   { background: #ccfbf1; color: #0f766e; }

.project-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e2235;
  line-height: 1.3;
}
.project-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}
.project-card-body {
  padding: 1.25rem 1.75rem;
  flex: 1;
}
.project-card-body ul {
  padding-left: 1.15rem;
  color: #4a5568;
}
.project-card-body ul li {
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  line-height: 1.6;
}
.project-card-footer {
  padding: 1rem 1.75rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid #f5f5f8;
  margin-top: auto;
}
.tech-tag {
  background: var(--section-alt);
  color: var(--indigo-light);
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(57,73,171,0.1);
  transition: var(--transition);
}
.tech-tag:hover {
  background: var(--blue-light);
}

/* ===== CONTACT ===== */
#contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.contact-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}
.contact-bg-orb-1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(245,166,35,0.2) 0%, transparent 70%);
  top: -200px; right: -130px;
}
.contact-bg-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(79,110,247,0.16) 0%, transparent 70%);
  bottom: -120px; left: -90px;
}

/* Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

/* Left column */
.contact-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.contact-left .section-tag {
  background: rgba(245,166,35,0.1);
  color: var(--accent);
  border-color: rgba(245,166,35,0.2);
}
.contact-left .section-title {
  text-align: left;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.1;
}
.contact-accent-word {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-intro {
  color: rgba(255,255,255,0.52);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* Channel links */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.contact-channel::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.contact-channel:hover {
  background: rgba(245,166,35,0.06);
  border-color: rgba(245,166,35,0.25);
  transform: translateX(5px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.08);
}
.contact-channel:hover::before { opacity: 1; }
.contact-channel[data-channel="linkedin"]:hover {
  border-color: rgba(10,102,194,0.35);
  box-shadow: 0 8px 28px rgba(10,102,194,0.1);
}
.contact-channel[data-channel="linkedin"]::before { background: #0a66c2; }

.contact-channel-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(245,166,35,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition-bounce);
}
.contact-channel[data-channel="linkedin"] .contact-channel-icon {
  background: rgba(10,102,194,0.12);
  color: #0a66c2;
}
.contact-channel:hover .contact-channel-icon { transform: scale(1.1) rotate(-5deg); }

.contact-channel-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-channel-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  word-break: break-all;
}
.contact-channel-arrow {
  margin-left: auto;
  color: rgba(255,255,255,0.2);
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-channel:hover                          .contact-channel-arrow { color: var(--accent); transform: translate(2px,-2px); }
.contact-channel[data-channel="linkedin"]:hover .contact-channel-arrow { color: #0a66c2; }

.contact-availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.2px;
}

/* Right column: message form */
.contact-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(12px);
}
.contact-form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.contact-form-header i {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(245,166,35,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cf-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cf-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.cf-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.cf-input::placeholder { color: rgba(255,255,255,0.2); }
.cf-input:focus {
  border-color: rgba(245,166,35,0.5);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.08);
  background: rgba(255,255,255,0.07);
}
.cf-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
.cf-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.25rem;
  width: 100%;
}
.cf-submit:hover { background: #f5a623; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.3); }
.cf-submit:active { transform: translateY(0); }
.cf-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.cf-result {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2rem;
  padding-top: 0.1rem;
}
.cf-result.cf-success { color: #4ade80; }
.cf-result.cf-error   { color: #f87171; }

/* ===== FOOTER ===== */
footer {
  background: #05080f;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand .nav-brand { color: #fff; text-decoration: none; }
.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.2rem;
}
.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}
.footer-copy span { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 0.65rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition-bounce);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px) scale(1.1);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */

/* Tablet – projects collapse */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-featured .project-card-body ul { columns: 1; }
  /* Contact: collapse two-column layout */
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-left { align-items: center; text-align: center; }
  .contact-left .section-title { text-align: center; }
  .contact-intro { max-width: 520px; text-align: center; }
  .contact-channels { max-width: 440px; }
  .contact-channel:hover { transform: none; }
  .contact-availability { justify-content: center; }
}

/* ── Mobile 768 px ── */
@media (max-width: 768px) {

  /* --- Container --- */
  .container { padding: 0 1.25rem; }

  /* --- Navbar --- */
  .nav-toggle { display: flex; z-index: 1001; position: relative; }
  .lang-switcher { display: none; }
  .nav-cta { display: none; }
  .nav-actions { gap: 0; }

  /* Mobile menu overlay */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(150deg, #060c18 0%, #09152a 55%, #0e1e38 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    z-index: 900;
    padding: 5.5rem 1.5rem 3rem;
    overflow-y: auto;
  }
  /* Subtle dot grid matching the hero */
  .nav-links::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: -1;
  }
  /* Accent separator line under the navbar bar */
  .nav-links::after {
    content: '';
    position: fixed;
    top: 62px; left: 1.5rem; right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.35), transparent);
    pointer-events: none;
  }
  .nav-links.open { display: flex; }

  /* Stagger entrance for each item */
  .nav-links.open li { animation: nav-item-in 0.32s ease both; opacity: 0; }
  .nav-links.open li:nth-child(1) { animation-delay: 0.04s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.09s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.14s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.19s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.24s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.29s; }
  .nav-links.open li:nth-child(7) { animation-delay: 0.34s; }

  /* Nav link rows */
  .nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    letter-spacing: 0.15px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    width: 100%;
    text-align: left;
  }
  /* Reset desktop underline; use chevron on the right */
  .nav-text { flex: 1; }
  .nav-links > li > a::after {
    content: '';
    position: static;
    width: 6px; height: 6px;
    background: none;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    border-radius: 0;
    transform: rotate(45deg);
    opacity: 0.3;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links > li > a:hover { background: rgba(245,166,35,0.07); color: rgba(255,255,255,0.9); border-left-color: rgba(245,166,35,0.5); }
  .nav-links > li > a:hover::after { opacity: 0.6; transform: rotate(45deg) translate(2px, -2px); }
  .nav-links > li > a.active { background: rgba(245,166,35,0.1); color: var(--accent); border-left-color: var(--accent); }
  .nav-links > li > a.active::after { opacity: 1; }

  /* Icon box */
  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(245,166,35,0.08);
    color: var(--accent);
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .nav-links > li > a:hover .nav-icon { background: rgba(245,166,35,0.15); }
  .nav-links > li > a.active .nav-icon { background: rgba(245,166,35,0.18); }

  /* Hire Me row inside mobile menu */
  .nav-hire-row { display: block; }
  .nav-hire-row {
    padding: 0.25rem 0;
  }
  .nav-hire-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    background: var(--accent);
    color: #08101f !important;
    font-size: 0.97rem;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
    text-align: center;
    border-left: none !important;
    letter-spacing: 0.1px;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .nav-hire-mobile::after { display: none !important; }
  .nav-hire-mobile:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
  }

  /* Language row inside mobile menu */
  .nav-lang-row { display: block; }
  .nav-lang-row {
    margin-top: 0.75rem;
    padding: 1rem 1.15rem 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .nav-lang-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }
  .nav-lang-label i { color: var(--accent); font-size: 0.72rem; }
  .nav-lang-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .nav-lang-pill {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    transition: all 0.2s;
  }
  .nav-lang-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
  }
  .nav-lang-pill.active {
    background: rgba(245,166,35,0.15);
    border-color: rgba(245,166,35,0.45);
    color: var(--accent);
  }
  .nav-lang-pill .lang-flag { font-size: 1.1rem; }

  /* --- Sections --- */
  section { padding: 4.5rem 0 3.5rem; }
  /* Push hero below the fixed navbar so content is never hidden behind it */
  .hero { min-height: 100svh; padding-top: 4rem; padding-bottom: 0; }

  .section-tag { font-size: 0.7rem; letter-spacing: 2px; padding: 0.26rem 0.8rem; }
  .section-title { font-size: 1.9rem; letter-spacing: -0.5px; line-height: 1.2; }
  .section-divider { margin-top: 1rem; }

  /* --- Hero --- */
  .hero-content {
    padding: 1rem 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Scale down ambient orbs on mobile */
  .hero-orb-1 { width: 320px; height: 320px; }
  .hero-orb-2 { width: 200px; height: 200px; top: 5%; right: -5%; }

  .hero-badge {
    font-size: 0.71rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem 0.4rem 0.72rem;
    margin-bottom: 1.25rem;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 88vw;
    line-height: 1.5;
  }

  /* Avatar */
  .hero-avatar-wrap { width: 148px; height: 148px; margin-bottom: 0.45rem; }
  .slide-dots { gap: 6px; margin-bottom: 0.9rem; }
  .slide-dot { width: 7px; height: 7px; }

  /* Gradient name */
  .hero h1 {
    font-size: 2.6rem;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 0.45rem;
    background: linear-gradient(135deg, #ffffff 25%, rgba(245,166,35,0.88) 100%);
    background-size: 100% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
  }
  .hero-subtitle {
    font-size: 0.97rem;
    min-height: 1.4em;
    margin-bottom: 0.9rem;
    color: rgba(255,255,255,0.6);
  }

  /* Tagline: break into individual chips */
  .hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1.4rem;
    font-size: 0;
  }
  .tagline-sep { display: none; }
  .tagline-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.22);
    color: rgba(255,255,255,0.75);
    padding: 0.3rem 0.78rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .tagline-chip i { color: var(--accent); font-size: 0.68rem; }

  /* Services strip */
  .hero-services { margin-bottom: 1.5rem; gap: 0.5rem; }
  .hero-svc-label { font-size: 0.65rem; }
  .hero-svc-pill { font-size: 0.74rem; padding: 0.32rem 0.75rem; }

  /* Social */
  .hero-social { gap: 0.65rem; margin-bottom: 1.35rem; }
  .hero-social a {
    width: 44px; height: 44px;
    font-size: 0.98rem;
    border-radius: 14px;
  }

  /* CTA — always full-width stacked on mobile */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    width: 100%;
    max-width: 320px;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn { padding: 0.8rem 1.4rem; font-size: 0.9rem; border-radius: 14px; }

  /* Stats: polished 2 × 2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 0;
    background: rgba(255,255,255,0.07);
    border: none;
    backdrop-filter: none;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
  }
  .hero-stat {
    background: rgba(8,16,31,0.88);
    border: none;
    padding: 1.1rem 0.5rem;
    border-radius: 0;
    position: relative;
  }
  /* Subtle accent line at top of each cell */
  .hero-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 18%; right: 18%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.45), transparent);
  }
  .hero-stat:nth-child(1) { border-radius: 17px 0 0 0; }
  .hero-stat:nth-child(3) { border-radius: 0 17px 0 0; }
  .hero-stat:nth-child(5) { border-radius: 0 0 0 17px; }
  .hero-stat:nth-child(7) { border-radius: 0 0 17px 0; }
  .hero-stat-sep { display: none; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.6rem; letter-spacing: 0.9px; }

  .scroll-indicator { bottom: 0.75rem; font-size: 0.6rem; gap: 0.3rem; }

  /* --- About --- */
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .about-image-col { max-width: 100%; margin: 0; }
  .about-image-wrap { aspect-ratio: 4/3; border-radius: var(--radius-sm); }
  .about-image-deco { display: none; }
  .about-slide-dots { margin-top: 0.75rem; }

  .about-counters { border-radius: var(--radius-sm); margin-bottom: 0; }
  .about-counter-item { padding: 1.1rem 0.5rem; }
  .count-num { font-size: 1.75rem; }
  .count-label { font-size: 0.63rem; letter-spacing: 0.8px; }

  .about-text { padding-top: 2rem; }
  .about-info { grid-template-columns: 1fr; gap: 0.55rem; }
  .about-info-item { padding: 0.7rem 1rem; border-radius: var(--radius-xs); }

  /* --- Skills --- */
  .skills-categories { gap: 1.25rem; }
  .skill-group { border-radius: var(--radius-sm); }
  .skill-group-header { font-size: 0.7rem; padding-bottom: 0.75rem; margin-bottom: 1rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .skill-card { padding: 0.9rem 0.75rem; gap: 0.6rem; border-radius: var(--radius-xs); }
  .skill-icon { width: 34px; height: 34px; font-size: 1rem; border-radius: 8px; }
  .skill-name { font-size: 0.8rem; }

  /* --- Experience --- */
  .timeline { padding-left: 1.4rem; }
  .timeline-dot { left: -2rem; width: 14px; height: 14px; }
  .timeline-card { padding: 1.4rem 1.25rem; border-radius: var(--radius-sm); }
  .timeline-header { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .timeline-badge { align-self: flex-start; font-size: 0.68rem; padding: 0.28rem 0.7rem; }
  .company-avatar { width: 36px; height: 36px; font-size: 0.9rem; border-radius: 9px; }
  .timeline-body ul li { font-size: 0.88rem; line-height: 1.6; }

  /* --- Projects --- */
  .project-card-header { padding: 1.25rem 1.25rem 0; }
  .project-card-body { padding: 0.9rem 1.25rem; }
  .project-card-footer { padding: 0.8rem 1.25rem 1.25rem; }
  .featured-ribbon { top: 0.9rem; right: 1rem; font-size: 0.66rem; padding: 0.2rem 0.55rem; }
  .tech-tag { font-size: 0.7rem; padding: 0.18rem 0.55rem; }

  /* --- Contact --- */
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-left { align-items: center; text-align: center; }
  .contact-left .section-title { text-align: center; }
  .contact-intro { font-size: 0.95rem; max-width: 480px; text-align: center; }
  .contact-channels { max-width: 420px; }
  .contact-channel:hover { transform: none; }
  .contact-availability { justify-content: center; }
  .contact-form-card { padding: 1.5rem; border-radius: 20px; }
  .contact-bg-orb-1 { width: 300px; height: 300px; opacity: 0.6; }
  .contact-bg-orb-2 { width: 240px; height: 240px; opacity: 0.6; }

  /* --- Footer --- */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; padding-bottom: env(safe-area-inset-bottom, 0); }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-tagline { text-align: center; }
  .footer-social a { width: 40px; height: 40px; font-size: 0.95rem; }
}

/* ── Small phones 420 px ── */
@media (max-width: 420px) {
  .container { padding: 0 1rem; }

  /* Hero — tighten vertical gaps so nothing overflows on 375-420px screens */
  .hero-content { padding-top: 0.5rem; padding-bottom: 1rem; }
  .hero-avatar-wrap { width: 120px; height: 120px; margin-bottom: 0.3rem; }
  .hero h1 { font-size: 2.15rem; letter-spacing: -1.5px; margin-bottom: 0.3rem; }
  .hero-badge { font-size: 0.67rem; margin-bottom: 0.85rem; }
  .hero-subtitle { margin-bottom: 0.65rem; }
  .hero-tagline { margin-bottom: 1rem; }
  .hero-social { gap: 0.55rem; margin-bottom: 1rem; }
  .hero-cta { margin-bottom: 1.25rem; max-width: 100%; }
  .tagline-chip { font-size: 0.68rem; padding: 0.27rem 0.65rem; }
  .hero-stats { max-width: 100%; border-radius: 15px; }
  .hero-stat { padding: 0.9rem 0.4rem; }
  .hero-stat-num { font-size: 1.25rem; }
  .hero-stat-label { font-size: 0.57rem; }
  .slide-dots { margin-bottom: 0.7rem; }

  /* Sections */
  .section-title { font-size: 1.65rem; }
  .section-tag { font-size: 0.66rem; }

  /* Skills */
  .skills-grid { gap: 0.5rem; }
  .skill-card { padding: 0.8rem 0.6rem; gap: 0.5rem; }
  .skill-name { font-size: 0.75rem; }
  .skill-icon { width: 30px; height: 30px; font-size: 0.88rem; }

  /* Experience */
  .timeline-card { padding: 1.2rem 1rem; }
  .timeline-body ul li { font-size: 0.85rem; }

  /* Contact */
  .contact-channel { padding: 0.75rem 0.9rem; gap: 0.75rem; }
  .contact-channel-icon { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }
  .contact-channel-value { font-size: 0.82rem; }
  .contact-form-card { padding: 1.25rem; border-radius: 18px; }
  .cf-input { font-size: 0.85rem; padding: 0.65rem 0.85rem; }
  .cf-submit { padding: 0.75rem; font-size: 0.88rem; }

  /* About */
  .about-image-wrap { aspect-ratio: 3/2; }
  .count-num { font-size: 1.55rem; }
}

/* ── iPhone SE & extra-small phones (≤ 390 px) ── */
@media (max-width: 390px) {
  /* Hero — fit everything above the fold on 375 × 667 (iPhone SE) */
  .hero-content { padding-top: 0.25rem; }
  .hero-badge { font-size: 0.65rem; padding: 0.35rem 0.8rem 0.35rem 0.6rem; margin-bottom: 0.7rem; }
  .hero-avatar-wrap { width: 108px; height: 108px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 0.88rem; margin-bottom: 0.55rem; }
  .hero-tagline { gap: 0.35rem; margin-bottom: 0.85rem; }
  .tagline-chip { font-size: 0.65rem; padding: 0.25rem 0.6rem; }
  .hero-social a { width: 40px; height: 40px; font-size: 0.9rem; }
  .hero-social { margin-bottom: 0.85rem; }
  .hero-cta { gap: 0.5rem; margin-bottom: 1rem; }
  .btn { padding: 0.72rem 1.2rem; font-size: 0.85rem; }
  .hero-stat { padding: 0.8rem 0.35rem; }
  .hero-stat-num { font-size: 1.15rem; }
  .hero-stat-label { font-size: 0.54rem; letter-spacing: 0.6px; }
  .scroll-indicator { display: none; }  /* reclaim space on very short screens */
}

/* ── Accessibility: respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-avatar-wrap, .hero h1, .hero-subtitle,
  .hero-tagline, .hero-social, .hero-cta, .hero-services, .hero-stats,
  .hero-stat-num, .scroll-indicator, .btn-primary::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-grid-overlay, .hero-orb-1, .hero-orb-2 {
    animation: none !important;
  }
  .pulse-dot {
    animation: none !important;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.35) !important;
  }
}
