/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #00f0ff;
  --accent2: #bf5af2;
  --glow-1: rgba(0,240,255,0.4);
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: 70px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Canvas Background ===== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10,10,15,0.75);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(10,10,15,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  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: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width var(--transition);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

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

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

/* ===== Sections Common ===== */
section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 100px 2rem 60px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 30px rgba(0,240,255,0.2), 0 0 60px rgba(191,90,242,0.1);
  transition: var(--transition);
  flex-shrink: 0;
}

.hero-avatar:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0,240,255,0.35), 0 0 80px rgba(191,90,242,0.2);
  transform: scale(1.05);
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 50%, var(--accent2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-title {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  min-height: 2rem;
}

.hero-title .cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0a0f;
  box-shadow: 0 4px 20px var(--glow-1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px var(--glow-1);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0,240,255,0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,240,255,0.15);
}

/* ===== About ===== */
.about-content {
  max-width: 700px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* ===== Interests ===== */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.interest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.interest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.interest-card:hover::before {
  transform: scaleX(1);
}

.interest-card:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.interest-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.interest-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #fff;
  font-weight: 700;
}

.interest-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.interest-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(191,90,242,0.08);
  color: var(--accent2);
  border: 1px solid rgba(191,90,242,0.2);
}

/* ===== Contact ===== */
.contact-content {
  max-width: 600px;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.contact-link:hover {
  border-color: var(--accent);
  background: rgba(0,240,255,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,240,255,0.1);
}

/* ===== Footer ===== */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  text-align: center;
  padding: 0.8rem 2rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10,10,15,0.75);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer .footer-brand {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: float 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 11px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: flex; }

  .hero { text-align: center; align-items: center; }
  .hero-top { flex-direction: column-reverse; gap: 2rem; }
  .hero-identity { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-avatar { width: 120px; height: 120px; }

  .section-title { font-size: 2rem; }
  section { padding: 80px 1.2rem; min-height: 100vh; }
}

/* ===== Fade-in on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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