/* ==========================================================================
   THEME VARIABLES & RESET
   ========================================================================== */
:root {
  /* Light Theme */
  --bg: #F5EFE6;
  --bg-alt: #E8DCC8;
  --card: #FDFBF7;
  --text: #4A2C1A;
  --text-soft: #6B4423;
  --accent: #A67B5B;
  --gold: #D4A574;
  --border: #D9C9B0;
  
  --shadow-sm: 0 4px 12px rgba(74, 44, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(74, 44, 26, 0.10);
  --shadow-lg: 0 16px 36px rgba(74, 44, 26, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg: #1A1410;
  --bg-alt: #241B15;
  --card: #2A201A;
  --text: #F5EFE6;
  --text-soft: #D4C4B0;
  --accent: #D4A574;
  --gold: #E8C088;
  --border: #3D2E22;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  background-size: 200% 200%;
  animation: bgGradientShift 8s ease-in-out infinite alternate;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

@keyframes bgGradientShift {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

/* ==========================================================================
   AMBIENT WAVE BLOBS
   ========================================================================== */
.bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wave-blob {
  position: absolute;
  border-radius: 43% 57% 65% 35% / 40% 45% 55% 60%;
  filter: blur(50px);
  opacity: 0.55;
  will-change: transform, border-radius;
}

.wave-blob-1 {
  width: 620px;
  height: 620px;
  top: -100px;
  left: -80px;
  background: radial-gradient(circle, var(--gold), rgba(212, 165, 116, 0.35));
  animation: floatWave1 8s ease-in-out infinite alternate;
}

.wave-blob-2 {
  width: 700px;
  height: 700px;
  top: 30%;
  right: -140px;
  background: radial-gradient(circle, var(--accent), rgba(166, 123, 91, 0.3));
  animation: floatWave2 10s ease-in-out infinite alternate;
}

.wave-blob-3 {
  width: 650px;
  height: 650px;
  bottom: -100px;
  left: 10%;
  background: radial-gradient(circle, #E8DCC8, rgba(212, 165, 116, 0.35));
  animation: floatWave3 9s ease-in-out infinite alternate;
}

.wave-blob-4 {
  width: 500px;
  height: 500px;
  top: 55%;
  left: 45%;
  background: radial-gradient(circle, var(--gold), rgba(212, 165, 116, 0.25));
  animation: floatWave4 11s ease-in-out infinite alternate;
}

[data-theme="dark"] .wave-blob {
  opacity: 0.32;
}

[data-theme="dark"] .wave-blob-1 {
  background: radial-gradient(circle, #D4A574, rgba(212, 165, 116, 0.2));
}

[data-theme="dark"] .wave-blob-2 {
  background: radial-gradient(circle, #A67B5B, rgba(166, 123, 91, 0.18));
}

[data-theme="dark"] .wave-blob-3 {
  background: radial-gradient(circle, #E8C088, rgba(61, 46, 34, 0.22));
}

[data-theme="dark"] .wave-blob-4 {
  background: radial-gradient(circle, #D4A574, rgba(166, 123, 91, 0.15));
}

@keyframes floatWave1 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 43% 57% 65% 35% / 40% 45% 55% 60%;
  }
  50% {
    transform: translate(140px, 90px) rotate(60deg) scale(1.18);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  100% {
    transform: translate(-60px, 130px) rotate(120deg) scale(0.92);
    border-radius: 35% 65% 55% 45% / 50% 60% 40% 50%;
  }
}

@keyframes floatWave2 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  }
  50% {
    transform: translate(-140px, -90px) rotate(-80deg) scale(1.15);
    border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%;
  }
  100% {
    transform: translate(80px, -60px) rotate(-160deg) scale(1.08);
    border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%;
  }
}

@keyframes floatWave3 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  }
  50% {
    transform: translate(110px, -80px) rotate(50deg) scale(1.2);
    border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
  }
  100% {
    transform: translate(-80px, 50px) rotate(110deg) scale(0.9);
    border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
  }
}

@keyframes floatWave4 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.95);
    border-radius: 50% 50% 50% 50%;
  }
  50% {
    transform: translate(-100px, 80px) rotate(-70deg) scale(1.22);
    border-radius: 65% 35% 55% 45% / 40% 60% 40% 60%;
  }
  100% {
    transform: translate(90px, -70px) rotate(-140deg) scale(1.05);
    border-radius: 40% 60% 35% 65% / 60% 40% 55% 45%;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background-color: rgba(232, 220, 200, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .section-alt {
  background-color: rgba(36, 27, 21, 0.52);
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 50px auto;
  font-size: 0.98rem;
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pixel-spinner {
  width: 48px;
  height: 48px;
  position: relative;
  animation: pixelSpin 1.2s infinite ease-in-out;
}

.pixel-spinner::before,
.pixel-spinner::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  box-shadow: 28px 0 0 var(--gold), 0 28px 0 var(--gold), 28px 28px 0 var(--accent);
}

@keyframes pixelSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.85); }
  100% { transform: rotate(360deg) scale(1); }
}

.loader-text {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 3px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 14px 0;
  background-color: rgba(245, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(26, 20, 16, 0.88);
}

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

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 1px;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-badge {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  font-weight: bold;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(166, 123, 91, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(166, 123, 91, 0.45);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 120px 0 60px 0;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  transition: transform 0.2s ease-out;
}

.shape-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--gold), transparent);
  top: -80px;
  right: -50px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent), transparent);
  bottom: -100px;
  left: -80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.hero-avatar-wrap {
  flex-shrink: 0;
}

