

:root {
  /* Palette */
  --bg-color: #070b16;
  --bg-secondary: #0b1120;
  --surface: rgba(17, 24, 39, 0.55);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --secondary: #a855f7;
  --tertiary: #6366f1;
  --accent-1: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --success: #10b981;

  /* Gradients */
  --gradient-brand: linear-gradient(100deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --gradient-text: linear-gradient(110deg, #7dd3fc, #818cf8 45%, #d8b4fe 90%);
  --gradient-border: linear-gradient(120deg, rgba(56, 189, 248, 0.5), rgba(255, 255, 255, 0.06) 40%, rgba(168, 85, 247, 0.5));

  /* Glass */
  --glass-bg: rgba(13, 20, 36, 0.55);
  --glass-bg-strong: rgba(10, 16, 30, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.08);

  /* Shell */
  --nav-bg: rgba(10, 16, 30, 0.6);

  /* Type */
  --font-display: 'Sora', 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 40px -8px rgba(99, 102, 241, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e293b, #334155);
  border-radius: 9999px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Layout Utilities */
.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.container-small { max-width: 896px; margin: 0 auto; }
.container-mini { max-width: 768px; margin: 0 auto; }

/* ---------- Ambient Background ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -20;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: blob-float 14s var(--ease-out) infinite;
}
.blob-1 { width: 420px; height: 420px; top: -120px; left: -90px; background: radial-gradient(circle, var(--secondary), transparent 70%); }
.blob-2 { width: 380px; height: 380px; top: 8%; right: -80px; background: radial-gradient(circle, var(--primary), transparent 70%); animation-delay: -5s; }
.blob-3 { width: 460px; height: 460px; bottom: -160px; left: 30%; background: radial-gradient(circle, var(--tertiary), transparent 70%); animation-delay: -9s; }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.12); }
  66% { transform: translate(-30px, 30px) scale(0.92); }
}

/* Subtle noise texture */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -15;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Grid vignette behind the hero */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
}

/* ---------- Glassmorphism ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.glass-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

/* ---------- Reveal-on-scroll (JS toggles .in-view) ---------- */
.reveal { opacity: 0; }
.reveal.in-view {
  animation: fade-up 0.8s var(--ease-out) forwards;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s, color 0.3s;
}

.btn-primary {
  padding: 16px 34px;
  background: linear-gradient(120deg, #f1f5f9, #e7edf5);
  color: #0b1120;
  font-size: 16px;
  box-shadow: 0 14px 30px -14px rgba(255, 255, 255, 0.25);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(255, 255, 255, 0.3); }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-brand {
  color: #fff;
  background: var(--gradient-brand);
  padding: 16px 36px;
  font-size: 18px;
  box-shadow: 0 16px 40px -16px var(--shadow-glow);
}
.btn-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-brand:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -6px rgba(129, 140, 248, 0.5); }
.btn-brand:hover::before { transform: translateX(120%); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 18px 0;
  transition: padding 0.35s var(--ease-out), background-color 0.35s;
}
.navbar.scrolled { padding: 10px 0; }

.nav-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 10px 24px;
  border-radius: 9999px;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  background:
    linear-gradient(var(--nav-bg), var(--nav-bg)) padding-box,
    var(--gradient-border) border-box;
  box-shadow: 0 16px 50px -24px rgba(0, 0, 0, 0.8);
  transition: padding 0.35s var(--ease-out), box-shadow 0.35s;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-logo i { color: var(--primary); }
.nav-logo span { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-logo::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }

.nav-links { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: 9999px;
  color: #cbd5e1;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text-main); }

.nav-btn {
  padding: 10px 22px;
  margin-left: 8px;
  border-radius: 9999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  transition: all 0.3s var(--ease-out);
}
.nav-btn:hover { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 24px -6px rgba(56, 189, 248, 0.5); transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  color: #e2e8f0;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

/* Mobile menu (premium overlay) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  padding: 120px 24px 40px;
  background: rgba(6, 10, 20, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
}
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s, background-color 0.3s;
  transform: translateY(14px);
  opacity: 0;
}
.mobile-menu.active .mobile-link { animation: mobile-in 0.5s var(--ease-out) forwards; }
.mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-link i { color: var(--primary); font-size: 18px; }
.mobile-link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.mobile-link:hover i { transform: translateX(4px); }
.mobile-link i { transition: transform 0.3s; }

@keyframes mobile-in {
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 0;
  text-align: center;
  position: relative;
}
.hero-content { opacity: 0; transform: translateY(24px); animation: fade-up 0.9s var(--ease-out) 0.1s forwards; }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  margin-bottom: 32px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.status-dot { position: relative; width: 10px; height: 10px; }
.status-dot-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--success); opacity: 0.75;
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.status-dot-core { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 28px;
}
.hero-title-line { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite alternate;
}
@keyframes gradient-shift {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

.hero-tagline {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 24px auto 20px;
  line-height: 1.65;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Hero meta (location / email) */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: -8px auto 40px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.hero-meta-item i { color: var(--accent-1); font-size: 15px; }
a.hero-meta-item:hover { color: var(--text-main); }
.hero-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }

.social-links { display: flex; gap: 12px; }
.social-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 24px;
  transition: all 0.35s var(--ease-out);
}
.social-icon i { transition: transform 0.35s var(--ease-out); }
.social-icon:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 12px 30px -10px rgba(56, 189, 248, 0.45);
}
.social-icon:hover i { transform: scale(1.1); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-faint);
  border: 1px solid var(--glass-border);
  animation: cue-bob 2.4s var(--ease-out) infinite;
  transition: color 0.3s, border-color 0.3s;
}
.scroll-cue:hover { color: var(--primary); border-color: rgba(56, 189, 248, 0.5); }
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 24px; position: relative; }
.section-bg {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent 60%);
}

