:root {
  --violet: #2D0A4E;
  --violet-mid: #4A1272;
  --violet-light: #7B2FBE;
  --violet-glow: #9B59D0;
  --white: #FFFFFF;
  --white-soft: rgba(255,255,255,0.85);
  --white-muted: rgba(255,255,255,0.4);
  --white-faint: rgba(255,255,255,0.08);
  --bg: #0F0320;
  --bg2: #160535;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  overflow-y: hidden;
}
body.loaded { overflow-y: auto; }

/* CUSTOM CURSOR */
* { cursor: none !important; }

#neon-cursor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

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

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 24px 60px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(15,3,32,0.95), transparent);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  text-decoration: none;
  cursor: none;
  user-select: none;
  transition: color 0.3s;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--violet-glow);
  transition: width 0.3s ease;
}
.nav-logo:hover::after { width: 100%; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: none;
}
.nav-links a:hover { color: var(--white); }

/* SECTIONS */
section { position: relative; z-index: 1; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb1 { width: 500px; height: 500px; background: rgba(123,47,190,0.25); top: -100px; right: -100px; }
.orb2 { width: 300px; height: 300px; background: rgba(74,18,114,0.3); bottom: 50px; left: -50px; }

.hero-content { max-width: 700px; }

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--violet-glow);
  border: 1px solid rgba(155,89,208,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero-name span { color: var(--violet-glow); font-style: italic; }

.hero-typed {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--white-soft);
  font-style: italic;
  margin-bottom: 24px;
  min-height: 2.2rem;
  animation: fadeUp 0.8s ease 0.3s both;
}
.typed-cursor { color: var(--violet-glow); animation: blink 1s infinite; }

.hero-accroche {
  font-size: 1.05rem;
  color: var(--white-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.45s both;
}

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.6s both;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  border: none;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--violet-glow); color: var(--white); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }


.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: var(--white-muted); font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  animation: fadeUp 1s ease 1s both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--violet-glow));
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ===== SECTION SHARED ===== */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 120px 60px; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 30px; height: 1px;
  background: var(--violet-glow);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 60px;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(155,89,208,0.3), transparent);
  margin: 0 60px;
}

/* ===== SKILLS ===== */
#skills { background: var(--bg2); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.skill-cat-title {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
}

.skill-item { margin-bottom: 20px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-size: 0.9rem; color: var(--white-soft); }
.skill-pct { font-size: 0.8rem; color: var(--violet-glow); }
.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(to right, var(--violet-light), var(--violet-glow));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 36px;
  background: var(--white-faint);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--violet-light), var(--violet-glow));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.project-card:hover { border-color: rgba(155,89,208,0.3); transform: translateY(-4px); }
.project-card:hover::before { transform: scaleX(1); }

.project-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(155,89,208,0.15);
  position: absolute; top: 20px; right: 24px;
  line-height: 1;
}

.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.project-tag {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--violet-glow);
  border: 1px solid rgba(155,89,208,0.4);
  padding: 4px 10px;
  border-radius: 20px;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--white-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-link {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-soft);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s;
  cursor: none;
}
.project-link:hover { gap: 14px; color: var(--white); }

/* ===== TIMELINE ===== */
#timeline { background: var(--bg2); }

.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--violet-light), var(--violet-glow), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 50px 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  position: absolute; left: -4px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--violet-glow);
  box-shadow: 0 0 12px rgba(155,89,208,0.6);
}

.timeline-date {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-bottom: 8px;
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-sub {
  font-size: 0.85rem;
  color: var(--white-muted);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.7;
}

/* ===== QUOTE ===== */
#quote {
  padding: 100px 60px;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: rgba(155,89,208,0.15);
  line-height: 0.5;
  margin-bottom: 32px;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--white-soft);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.quote-author {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--violet-glow);
}

/* ===== CONTACT ===== */
#contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--white-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--white-soft);
}
.contact-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(155,89,208,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--violet-glow);
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 4px; }

