/**
 * Portfolio Stylesheet - Rizki Ramadani
 * Software Developer, Game Developer & Infrastructure Engineer
 * Modern Glassmorphism & Adaptive Dark/Light Mode
 */

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  /* Dark Mode Palette (Default) */
  --bg-primary: #07080a;
  --bg-card: rgba(18, 21, 26, 0.65);
  --bg-card-hover: rgba(26, 30, 38, 0.85);
  --bg-pill: rgba(20, 23, 29, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(165, 196, 235, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent-blue: #b4cde8;
  --accent-blue-dark: #1e293b;
  --accent-glow: rgba(130, 170, 225, 0.15);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  --card-hover-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  --transition-smooth: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: all 0.2s ease;
}

/* Light Mode Variables (Toggleable via .light on <html>) */
html.light {
  --bg-primary: #f4f6f9;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-pill: rgba(241, 245, 249, 0.92);
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-highlight: rgba(59, 130, 246, 0.4);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent-blue: #1e293b;
  --accent-blue-dark: #e2e8f0;
  --accent-glow: rgba(59, 130, 246, 0.12);
  --card-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  --card-hover-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
  background: rgba(147, 197, 253, 0.28);
  color: #ffffff;
}

html.light ::selection {
  background: rgba(59, 130, 246, 0.22);
  color: #0f172a;
}

/* ==========================================================================
   3. BACKGROUND AMBIENT CANVAS (SILK / GLASS WAVES)
   ========================================================================== */
.bg-canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave-svg {
  position: absolute;
  top: -5%;
  right: -10%;
  width: 110%;
  height: 110%;
  opacity: 0.95;
  animation: waveFloat 18s ease-in-out infinite alternate;
}

html.light .wave-svg {
  opacity: 0.22;
  filter: invert(1);
}

@keyframes waveFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-25px, 15px) scale(1.03);
  }
}

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Glassmorphism Capsule Card Utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

/* ==========================================================================
   5. NAVBAR & BRAND HEADER
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 20px;
  z-index: 100;
  margin-bottom: 40px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark / Light Mode Toggle Pill Switch */
.theme-toggle {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  border-color: var(--border-highlight);
}

.theme-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #232832;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

html.light .theme-toggle {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
}

html.light .theme-thumb {
  transform: translateX(22px);
  background: #fbbf24;
  color: #0f172a;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

html.light .mobile-menu-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
  padding: 46px 0 64px;
  max-width: 720px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(18, 21, 26, 0.75);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

html.light .status-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #93c5fd;
  box-shadow: 0 0 10px #93c5fd;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-title .first-name {
  color: var(--text-main);
}

