*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080d14;
  --bg2: #0d1520;
  --bg3: #111d2e;
  --accent: #0ea5e9;
  --accent2: #38bdf8;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --text: #e2eaf4;
  --text-muted: #7a9ab8;
  --border: rgba(14, 165, 233, 0.15);
  --card: #0d1520;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

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

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

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── SECTION ── */
section { padding: 6rem 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  color: var(--text);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); transform: translateY(-2px); }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8, 13, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.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(--accent); border-radius: 2px; transition: all 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6rem 1.5rem 4rem;
  max-width: 1100px; margin: 0 auto;
  position: relative; gap: 3rem;
}
.hero-content { flex: 1; }
.hero-greeting { color: var(--accent); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.5rem; }
.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-name span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-socials { display: flex; gap: 1.25rem; }
.hero-socials a {
  color: var(--text-muted); font-size: 1.4rem;
  transition: color 0.2s, transform 0.2s;
}
.hero-socials a:hover { color: var(--accent); transform: translateY(-3px); }

.hero-visual { flex-shrink: 0; }
.avatar-ring {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 4px;
  box-shadow: 0 0 60px var(--accent-glow);
  animation: float 4s ease-in-out infinite;
}
.avatar-initials {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.scroll-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--accent); font-size: 1.2rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── ABOUT ── */
#about { background: var(--bg2); }
.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-text strong { color: var(--text); }
.about-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.detail-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.95rem; }
.detail-list li i { color: var(--accent); width: 16px; }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.skill-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 1rem; }
.skill-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags span {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
}

/* ── EXPERIENCE ── */
#experience { background: var(--bg2); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-dot {
  position: absolute; left: -2.45rem; top: 0.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg2);
  box-shadow: 0 0 10px var(--accent-glow);
}
.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s;
}
.timeline-content:hover { border-color: var(--accent); }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.timeline-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.timeline-date { color: var(--accent); font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
.timeline-role { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; font-style: italic; }
.timeline-content ul { padding-left: 1.2rem; }
.timeline-content li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.project-header { display: flex; justify-content: space-between; align-items: center; }
.project-icon { font-size: 1.8rem; color: var(--accent); }
.project-date { font-size: 0.8rem; color: var(--text-muted); }
.project-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.project-card > p { color: var(--text-muted); font-size: 0.9rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tags span {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
}
.project-highlights { padding-left: 1.1rem; margin-top: 0.25rem; }
.project-highlights li { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.3rem; }

/* ── EDUCATION ── */
#education { background: var(--bg2); }
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; gap: 2rem; align-items: flex-start;
  transition: border-color 0.25s;
}
.edu-card:hover { border-color: var(--accent); }
.edu-icon { font-size: 2.5rem; color: var(--accent); flex-shrink: 0; }
.edu-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.edu-degree { color: var(--text-muted); margin-bottom: 0.5rem; }
.edu-meta { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.edu-meta i { color: var(--accent); }
.edu-gpa { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gpa-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.gpa-value {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gpa-bar { flex: 1; min-width: 120px; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.gpa-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  animation: growBar 1.5s ease forwards;
  transform-origin: left;
}
@keyframes growBar { from { width: 0 !important; } }

/* ── CONTACT ── */
#contact { text-align: center; }
.contact-sub { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; max-width: 800px; margin: 0 auto; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text-muted);
  transition: all 0.25s;
}
.contact-card i { font-size: 1.8rem; color: var(--accent); }
.contact-card span { font-size: 0.9rem; word-break: break-all; }
.contact-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #hero { flex-direction: column; text-align: center; padding-top: 7rem; }
  .hero-btns, .hero-socials { justify-content: center; }
  .hero-tagline { margin: 0 auto 2rem; }
  .hero-visual { order: -1; }
  .avatar-ring { width: 160px; height: 160px; }
  .avatar-initials { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8, 13, 20, 0.98);
    padding: 1.5rem; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .edu-card { flex-direction: column; }
  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -1.95rem; }
}
