/* ==========================================================================
   PORTOFOLIO AHNAF CHAISAR AKBAR - MODERN STYLESHEET
   Design System: Cyber-Glass Neo Elegance (Dark & Light Mode Support)
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  /* Color Palette - Dark Mode Default */
  --bg-primary: #0a0d14;
  --bg-secondary: #101623;
  --bg-card: rgba(19, 26, 42, 0.7);
  --bg-card-hover: rgba(28, 38, 62, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #64748b;

  /* Vibrant Accent Gradients */
  --accent-primary: #6366f1;       /* Indigo */
  --accent-secondary: #06b6d4;     /* Cyan */
  --accent-tertiary: #ec4899;      /* Pink */
  --accent-success: #10b981;       /* Emerald */
  --accent-warning: #f59e0b;       /* Amber */

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #38bdf8 50%, #818cf8 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(56, 189, 248, 0.2) 100%);
  --gradient-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glass */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --backdrop-blur: blur(16px);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #edf2f7;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.45);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-sub: #64748b;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --gradient-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 250, 0.7) 100%);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Selection Color */
::selection {
  background: var(--accent-primary);
  color: #ffffff;
}

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

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
}

/* ==========================================================================
   OPENING / PRELOADER INTRO SCREEN
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s;
}

.preloader-overlay.fade-out {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

.preloader-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 70%);
  filter: blur(80px);
  animation: pulseGlow 4s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 90%;
  padding: 30px 20px;
}

/* Icon Badges Row: </> , Git, Person */
.preloader-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.preloader-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: pillFloat 3s infinite ease-in-out;
}

.code-pill {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  animation-delay: 0s;
}

.git-pill {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.1);
  animation-delay: 0.3s;
}

.person-pill {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.1);
  animation-delay: 0.6s;
}

@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.preloader-text-box {
  margin-bottom: 30px;
}

.preloader-greeting {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preloader-name {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.preloader-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.code-bracket {
  color: #38bdf8;
  font-weight: 700;
}

.tag-title {
  color: #ffffff;
  letter-spacing: 2px;
}

/* Preloader Progress Bar */
.preloader-loader-wrapper {
  width: 100%;
  max-width: 340px;
  margin-bottom: 20px;
}

.preloader-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.8);
  transition: width 0.1s linear;
}

.preloader-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.8rem;
}

.preloader-status-msg {
  color: var(--text-muted);
}

.preloader-counter {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
}

.preloader-skip {
  background: transparent;
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: var(--transition);
}

.preloader-skip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

/* --- Ambient Glowing Blobs --- */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: pulseBlob 12s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: #6366f1;
  top: -100px;
  right: -80px;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: #06b6d4;
  bottom: 10%;
  left: -120px;
  animation-delay: 4s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: #8b5cf6;
  top: 45%;
  right: 15%;
  animation-delay: 8s;
}

@keyframes pulseBlob {
  0% { transform: scale(0.9) translate(0, 0); }
  50% { transform: scale(1.15) translate(30px, -20px); }
  100% { transform: scale(0.95) translate(-20px, 30px); }
}

/* --- Typography Utilities --- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Glassmorphism Card Base --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color-hover);
  color: #818cf8;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-accent {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.badge-date {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

.navbar-wrapper.scrolled {
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar-wrapper.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.logo-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.accent-dot {
  color: var(--accent-secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .nav-menu {
  background: rgba(0, 0, 0, 0.03);
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .nav-link:hover, 
[data-theme="light"] .nav-link.active {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #38bdf8;
  transform: rotate(25deg);
}

.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 9px;
  z-index: 1001;
}

.mobile-toggle-btn .bar {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-toggle-btn.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle-btn.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle-btn.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 70px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.typing-container {
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
  min-height: 38px;
}

.typing-prefix {
  color: var(--text-muted);
  margin-right: 8px;
}

.typing-text {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 600;
}

.typing-cursor {
  color: var(--accent-primary);
  font-weight: 300;
  margin-left: 2px;
  animation: blinkCursor 0.9s infinite;
}

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

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-description strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.social-links-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.social-links {
  display: flex;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.social-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Hero Avatar & Visual Elements */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Stacked Card Deck / Infinite Stack Slider */
.avatar-card-wrapper {
  position: relative;
  width: 360px;
  height: 480px;
  perspective: 1200px;
}

.avatar-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 90%;
  background: var(--gradient-brand);
  filter: blur(65px);
  opacity: 0.45;
  border-radius: 40px;
  z-index: 1;
  pointer-events: none;
}

.deck-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deck-stack {
  position: relative;
  width: 100%;
  height: 410px;
  transform-style: preserve-3d;
}

.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.4s ease, filter 0.4s ease;
  will-change: transform, opacity;
}

.deck-card:active {
  cursor: grabbing;
}

.deck-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.deck-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.deck-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px 16px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 13, 20, 0.72) 35%, rgba(10, 13, 20, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(3px);
}

.deck-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deck-card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.deck-card-role {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Card Discard / Swipe Animations */
.deck-card.swiping-right {
  transform: translate3d(140%, 30px, 50px) rotate(25deg) !important;
  opacity: 0 !important;
  pointer-events: none;
  transition: transform 0.38s ease, opacity 0.38s ease !important;
}

.deck-card.swiping-left {
  transform: translate3d(-140%, 30px, 50px) rotate(-25deg) !important;
  opacity: 0 !important;
  pointer-events: none;
  transition: transform 0.38s ease, opacity 0.38s ease !important;
}

/* Deck Controls */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  margin-top: 14px;
  gap: 12px;
}

