/* ======================================================
   ROOT & DESIGN TOKENS
   ====================================================== */
:root {
  --bg: #07080f;
  --bg-2: #0d0f1a;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(99,102,241,0.5);
  --text: #eeeeff;
  --text-muted: #8888aa;
  --text-faint: #44445a;
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --accent-glow: rgba(99,102,241,0.3);
  --grad: linear-gradient(135deg, #6366f1, #06b6d4);
  --grad-text: linear-gradient(90deg, #818cf8, #38bdf8);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.18);
  --nav-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg: #f4f4ff;
  --bg-2: #eaeaff;
  --bg-card: rgba(0,0,0,0.03);
  --bg-card-hover: rgba(0,0,0,0.055);
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(99,102,241,0.4);
  --text: #09090f;
  --text-muted: #555570;
  --text-faint: #aaaacc;
  --accent-glow: rgba(99,102,241,0.12);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.12);
}

/* ======================================================
   RESET & BASE
   ====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
#particles-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.45;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ======================================================
   UTILITIES
   ====================================================== */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  padding: 5px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 2.5rem; letter-spacing: -.025em;
}
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 28px;
  position: relative; z-index: 1;
}
section { padding: 96px 0; position: relative; z-index: 1; }

/* ======================================================
   NAVBAR
   ====================================================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-height);
  transition: background 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(7,8,15,0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] #navbar.scrolled { background: rgba(244,244,255,0.88); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px; height: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.nav-logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.2rem; font-weight: 700;
  transition: color 0.2s; flex-shrink: 0;
}
.nav-logo:hover { color: var(--accent); }
.logo-bracket { color: var(--accent); }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  font-size: .84rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  color: var(--text-muted); transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%); width: 0; height: 2px;
  background: var(--grad); border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active-link::after { width: 60%; }
.nav-links a.active-link { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
#theme-toggle {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px;
  cursor: pointer; font-size: .95rem; line-height: 1;
  transition: var(--transition);
}
#theme-toggle:hover { border-color: var(--border-hover); transform: rotate(20deg); }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.nav-cta {
  background: var(--grad); border: none; border-radius: 8px;
  padding: 8px 20px; font-size: .85rem; font-weight: 600;
  color: #fff; cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px var(--accent-glow);
  display: inline-block;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px var(--accent-glow); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  background: rgba(7,8,15,0.96); backdrop-filter: blur(20px);
  padding: 16px 24px 24px; border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 13px 0; font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted); transition: color 0.2s;
}
.mobile-link:hover { color: var(--accent); }

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: var(--transition);
  border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.btn-full { width: 100%; justify-content: center; }

.btn-link {
  font-size: .82rem; font-weight: 600;
  color: var(--accent); transition: color 0.2s, gap 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-link:hover { color: var(--accent-2); gap: 8px; }

/* ======================================================
   HERO
   ====================================================== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; max-width: 1200px; margin: 0 auto;
  gap: 48px; padding-top: var(--nav-height);
  position: relative; z-index: 1;
}
.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border: 1px solid rgba(99,102,241,0.3);
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--accent); margin-bottom: 22px;
  background: rgba(99,102,241,0.07);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 6px #4ade80}50%{box-shadow:0 0 14px #4ade80,0 0 28px #4ade8055} }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.035em; margin-bottom: 14px;
}
.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600; margin-bottom: 22px;
  color: var(--text-muted);
}
.role-prefix { color: var(--text-muted); }
#typed-text { color: var(--accent); font-weight: 700; }
.cursor-blink { display: inline-block; animation: blink .75s step-end infinite; color: var(--accent-2); }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }

.hero-sub {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 34px;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  width: fit-content; flex-wrap: wrap;
}
.stat { text-align: center; min-width: 64px; }
.stat-num {
  display: block; font-size: 1.7rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1;
}
.stat-plus { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .7rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; display: block; }
.stat-divider { width: 1px; height: 38px; background: var(--border); flex-shrink: 0; }

/* Hero Visual */
.hero-visual {
  flex: 1; display: flex; justify-content: center; align-items: center;
  position: relative; max-width: 420px; min-height: 380px;
}
.avatar-ring {
  position: relative; width: 250px; height: 250px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-inner {
  width: 165px; height: 165px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent), 0 0 60px var(--accent-glow);
  animation: float 4s ease-in-out infinite;
  overflow: hidden;
}
.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
}
.avatar-emoji { font-size: 4.5rem; }
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)} }