.section-head { margin-bottom: clamp(36px, 6vw, 60px); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.section-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
}
.section-eyebrow-num { font-family: var(--font-display); color: var(--text-faint); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- About ---------- */
.about-card {
  padding: clamp(32px, 6vw, 56px);
  border-radius: var(--radius-xl);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.8;
  color: #cbd5e1;
}
.about-card p { font-weight: 300; }
.about-card p strong { color: var(--text-main); font-weight: 600; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 26px);
}
.skill-card {
  padding: 26px 26px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 100% at 0 0, rgba(56, 189, 248, 0.14), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.skill-icon, .skill-name, .skill-level { position: relative; z-index: 1; }
.skill-card:hover::before { opacity: 1; }
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.skill-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  color: var(--accent-1);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.skill-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-main); }
.skill-level {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.14), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(129, 140, 248, 0.25);
  margin-bottom: 14px;
}
.skill-items { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-item {
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}
.skill-card:hover .skill-item {
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;
}

/* ---------- Experience / Timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), var(--accent-3), transparent);
  opacity: 0.5;
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), 0 0 18px rgba(56, 189, 248, 0.6);
}
.timeline-card { padding: clamp(24px, 4vw, 34px); border-radius: var(--radius-lg); }
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.timeline-role { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }
.timeline-company {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--accent-1);
  font-size: 14px;
  font-weight: 600;
}
.timeline-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-weight: 400;
}
.timeline-period {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-variant-numeric: tabular-nums;
}
.timeline-highlights { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.timeline-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
  color: #cbd5e1;
  line-height: 1.6;
}
.timeline-highlights li i {
  margin-top: 3px;
  font-size: 14px;
  color: var(--accent-1);
}

/* ---------- Education & Languages ---------- */
.edu-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.edu-list { display: flex; flex-direction: column; gap: 16px; }
.edu-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}
.edu-card:hover { transform: translateY(-4px); border-color: rgba(129, 140, 248, 0.35); box-shadow: var(--shadow-glow); }
.edu-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.16), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.edu-info { flex: 1; min-width: 0; }
.edu-degree { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.4; }
.edu-school { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--accent-1); }
.edu-period {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-variant-numeric: tabular-nums;
}

