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

:root {
  --primary:      #6c63ff;
  --accent:       #ff6584;
  --bg:           #f3f2ef;
  --bg-card:      #ffffff;
  --bg-alt:       #eef0f3;
  --text:         #1a1a2e;
  --text-muted:   #64748b;
  --border:       rgba(0,0,0,0.09);
  --gradient:     linear-gradient(135deg, #6c63ff 0%, #ff6584 100%);
  --radius:       12px;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
  --transition:   0.3s ease;
}

/* ===========================
   DARK MODE
=========================== */
[data-theme="dark"] {
  --bg:        #0f0f1a;
  --bg-card:   #1a1a2e;
  --bg-alt:    #141428;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --border:    rgba(255,255,255,0.09);
  --shadow:    0 2px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}
[data-theme="dark"] #navbar.scrolled {
  background: rgba(15,15,26,0.96);
}
[data-theme="dark"] .nav-links {
  background: rgba(15,15,26,0.98);
}
[data-theme="dark"] .hamburger span { background: var(--text); }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===========================
   UTILITY
=========================== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 100px 0; }
.bg-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108,99,255,0.1);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.1);
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}
.dot { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.btn-nav {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.45rem 1.3rem;
  border-radius: 50px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: rotate(20deg);
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 1.5rem 60px;
  max-width: 1140px;
  margin: 0 auto;
}
.hero-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 15% 50%, rgba(108,99,255,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 85% 20%, rgba(255,101,132,0.05) 0%, transparent 50%);
  z-index: -1;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-greeting {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}
.cursor {
  animation: blink 1s step-end infinite;
  color: var(--primary);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.02rem;
  max-width: 480px;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-socials { display: flex; gap: 0.75rem; }
.hero-socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.hero-socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.3);
}

/* ===== AVATAR ===== */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.avatar-ring {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 4px;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }

.avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-lg);
}
.floating-badge i { color: var(--primary); }
.badge-1 { top: 8%; left: -10px; animation: float 5s ease-in-out infinite 1s; }
.badge-2 { bottom: 8%; right: -10px; animation: float 5s ease-in-out infinite 2s; }
.badge-3 { top: 50%; left: -20px; transform: translateY(-50%); animation: float 5s ease-in-out infinite 0.5s; }

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.about-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.about-details h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.about-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.info-list { display: flex; flex-direction: column; gap: 0.85rem; }
.info-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.info-list li i { color: var(--primary); width: 16px; }
.status-dot { color: #16a34a !important; font-size: 0.5rem; }

/* ===========================
   TIMELINE
=========================== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 1.2rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-dot.accent { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.timeline-header h3 { font-size: 1.05rem; color: var(--text); }
.timeline-place {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-date {
  font-size: 0.78rem;
  background: rgba(108,99,255,0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
  font-weight: 600;
}
.timeline-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.timeline-tags span {
  font-size: 0.75rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ===========================
   SKILLS
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.skill-category:hover { box-shadow: var(--shadow-lg); }
.skill-category h3 {
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}
.skill-category h3 i { color: var(--primary); }

.skill-bars { display: flex; flex-direction: column; gap: 1.2rem; }
.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
}
.bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 50px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 50px;
  width: 0;
  transition: width 1.2s ease;
}

.tools-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.tool-tag:hover { color: var(--primary); border-color: var(--primary); background: rgba(108,99,255,0.06); }
.tool-tag i { color: var(--primary); }
.tool-tag.soft { border-color: rgba(255,101,132,0.25); }
.tool-tag.soft:hover { color: var(--accent); border-color: var(--accent); background: rgba(255,101,132,0.06); }

/* ===========================
   CERTIFICATIONS
=========================== */
.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.cert-card {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.cert-card i { font-size: 1.5rem; color: var(--primary); margin-top: 0.1rem; flex-shrink: 0; }
.cert-card strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--text); }
.cert-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ===========================
   PROJECTS
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.project-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; }

.project-image { position: relative; aspect-ratio: 16/9; }
.project-card.featured .project-image { aspect-ratio: unset; }
.project-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(255,101,132,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  min-height: 180px;
}
.project-info { padding: 1.6rem; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.project-info h3 { font-size: 1.1rem; margin-bottom: 0.65rem; color: var(--text); }
.project-info p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.1rem; line-height: 1.7; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.project-stack span {
  font-size: 0.74rem;
  padding: 0.25rem 0.7rem;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 500;
}

/* ===========================
   PUBLICATIONS
=========================== */
.pubs-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition);
}
.pub-card:hover { border-color: var(--primary); transform: translateX(4px); }
.pub-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pub-target {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.pub-body h4 { font-size: 0.93rem; font-weight: 600; margin-bottom: 0.3rem; line-height: 1.5; color: var(--text); }
.pub-meta { font-size: 0.81rem; color: var(--text-muted); }

.conf-box {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow);
}
.conf-box h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}
.conf-box h3 i { color: var(--primary); }
.conf-label { font-size: 0.88rem; color: var(--text-muted); margin: 0.75rem 0 0.5rem; }
.conf-label--top { margin-top: 1rem; }

/* ===========================
   EXPERIENCE LIST
=========================== */
.experience-list {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.experience-list li { margin-bottom: 0.4rem; }

/* ===========================
   LEADERSHIP
=========================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.leadership-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.leadership-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.leadership-card h3 { font-size: 1rem; margin-bottom: 0.6rem; color: var(--text); }
.leadership-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ===========================
   CONTACT
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-item span { font-size: 0.78rem; color: var(--text-muted); display: block; }
.contact-item a, .contact-item p { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.contact-item a:hover { color: var(--primary); }
.social-links { display: flex; gap: 0.75rem; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.3);
}

/* ===== FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { position: relative; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.93rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aab0bb; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-group label {
  position: absolute;
  left: 1.2rem; top: -0.6rem;
  font-size: 0.72rem;
  color: var(--primary);
  background: var(--bg-card);
  padding: 0 0.4rem;
  border-radius: 4px;
  display: none;
  font-weight: 600;
}
.form-group input:focus + label,
.form-group textarea:focus + label { display: block; }
.form-note { text-align: center; font-size: 0.85rem; color: #16a34a; margin-top: 0.5rem; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--text);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer .logo { color: #fff; }
.footer p { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

/* ===========================
   BACK TO TOP
=========================== */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(108,99,255,0.35);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 140px 1.5rem 80px; gap: 3rem; }
  .hero-content { max-width: 100%; }
  .hero-bio { margin: 0 auto 2rem; }
  .hero-cta, .hero-socials { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; display: block; }
  .timeline-header { flex-direction: column; gap: 0.5rem; }
  /* Nav collapses to hamburger at tablet width */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 1000; }
}

@media (max-width: 640px) {
  .avatar-ring { width: 220px; height: 220px; }
  .badge-1, .badge-2, .badge-3 { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
