@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #0a0a0b;
  --bg2: #111114;
  --bg3: #18181c;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f2;
  --muted: #6b6b7a;
  --accent: #7c6af7;
  --accent2: #a78bfa;
  --accent-glow: rgba(124,106,247,0.15);
  --green: #22d3a0;
  --card: rgba(255,255,255,0.03);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.12s ease;
}

/* Noise overlay */
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.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,11,0.7);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em; color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent2); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.85rem;
  text-decoration: none; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff; border: none;
  border-radius: 100px; font-size: 0.82rem;
  font-weight: 600; cursor: none;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124,106,247,0.35); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,106,247,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(124,106,247,0.25);
  border-radius: 100px;
  font-size: 0.75rem; color: var(--accent2);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem; font-weight: 600;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,211,160,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,211,160,0); }
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 1.2rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; animation: slideUp 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.hero-title .line:nth-child(2) span { animation-delay: 0.1s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.2s; }
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent2) 0%, #c4b5fd 50%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--muted); font-size: 1.05rem;
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; }
.btn-primary {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff; border: none; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: none;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,106,247,0.4); }
.btn-outline {
  padding: 14px 28px;
  background: transparent;
  color: var(--text); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; cursor: none;
  transition: all 0.25s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: var(--card); }

/* Hero image */
.hero-image-wrap {
  display: flex; justify-content: flex-end; position: relative;
}
.hero-img-frame {
  position: relative; width: 340px; height: 400px;
}
.hero-img-frame::before {
  content: '';
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--green));
  border-radius: 24px; z-index: 0;
}
.hero-img-frame::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(124,106,247,0.3), transparent 70%);
  border-radius: 24px; top: 0; left: 0; z-index: 2;
  pointer-events: none;
}
.hero-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 23px;
  position: relative; z-index: 1;
  display: block;
}
.hero-stats {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 20px;
  display: flex; gap: 24px;
  backdrop-filter: blur(20px);
  z-index: 5;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent2);
}
.stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* SECTIONS */
section { padding: 100px 5%; position: relative; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1rem;
}
.section-label-text {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent2);
  font-weight: 600;
}
.section-label-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--accent2), transparent);
  max-width: 60px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1rem; line-height: 1.1;
}
.section-sub { color: var(--muted); font-size: 1rem; max-width: 560px; line-height: 1.7; }

.section-header { max-width: 1200px; margin: 0 auto 4rem; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; max-width: 1200px; margin: 0 auto;
  align-items: start;
}
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; }
.about-text p strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.chip {
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem; color: var(--muted);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent2); }

.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.25s;
}
.info-card:hover { border-color: rgba(124,106,247,0.3); background: rgba(124,106,247,0.05); transform: translateX(4px); }
.info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-glow); border: 1px solid rgba(124,106,247,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.info-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.info-card p { font-size: 0.8rem; color: var(--muted); }

/* SKILLS */
.skills-section { background: var(--bg2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.skill-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--green));
  opacity: 0; transition: opacity 0.3s;
}
.skill-card:hover { border-color: rgba(124,106,247,0.2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.skill-card:hover::before { opacity: 1; }
.skill-card-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.skill-card h3 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem; color: var(--text);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all 0.3s; position: relative;
}
.project-card:hover { border-color: rgba(124,106,247,0.3); transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.project-top {
  padding: 24px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.project-emoji { font-size: 2rem; }
.project-links { display: flex; gap: 8px; }
.project-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem;
  text-decoration: none; transition: all 0.2s; cursor: none;
}
.project-link:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent2); }
.project-body { padding: 24px; }
.project-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.project-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.2rem; }
.project-techs { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech {
  padding: 3px 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(124,106,247,0.2);
  border-radius: 100px;
  font-size: 0.72rem; color: var(--accent2);
  font-weight: 500;
}
.badge-featured {
  position: absolute; top: 16px; right: 16px;
  display: none;
}

/* EXPERIENCE */
.experience-section { background: var(--bg2); }
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 20px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item {
  padding: 0 0 3rem 60px;
  position: relative;
}
.timeline-dot {
  position: absolute; left: 12px; top: 4px;
  width: 17px; height: 17px;
  background: var(--accent);
  border-radius: 50%; border: 3px solid var(--bg2);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.timeline-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.timeline-date { font-size: 0.75rem; color: var(--accent2); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.timeline-badge {
  padding: 2px 10px;
  background: rgba(34,211,160,0.1);
  border: 1px solid rgba(34,211,160,0.2);
  border-radius: 100px; font-size: 0.68rem;
  color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.timeline-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 600; margin-bottom: 2px;
}
.timeline-item h4 { font-size: 0.85rem; color: var(--accent2); margin-bottom: 10px; font-weight: 500; }
.timeline-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* EDUCATION same structure reuse */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.edu-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s;
}
.edu-card:hover { border-color: rgba(124,106,247,0.3); transform: translateY(-4px); }
.edu-year { font-size: 0.75rem; color: var(--accent2); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.edu-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.edu-card h4 { font-size: 0.85rem; color: var(--muted); font-weight: 400; }

/* CERTS */
.certs-section { background: var(--bg2); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; max-width: 1200px; margin: 0 auto; }
.cert-card {
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.25s;
}
.cert-card:hover { border-color: rgba(124,106,247,0.3); background: rgba(124,106,247,0.05); }
.cert-icon { font-size: 1.6rem; }
.cert-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.cert-card p { font-size: 0.78rem; color: var(--muted); }

/* CONTACT */
.contact-inner {
  max-width: 700px; margin: 0 auto; text-align: center;
}
.contact-links { display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.contact-link {
  padding: 14px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s; cursor: none;
}
.contact-link:hover { border-color: var(--accent); background: var(--accent-glow); color: var(--accent2); transform: translateY(-2px); }

/* FOOTER */
footer {
  padding: 30px 5%;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem; color: var(--muted);
}

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .about-grid, .edu-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  nav { padding: 0 6%; }
}