.lang-card { padding: clamp(24px, 4vw, 34px); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 24px; }
.lang-row { display: flex; flex-direction: column; gap: 10px; }
.lang-head { display: flex; justify-content: space-between; align-items: center; }
.lang-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.lang-level {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
}
.lang-bar { height: 8px; border-radius: 9999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.lang-bar-fill {
  display: block;
  height: 100%;
  width: var(--level, 70%);
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), var(--shadow-glow);
}
.project-image-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.8s var(--ease-out), filter 0.8s;
  filter: saturate(0.85);
}
.project-card:hover .project-image {
  transform: scale(1.12);
  filter: saturate(1.1);
}
.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 22, 0.9));
  pointer-events: none;
}
.project-icon {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  opacity: 0;
  transform: translateY(8px) scale(0.8);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 8px 24px -6px rgba(56, 189, 248, 0.6);
}
.project-card:hover .project-icon { opacity: 1; transform: translateY(0) scale(1); }
.project-info { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.project-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.project-card:hover .project-title { color: var(--accent-1); }
.project-desc { color: var(--text-muted); margin-bottom: 22px; line-height: 1.65; font-size: 15px; font-weight: 300; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.project-tag {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #cbd5e1;
  transition: all 0.3s;
}
.project-card:hover .project-tag { border-color: rgba(148, 163, 184, 0.3); }
.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s;
}
.project-link i { transition: transform 0.3s var(--ease-out); }
.project-link:hover { color: var(--accent-1); }
.project-link:hover i { transform: translate(3px, -3px); }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  padding: clamp(48px, 8vw, 80px);
  border-radius: clamp(28px, 5vw, 48px);
  margin-bottom: 48px;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(60% 80% at 80% 100%, rgba(168, 85, 247, 0.12), transparent 60%);
  pointer-events: none;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.contact-desc {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}
.contact-head { position: relative; z-index: 1; }

/* Contact form */
.contact-form {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 9px; }
.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }
.form-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}
.form-field input:hover,
.form-field textarea:hover { border-color: rgba(148, 163, 184, 0.35); }

.form-submit { width: 100%; margin-top: 4px; }
.form-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* reCAPTCHA */
.form-recaptcha { display: flex; justify-content: center; }
.form-recaptcha .g-recaptcha { transform-origin: center; transform: scale(0.95); }
.recaptcha-help { margin-top: 0; }
.recaptcha-help[hidden] { display: none; }

/* Honeypot antispam field */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-direct {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-faint);
}
.form-direct a { color: var(--accent-1); font-weight: 500; transition: color 0.3s; }
.form-direct a:hover { color: var(--accent-2); }

/* Contact direct info row */
.contact-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  word-break: break-word;
}
.contact-direct-item i {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 17px;
  color: var(--accent-1);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.contact-direct-item span { display: flex; flex-direction: column; gap: 2px; }
.contact-direct-item small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
a.contact-direct-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

.form-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid;
}
.form-status i { font-size: 20px; }
.form-status-success {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}
.form-status-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 24px 64px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.footer a { color: var(--text-muted); transition: color 0.3s; }
.footer a:hover { color: var(--accent-1); }
.footer-links { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.footer-links span { color: var(--text-faint); }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  box-shadow: 0 12px 34px -10px rgba(56, 189, 248, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease-out);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(56, 189, 248, 0.75); }

/* ---------- Keyframes / Utilities ---------- */
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}

@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; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-lang-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu.active { visibility: visible; }
  .hero { align-items: flex-start; padding-top: 140px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 24px; }
  .hero-actions .social-links { justify-content: center; }
  .hero-meta { margin: -4px auto 32px; padding: 0 16px; }
  .btn-primary { width: 100%; }
  .scroll-cue { bottom: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-card { padding: 32px 24px; border-radius: 24px; }
  .contact-card { padding: 56px 24px; border-radius: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-recaptcha .g-recaptcha { transform: scale(0.82); }
  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .form-recaptcha { overflow: visible; }
  .form-recaptcha .g-recaptcha { transform: scale(0.72); }
  .container, .container-small { padding: 0 20px; }
  .nav-container { padding: 8px 10px 8px 18px; }
  .mobile-toggle { width: 42px; height: 42px; }
  .hero { padding-top: 96px; }
  .section-eyebrow { letter-spacing: 0.16em; }
  .social-links { gap: 10px; }
  .social-icon { width: 46px; height: 46px; font-size: 21px; }
  .footer { padding-bottom: 100px; }
}