/* Haute Obsidian & Liquid Champagne Gold Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,300..900;1,300..900&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Great+Vibes&display=swap');

:root {
  --bg-dark: #08090b;
  --surface-dark: #0e0f13;
  --surface-card: rgba(16, 18, 23, 0.85);
  --gold-primary: #ffd165;
  --gold-gradient: linear-gradient(135deg, #ffe599 0%, #ffd165 40%, #eab308 75%, #ca8a04 100%);
  --gold-amber: #eab308;
  --gold-glow: rgba(234, 179, 8, 0.35);
  --gold-border: rgba(234, 179, 8, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-gold: #ffd165;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Selection */
::selection {
  background-color: var(--gold-amber);
  color: #08090b;
}

/* Modals & Popups */
.modal-backdrop {
  background-color: rgba(4, 5, 7, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-enter {
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08090b;
}
::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.4);
  border-radius: 4px;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(234, 179, 8, 0.12);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.4));
  font-weight: 700;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 22, 28, 0.8);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid rgba(234, 179, 8, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-pill {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 209, 101, 0.1);
}

.nav-pill.active {
  background: var(--gold-gradient);
  color: #08090b;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
}

.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(234, 179, 8, 0.3);
  background: rgba(20, 22, 28, 0.8);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.header-action-btn:hover {
  background: var(--gold-primary);
  color: #08090b;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
  transform: rotate(90deg);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Main Section Wrappers */
.main-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title-wrapper {
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
  position: relative;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin-top: 8px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* Glass Cards */
.glass-card {
  background: rgba(15, 17, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(234, 179, 8, 0.15);
  transform: translateY(-4px);
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.hero-visual-card {
  position: relative;
  border-radius: 24px;
  border: 2px solid rgba(234, 179, 8, 0.35);
  padding: 12px;
  background: rgba(14, 16, 20, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(234, 179, 8, 0.15);
}

.hero-portrait-frame {
  width: 100%;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.5s ease;
}

.hero-visual-card:hover .hero-portrait-frame img {
  transform: scale(1.03);
}

.hero-name-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 10px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pill-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
}

.hero-main-title {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 30%, #ffd165 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role-title {
  font-size: 1.15rem;
  color: var(--gold-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-sub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sub-tag-chip {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #08090b;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.7);
  background: linear-gradient(135deg, #ffffff 0%, #ffd165 100%);
}

.btn-dark-glass {
  background: rgba(22, 25, 32, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-dark-glass:hover {
  border-color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold-primary);
}

/* About Section */
.about-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d1d5db;
  margin-bottom: 30px;
}

.exhibitions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.15);
}

.exhibitions-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.exhibition-card {
  background: rgba(20, 23, 30, 0.7);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 12px;
  padding: 18px;
  transition: all 0.3s ease;
}

.exhibition-card:hover {
  border-color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.08);
}

.exhibition-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.exhibition-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  float: right;
  font-weight: 600;
}

.exhibition-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.exhibition-desc {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* Timeline Experience */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(234, 179, 8, 0.1), var(--gold-amber), rgba(234, 179, 8, 0.1));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
}

.timeline-node {
  position: absolute;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-amber), 0 0 30px var(--gold-primary);
  border: 3px solid #08090b;
  z-index: 2;
}

.timeline-item.left .timeline-node {
  right: -8px;
}

.timeline-item.right .timeline-node {
  left: -8px;
}

.timeline-card {
  background: rgba(16, 19, 26, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(234, 179, 8, 0.15);
}

.timeline-period {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-details {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* Skills & Tech Stack */
.skills-stack-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-row-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
  background: rgba(16, 19, 26, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
}

.skill-cat-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.skill-tags-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tech-tag:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.08);
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.edu-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(16, 19, 26, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.edu-card:hover {
  border-color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.05);
}

.edu-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.edu-desc {
  font-size: 0.82rem;
  color: #9ca3af;
}

.edu-year {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  padding: 4px 10px;
  border-radius: 10px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.contact-card-item {
  background: rgba(16, 19, 26, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-val {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

.btn-copy {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--gold-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
}

.btn-copy:hover {
  background: var(--gold-primary);
  color: #08090b;
}

.contact-form-card {
  background: rgba(16, 19, 26, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 16px;
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(10, 11, 14, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: 0.3s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.form-textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(234, 179, 8, 0.15);
  padding: 30px 0;
  background: #060708;
  margin-top: 60px;
}

.footer-flex {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.25s;
}

.footer-socials a:hover {
  background: var(--gold-primary);
  color: #08090b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual-card {
    max-width: 380px;
    margin: 0 auto;
  }
  .hero-name-badge {
    justify-content: center;
  }
  .pill-tags-row, .hero-sub-tags, .hero-actions-row {
    justify-content: center;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-node {
    left: 12px !important;
  }
  .skill-row-card {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-pills {
    display: none;
  }
  .nav-pills.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: rgba(12, 14, 18, 0.95);
    padding: 16px;
    border-radius: 16px;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-main-title {
    font-size: 2rem;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= HERO PORTRAIT & HUD ANIMATIONS ================= */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.6deg);
  }
}
.animate-hero-float {
  animation: heroFloat 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

@keyframes auraPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.98);
    filter: blur(35px);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
    filter: blur(55px);
  }
}
.animate-aura-pulse {
  animation: auraPulse 4.5s ease-in-out infinite;
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(-360deg); }
}
.spin-slow-cw {
  animation: spinCW 25s linear infinite;
}
.spin-slow-ccw {
  animation: spinCCW 32s linear infinite;
}

@keyframes laserScan {
  0% {
    top: -10%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}
.animate-laser-scan {
  animation: laserScan 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes soundwave {
  0%, 100% { height: 4px; opacity: 0.6; }
  50% { height: 18px; opacity: 1; }
}
.wave-bar {
  display: inline-block;
  animation: soundwave 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(1) { animation-delay: 0.0s; }
.wave-bar:nth-child(2) { animation-delay: 0.25s; }
.wave-bar:nth-child(3) { animation-delay: 0.5s; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; }
.wave-bar:nth-child(5) { animation-delay: 0.35s; }
.wave-bar:nth-child(6) { animation-delay: 0.6s; }

/* Interactive 3D Perspective Tilt Card Container */
.tilt-card-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.tilt-card-wrapper .tilt-card-inner {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

/* ================= CINEMATIC 3D SCROLL & PARALLAX KINETIC ENGINE ================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96) rotateX(3deg);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.parallax-img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.parallax-card:hover .parallax-img {
  transform: scale(1.06) translateY(-4px);
}

/* ================= HIGH-CONTRAST TYPOGRAPHY & VISIBILITY ENGINE ================= */
/* Dark Mode High-Contrast Rules */
body:not(.light-mode) {
  color: #f1f5f9 !important;
}

body:not(.light-mode) p,
body:not(.light-mode) .readable-body,
body:not(.light-mode) .readable-card-text {
  color: #e2e8f0 !important;
  font-weight: 400 !important;
}

body:not(.light-mode) h1,
body:not(.light-mode) h2,
body:not(.light-mode) h3,
body:not(.light-mode) h4,
body:not(.light-mode) .text-white {
  color: #ffffff !important;
}

body:not(.light-mode) .text-gray-300,
body:not(.light-mode) .text-gray-400 {
  color: #cbd5e1 !important;
}

body:not(.light-mode) .text-[#9b8f79],
body:not(.light-mode) .text-[#a89b82] {
  color: #d0c4ae !important;
}

body:not(.light-mode) .text-amber-200,
body:not(.light-mode) .text-amber-300 {
  color: #fde047 !important;
}

/* ================= HOME / LANDING PAGE LIGHT MODE CONTAINER ENGINE ================= */
html.light-mode,
body.light-mode {
  background-color: #f7f5ee !important;
  color: #0f172a !important;
}

/* All Cards, Panels, Badges, Chips & Containers in Light Mode */
body.light-mode header,
body.light-mode nav,
body.light-mode footer,
body.light-mode .glass-panel,
body.light-mode .spatial-card-3d,
body.light-mode .timeline-card-lift,
body.light-mode .bg-\[\#1b1c1d\],
body.light-mode .bg-\[\#1f2021\],
body.light-mode .bg-\[\#121314\],
body.light-mode .bg-\[\#161719\],
body.light-mode .bg-\[\#242528\],
body.light-mode .bg-\[\#191a1e\],
body.light-mode .bg-\[\#141518\],
body.light-mode .bg-\[\#121316\],
body.light-mode .bg-\[\#0e0f12\],
body.light-mode .bg-\[\#0b0c0e\],
body.light-mode .bg-amber-950\/35 {
  background-color: #ffffff !important;
  border-color: rgba(202, 138, 4, 0.3) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05), 0 0 12px rgba(234, 179, 8, 0.08) !important;
}

/* Badges & Skill Chips in Light Mode */
body.light-mode .interactive-badge,
body.light-mode .sub-tag-chip,
body.light-mode span.font-mono,
body.light-mode span.text-xs,
body.light-mode span.text-\[11px\],
body.light-mode span.text-\[10px\] {
  background-color: #ede9de !important;
  border-color: rgba(202, 138, 4, 0.35) !important;
  color: #1e293b !important;
}

/* Form Inputs & Textareas in Light Mode */
body.light-mode input,
body.light-mode textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(202, 138, 4, 0.4) !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: #64748b !important;
}

/* Navigation Links in Light Mode */
body.light-mode nav a:not(.btn-3d) {
  color: #1e293b !important;
  font-weight: 700 !important;
  background-color: transparent !important;
}

body.light-mode nav a:not(.btn-3d):hover {
  color: #b47a05 !important;
  background-color: rgba(234, 179, 8, 0.12) !important;
}

/* All Headings & Body Text in Light Mode */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode .text-white,
body.light-mode .text-gray-100,
body.light-mode .text-gray-200,
body.light-mode p,
body.light-mode .readable-body,
body.light-mode .readable-card-text {
  color: #020617 !important;
  text-shadow: none !important;
}

body.light-mode .text-gray-300,
body.light-mode .text-gray-400 {
  color: #334155 !important;
}

body.light-mode .text-\[\#9b8f79\],
body.light-mode .text-\[\#a89b82\],
body.light-mode .text-\[\#d3c5ac\] {
  color: #574d39 !important;
}

body.light-mode .text-amber-200,
body.light-mode .text-amber-300,
body.light-mode .text-primary {
  color: #92400e !important;
}

body.light-mode .text-3d-gold {
  color: #b45309 !important;
  text-shadow: none !important;
}

/* Certificate Photo Thumbnails Stay 100% Crisp */
body.light-mode img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Footer in Light Mode */
body.light-mode footer {
  background-color: #eae6dc !important;
  border-top-color: rgba(202, 138, 4, 0.35) !important;
}

/* Theme Toggle Button Styling */
body.light-mode #themeToggleBtn {
  background: linear-gradient(180deg, #ffffff 0%, #ede8da 100%) !important;
  border-color: rgba(202, 138, 4, 0.6) !important;
  color: #ca8a04 !important;
  box-shadow: 0 3px 0 #945600 !important;
}

/* ================= LIGHT MODE BUTTON & ICON BOX OVERRIDES ================= */
/* 1. Header Contact Nav Button & Action Buttons */
body.light-mode .btn-3d,
body.light-mode .btn-dark-glass,
body.light-mode a[href="#contact"].btn-3d,
body.light-mode button[type="button"].btn-3d,
body.light-mode a.btn-3d {
  background: linear-gradient(180deg, #ffffff 0%, #f1ebdc 100%) !important;
  color: #92400e !important;
  border-color: rgba(202, 138, 4, 0.5) !important;
  box-shadow: 0 3px 0 #ca8a04, 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 2. Download CV / Hero Secondary Action Buttons */
body.light-mode a[href*="CV"],
body.light-mode a[href*="cv"],
body.light-mode .hero-actions-row a {
  background: linear-gradient(180deg, #ffffff 0%, #f3eee0 100%) !important;
  color: #92400e !important;
  border-color: rgba(202, 138, 4, 0.5) !important;
  box-shadow: 0 3px 0 #b47a05, 0 6px 15px rgba(0, 0, 0, 0.08) !important;
}

/* 3. Active Gold Nav Buttons (Home Button & Main Primary Actions) */
body.light-mode nav a.btn-3d.bg-gradient-to-b {
  background: linear-gradient(180deg, #ffd165 0%, #ca8a04 100%) !important;
  color: #251a00 !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 3px 0 #78350f, 0 6px 14px rgba(234, 179, 8, 0.35) !important;
}

/* 4. Click to Copy Badge & Small Action Buttons */
body.light-mode .btn-3d.text-\[9px\],
body.light-mode .btn-3d.text-xs,
body.light-mode span.btn-3d {
  background: linear-gradient(180deg, #fefefe 0%, #eee8da 100%) !important;
  color: #92400e !important;
  border-color: rgba(202, 138, 4, 0.45) !important;
  box-shadow: 0 2px 0 #b47a05 !important;
}

/* 5. Icon Boxes (Email Icon Box, LinkedIn Icon Box, Account Lock Button) */
body.light-mode .w-12.h-12,
body.light-mode .w-9.h-9,
body.light-mode .w-10.h-10,
body.light-mode .w-14.h-14 {
  background-color: #f5f0e3 !important;
  background-image: none !important;
  border-color: rgba(202, 138, 4, 0.45) !important;
  color: #92400e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .w-12.h-12 svg,
body.light-mode .w-9.h-9 svg,
body.light-mode .w-10.h-10 svg,
body.light-mode .w-14.h-14 svg {
  color: #92400e !important;
  fill: #92400e !important;
  stroke: #92400e !important;
}

/* Particle Canvas & Grid Light Mode Adjustment */
body.light-mode #particleCanvas {
  opacity: 0.35;
}

body.light-mode .cyber-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(202, 138, 4, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(202, 138, 4, 0.1) 1px, transparent 1px) !important;
  opacity: 0.6 !important;
}


