/* ===== SKIP LINK (accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #0d1117;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

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

:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent2: #7c3aed;
  --green: #3fb950;
  --purple: #a371f7;
  --orange: #f0883e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

nav ul { list-style: none; display: flex; gap: 28px; }
nav ul a { color: var(--muted); font-size: 14px; font-weight: 500; }
nav ul a:hover { color: var(--text); opacity: 1; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text { flex: 1; }

.greeting {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e6edf3 0%, #58a6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}

.cred-ms {
  background: rgba(0, 120, 212, 0.12);
  border-color: rgba(0, 120, 212, 0.4);
  color: #4da3e8;
}

.cred-iit {
  background: rgba(139, 0, 0, 0.12);
  border-color: rgba(139, 0, 0, 0.4);
  color: #e06060;
}


.tagline {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
}

.dot { color: var(--accent); margin: 0 4px; }

.bio {
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}

.btn-primary:hover { background: #79b8ff; opacity: 1; }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

.socials { display: flex; gap: 16px; }
.socials a {
  color: var(--muted);
  font-size: 20px;
  transition: color 0.2s;
}
.socials a:hover { color: var(--accent); opacity: 1; }

/* ===== AVATAR ===== */
.hero-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 3px;
  box-shadow: 0 0 40px rgba(88,166,255,0.2);
}

.avatar-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -2px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--green);
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

#projects, #blog { max-width: 900px; margin: 0 auto; padding: 80px 24px; }
#contact { max-width: 900px; margin: 0 auto; padding: 80px 24px; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 8px rgba(88,166,255,0.5);
}

.blog-dot { background: var(--purple); box-shadow: 0 0 8px rgba(163,113,247,0.5); }

.timeline-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.blog-card:hover { border-color: var(--purple); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-links { display: flex; gap: 12px; }
.card-links a { color: var(--muted); font-size: 16px; }
.card-links a:hover { color: var(--accent); opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.blog-tag {
  background: rgba(163,113,247,0.15);
  color: var(--purple);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.read-time {
  color: var(--muted);
  font-size: 12px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.read-more:hover { opacity: 0.8; }

/* ===== EXPERIENCE ===== */
.exp-dot { background: var(--orange); box-shadow: 0 0 8px rgba(240,136,62,0.5); }

.exp-card:hover { border-color: var(--orange); }

.exp-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 0 !important;
}

.exp-meta i { font-size: 11px; }

.exp-badge {
  background: rgba(240,136,62,0.15);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

.exp-list {
  list-style: none;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-list li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.exp-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 11px;
  top: 2px;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.phase-label {
  background: rgba(88,166,255,0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.phase-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.phase-date {
  font-size: 12px;
  color: var(--muted);
}

/* ===== LEADERSHIP ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.leadership-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.leadership-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.lc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.leadership-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.leadership-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.lc-quote {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 10px;
  margin-top: 4px;
  line-height: 1.5;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-group:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-group h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-group h4 i { color: var(--accent); font-size: 13px; }

.skill-group .tags { gap: 6px; }

.skill-group .tags span {
  font-size: 12px;
  padding: 4px 10px;
}

@media (max-width: 800px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ===== CONTACT ===== */
.contact-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}

.contact-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-box p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.contact-box .socials {
  justify-content: center;
  margin-top: 24px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); opacity: 1; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

nav ul a.active { color: var(--text); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-val { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; line-height: 1; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-div { width: 1px; height: 32px; background: var(--border); }
.stat-resume { color: var(--accent); gap: 4px; font-size: 20px; text-decoration: none; transition: opacity 0.2s; }
.stat-resume:hover { opacity: 0.75; }

/* ===== HAMBURGER ===== */
.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(--muted);
  border-radius: 2px;
  transition: all 0.3s;
}
.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); }

.nav-notes { color: var(--purple) !important; }
.nav-notes i { font-size: 11px; }

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.contact-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.contact-info p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-link:hover { border-color: var(--accent); transform: translateX(4px); opacity: 1; }
.contact-link-icon {
  width: 36px; height: 36px;
  background: var(--bg3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 15px; flex-shrink: 0;
}
.contact-link span { display: block; font-size: 14px; font-weight: 500; }
.contact-link small { display: block; font-size: 12px; color: var(--muted); }

/* CONTACT FORM */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--muted); }

.form-group input,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .hero-content { flex-direction: column-reverse; text-align: center; }
  .hero-btns { justify-content: center; }
  .socials { justify-content: center; }
  .stats-bar { justify-content: center; }
  .cred-badges { justify-content: center; }
  .hero-avatar { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Mobile nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px !important;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
}
