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

/* ── TOKENS ── */
:root {
  --primary-dark: #080d1a;
  --primary-navy: #0f172a;
  --primary-blue: #0ea5e9;
  --primary-blue-light: #38bdf8;
  --accent-orange: #f59e0b;
  --accent-orange-dark: #d97706;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.97);
  --border-color: rgba(14, 165, 233, 0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
  --shadow-orange: 0 8px 32px rgba(245,158,11,0.4);
  --shadow-blue: 0 8px 32px rgba(14,165,233,0.35);
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(22, 32, 52, 0.97);
  --border-color: rgba(148, 163, 184, 0.07);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.5);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-blue), var(--accent-orange));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

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

/* ── UTILS ── */
.skip-link {
  position: absolute; top: -40px; left: 6px;
  background: var(--primary-navy); color: white;
  padding: 8px 16px; text-decoration: none;
  border-radius: var(--border-radius); z-index: 1001;
  transition: var(--transition); font-size: 0.875rem; font-weight: 500;
}
.skip-link:focus { top: 6px; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
header {
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: white;
  position: fixed;
  width: 100%; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(14, 165, 233, 0.07);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(8, 13, 26, 0.97);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(14, 165, 233, 0.15);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  font-size: 1.35rem; font-weight: 900;
  color: var(--accent-orange);
  letter-spacing: -0.5px; cursor: pointer;
  user-select: none;
}

.nav-links { display: flex; list-style: none; gap: 0.2rem; }

.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem; font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a:focus {
  color: white;
  background: rgba(255,255,255,0.07);
  outline: none;
}

.nav-links a.active {
  color: var(--accent-orange);
  background: rgba(245,158,11,0.08);
}

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.language-switcher {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.04);
  padding: 3px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.06);
}

.lang-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.45);
  padding: 0.2rem 0.5rem; cursor: pointer;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: calc(var(--border-radius) - 2px);
  transition: var(--transition);
  font-family: var(--font-family);
}

.lang-btn:hover { color: white; background: rgba(255,255,255,0.07); }
.lang-btn.active { background: var(--primary-blue); color: white; }

.theme-toggle {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.65);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 0.875rem;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.18);
}

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.hamburger:hover { background: rgba(255,255,255,0.07); }

.hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px; transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(8, 13, 26, 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  border-bottom: 1px solid rgba(14,165,233,0.1);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }

.mobile-menu ul { list-style: none; padding: 0.5rem 1.5rem 1.5rem; }

.mobile-menu ul li a {
  display: flex; align-items: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.875rem 0;
  font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover { color: var(--accent-orange); padding-left: 6px; }

/* ═══════════════════════════════════════════
   HERO — SPLIT LAYOUT
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--primary-dark);
  color: white;
  padding: 88px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Ambient glow layers */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 10% 40%, rgba(14,165,233,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 90% 15%, rgba(139,92,246,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 35% 45% at 75% 85%, rgba(245,158,11,0.07) 0%, transparent 50%);
  animation: ambientShift 12s ease-in-out infinite alternate;
}

/* Subtle grid */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 90% at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 20%, transparent 75%);
}

@keyframes ambientShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 12px) scale(1.04); }
}

.hero .container { position: relative; z-index: 1; width: 100%; padding-top: 2rem; padding-bottom: 2rem; }

/* Split layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 240px);
}

/* LEFT: text */
.hero-text { animation: fadeInLeft 0.9s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Available badge */
.hero-available {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.76rem; font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 1.75rem;
  letter-spacing: 0.3px;
}

.available-dot {
  width: 7px; height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* Name — huge + gradient */
.hero-name {
  display: block;
  font-size: clamp(3.8rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
  color: white;
}

.hero-name--gradient {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #fbbf24 40%, var(--primary-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing subtitle */
.subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.55);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.25px;
}

.typing-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent-orange); border-radius: 1px;
  vertical-align: middle;
  animation: cursorBlink 1.1s step-end infinite;
}

@keyframes cursorBlink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.description {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.85;
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* PRIMARY CTA */
.cta-button {
  background: var(--accent-orange);
  color: var(--primary-dark);
  padding: 0.875rem 1.875rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 700; font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
  position: relative; overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover, .cta-button:focus {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  outline: none;
}

.cta-button:hover::before { left: 100%; }

/* SECONDARY CTA */
.cta-secondary {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 0.875rem 1.875rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.18);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}

.cta-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  color: white;
}

