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

:root {
  --bg:        #0e1117;
  --bg2:       #141820;
  --bg3:       #1a2030;
  --accent:    #6ee7f7;
  --accent2:   #4fc3f7;
  --text:      #e2e8f0;
  --text-muted:#8899aa;
  --border:    rgba(110,231,247,0.12);
  --card-bg:   rgba(26,32,48,0.85);
  --radius:    12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: #fff; font-weight: 600; }

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn-nav {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 0.35rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: opacity var(--transition) !important;
}
.btn-nav:hover { opacity: 0.85; }

.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: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 3rem;
}

.hero-content { flex: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--accent); color: var(--bg); text-decoration: none; }

.hero-visual {
  flex: 0 0 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}
.hero-visual svg { width: 100%; max-width: 340px; filter: drop-shadow(0 0 24px rgba(110,231,247,0.15)); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ===== SECTION SHARED ===== */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg2); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  color: #fff;
}
.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 48px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
}


/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.4rem;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 3px rgba(110,231,247,0.25);
}
section:nth-child(even) .timeline-marker { border-color: var(--bg2); }

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.timeline-card:hover {
  border-color: rgba(110,231,247,0.35);
  transform: translateX(4px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.card-header h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.card-header .role { font-size: 0.85rem; color: var(--accent); margin-top: 2px; }

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.location { font-size: 0.75rem; color: var(--text-muted); }

.timeline-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.timeline-card ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.timeline-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 3px;
}

.card-lead {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.edu-inline { border-color: rgba(110,231,247,0.2); }
.edu-marker { background: var(--bg2); border: 2px solid var(--accent); }

.edu-courses {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== TAGS ===== */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.tag {
  background: rgba(110,231,247,0.08);
  border: 1px solid rgba(110,231,247,0.2);
  color: var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition);
}
.tag:hover { background: rgba(110,231,247,0.18); }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: rgba(110,231,247,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.project-top { display: flex; flex-direction: column; gap: 0.5rem; }

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.metrics-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(110,231,247,0.06);
  border: 1px solid rgba(110,231,247,0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  min-width: 72px;
}
.metric-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.metric-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition);
}
.skill-group:hover { border-color: rgba(110,231,247,0.3); }
.skill-group h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

/* ===== EDUCATION ===== */
.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: border-color var(--transition);
}
.edu-card:hover { border-color: rgba(110,231,247,0.35); }

.edu-left h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.edu-left .role { color: var(--accent); font-size: 0.88rem; margin-bottom: 0.75rem; }
.edu-courses { font-size: 0.83rem; color: var(--text-muted); max-width: 580px; }

.edu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.gpa-badge {
  background: rgba(110,231,247,0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===== CONTACT ===== */
.contact-inner { text-align: center; }
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.contact-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.contact-icon { font-size: 1.1rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  #hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { order: 1; }
  .hero-visual { order: 0; flex: 0 0 220px; }
  .hero-visual svg { max-width: 220px; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(14,17,23,0.97); padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .card-header { flex-direction: column; }
  .card-meta { align-items: flex-start; }

  section { padding: 60px 0; }
}