.deck-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.deck-nav-btn:hover {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08);
}

.deck-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.deck-hint:hover {
  color: #38bdf8;
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
}

.deck-hint i {
  color: var(--accent-secondary);
  animation: pointerPulse 1.8s infinite;
}

@keyframes pointerPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.deck-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.deck-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.deck-dot.active {
  width: 20px;
  border-radius: var(--radius-full);
  background: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Floating Orbit Tech Badges */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: floatOrb 5s infinite ease-in-out alternate;
  white-space: nowrap;
}

[data-theme="light"] .floating-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.badge-laravel {
  top: 30px;
  left: -25px;
  color: #f43f5e;
  animation-delay: 0s;
}

.badge-sql {
  top: 140px;
  right: -30px;
  color: #38bdf8;
  animation-delay: 1.2s;
}

.badge-excel {
  bottom: 100px;
  left: -20px;
  color: #10b981;
  animation-delay: 2.5s;
}

.badge-ai {
  bottom: 20px;
  right: -15px;
  color: #a855f7;
  animation-delay: 3.8s;
}

@keyframes floatOrb {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Stats Counter Strip */
.stats-strip {
  margin-top: 60px;
  padding: 26px 36px;
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-suffix {
  font-size: 1.3rem;
  color: var(--accent-secondary);
}

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

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border-color);
}

/* ==========================================================================
   2. ABOUT & EDUCATION SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.edu-card {
  padding: 32px;
  margin-bottom: 28px;
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.primary-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.card-title-lg {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 4px;
}

.icon-accent {
  color: #38bdf8;
  margin-right: 8px;
}

.edu-detail-meta {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-row i {
  color: var(--accent-secondary);
  width: 18px;
  text-align: center;
}

.gpa-row {
  color: #f59e0b;
}

.gpa-row strong {
  color: var(--text-main);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Graduation Moments Gallery Grid */
.graduation-photos-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sub-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sub-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.grad-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.grad-photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.grad-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grad-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
}

.grad-photo-item:hover img {
  transform: scale(1.1);
}

.grad-photo-item:hover .grad-overlay {
  opacity: 1;
}

/* Skills Column & Matrix */
.skills-card {
  padding: 32px;
}

.skills-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 12px 0 24px 0;
}

.skill-category {
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 12px;
}

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

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.skill-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   3. WORK EXPERIENCE SECTION
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 17px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), transparent);
}

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

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

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-card {
  padding: 30px;
}

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

.role-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.company-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 1rem;
}

.timeline-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-list {
  list-style: none;
  margin-bottom: 22px;
}

.task-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.task-list li:last-child {
  margin-bottom: 0;
}

.task-list li i {
  color: var(--accent-primary);
  font-size: 0.65rem;
  margin-top: 8px;
  flex-shrink: 0;
}

.task-list li strong {
  color: var(--text-main);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.tag-badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. FEATURED PROJECTS SECTION
   ========================================================================== */
.filter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn, .filter-btn-cert {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn-cert:hover,
.filter-btn.active, .filter-btn-cert.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

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

.project-card {
  display: flex;
  flex-direction: column;
}

.project-badge-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.project-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-image-box:hover img {
  transform: scale(1.08);
}

.project-image-box:hover .image-overlay {
  opacity: 1;
}

.project-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-cat-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.project-star {
  font-size: 0.78rem;
  color: #f59e0b;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-main);
}

.project-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
}

.project-footer {
  margin-top: auto;
}

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

.cert-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.cert-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

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

.cert-zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition);
}

.cert-thumb-box:hover img {
  transform: scale(1.06);
}

.cert-thumb-box:hover .cert-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

.cert-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-main);
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-meta-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.cert-date {
  font-size: 0.76rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cert-view-btn {
  background: transparent;
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.cert-view-btn:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* ==========================================================================
   6. GALLERY SECTION
   ========================================================================== */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 20, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.85rem;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

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

/* ==========================================================================
   7. CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

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

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.email-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.wa-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.loc-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.git-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-sub);
}

.channel-val {
  font-size: 1.02rem;
  color: var(--text-main);
  margin: 2px 0;
}

.channel-hint {
  font-size: 0.78rem;
  color: #38bdf8;
}

/* Contact Form */
.form-card {
  padding: 36px;
}

.form-instructions {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 10px 0 24px 0;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: rgba(0, 0, 0, 0.02);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

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

.form-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-heading {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-nav a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-sub);
}

.footer-back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #818cf8;
  font-weight: 600;
}

.footer-back-to-top a:hover {
  color: #ffffff;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.lightbox-body {
  padding: 16px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  max-height: calc(90vh - 140px);
}

.lightbox-image {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description {
    margin: 0 auto 32px auto;
  }

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

  .social-links-wrapper {
    justify-content: center;
  }

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

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

  .photo-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .avatar-card-wrapper {
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    background: rgba(16, 22, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: var(--transition);
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .nav-contact-btn {
    display: none;
  }

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

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

  .stats-strip {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
  }

  .hero-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .avatar-card-wrapper {
    width: 300px;
    height: 440px;
  }

  .deck-stack {
    height: 370px;
  }

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

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

  .form-action-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}
