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

:root {
  --purple: #5B9CF6;
  --purple-light: #EBF2FE;
  --purple-dark: #2563C4;
  --coral: #F4845F;
  --coral-light: #FEF0EB;
  --coral-dark: #C4522D;
  --teal: #9B7FE8;
  --teal-light: #F0ECFD;
  --teal-dark: #5B3CB5;
  --amber: #8EC96A;
  --amber-light: #F0F9EA;
  --amber-dark: #4E7D2D;
  --pink: #F9A875;
  --pink-light: #FEF4EC;
  --pink-dark: #C4652D;
  --blue: #7BB8F7;
  --blue-light: #EDF4FE;
  --blue-dark: #3A6FC4;

  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --bg: #fdfcfb;
  --white: #ffffff;
  --border: rgba(0,0,0,0.1);

  --nav-h: 68px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--coral); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active::after { background: var(--coral); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}
.hero-bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -100px; right: -100px;
  animation: float1 12s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--coral);
  bottom: 20%; left: -100px;
  animation: float2 15s ease-in-out infinite;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--teal);
  bottom: -100px; right: 20%;
  animation: float1 10s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(-3deg); }
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.highlight {
  color: var(--purple);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 6px;
  background: var(--coral-light);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== HERO IMAGE ===== */
.hero-image-wrap { display: flex; justify-content: center; }
.hero-image-frame {
  position: relative;
  width: 320px; height: 320px;
}
.hero-image-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.placeholder-icon { text-align: center; color: white; opacity: 0.8; }
.placeholder-icon p { margin-top: 0.5rem; font-size: 0.85rem; font-weight: 500; }

.image-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.badge-1 { top: -12px; left: -24px; color: var(--purple-dark); animation: badgeFloat 3s ease-in-out infinite; }
.badge-2 { top: 50%; right: -28px; color: var(--teal-dark); animation: badgeFloat2 3s ease-in-out infinite 1s; }
.badge-3 { bottom: 20px; left: -28px; color: var(--coral-dark); animation: badgeFloat 3s ease-in-out infinite 2s; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--purple); color: white; }
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(127,119,221,0.4);
}
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn-large { padding: 1rem 2.5rem; font-size: 1rem; }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ===== SECTION LABELS & TITLES ===== */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* ===== ABOUT ===== */
.about { padding: 6rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 1rem;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.02rem; }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; display: block; }

/* ===== SKILLS ===== */
.skills-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.skill-tag { padding: 5px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 500; }
.tag-purple { background: var(--purple-light); color: var(--purple-dark); }
.tag-blue { background: var(--blue-light); color: var(--blue-dark); }
.tag-coral { background: var(--coral-light); color: var(--coral-dark); }
.tag-green { background: #EAF3DE; color: #3B6D11; }
.tag-amber { background: var(--amber-light); color: var(--amber-dark); }
.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-pink { background: var(--pink-light); color: var(--pink-dark); }

.skill-bar-item { margin-bottom: 1rem; }
.skill-bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.skill-bar-track { height: 6px; background: rgba(0,0,0,0.07); border-radius: 100px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 100px; width: 0; transition: width 1.2s var(--ease); }
.skill-bar-fill.animated { width: var(--w); }
.fill-purple { background: var(--purple); }
.fill-coral { background: var(--coral); }
.fill-teal { background: var(--teal); }
.fill-amber { background: var(--amber); }

/* ===== EXPERIENCE / TIMELINE ===== */
.experience { padding: 6rem 0; background: var(--white); }
.timeline { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--border);
}
.dot-purple { background: var(--purple); box-shadow: 0 0 0 2px var(--purple-light); }
.dot-coral { background: var(--coral); box-shadow: 0 0 0 2px var(--coral-light); }

.timeline-content { padding-top: 0; }
.timeline-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.timeline-date { font-size: 0.8rem; font-weight: 600; color: var(--purple); }
.timeline-type { font-size: 0.8rem; color: var(--text-muted); }
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}
.timeline-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-tags span { padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; background: var(--purple-light); color: var(--purple-dark); }

/* ===== PROJECTS PREVIEW ===== */
.projects-preview { padding: 6rem 0; }
.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.preview-card {
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.preview-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.preview-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 0.75rem 0 0.5rem; }
.preview-card p { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; margin-bottom: 1rem; }
.card-number { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.5; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags span { padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; background: rgba(255,255,255,0.3); }
.preview-cta { text-align: center; }

.card-purple { background: var(--purple); color: white; }
.card-coral { background: var(--coral); color: white; }
.card-teal { background: var(--teal); color: white; }
.card-amber { background: var(--amber); color: white; }
.card-pink { background: var(--pink); color: white; }
.card-blue { background: var(--blue); color: white; }

/* ===== EDUCATION ===== */
.education { padding: 6rem 0; background: var(--white); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.edu-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.edu-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.edu-icon-purple { background: var(--purple-light); color: var(--purple-dark); }
.edu-icon-coral { background: var(--coral-light); color: var(--coral-dark); }
.edu-icon-teal { background: var(--teal-light); color: var(--teal-dark); }
.edu-degree { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.edu-school { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.edu-date { font-size: 0.75rem; color: var(--text-muted); opacity: 0.7; }

/* ===== CONTACT ===== */
.contact { padding: 6rem 0; }
.contact-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-inner p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; }
.social-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.social-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--purple);
  transition: width 0.3s;
}
.social-link:hover { color: var(--purple); }
.social-link:hover::after { width: 100%; }

/* ===== FOOTER ===== */
.footer { padding: 2rem 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* ===== PROJECTS PAGE ===== */
.page-header {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.page-header-bg .shape-1 { width: 350px; height: 350px; background: var(--purple); top: -80px; right: -60px; }
.page-header-bg .shape-2 { width: 250px; height: 250px; background: var(--teal); bottom: -60px; left: 10%; }
.page-header-content { position: relative; z-index: 1; }

.filter-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--purple); color: var(--purple); }
.filter-btn.active { background: var(--purple); border-color: var(--purple); color: white; }

.projects-section { padding: 3rem 0 5rem; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.3s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.project-card-top {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 110px;
}
.project-num { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.6; color: white; }
.project-card-top h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: white; letter-spacing: -0.3px; margin-top: auto; }
.project-top-link { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 1px; width: fit-content; transition: color 0.2s, border-color 0.2s; }
.project-top-link:hover { color: white; border-color: white; }
.project-card-body { padding: 1.5rem; }
.project-meta { display: flex; justify-content: space-between; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 4px; }
.project-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.project-year { font-size: 0.78rem; color: var(--text-muted); }

.project-card-body p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.project-stack span { padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; background: var(--purple-light); color: var(--purple-dark); }
.project-links { display: flex; gap: 1.25rem; }
.project-link { font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.project-link:hover { opacity: 0.7; }
.link-github { color: var(--text); }
.link-live { color: var(--purple); }

/* More projects block */
.more-projects { margin-top: 3rem; }
.more-inner {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}
.more-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.more-inner p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-sub { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-image-frame { width: 260px; height: 290px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .preview-cards, .projects-grid, .edu-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { gap: 1.5rem; }
}
@media (max-width: 600px) {
  .preview-cards, .projects-grid, .edu-grid { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--nav-h) + 1rem) 1.5rem 3rem; }
  .nav-inner, .container { padding: 0 1.25rem; }
  .hero-image-frame { width: 220px; height: 240px; }
  .about-stats { flex-direction: column; gap: 1rem; }
  .edu-card { flex-direction: column; }
}