/* CV Download */
.cta-cv {
  background: transparent;
  color: rgba(255,255,255,0.65);
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.45rem;
}

.cta-cv::before {
  content: '\f019';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
}

.cta-cv:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  color: white;
  transform: translateY(-2px);
}

/* Social links */
.hero-social { display: flex; gap: 0.625rem; }

.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none; transition: var(--transition);
  font-size: 0.875rem;
}

.social-link:hover {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.4);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* RIGHT: visual with floating badges */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem;
  animation: fadeInRight 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

/* Glow behind photo */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowBreath 5s ease-in-out infinite;
}

@keyframes glowBreath {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Profile image */
.profile-img-wrapper {
  position: relative;
  width: 260px; height: 260px;
  z-index: 1;
}

.profile-img-wrapper::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange), var(--accent-purple), var(--primary-blue));
  background-size: 300% 300%;
  animation: ringRotate 4s linear infinite;
  z-index: 0;
}

@keyframes ringRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-img {
  width: 254px; height: 254px;
  border-radius: 50%;
  border: 4px solid var(--primary-dark);
  object-fit: cover;
  display: block;
  position: relative; z-index: 1;
  transition: transform 0.4s ease;
}

.profile-img:hover { transform: scale(1.03); }

/* Floating tech badges */
.tech-badge {
  position: absolute;
  background: rgba(12, 18, 36, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  padding: 0.5rem 0.875rem;
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  letter-spacing: 0.2px;
  z-index: 2;
}

.tech-badge i { font-size: 1rem; }

.tech-badge--aws      { top: -5px;   right: -8px;  animation: floatA 3.6s ease-in-out infinite; }
.tech-badge--postgres { top: 22%;    right: -14px; animation: floatB 4.2s ease-in-out infinite 0.1s; }
.tech-badge--react    { top: 47%;    right: -14px; animation: floatC 3.8s ease-in-out infinite 0.4s; }
.tech-badge--docker   { bottom: 2%;  right: -8px;  animation: floatD 3.5s ease-in-out infinite 0.6s; }
.tech-badge--nestjs   { bottom: -10px; left: 28%;  animation: floatE 4.0s ease-in-out infinite 0.3s; }
.tech-badge--kafka    { bottom: 2%;  left: -8px;   animation: floatF 3.7s ease-in-out infinite 0.5s; }
.tech-badge--redis    { top: 47%;    left: -14px;  animation: floatG 4.1s ease-in-out infinite 0.2s; }
.tech-badge--node     { top: 22%;    left: -14px;  animation: floatH 4.3s ease-in-out infinite 0.7s; }
.tech-badge--ts       { top: -5px;   left: -8px;   animation: floatI 3.9s ease-in-out infinite 0.4s; }

@keyframes floatA { 0%,100% { transform: translate(0,0) rotate(-1deg); } 50% { transform: translate(-4px,-9px) rotate(1deg); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) rotate(1deg);  } 50% { transform: translate(5px,-8px) rotate(-1deg); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) rotate(-2deg); } 50% { transform: translate(-5px,-10px) rotate(2deg); } }
@keyframes floatD { 0%,100% { transform: translate(0,0) rotate(1deg);  } 50% { transform: translate(6px,-7px) rotate(-2deg); } }
@keyframes floatE { 0%,100% { transform: translate(0,0) rotate(-1deg); } 50% { transform: translate(-3px,-11px) rotate(1deg); } }
@keyframes floatF { 0%,100% { transform: translate(0,0) rotate(2deg);  } 50% { transform: translate(4px,-8px) rotate(-2deg); } }
@keyframes floatG { 0%,100% { transform: translate(0,0) rotate(-2deg); } 50% { transform: translate(-6px,-9px) rotate(1deg); } }
@keyframes floatH { 0%,100% { transform: translate(0,0) rotate(1deg);  } 50% { transform: translate(7px,-8px) rotate(-1deg); } }
@keyframes floatI { 0%,100% { transform: translate(0,0) rotate(-1deg); } 50% { transform: translate(-3px,-10px) rotate(2deg); } }