.orbit {
  position: absolute; border: 1px dashed var(--border);
  border-radius: 50%; animation: spin linear infinite;
}
.orbit-1 { width: 195px; height: 195px; animation-duration: 9s; }
.orbit-2 { width: 255px; height: 255px; animation-duration: 14s; animation-direction: reverse; }
.orbit-3 { width: 315px; height: 315px; animation-duration: 18s; }
@keyframes spin { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }

.orbit-dot {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}

.floating-card {
  position: absolute; padding: 10px 15px;
  display: flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  animation: float-side 5s ease-in-out infinite;
}
.card-1 { top: 14px; right: -16px; }
.card-2 { bottom: 24px; left: -16px; animation-delay: -2.5s; }
.card-icon { font-size: 1.1rem; }
@keyframes float-side { 0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1deg)} }

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; color: var(--text-faint);
  animation: fade-scroll 2.5s ease-in-out infinite;
}
.scroll-mouse { width: 20px; height: 33px; border: 2px solid var(--text-faint); border-radius: 10px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 3px; height: 7px; background: var(--text-faint); border-radius: 2px; animation: wheel 1.5s ease-in-out infinite; }
@keyframes wheel { 0%,100%{transform:translateY(0);opacity:1}50%{transform:translateY(8px);opacity:0.3} }
@keyframes fade-scroll { 0%,100%{opacity:.6;transform:translateX(-50%) translateY(0)}50%{opacity:1;transform:translateX(-50%) translateY(-5px)} }

/* ======================================================
   ABOUT
   ====================================================== */
