@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
  --ink:        #1c1917;
  --ink2:       #57534e;
  --ink3:       #a8a29e;
  --paper:      #faf9f7;
  --paper2:     #f5f3ef;
  --paper3:     #ede8e3;
  --border:     rgba(87,83,78,0.14);
  --border2:    rgba(87,83,78,0.22);
  --rust:       #c2622a;
  --rust-soft:  rgba(194,98,42,0.10);
  --rust-glow:  rgba(194,98,42,0.18);
  --teal:       #2a7a6e;
  --teal-soft:  rgba(42,122,110,0.10);
  --warm-card:  rgba(255,255,253,0.85);
  --nav-bg:     rgba(250,249,247,0.92);
  --shadow-sm:  0 2px 12px rgba(28,25,23,0.07);
  --shadow-md:  0 8px 32px rgba(28,25,23,0.10);
  --shadow-lg:  0 20px 60px rgba(28,25,23,0.12);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  22px;
}

[data-theme="dark"] {
  --ink:        #f5f0eb;
  --ink2:       #a8a29e;
  --ink3:       #57534e;
  --paper:      #171412;
  --paper2:     #1e1a18;
  --paper3:     #26221f;
  --border:     rgba(245,240,235,0.09);
  --border2:    rgba(245,240,235,0.16);
  --warm-card:  rgba(30,26,24,0.85);
  --nav-bg:     rgba(23,20,18,0.92);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
  line-height: 1.6;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(194,98,42,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(42,122,110,0.04) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}

section, nav, footer { position: relative; z-index: 1; }

/* ── SCROLL BAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--rust), var(--teal));
  z-index: 200; transition: width 0.1s linear;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 62px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  transition: background 0.35s;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-logo span { color: var(--rust); }

.nav-links {
  display: flex; gap: 0.15rem; align-items: center;
}
.nav-links a {
  color: var(--ink2); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--rust); background: var(--rust-soft);
}

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.avail-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 500;
  color: var(--teal);
  border: 1px solid rgba(42,122,110,0.3);
  background: var(--teal-soft);
  padding: 0.3rem 0.7rem; border-radius: 20px;
  white-space: nowrap;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  animation: pulse 2.2s infinite;
}

.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--warm-card); color: var(--ink2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s; font-size: 1rem; flex-shrink: 0;
}
.icon-btn:hover { color: var(--rust); border-color: var(--rust); transform: translateY(-1px); }

.theme-btn {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--warm-card); color: var(--ink2);
  padding: 0 0.75rem; height: 36px;
  cursor: pointer; font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s; font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap; flex-shrink: 0;
}
.theme-btn:hover { color: var(--rust); border-color: var(--rust); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; flex-shrink: 0;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--ink2); border-radius: 2px;
  transition: 0.3s;
}

#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px clamp(1rem, 5vw, 2.5rem) 4rem;
  max-width: 1080px; margin: 0 auto;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero-text { flex: 1; min-width: 0; }

.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: var(--rust); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 1rem;
  opacity: 0; animation: fadeUp 0.5s 0.1s ease forwards;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -1.5px; margin-bottom: 0.6rem;
  opacity: 0; animation: fadeUp 0.5s 0.2s ease forwards;
}
.hero-name em {
  font-style: normal; color: var(--rust);
}

.hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem; color: var(--ink2);
  margin-bottom: 1.6rem; min-height: 1.5em;
  opacity: 0; animation: fadeUp 0.5s 0.3s ease forwards;
}
.cursor {
  display: inline-block; width: 2px; height: 0.95em;
  background: var(--rust); margin-left: 2px; vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-desc {
  font-size: 1rem; color: var(--ink2); line-height: 1.85;
  max-width: 480px; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.5s 0.4s ease forwards;
}
.hero-desc strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.5s 0.5s ease forwards;
}

.btn-primary {
  padding: 0.78rem 1.8rem; border-radius: var(--radius);
  background: var(--rust); color: #fff;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: all 0.22s; box-shadow: 0 4px 18px var(--rust-glow);
  border: none; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover {
  background: #a8511f; transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--rust-glow);
}

.btn-secondary {
  padding: 0.78rem 1.8rem; border-radius: var(--radius);
  border: 1.5px solid var(--border2); color: var(--ink);
  font-weight: 500; font-size: 0.9rem; text-decoration: none;
  background: var(--warm-card); transition: all 0.22s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover {
  border-color: var(--rust); color: var(--rust); transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Hero stats */
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2rem;
  opacity: 0; animation: fadeUp 0.5s 0.6s ease forwards;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--rust);
  display: block; line-height: 1;
}
.stat-label { font-size: 0.72rem; color: var(--ink3); text-transform: uppercase; letter-spacing: 1px; }