/* Stats row */
.hero-stats {
  display: flex;
  justify-content: flex-start;
  gap: 4rem;
  padding: 2.5rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

.stat-item { text-align: left; }

.stat-number {
  display: block;
  font-size: 2.5rem; font-weight: 900;
  color: var(--accent-orange);
  line-height: 1; margin-bottom: 0.3rem;
  letter-spacing: -1.5px;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 600;
}

/* ── SECTION BASE ── */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 3.5rem;
  letter-spacing: -1px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  position: absolute; bottom: -14px; left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about { padding: 100px 0; background: var(--bg-secondary); }

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

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-text p + p { margin-top: 1.25rem; }

.about-highlights {
  background: var(--bg-card);
  padding: 2rem; border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.about-highlights h3 {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 2px; font-weight: 700;
  color: var(--primary-blue); margin-bottom: 1.5rem;
}

.qualities-list { list-style: none; }

.highlight-item {
  display: flex; align-items: center;
  margin-bottom: 0.625rem; gap: 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition); cursor: default;
}

.highlight-item:hover { background: rgba(14,165,233,0.05); }

.highlight-icon {
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
  border-radius: 50%; flex-shrink: 0;
}

.highlight-icon--cert {
  width: auto; height: auto;
  background: none; border-radius: 0;
  font-size: 1rem; flex-shrink: 0;
}

.highlight-item span { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.highlight-item--cert span { font-weight: 600; color: var(--text-primary); }

/* ═══════════════════════════════════════════
   CERTIFICATIONS
═══════════════════════════════════════════ */
.certifications { padding: 100px 0; background: var(--bg-primary); }

.certs-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  max-width: 480px;
  width: 100%;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.3);
}

.cert-badge-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.cert-card:hover .cert-img {
  transform: scale(1.06) rotate(-2deg);
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-issuer {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-blue);
}

.cert-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition);
  margin-top: 0.25rem;
}

.cert-verify::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
}

.cert-verify:hover {
  color: var(--accent-orange-dark);
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .cert-card { flex-direction: column; text-align: center; align-items: center; }
  .cert-info { align-items: center; }
}

/* ═══════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════ */
.experience { padding: 100px 0; background: var(--bg-primary); }

.timeline {
  position: relative;
  max-width: 960px; margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute; width: 2px;
  background: linear-gradient(to bottom, var(--primary-blue), var(--accent-orange), var(--accent-purple));
  top: 0; bottom: 0; left: 50%; margin-left: -1px;
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  background: var(--bg-card);
  padding: 2rem; margin: 2.25rem 0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  width: 46%; transition: var(--transition);
  border: 1px solid var(--border-color);
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.25);
}

.timeline-item:nth-child(odd) { left: 0; margin-right: auto; }
.timeline-item:nth-child(even) { margin-left: auto; }

.timeline-item::before {
  content: ""; position: absolute;
  width: 0; height: 0; top: 2rem;
}

.timeline-item:nth-child(odd)::before {
  right: -11px;
  border-left: 11px solid var(--bg-card);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.timeline-item:nth-child(even)::before {
  left: -11px;
  border-right: 11px solid var(--bg-card);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.timeline-dot {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--accent-orange);
  border: 3px solid var(--bg-primary);
  border-radius: 50%; top: 2.125rem; z-index: 1;
  box-shadow: 0 0 0 3px var(--primary-blue), 0 0 16px rgba(14,165,233,0.3);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 3px var(--primary-blue), 0 0 10px rgba(14,165,233,0.2); }
  50% { box-shadow: 0 0 0 5px rgba(14,165,233,0.25), 0 0 24px rgba(14,165,233,0.35); }
}

.timeline-item:nth-child(odd) .timeline-dot  { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left: -7px; }

.job-title {
  color: var(--text-primary);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.3rem; letter-spacing: -0.25px;
}

.company {
  color: var(--primary-blue);
  font-weight: 600; font-size: 0.875rem;
  margin-bottom: 0.3rem;
}

.period {
  color: var(--text-muted); font-size: 0.78rem;
  margin-bottom: 1rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.375rem;
}

.period::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-orange); flex-shrink: 0;
}

.job-description { color: var(--text-secondary); line-height: 1.75; font-size: 0.875rem; }
.job-description ul { padding-left: 1.2rem; }
.job-description li { margin-bottom: 0.45rem; }

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
.skills { padding: 100px 0; background: var(--bg-secondary); }

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

