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

:root {
  --navy: #0A0F1E;
  --navy-mid: #131929;
  --bg: #F5F7FF;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #6B7280;
  --accent: #3D5AF1;
  --accent-soft: #EEF1FE;
  --coral: #FF5E84;
  --border: #E5E7EB;
  --radius: 16px;
}

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-halo {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(61,90,241,0.4) 0%,
    rgba(255,94,132,0.2) 50%,
    transparent 75%);
  transform: translate(-50%, -50%);
  filter: blur(4px);
  transition: transform 0.05s linear, opacity 0.3s;
}
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
  transition: transform 0.03s linear;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--coral); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: color .2s; cursor: none;
}
.nav-links a:hover { color: #fff; }

.nav-linkedin {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #fff !important;
  padding: 6px 14px; border-radius: 8px;
  font-size: 0.8rem !important; font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-linkedin:hover { background: #2a44d4 !important; color: #fff !important; }

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 80px 5vw 60px;
  position: relative; overflow: hidden;
}

.hero-deco {
  position: absolute; top: 50%; right: 4vw;
  transform: translateY(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 700; letter-spacing: -0.05em;
  color: rgba(61,90,241,0.07);
  white-space: nowrap; user-select: none;
  pointer-events: none; line-height: 1;
}

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  width: 100%; max-width: 1100px; margin: 0 auto;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 700; line-height: 1.0;
  letter-spacing: -0.04em; color: #fff;
  margin-bottom: 0.5rem;
}
.hero-name .accent-line {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing animation */
.hero-typing-wrap {
  display: flex; align-items: center; gap: 0;
  min-height: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.6rem;
}
.hero-typing {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 600;letter-spacing: -0.03em;
  color: rgba(255,255,255,0.65);
  line-height: 1;
}
.cursor-blink {
  display: inline-block;
  width: 3px;
  height: clamp(1.4rem, 3vw, 2.6rem);
  background: var(--accent);
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem; line-height: 1.75;
  max-width: 460px; margin-bottom: 2rem;
}

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

.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 26px; border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border: none; cursor: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: #2a44d4; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.75);
  padding: 12px 26px; border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: border-color .2s, color .2s;
  display: inline-block; cursor: none;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Profile photo with glow */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-photo {
  width: clamp(200px, 22vw, 300px);
  height: clamp(200px, 22vw, 300px);
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: transparent;
  display: block;
  box-shadow:
    0 0 60px 15px rgba(61, 90, 241, 0.35),
    0 0 120px 30px rgba(255, 94, 132, 0.15);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.hero-photo:hover {
  box-shadow:
    0 0 80px 25px rgba(61, 90, 241, 0.6),
    0 0 150px 50px rgba(255, 94, 132, 0.25);
  transform: scale(1.02);
}

.hero-meta {
  margin-top: 2rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.38); font-size: 0.8rem;
}
.hero-meta-item svg { color: var(--accent); flex-shrink: 0; }

/* ============================================
   COMMON SECTION STYLES
   ============================================ */
section { padding: 88px 5vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.6rem; display: block;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--text); line-height: 1.1;
  margin-bottom: 1rem;
}
.divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  border-radius: 2px; margin-bottom: 2.8rem;
}

/* ============================================
   ABOUT
   ============================================ */
#about { background: var(--surface); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.about-text p {
  color: var(--muted); font-size: 1rem; line-height: 1.8;
  margin-bottom: 1.1rem;
}
.about-text p strong { color: var(--text); font-weight: 600; }

.about-facts { display: flex; flex-direction: column; gap: 1rem; }
.fact-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.4rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.fact-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent);
}
.fact-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.fact-value { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-top: 2px; }

/* ============================================
   SKILLS
   ============================================ */
#skills { background: var(--bg); }
.skills-categories { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 2.5rem; 
}
.skills-cat-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.skill-chips {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.skill-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.skill-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,90,241,0.1);
}
.skill-chip .chip-icon {
  width: 26px; height: 26px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.skill-chip .chip-icon img { width: 100%; height: 100%; object-fit: contain; }
.skill-chip .chip-name {
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
}

.also-know-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.also-chip {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 99px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
#experience { background: var(--surface); }
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 18px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--coral));
  border-radius: 1px;
}
.timeline-item {
  position: relative; padding-left: 56px; margin-bottom: 2.6rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 8px; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-period {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 0.35rem;
}
.timeline-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem;
}
.timeline-company {
  font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 0.5rem;
}
.timeline-desc {
  font-size: 0.88rem; color: var(--muted); line-height: 1.7;
}

/* ============================================
   PROJECTS
   ============================================ */
#projects { background: var(--bg); padding: 88px 5vw; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61,90,241,0.1);
}

.project-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  display: block;
  background: #FFECDC;
  padding: 20px 30px;
}

.project-body { padding: 1.3rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.8rem; }
.project-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
}
.project-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.project-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap .15s;
  cursor: none;
}
.project-link:hover { gap: 10px; }

/* ============================================
   EDUCATION
   ============================================ */
#education { background: var(--surface); }
.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  max-width: 680px;
}
.edu-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.edu-degree {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.edu-school { font-size: 0.88rem; color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.edu-period { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.9rem; }
.edu-courses { display: flex; flex-wrap: wrap; gap: 5px; }
.edu-course {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
#contact { background: var(--navy); text-align: center; }
#contact .section-label { color: var(--coral); }
#contact .section-title { color: #fff; }
.contact-sub {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 2.2rem;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  cursor: none;
}
.contact-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

footer {
  background: var(--navy);
  padding: 1.4rem 5vw;
  text-align: center;
}
footer p { color: rgba(255,255,255,0.25); font-size: 0.76rem; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; display: flex; justify-content: center; }
  .hero-photo { width: 150px; height: 150px; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .edu-card { grid-template-columns: 1fr; }
  body { cursor: auto; }
  .cursor-halo, .cursor-dot { display: none; }
}