.field-error {
  font-size: 0.78rem;
  color: #e05c7a;
  display: none;
}
.field-error.visible { display: block; }

.form-field.invalid { border-color: rgba(224,92,122,0.6); }

.form-success {
  font-size: 0.85rem;
  color: var(--violet-glow);
  display: none;
}
.form-success.visible { display: block; }

.form-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.form-field:focus { border-color: rgba(155,89,208,0.6); }
.form-field::placeholder { color: var(--white-muted); }
textarea.form-field { resize: vertical; min-height: 120px; }

.social-links { display: flex; gap: 16px; margin-top: 32px; }
.social-link {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white-muted);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.85rem;
  cursor: none;
}
.social-link:hover { border-color: var(--violet-glow); color: var(--violet-glow); transform: translateY(-3px); }

/* FOOTER */
.footer-hint { color: rgba(255,255,255,0.2); }
body.light-mode .footer-hint { color: rgba(45,10,78,0.4); }

footer {
  text-align: center;
  padding: 40px 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--white-muted);
  position: relative; z-index: 1;
}

/* EASTER EGG OVERLAY */
#easter-egg {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15,3,32,0.96);
  align-items: center; justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(12px);
}
#easter-egg.active { display: flex; animation: fadeIn 0.4s ease; }
.easter-close {
  position: absolute; top: 30px; right: 40px;
  font-size: 1.5rem; color: var(--white-muted);
  cursor: none; transition: color 0.3s;
}
.easter-close:hover { color: var(--white); }
.easter-img {
  font-size: 4rem; margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}
.easter-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
  max-width: 500px;
  color: var(--white-soft);
  margin-bottom: 12px;
}
.easter-author {
  font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--violet-glow);
}

/* CONFETTI */
.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall linear forwards;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes confettiFall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .section-inner { padding: 80px 24px; }
  #hero { padding: 0 24px; }
  .hero-avatar { display: none; }
  .skills-grid, .projects-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  #quote { padding: 80px 24px; }
  .divider { margin: 0 24px; }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.1rem;
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--violet-glow); transform: rotate(20deg); }

/* ===== LIGHT MODE ===== */
body.light-mode {
  --bg: #F3EEFF;
  --bg2: #E8D9FF;
  --white: #1A0035;
  --white-soft: rgba(26,0,53,0.85);
  --white-muted: rgba(45,10,78,0.5);
  --white-faint: rgba(45,10,78,0.06);
}
body.light-mode nav {
  background: linear-gradient(to bottom, rgba(243,238,255,0.95), transparent);
}
body.light-mode .theme-toggle {
  border-color: rgba(45,10,78,0.3);
}
body.light-mode #progress-bar {
  background: linear-gradient(to right, var(--violet-mid), var(--violet-light));
}

/* ===== ABOUT ===== */
.about-text {
  font-size: 1rem;
  color: var(--white-muted);
  line-height: 1.9;
  max-width: 750px;
  margin-bottom: 60px;
}

.passions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.passion-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 32px;
  background: var(--white-faint);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.passion-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--violet-light), var(--violet-glow));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.passion-card:hover { border-color: rgba(155,89,208,0.3); transform: translateY(-4px); }
.passion-card:hover::before { transform: scaleX(1); }

.passion-icon { font-size: 2.5rem; margin-bottom: 16px; }
.passion-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.passion-desc {
  font-size: 0.88rem;
  color: var(--white-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .passions-grid { grid-template-columns: 1fr; }
}




/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #0F0320;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
#loader.hide { opacity: 0; pointer-events: none; }

.loader-content {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.loader-name {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center;
}

.loader-cursor {
  color: #9B59D0;
  margin-left: 2px;
  animation: loaderBlink 0.5s step-end infinite;
}
@keyframes loaderBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.loader-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9B59D0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.loader-sub.visible { opacity: 1; }

/* SCROLL PROGRESS */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(to right, var(--violet-light), var(--violet-glow));
  z-index: 200;
  transition: width 0.1s linear;
}