.skill-category {
  background: var(--bg-card);
  padding: 1.875rem; border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.22);
}

.skill-category h3 {
  color: var(--text-primary); margin-bottom: 1.375rem;
  font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.625rem;
  text-transform: uppercase; letter-spacing: 1px;
}

.skill-category h3 i { font-size: 1.1rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tag {
  background: rgba(14,165,233,0.07);
  color: var(--primary-blue);
  padding: 0.45rem 0.875rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.375rem;
  transition: var(--transition);
  border: 1px solid rgba(14,165,233,0.13);
  cursor: default; position: relative; overflow: hidden;
}

.skill-tag::after {
  content: ''; position: absolute; top: -50%; left: -100%;
  width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.4s; transform: skewX(-15deg);
}

.skill-tag:hover {
  background: var(--primary-blue);
  color: white; border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
}

.skill-tag:hover::after { left: 150%; }
.skill-tag i { font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact {
  padding: 100px 0;
  background: var(--primary-dark);
  color: white; text-align: center;
  position: relative; overflow: hidden;
}

.contact::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 25% 50%, rgba(14,165,233,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(139,92,246,0.07) 0%, transparent 55%);
}

.contact::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

.contact .container { position: relative; z-index: 1; }
.contact .section-title { color: white; }

.contact-description {
  color: rgba(255,255,255,0.5);
  max-width: 460px; margin: -1.5rem auto 3rem;
  font-size: 0.975rem; line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; max-width: 900px; margin: 0 auto;
}

.contact-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(14,165,233,0.07);
  border-color: rgba(14,165,233,0.25);
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
}

.contact-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: white;
  margin-bottom: 0.25rem;
}

.contact-item strong {
  font-size: 0.67rem; text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3); font-weight: 700;
}

.contact-item a, .contact-item span {
  color: rgba(255,255,255,0.78);
  text-decoration: none; font-size: 0.875rem;
  transition: var(--transition); font-weight: 500;
}

.contact-item a:hover { color: var(--accent-orange); }

/* ── FOOTER ── */
footer {
  background: #03060e;
  color: rgba(255,255,255,0.25);
  text-align: center; padding: 1.5rem 0;
  font-size: 0.8rem; font-weight: 500;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 42px; height: 42px;
  background: var(--accent-orange); color: var(--primary-dark);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; z-index: 998;
  opacity: 0; transform: translateY(16px);
  transition: var(--transition);
  box-shadow: var(--shadow-orange);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-orange-dark); transform: translateY(-3px); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fade-in { animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.slide-in-left { animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.slide-in-right { animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 3rem;
    padding-top: 1rem;
  }

  .hero-text {
    order: 2;
    text-align: center;
    animation: fadeInUp 0.9s ease-out both;
  }

  .hero-visual {
    order: 1;
    animation: fadeInUp 0.9s ease-out both;
    padding: 3rem 2rem;
  }

  .hero-available { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }
  .description { margin-left: auto; margin-right: auto; }
  .tech-badge { display: none; }
  .hero-stats { justify-content: center; gap: 2.5rem; }
  .stat-item { text-align: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: 68px; }
  .hero-name { font-size: clamp(3rem, 10vw, 4rem); letter-spacing: -2px; }

  .about-content { grid-template-columns: 1fr; gap: 2rem; }

  .timeline { padding: 0 0.5rem; }
  .timeline::after { left: 18px; }
  .timeline-item {
    width: calc(100% - 48px);
    left: 48px !important;
    margin: 1.5rem 0; padding: 1.5rem;
  }
  .timeline-item:nth-child(even) { margin-left: 48px; }
  .timeline-item::before { display: none; }
  .timeline-dot { left: -26px !important; right: auto !important; width: 12px; height: 12px; }

  .contact-grid { grid-template-columns: 1fr 1fr; max-width: 480px; }
  .skills-grid { grid-template-columns: 1fr; }

  .cta-button, .cta-secondary {
    width: 100%; max-width: 280px; justify-content: center;
  }

  .hero-stats { gap: 2rem; }
  .stat-number { font-size: 2.25rem; }

  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .timeline-item, .skill-category, .hero-text, .hero-visual, .section-title {
    opacity: 1 !important; animation: none !important;
  }
  .hero::before, .profile-img-wrapper::before, .timeline-dot,
  .available-dot, .hero-visual::before { animation: none !important; }
}
