﻿:root {
  --bg: #f6f7fb;
  --bg-2: #ecf6f5;
  --card: rgba(255, 255, 255, 0.85);
  --text: #101820;
  --muted: #5a6b73;
  --accent: #2bd3c7;
  --accent-2: #8bd9ff;
  --stroke: rgba(16, 24, 32, 0.08);
  --shadow: rgba(16, 24, 32, 0.12);
}

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

body {
  font-family: "Noto Sans SC", "Space Grotesk", sans-serif;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(43, 211, 199, 0.18) 0%, transparent 60%),
    radial-gradient(800px 600px at 90% 0%, rgba(139, 217, 255, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 40%, #eef4f5 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(43, 211, 199, 0.28), transparent 70%);
  filter: blur(40px);
  top: -120px;
  right: -80px;
  z-index: 0;
  animation: floatGlow 16s ease-in-out infinite;
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 217, 255, 0.35), transparent 70%);
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.base-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: grid;
  gap: 22px;
  align-content: end;
  padding: 0 0 6vh;
}

.base-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 247, 251, 0.45) 0%,
    rgba(246, 247, 251, 0.28) 45%,
    rgba(246, 247, 251, 0.18) 100%
  );
  backdrop-filter: blur(2px);
}

.hero {
  position: relative;
}

.hero-flow {
  opacity: 0.7;
}

.flow-line {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 24, 32, 0.22);
  animation: flowLeft 24s linear infinite;
}

.flow-line.reverse {
  animation: flowRight 28s linear infinite;
}

.flow-line span {
  padding: 0 8px;
}

@keyframes flowLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes flowRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-80px, 40px, 0);
  }
}

.hero {
  min-height: 100vh;
  padding: 40px 6vw 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid var(--stroke);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(43, 211, 199, 0.4);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2.6rem, 3vw + 1.5rem, 4rem);
  line-height: 1.1;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 20px;
}

h1 span {
  display: block;
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.35rem);
  color: var(--muted);
  margin-top: 12px;
}

.subtitle {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #051015;
  border: none;
  box-shadow: 0 12px 24px rgba(43, 211, 199, 0.2);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 30px rgba(43, 211, 199, 0.35);
}

.btn.ghost:hover {
  border-color: rgba(16, 24, 32, 0.2);
  transform: translateY(-2px);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.card-glass {
  width: min(380px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 24px 50px var(--shadow);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 18px;
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(16, 24, 32, 0.08);
  padding-bottom: 12px;
}

.stat:last-child {
  border-bottom: none;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 40px;
}

.scroll-hint span {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: hint 2.4s ease-in-out infinite;
}

@keyframes hint {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}

.section {
  padding: 110px 6vw;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
}

.about-grid,
.highlight-grid,
.project-grid,
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card,
.highlight,
.project-card,
.edu-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.about-card:hover,
.highlight:hover,
.project-card:hover,
.edu-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(16, 24, 32, 0.18);
  border-color: rgba(43, 211, 199, 0.35);
}

.about-card::after,
.project-card::after,
.highlight::after,
.edu-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(139, 217, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(43, 211, 199, 0.22), rgba(139, 217, 255, 0.25));
  color: #0b3b3a;
  border: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 10px 20px rgba(16, 24, 32, 0.12);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(43, 211, 199, 0.25), transparent 60%);
  opacity: 0.6;
  z-index: -1;
}

.about-card:hover::after,
.project-card:hover::after,
.highlight:hover::after,
.edu-card:hover::after,
.contact-card:hover::after {
  opacity: 1;
}

.about-card h3,
.highlight h3,
.project-card h3,
.edu-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 10px;
}

.highlight-grid .highlight::after {
  content: "";
  position: absolute;
  inset: -40% 60% 30% -20%;
  background: radial-gradient(circle, rgba(139, 217, 255, 0.18), transparent 70%);
  opacity: 0.6;
}

.timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 20px 40px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px rgba(16, 24, 32, 0.2);
}

.timeline .time {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-weight: 600;
}

.timeline .content h3 {
  margin-bottom: 12px;
}

.timeline ul,
.project-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.timeline li::before,
.project-card li::before {
  content: "▸";
  margin-right: 8px;
  color: var(--accent);
}

.project-card .tag {
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.edu-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

footer.section {
  padding-bottom: 80px;
}

.footer-hero {
  position: relative;
  overflow: hidden;
}

.footer-hero .section-head,
.footer-hero .contact-card,
.footer-hero .footer-note {
  position: relative;
  z-index: 1;
}


.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: center;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
}

.footer-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 6vw 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