/* Photo */
.hero-photo-wrap {
  flex-shrink: 0; position: relative;
  opacity: 0; animation: fadeUp 0.5s 0.25s ease forwards;
}
.hero-photo-frame {
  width: clamp(210px, 25vw, 290px);
  height: clamp(240px, 30vw, 340px);
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-lg);
}
.hero-photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Decorative ring */
.hero-photo-wrap::before {
  content: '';
  position: absolute; inset: -10px;
  border-radius: calc(var(--radius-lg) + 10px);
  border: 1.5px solid rgba(194,98,42,0.2);
  z-index: -1;
}
.hero-photo-wrap::after {
  content: '';
  position: absolute; bottom: -16px; right: -16px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--rust-soft);
  z-index: -1;
}

/* ══════════════════════════════════
   SECTION COMMON
══════════════════════════════════ */
.section-wrap { max-width: 1080px; margin: 0 auto; padding: 5rem clamp(1rem, 5vw, 2.5rem); }
.section-header { margin-bottom: 2.8rem; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--rust); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.8px; color: var(--ink);
}

/* Dividers between sections */
#experience { background: var(--paper2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#skills     { background: var(--paper2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#certifications { background: var(--paper2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ══════════════════════════════════
   EDUCATION
══════════════════════════════════ */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.edu-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; background: var(--warm-card);
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.edu-card:hover { border-color: var(--rust); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.edu-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--teal));
}
.edu-icon { font-size: 1.6rem; margin-bottom: 0.9rem; }
.edu-degree { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.3; }
.edu-school { color: var(--rust); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.25rem; }
.edu-date { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--ink3); margin-bottom: 0.7rem; }
.edu-desc { font-size: 0.85rem; color: var(--ink2); line-height: 1.6; }
.edu-badge {
  display: inline-block; margin-top: 0.65rem;
  font-size: 0.67rem; font-family: 'JetBrains Mono', monospace;
  padding: 0.18rem 0.55rem; border-radius: 4px;
  background: var(--rust-soft); color: var(--rust);
  border: 1px solid rgba(194,98,42,0.22);
}

/* ══════════════════════════════════
   EXPERIENCE
══════════════════════════════════ */
.exp-list { display: flex; flex-direction: column; gap: 1.25rem; }
.exp-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; background: var(--warm-card);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.exp-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--rust), var(--teal));
}
.exp-card:hover { border-color: var(--rust); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.exp-role { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.exp-company { color: var(--rust); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.exp-company:hover { text-decoration: underline; }
.exp-desc { color: var(--ink2); font-size: 0.875rem; margin-top: 0.65rem; line-height: 1.7; }
.exp-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--ink3);
  white-space: nowrap; padding-top: 0.2rem;
  display: flex; align-items: flex-start;
}
.exp-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-family: 'JetBrains Mono', monospace;
  padding: 0.2rem 0.6rem; border-radius: 20px; margin-top: 0.7rem;
  background: var(--teal-soft); color: var(--teal);
  border: 1px solid rgba(42,122,110,0.25);
}
.exp-badge::before { content: '●'; font-size: 0.48rem; animation: pulse 2s infinite; }

/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.project-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--warm-card); overflow: hidden;
  transition: all 0.25s;
}
.project-card:hover { border-color: var(--rust); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-img {
  height: 150px; background: var(--paper3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-icon { font-size: 2.4rem; z-index: 1; }

/* Marquee */
.marquee-container { width: 100%; overflow: hidden; height: 100%; display: flex; align-items: center; }
.marquee-track { display: flex; gap: 2.5rem; animation: marquee 10s linear infinite; white-space: nowrap; }
.marquee-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink3); opacity: 0.5; user-select: none;
  text-transform: uppercase; letter-spacing: 3px;
}

.project-body { padding: 1.35rem 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.7rem; }
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem; padding: 0.18rem 0.55rem; border-radius: 4px;
  background: var(--rust-soft); color: var(--rust);
  border: 1px solid rgba(194,98,42,0.18);
}
.project-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.project-desc { font-size: 0.85rem; color: var(--ink2); line-height: 1.65; }

/* ══════════════════════════════════
   SKILLS
══════════════════════════════════ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.skill-group {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; background: var(--warm-card);
  transition: border-color 0.25s;
}
.skill-group:hover { border-color: var(--rust); }
.skill-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--teal); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.skill-group-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.skill-items { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--border);
  transition: all 0.2s;
}
.skill-item:hover { border-color: var(--rust); transform: translateX(4px); }
.skill-icon { font-size: 1rem; width: 22px; text-align: center; }
.skill-name { font-size: 0.875rem; font-weight: 500; }
.skill-bar-wrap { margin-left: auto; width: 55px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.skill-bar { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--rust), var(--teal)); }

/* ══════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cert-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; background: var(--warm-card);
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all 0.22s;
}
.cert-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cert-badge {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--teal-soft); border: 1px solid rgba(42,122,110,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.cert-body { flex: 1; min-width: 0; }
.cert-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.2rem; line-height: 1.35; }
.cert-issuer { font-size: 0.75rem; color: var(--teal); margin-bottom: 0.2rem; }
.cert-date { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--ink3); }

/* ══════════════════════════════════
   LANGUAGES
══════════════════════════════════ */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.lang-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; background: var(--warm-card); text-align: center;
  transition: border-color 0.22s;
}
.lang-card:hover { border-color: var(--rust); }
.lang-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.lang-level { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--rust); margin-bottom: 0.65rem; }
.lang-dots { display: flex; justify-content: center; gap: 5px; }
.lang-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--border2); }
.lang-dot.filled { background: var(--rust); border-color: var(--rust); }

