/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --bg: #0a0f1e;
  --surface: #111827;
  --surface2: #1f2937;
  --border: #1f2937;
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --purple: #8b5cf6;
  --green: #10b981;
  --amber: #f59e0b;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --font-main: "Poppins", sans-serif;
  --font-mono: "Fira Code", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --glow: 0 0 24px rgba(59, 130, 246, 0.25);
  --transition: all 0.3s ease;
}

/* ── RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 2px;
}

section {
  padding: 96px 0;
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--blue) !important;
  color: var(--text) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.hero-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--blue);
  top: -100px;
  left: -100px;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  bottom: -50px;
  right: -50px;
}
.hero-content {
  flex: 1;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hero-name {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--text) 0%,
    var(--blue) 60%,
    var(--purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hero-roles {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.role-static {
  color: var(--text-muted);
}
.role-typing {
  position: relative;
  height: 1.5em;
  display: inline-block;
  min-width: 280px;
}
.role-word {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  white-space: nowrap;
}
.role-word.active {
  opacity: 1;
  transform: none;
}
.hero-desc {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.hero-socials {
  display: flex;
  gap: 16px;
}
.hero-socials a {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
}
.hero-socials a:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.hero-image {
  flex-shrink: 0;
  z-index: 1;
}
.photo-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: var(--glow);
  animation: float 4s ease-in-out infinite;
}
.photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 20px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── ABOUT ───────────────────────────────────────────────── */
#about {
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-text strong {
  color: var(--text);
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.about-tags span {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--blue);
  box-shadow: var(--glow);
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── SKILLS ─────────────────────────────────────────────── */
#skills {
  background: var(--bg);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.skill-group:hover {
  border-color: var(--blue);
}
.skill-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.skill-group-title i {
  color: var(--blue);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
}
.skill-tag.core {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.skill-tag.tool {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.skill-tag.learning {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.skill-tag.lang {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ── PROJECTS ───────────────────────────────────────────── */
#projects {
  background: var(--surface);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: var(--glow);
}
.project-card.featured {
  border-color: rgba(59, 130, 246, 0.4);
}
.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.project-icon {
  font-size: 28px;
  color: var(--blue);
}
.project-links {
  display: flex;
  gap: 10px;
}
.project-links a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.project-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.project-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.project-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.project-tags span {
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
}
.project-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dot.done {
  background: var(--green);
}
.status-dot.in-progress {
  background: var(--amber);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ── EDUCATION ──────────────────────────────────────────── */
#education {
  background: var(--bg);
}
.education-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edu-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: var(--transition);
}
.edu-card:hover {
  border-color: var(--blue);
  transform: translateX(6px);
}
.edu-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 20px;
  flex-shrink: 0;
}
.edu-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.edu-institute {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.edu-year {
  font-size: 12.5px;
  color: var(--blue);
  font-family: var(--font-mono);
}

/* ── CONTACT ─────────────────────────────────────────────── */
#contact {
  background: var(--surface);
  text-align: center;
}
.contact-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: -24px auto 48px;
  line-height: 1.8;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.contact-card i {
  font-size: 24px;
  color: var(--blue);
}
.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.contact-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-quote {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }
  #hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    gap: 32px;
  }
  .hero-roles {
    justify-content: center;
  }
  .role-typing {
    min-width: 220px;
  }
  .hero-desc {
    margin: 0 auto 28px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
  .photo-ring {
    width: 180px;
    height: 180px;
  }
  .scroll-down {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