.hero-title .last-name {
  background: linear-gradient(135deg, #c2d6ec 0%, #9ab8dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light .hero-title .last-name {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

html.light .hero-subtitle {
  color: #1e293b;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 34px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Interactive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #b8cde4 0%, #a3bddb 100%);
  color: #0b0f17;
  box-shadow: 0 4px 20px rgba(163, 189, 219, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(163, 189, 219, 0.35);
  background: linear-gradient(135deg, #cce0f5 0%, #b4cde8 100%);
}

.btn-primary i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.btn-primary:hover i {
  transform: translate(2px, -2px);
}

.btn-secondary {
  background: rgba(20, 24, 31, 0.75);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(30, 35, 45, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Light Mode Secondary Button Fix */
html.light .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html.light .btn-secondary:hover {
  background: rgba(241, 245, 249, 1);
  border-color: rgba(15, 23, 42, 0.22);
  color: #0f172a;
}

/* ==========================================================================
   7. ABOUT & STATS GRID SECTION
   ========================================================================== */
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  margin-bottom: 56px;
  align-items: stretch;
}

.about-card {
  padding: 28px 30px;
  border-radius: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.about-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

html.light .about-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

.card-header-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
}

.card-header-label i {
  color: #93b4d8;
  font-size: 1rem;
}

html.light .card-header-label i {
  color: #2563eb;
}

.about-greeting {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.about-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.about-divider {
  height: 1px;
  width: 140px;
  background: var(--border-subtle);
  margin-bottom: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.25s ease;
}

html.light .link-arrow {
  color: #334155;
}

.link-arrow:hover {
  color: #93c5fd;
}

html.light .link-arrow:hover {
  color: #2563eb;
}

.link-arrow i {
  font-size: 0.78rem;
  transition: transform 0.25s ease;
}

.link-arrow:hover i {
  transform: translateX(4px);
}

/* Stats Metric Card */
.stats-card {
  padding: 36px 24px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
}

.stats-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

html.light .stats-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

.stat-item {
  padding: 8px 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-icon {
  font-size: 1.35rem;
  color: #9cb8d9;
  margin-bottom: 14px;
}

html.light .stat-icon {
  color: #2563eb;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   8. SECTION HEADERS
   ========================================================================== */
.section-block {
  margin-bottom: 58px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.section-title-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-title-group h2 i {
  color: #93b4d8;
  font-size: 1.1rem;
}

html.light .section-title-group h2 i {
  color: #2563eb;
}

.section-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. MY SKILLS SECTION
   ========================================================================== */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.skills-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 4px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  user-select: none;
}

.skill-pill:hover,
.skill-pill.active-pill {
  background: rgba(34, 43, 58, 0.9);
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 0 20px rgba(147, 197, 253, 0.14);
  transform: translateY(-2px);
}

html.light .skill-pill:hover,
html.light .skill-pill.active-pill {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

.skill-pill i {
  font-size: 1.1rem;
}

/* Brand Colors for Tech Logos */
.ico-php { color: #8892bf; }
.ico-js { color: #f7df1e; }
.ico-python { color: #3776ab; }
.ico-dart { color: #0175c2; }
.ico-rust { color: #dea584; }
.ico-pawn { color: #94a3b8; }
.ico-lua { color: #60a5fa; }
.ico-laravel { color: #ff2d20; }
.ico-node { color: #68a063; }
.ico-flutter { color: #42a5f5; }
.ico-mysql { color: #4479a1; }
.ico-mariadb { color: #c0765a; }
.ico-linux { color: #eab308; }
.ico-git { color: #f05032; }
.ico-github { color: #e2e8f0; }
.ico-composer { color: #885630; }
.ico-docker { color: #2496ed; }

html.light .ico-github { color: #1e293b; }

/* ==========================================================================
   10. FEATURED PROJECTS SECTION (2x2 Balanced Responsive Grid)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
  position: relative;
  min-height: 126px;
  box-sizing: border-box;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

html.light .project-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.project-thumb {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

html.light .project-thumb {
  border-color: rgba(15, 23, 42, 0.08);
}

/* Custom Stylized Project Thumbnails */
.thumb-spacestorm img {
  width: 180%;
  height: 180%;
  object-fit: contain;
  padding: 16px;
}

.thumb-spacestorm i {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.thumb-ikyyxz img {
  width: 170%;
  height: 170%;
  object-fit: contain;
  padding: 16px;
}

.thumb-ikyyxz i {
  font-size: 2.1rem;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.4));
}

.thumb-gprp img {
  width: 170%;
  height: 170%;
  object-fit: contain;
  padding: 16px;
}

.thumb-gprp i {
  font-size: 1.85rem;
  color: #fbbf24;
  margin-bottom: 3px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.thumb-gprp span {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fde68a;
  text-transform: uppercase;
}

.thumb-replys img {
  width: 180%;
  height: 180%;
  object-fit: contain;
  padding: 16px;
}

.thumb-replys i {
  font-size: 2.1rem;
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.4));
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.project-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Timeline Year Badge */
.project-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(147, 197, 253, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.22);
  color: #93c5fd;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.project-year-badge i {
  font-size: 0.68rem;
  opacity: 0.85;
}

.project-year-badge.active-now {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

html.light .project-year-badge {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: #2563eb;
}

html.light .project-year-badge.active-now {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

.pulse-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 2s infinite;
}

.project-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
}

html.light .project-tag {
  color: #475569;
}

.project-tag i {
  font-size: 0.45rem;
  color: #93c5fd;
  transform: rotate(45deg);
}

html.light .project-tag i {
  color: #2563eb;
}

.project-arrow-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  align-self: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.project-card:hover .project-arrow-btn {
  background: rgba(147, 197, 253, 0.15);
  border-color: rgba(147, 197, 253, 0.5);
  color: var(--text-main);
  transform: translateX(3px);
}

html.light .project-card:hover .project-arrow-btn {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.45);
  color: #2563eb;
}

/* ==========================================================================
   11. CONTACT CTA BANNER ("LET'S WORK TOGETHER!")
   ========================================================================== */
.cta-banner {
  padding: 36px 40px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 48px;
}

.cta-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex: 1.35;
  min-width: 0;
}

.cta-copy {
  flex: 1;
  min-width: 0;
}

.cta-copy h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cta-copy h2 i {
  color: #93b4d8;
  font-size: 1.2rem;
  flex-shrink: 0;
}

html.light .cta-copy h2 i {
  color: #2563eb;
}

.cta-copy p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.btn-cta-dark {
  background: rgba(45, 58, 78, 0.65);
  border: 1px solid rgba(147, 197, 253, 0.25);
  color: var(--text-main);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.btn-cta-dark:hover {
  background: rgba(65, 84, 112, 0.85);
  border-color: rgba(147, 197, 253, 0.55);
  transform: translateY(-2px);
}

/* Light Mode CTA Button Fix */
html.light .btn-cta-dark {
  background: #1e293b;
  color: #ffffff;
  border-color: #334155;
}

html.light .btn-cta-dark:hover {
  background: #0f172a;
  border-color: #0f172a;
}

.cta-divider {
  width: 1px;
  height: 78px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.cta-socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  min-width: 250px;
  flex-shrink: 0;
  text-align: center;
}

.social-item {
  text-decoration: none;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 14px;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

html.light .social-item {
  background: rgba(15, 23, 42, 0.02);
}

html.light .social-item:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
}

.social-item i {
  font-size: 1.35rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: block;
  transition: color 0.25s ease;
}

html.light .social-item i {
  color: #334155;
}

.social-item:hover i {
  color: #93c5fd;
}

html.light .social-item:hover i {
  color: #2563eb;
}

.social-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.social-handle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right i {
  color: #e11d48;
  margin: 0 3px;
}

.footer-right strong {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   13. SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   14. INTERACTIVE CONTACT MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border-radius: 20px;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

html.light .modal-box {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-top h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-main);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(10, 12, 16, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.light .form-group input,
html.light .form-group textarea {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.14);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.2);
}

html.light .form-group input:focus,
html.light .form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   15. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
/* Tablet & Medium Screens */
@media (max-width: 1024px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 28px 24px;
  }

  .cta-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .cta-copy h2 {
    white-space: normal;
  }

  .cta-copy p {
    max-width: 100%;
  }

  .cta-divider {
    width: 100%;
    height: 1px;
  }

  .cta-socials {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    min-width: 0;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .navbar-wrapper {
    top: 14px;
    margin-bottom: 28px;
  }

  .navbar {
    padding: 10px 16px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(14, 17, 22, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    display: none;
  }

  html.light .nav-links {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.05);
  }

  html.light .nav-links a:hover,
  html.light .nav-links a.active {
    background: rgba(15, 23, 42, 0.05);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 24px 0 44px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .section-header .link-arrow {
    font-size: 0.82rem;
  }

  /* Projects Mobile Optimization */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .project-card {
    padding: 16px 16px 16px 14px;
    gap: 14px;
    border-radius: 16px;
    min-height: auto;
    align-items: flex-start;
    position: relative;
    padding-right: 48px;
    width: 100%;
    box-sizing: border-box;
  }

  .project-thumb {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 12px;
  }

  .thumb-spacestorm img {
    width: 170%;
    height: 170%;
    padding: 12px;
  }

  .thumb-ikyyxz img {
    width: 160%;
    height: 160%;
    padding: 12px;
  }

  .thumb-gprp img {
    width: 160%;
    height: 160%;
    padding: 12px;
  }

  .thumb-replys img {
    width: 160%;
    height: 160%;
    padding: 12px;
  }

  .project-info {
    min-width: 0;
    width: 100%;
    flex: 1;
  }

  .project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 8px;
    margin-bottom: 6px;
    width: 100%;
  }

  .project-header h3 {
    font-size: 0.95rem;
    line-height: 1.34;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    flex: 1 1 auto;
  }

  .project-year-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    flex-shrink: 0;
  }

  .project-info p {
    font-size: 0.8rem;
    line-height: 1.44;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .project-tag {
    font-size: 0.7rem;
  }

  .project-arrow-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.7rem;
    align-self: auto;
  }

  .project-card:hover .project-arrow-btn {
    transform: translateY(-50%) translateX(3px);
  }

  .stats-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-item:not(:last-child)::after {
    right: 20%;
    left: 20%;
    top: auto;
    bottom: -12px;
    width: auto;
    height: 1px;
  }

  .cta-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .cta-socials {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .skills-divider {
    display: none;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .project-card {
    padding: 14px 12px 14px 12px;
    padding-right: 42px;
    gap: 12px;
  }

  .project-thumb {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 10px;
  }

  .project-header h3 {
    font-size: 0.9rem;
  }

  .project-year-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  .project-arrow-btn {
    right: 10px;
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 0.65rem;
  }

  .cta-banner {
    padding: 24px 18px;
  }

  .cta-socials {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