.hero-avatar-ring {
  width: 260px;
  height: 350px;
  border-radius: 36px;
  padding: 8px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
  transition: var(--transition);
}

.hero-avatar-ring:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px;
  background-color: var(--card);
}

.hero-text {
  max-width: 600px;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-name {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-roles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.role-prefix {
  color: var(--gold);
}

.typed-cursor {
  animation: blink 0.8s infinite;
  color: var(--gold);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-soft);
  animation: bounce 2s infinite ease-in-out;
  transition: var(--transition);
}

.scroll-indicator:hover {
  color: var(--accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-text-card {
  background: var(--card);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-text-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-summary {
  font-size: 1.02rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.about-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text);
}

.about-highlights i {
  color: var(--accent);
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--card);
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.85);
  transition: opacity 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ==========================================================================
   TIMELINE (EXPERIENCE)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-36px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  left: -36px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.6, 0.64, 1) 0.08s;
}

.timeline-item.active .timeline-dot {
  transform: scale(1);
}

.timeline-card {
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline-year {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
}

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

.project-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.carousel-track .project-card {
  flex: 0 0 calc(50% - 12px);
  min-width: 0;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
  background-color: var(--bg);
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(26, 20, 16, 0.75);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 165, 116, 0.4);
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.93rem;
  color: var(--text-soft);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.skill-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.skill-list i {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ==========================================================================
   HOBBY SECTION
   ========================================================================== */
#hobbyCarousel {
  max-width: 960px;
}

.carousel-track .hobby-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 4px 10px;
}

.hobby-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.hobby-img-container {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 32px;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hobby-img-container:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.hobby-standalone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background-color: var(--card);
}

.hobby-tech-visual {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: radial-gradient(circle at center, rgba(212, 165, 116, 0.22), transparent 70%), var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
}

.tech-main-icon {
  font-size: 3.6rem;
  color: var(--accent);
  filter: drop-shadow(0 4px 12px rgba(166, 123, 91, 0.35));
  animation: techPulse 3s infinite ease-in-out;
}

@keyframes techPulse {
  0%, 100% { transform: scale(1); color: var(--accent); }
  50% { transform: scale(1.08); color: var(--gold); }
}

.tech-icon-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-icon-pills span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  background: var(--bg-alt);
  color: var(--text);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.tech-icon-pills span i {
  color: var(--accent);
  font-size: 0.75rem;
}

.hobby-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  flex: 1;
  transition: var(--transition);
}

.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.hobby-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hobby-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.hobby-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.hobby-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ==========================================================================
   CERTIFICATES (CAROUSEL & LIGHTBOX)
   ========================================================================== */
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  flex-shrink: 0;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--accent);
  color: #FFF;
  border-color: var(--accent);
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  margin: 0 16px;
  padding: 16px 4px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card {
  flex: 0 0 calc(50% - 12px);
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.cert-img-wrap {
  position: relative;
  height: 180px;
  background: var(--bg-alt);
  overflow: hidden;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-img-wrap img {
  transform: scale(1.05);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-info {
  padding: 16px 20px;
}

.cert-info h3,
.cert-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 8, 6, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #F5EFE6;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #FFF;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.15) rotate(90deg);
  color: var(--gold);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--card);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.contact-card:not(.contact-card-static):hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #FFF;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-info p {
  font-size: 0.85rem;
  color: var(--text-soft);
  word-break: break-word;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 10001;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 8px rgba(212, 165, 116, 0.6);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal,
.reveal-up,
.reveal-scale,
.reveal-left,
.reveal-right,
.timeline-item,
.stat-card,
.skill-card,
.contact-card {
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal,
.reveal-up {
  transform: translateY(24px);
}

.reveal-scale {
  transform: scale(0.92) translateY(18px);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.skill-card,
.contact-card {
  transform: translateY(22px);
}

.reveal.active,
.reveal-up.active,
.reveal-scale.active,
.reveal-left.active,
.reveal-right.active,
.timeline-item.active,
.stat-card.active,
.skill-card.active,
.contact-card.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered Delay Classes */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.10s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.20s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.30s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track .project-card,
  .cert-card {
    flex: 0 0 100%;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hobby-wrapper {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .hero-avatar-ring {
    width: 210px;
    height: 280px;
    border-radius: 28px;
  }

  .hero-cta {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hobby-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hobby-img-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .hobby-card {
    padding: 24px;
    text-align: left;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 40px 32px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    gap: 20px;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.05rem;
  }
}