#about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p {
  color: var(--text-muted); margin-bottom: 1.15rem;
  font-size: .98rem; line-height: 1.82;
}
.about-text p strong { color: var(--text); }
.about-text p em { color: var(--text); font-style: italic; }
.about-links { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.social-icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-muted); transition: var(--transition);
}
.social-icon-link svg { width: 19px; height: 19px; }
.social-icon-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(99,102,241,0.1); transform: translateY(-3px); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px; }
.info-card-icon { font-size: 1.7rem; flex-shrink: 0; }
.info-card h4 { font-size: .8rem; font-weight: 700; margin-bottom: 3px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.info-card p { font-size: .9rem; color: var(--text); font-weight: 600; }
.info-card span { font-size: .78rem; color: var(--text-muted); }

/* ======================================================
   EXPERIENCE / TIMELINE
   ====================================================== */
#experience { background: var(--bg); }
.timeline { display: flex; flex-direction: column; gap: 44px; }

.timeline-group {}
.company-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; margin-bottom: 0;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  border-bottom: none;
  position: relative;
}
.company-logo {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.company-logo.rsystems { background: linear-gradient(135deg,#1e40af,#3b82f6); }
.company-logo.avalon   { background: linear-gradient(135deg,#065f46,#10b981); }
.company-logo.regal    { background: linear-gradient(135deg,#7c2d12,#ea580c); }

.company-info h3 { font-size: 1rem; font-weight: 700; }
.company-meta { font-size: .78rem; color: var(--text-muted); }
.company-badge {
  margin-left: auto; flex-shrink: 0;
  padding: 4px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}

.timeline-roles {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0;
  background: var(--bg-card);
}

.timeline-role {
  display: flex; gap: 0;
  padding: 0 22px;
  position: relative;
}
.timeline-role + .timeline-role { border-top: 1px solid var(--border); margin-top: 0; }

.role-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  margin-top: 26px; margin-right: 16px;
  box-shadow: 0 0 8px var(--accent-glow);
  position: relative; z-index: 1;
}
.timeline-role::before {
  content: '';
  position: absolute; left: 26px; top: 36px; bottom: -1px;
  width: 1px; background: var(--border);
}
.timeline-role:last-child::before { display: none; }

.role-card {
  flex: 1; padding: 20px; margin: 14px 0;
  border-radius: var(--radius-sm);
}
.role-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.role-header h4 { font-size: .97rem; font-weight: 700; }
.role-date { font-size: .76rem; color: var(--text-muted); margin-top: 2px; display: block; }
.role-tag {
  padding: 3px 10px; border-radius: 999px; flex-shrink: 0;
  font-size: .7rem; font-weight: 700;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent);
}
.role-bullets { padding-left: 0; margin-bottom: 12px; }
.role-bullets li {
  font-size: .85rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 6px; padding-left: 16px; position: relative;
}
.role-bullets li::before {
  content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: .75rem;
}
.role-bullets li strong { color: var(--text); }
.role-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stag {
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--accent-2);
}

/* ======================================================
   SKILLS
   ====================================================== */
#skills { background: var(--bg-2); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px; }
.skill-category {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: var(--transition);
}
.skill-category:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.skill-category h3 { font-size: .88rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.cat-icon { font-size: 1.1rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-pill {
  font-size: .75rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(99,102,241,0.09);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent); transition: var(--transition); cursor: default;
}
.skill-pill:hover { background: rgba(99,102,241,0.22); transform: scale(1.05); }

.bars-section { padding: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.bars-title { font-size: 1rem; font-weight: 700; margin-bottom: 24px; }
.bars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bar-item { display: flex; flex-direction: column; gap: 7px; }
.bar-label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 500; }
.bar-pct { color: var(--accent); font-weight: 700; }
.bar-track { width: 100%; height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }

/* ======================================================
   PROJECTS
   ====================================================== */
#projects { background: var(--bg); }
.filter-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 7px 18px; border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--grad); color: #fff;
  border-color: transparent; box-shadow: 0 4px 14px var(--accent-glow);
}
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-card.hidden { display: none; }
.project-img {
  height: 140px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.project-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45));
}
.project-emoji { font-size: 3.5rem; position: relative; z-index: 1; }
.project-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: .69rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--accent-2);
}
.project-body h3 { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.project-body p { font-size: .82rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.role-badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.role-badge {
  font-size: .69rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent);
}
.role-date-sm { font-size: .72rem; color: var(--text-faint); }
.project-footer { display: flex; align-items: center; justify-content: flex-end; padding-top: 4px; }

/* ======================================================
   EDUCATION
   ====================================================== */
#education { background: var(--bg-2); }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edu-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px;
}
.edu-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.edu-body { display: flex; flex-direction: column; gap: 4px; }
.edu-degree { font-size: .97rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.edu-field { font-size: .82rem; color: var(--accent); font-weight: 600; }
.edu-body h4 { font-size: .85rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.edu-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.edu-year {
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  padding: 2px 10px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.edu-grade {
  font-size: .72rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
}
.grade-a {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent);
}

/* ======================================================
   CONTACT
   ====================================================== */
#contact { background: var(--bg); }
.contact-centered {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-intro { font-size: .97rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; color: var(--text); transition: var(--transition);
  text-align: left;
}
.contact-item:hover { border-color: var(--border-hover); transform: translateX(6px); }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { font-size: .87rem; font-weight: 700; }
.contact-item small { font-size: .82rem; color: var(--text-muted); }

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 32px 28px; position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
footer p { font-size: .82rem; color: var(--text-muted); }
footer p strong { color: var(--text); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted); transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); background: rgba(99,102,241,0.1); transform: translateY(-2px); }

/* ======================================================
   REVEAL ANIMATIONS
   ====================================================== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}
[data-delay="0"]   { transition-delay: 0ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }

/* ======================================================
   SCROLL BAR
   ====================================================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #hero { flex-direction: column; text-align: center; padding: 110px 24px 72px; min-height: auto; }
  .hero-content { max-width: 100%; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; min-height: 280px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-cards { order: -1; }
  .contact-centered { max-width: 100%; }
  .bars-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .timeline-role { padding: 0 14px; }
  .company-header { padding: 14px 16px; }
  .role-card { padding: 16px; }
}
@media (max-width: 520px) {
  .skills-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 14px; padding: 14px; }
  .stat-divider { width: 36px; height: 1px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .edu-grid { grid-template-columns: 1fr; }
}