/* ══════════════════════════════════
   RESUME BANNER
══════════════════════════════════ */
.resume-banner {
  background: linear-gradient(135deg, var(--rust-soft), var(--teal-soft));
  border: 1px solid rgba(194,98,42,0.2); border-radius: var(--radius);
  padding: 1.4rem 1.8rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.8rem;
}
.resume-banner-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.resume-banner-sub { font-size: 0.83rem; color: var(--ink2); }
.btn-resume {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.72rem 1.5rem; border-radius: var(--radius);
  background: var(--rust); color: #fff;
  font-weight: 600; font-size: 0.88rem; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
  box-shadow: 0 4px 18px var(--rust-glow);
}
.btn-resume:hover { background: #a8511f; transform: translateY(-2px); }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
#contact { background: var(--paper); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-intro { font-size: 0.98rem; color: var(--ink2); line-height: 1.85; margin-bottom: 1.8rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.95rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--warm-card);
  color: var(--ink); text-decoration: none; transition: all 0.22s;
}
.contact-link:hover {
  border-color: var(--rust); color: var(--rust);
  transform: translateX(6px); box-shadow: var(--shadow-sm);
}
.contact-link-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--paper3); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-link-info { flex: 1; }
.contact-link-title { font-weight: 600; font-size: 0.88rem; }
.contact-link-sub { font-size: 0.76rem; color: var(--ink2); margin-top: 0.1rem; }
.contact-link-arrow { color: var(--ink3); font-size: 0.8rem; transition: transform 0.2s; }
.contact-link:hover .contact-link-arrow { transform: translateX(4px); color: var(--rust); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.75rem; color: var(--ink2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-textarea {
  background: var(--warm-card); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 0.72rem 1rem;
  color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; resize: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--rust); box-shadow: 0 0 0 3px var(--rust-soft);
}
.form-textarea { min-height: 115px; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
  font-size: 0.8rem; color: var(--ink3);
  background: var(--paper2);
}
footer span { color: var(--rust); font-weight: 600; }

/* ══════════════════════════════════
   BACK TO TOP
══════════════════════════════════ */
.back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--warm-card); border: 1px solid var(--border2);
  color: var(--ink2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; z-index: 50;
  transition: all 0.3s; opacity: 0; transform: translateY(10px);
  font-size: 1rem; box-shadow: var(--shadow-sm);
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { color: var(--rust); border-color: var(--rust); transform: translateY(-3px); }

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes barGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   RESPONSIVE — TABLET (768px)
══════════════════════════════════ */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .avail-pill { display: none; }
}

/* Mobile nav open state */
@media (max-width: 860px) {
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0;
    background: var(--nav-bg); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 0.2rem; z-index: 99;
  }
  .nav-links.open a { padding: 0.65rem 0.85rem; font-size: 0.9rem; }
}

/* ══════════════════════════════════
   RESPONSIVE — MOBILE (600px)
══════════════════════════════════ */
@media (max-width: 600px) {
  #hero {
    flex-direction: column-reverse;
    padding-top: 90px;
    text-align: center;
    gap: 2rem;
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: 1.5rem; }
  .hero-photo-frame { width: 190px; height: 220px; }
  .hero-photo-wrap::after { display: none; }
  .hero-desc { max-width: 100%; }

  .section-wrap { padding: 3.5rem 1rem; }

  .edu-grid,
  .projects-grid,
  .skills-grid,
  .cert-grid,
  .lang-grid { grid-template-columns: 1fr; }

  .exp-card { grid-template-columns: 1fr; }
  .exp-date { padding-top: 0; }

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

  .resume-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }

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

  .hero-stats { flex-wrap: wrap; }

  nav { padding: 0 1rem; }
  .theme-btn span:last-child { display: none; }
}

/* ══════════════════════════════════
   RESPONSIVE — VERY SMALL (380px)
══════════════════════════════════ */
@media (max-width: 380px) {
  .hero-name { letter-spacing: -1px; }
  .btn-primary, .btn-secondary { padding: 0.72rem 1.3rem; font-size: 0.85rem; }
}
