﻿:root {
  --bg: #10131c;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: #eff4ff;
  --muted: #adc0e5;
  --accent: #ff8a3d;
  --accent-2: #39c5bb;
  --border: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, #1a2250 0%, transparent 40%),
    radial-gradient(circle at 80% 0%, #1e3850 0%, transparent 30%),
    linear-gradient(135deg, #0f1220 0%, #17172f 45%, #111827 100%);
  min-height: 100vh;
  padding-bottom: 0;
}

body.light {
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(255, 255, 255, 1);
  --text: #1d2738;
  --muted: #5f6e85;
  --accent: #e85d04;
  --accent-2: #0f9d92;
  --border: rgba(22, 28, 45, 0.13);
  background:
    radial-gradient(circle at 0% 0%, #e6f0ff 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, #d9fff4 0%, transparent 30%),
    linear-gradient(145deg, #f2f7ff 0%, #f9fafb 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #fff 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  z-index: -1;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(7, 9, 17, 0.65);
  border-bottom: 1px solid var(--border);
}

body.light .header {
  background: rgba(255, 255, 255, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--accent);
}

.icon-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero {
  padding: 6.5rem 0 4rem;
}

.hero-layout {
  display: block;
}

.hero-content {
  min-width: 0;
  max-width: 44rem;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(57, 197, 187, 0.28);
  border-radius: 999px;
  background: rgba(57, 197, 187, 0.08);
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.about-copy-wrap {
  min-width: 0;
}

.about-photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-photo-accent {
  position: absolute;
  top: 2.5rem;
  right: 1.5rem;
  width: 72%;
  height: 78%;
  border-radius: 36px;
  background: linear-gradient(150deg, rgba(255, 138, 61, 0.2), rgba(57, 197, 187, 0.18));
  filter: blur(18px);
  z-index: 0;
}

.about-photo-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  aspect-ratio: 5 / 6;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 44px rgba(4, 10, 24, 0.24);
}

.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

body.light .about-photo-frame {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 24px 44px rgba(18, 32, 58, 0.14);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  max-width: 10ch;
  margin-bottom: 0.8rem;
}

.hero-role {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 32rem;
  margin-bottom: 0.9rem;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.8;
}

.typing {
  color: var(--accent);
  font-weight: 600;
  border-right: 2px solid var(--accent);
  padding-right: 0.15rem;
  margin-left: 0.25rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(130deg, var(--accent), #ff6b35);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 138, 61, 0.35);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 1rem 0 4rem;
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.section-copy {
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 1.4rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cards,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.education-list {
  display: grid;
  gap: 0.9rem;
}

.edu-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1rem;
}

.edu-year {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.edu-item h3 {
  margin-bottom: 0.4rem;
}

.edu-place {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.edu-item p {
  color: var(--muted);
}

.card,
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  transition: border-color 0.2s ease;
}

.card:hover,
.project:hover {
  border-color: rgba(255, 138, 61, 0.6);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.project {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

body.light .project {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 32, 58, 0.11);
}

.project::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.card i,
.project i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.card h3,
.project h3 {
  margin: 0.4rem 0 0.55rem;
  font-size: 1.08rem;
}

.card p,
.project p,
.project span {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-stack {
  display: inline-block;
  margin-top: 0.65rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.88rem;
}

.project-toggle {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.project-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-github {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.project-github:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.project.open .project-details {
  max-height: 220px;
  opacity: 1;
  margin-top: 0.75rem;
}

.project-details ul {
  padding-left: 1rem;
}

.project-details li {
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.extra-project {
  display: none;
}

.project-grid.expanded .extra-project {
  display: block;
}

.projects-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

.tech-shell {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border-radius: 18px;
  padding: 1rem;
}

body.light .tech-shell {
  background: #ffffff;
}

.tech-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.9rem;
}

.tech-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.tech-filter {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.tech-filter.active {
  border-color: var(--accent);
  color: var(--accent);
}

.tech-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: 112px;
  padding: 0.9rem 0.55rem;
}

.tech-item:hover {
  border-color: rgba(255, 138, 61, 0.6);
}

.tech-item i {
  font-size: 1.7rem;
  margin-right: 0;
  margin-bottom: 0.7rem;
}

.tech-svg {
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.7rem;
}

.tech-item span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.93rem;
}

.tech-item.hidden {
  display: none;
}

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  padding: 1.4rem 0 2rem;
}

.footer p {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.3rem 0.78rem;
  border: 1px solid rgba(57, 197, 187, 0.3);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.16), rgba(57, 197, 187, 0.12));
  box-shadow: 0 10px 26px rgba(4, 10, 24, 0.18);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 138, 61, 0.22);
  backdrop-filter: blur(10px);
}

body.light .footer-mark {
  border-color: rgba(15, 157, 146, 0.24);
  box-shadow: 0 10px 26px rgba(18, 32, 58, 0.08);
}

.mobile-footer-nav {
  display: none;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  body {
    padding-bottom: 5.8rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-layout {
    display: block;
  }

  .hero-content {
    max-width: 100%;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-photo-card {
    justify-self: center;
  }

  .about-photo-frame {
    width: min(82vw, 320px);
  }

  .hero h1 {
    max-width: 100%;
  }

  .mobile-footer-nav {
    position: fixed;
    left: 50%;
    bottom: 0.8rem;
    transform: translateX(-50%);
    z-index: 120;
    width: min(94vw, 420px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(8, 12, 24, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 36px rgba(4, 10, 24, 0.28);
  }

  body.light .mobile-footer-nav {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(18, 32, 58, 0.16);
  }

  .mobile-footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 58px;
    padding: 0.5rem 0.25rem;
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .mobile-footer-link i {
    font-size: 1rem;
  }

  .mobile-footer-link span {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
  }

  .mobile-footer-link.active {
    background: linear-gradient(145deg, rgba(255, 138, 61, 0.2), rgba(57, 197, 187, 0.16));
    color: var(--text);
  }

  .mobile-footer-link:active {
    transform: translateY(1px);
  }
}
