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

:root {
  --bg: #080c10;
  --surface: #0d1117;
  --surface-2: #111820;
  --border: rgba(0, 255, 200, 0.08);
  --cyan: #00ffc8;
  --cyan-dim: rgba(0, 255, 200, 0.12);
  --cyan-glow: rgba(0, 255, 200, 0.25);
  --text: #e8edf2;
  --text-muted: #6b7a8d;
  --text-dim: #3d4f63;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --radius: 12px;
  --transition: 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 max(24px, 5vw);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  transition: var(--transition);
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(8, 12, 16, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px max(24px, 5vw);
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--cyan);
}

/* ── LAYOUT ── */
section {
  position: relative;
  z-index: 1;
  padding: 100px max(24px, 7vw);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.section-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 200, 0.06) 0%,
    transparent 70%
  );
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 200, 0.04) 0%,
    transparent 70%
  );
  bottom: 10%;
  left: 5%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1000px;
  animation: fadeUp 0.7s ease both;
}

.hero-greeting {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-greeting::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 12px;
}

h1 .role {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: clamp(22px, 4vw, 40px);
  letter-spacing: -1px;
  margin-top: 4px;
}

.hero-statement {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 28px 0 12px;
  line-height: 1.7;
}

.hero-learning {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.hero-learning strong {
  color: var(--text-muted);
  font-weight: 500;
}

.hero-learning .tag {
  display: inline-block;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 200, 0.15);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 12px;
  margin: 0 2px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--cyan);
  color: #080c10;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  background: #1affd4;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 6px;
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 56px;
}

/* ── PROJECTS ── */
#projects {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── FEATURED PROJECT ── */
.featured-project {
  background: var(--surface-2);
  border: 1px solid rgba(0, 255, 200, 0.18);
  border-radius: 16px;
  padding: 44px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.featured-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(0, 255, 200, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.featured-project:hover {
  border-color: rgba(0, 255, 200, 0.4);
  box-shadow:
    0 0 50px rgba(0, 255, 200, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 255, 200, 0.2);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.featured-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease infinite;
}

.project-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 10px;
}

.project-tagline {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 640px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.project-meta-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.meta-value {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
}

.project-links {
  display: flex;
  gap: 10px;
}

/* ── PROJECT GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  cursor: default;
}

.project-card:hover {
  border-color: rgba(0, 255, 200, 0.25);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(0, 255, 200, 0.05);
  transform: translateY(-3px);
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── SKILLS ── */
#skills {
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}

.skill-badge:hover {
  border-color: rgba(0, 255, 200, 0.3);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.skill-icon {
  font-size: 18px;
  line-height: 1;
}

/* ── ABOUT ── */
#about {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-highlight {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-top: 28px;
}

.about-highlight p {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.currently-learning {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.cl-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.cl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cl-tag {
  padding: 5px 12px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 255, 200, 0.15);
  color: var(--cyan);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* ── CONTACT ── */
#contact {
  border-bottom: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-cta {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-cta .accent {
  color: var(--cyan);
}

.contact-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.contact-link:hover {
  border-color: rgba(0, 255, 200, 0.3);
  background: rgba(0, 255, 200, 0.04);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 255, 200, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--cyan);
}

.contact-link-info {
}

.contact-link-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-link-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  padding: 28px max(24px, 7vw);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-credit {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section {
    padding: 72px 24px;
  }

  nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .featured-project {
    padding: 28px 24px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    letter-spacing: -1px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 200, 0.3);
}
