/* ==========================================================================
   FAITH TIMOTHY - DEVELOPER PORTFOLIO
   Design System: iPhone Liquid Glass UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Accent Colors */
  --primary-hsl: 230, 85%, 60%;
  --primary: hsl(var(--primary-hsl));
  --primary-hover: hsl(230, 85%, 52%);
  --secondary-hsl: 280, 80%, 60%;
  --secondary: hsl(var(--secondary-hsl));
  --cyan-accent: #00d2ff;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;

  /* Theme Tokens - DEFAULT: LIGHT MODE */
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 50%, #eef2f7 100%);
  --blob-1: rgba(99, 102, 241, 0.25);
  --blob-2: rgba(168, 85, 247, 0.20);
  --blob-3: rgba(6, 182, 212, 0.20);

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

  /* iOS 26 Liquid Glass Panels (Light) */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(226, 232, 240, 0.5);
  --glass-shadow:
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 8px 20px rgba(0, 0, 0, 0.04),
    0 24px 50px -12px rgba(0, 0, 0, 0.08);
  --glass-specular:
    inset 0 1.5px 0.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -0.5px 0.5px 0 rgba(0, 0, 0, 0.04);
  --glass-tint: rgba(255, 255, 255, 0.04);

  /* Segmented Controls & Pills */
  --pill-bg: rgba(235, 240, 248, 0.7);
  --pill-active-bg: #ffffff;
  --pill-active-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);

  /* Code Terminal Card */
  --terminal-bg: #0d1117;
  --terminal-text: #e6edf3;

  /* iOS 26 Glass Blur - Stronger */
  --glass-blur: blur(40px) saturate(200%);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-full: 9999px;

  /* iOS 26 Spring Physics Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Dynamic Specular Gleam Position (updated by JS) */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Dark Mode Overrides - PURE LIGHTS OUT PITCH DARK */
[data-theme="dark"] {
  --bg-gradient: #000000;
  --blob-1: rgba(99, 102, 241, 0.06);
  --blob-2: rgba(168, 85, 247, 0.04);
  --blob-3: rgba(6, 182, 212, 0.04);

  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;

  /* iOS 26 Liquid Glass Panels (Lights Out Dark) */
  --glass-bg: rgba(28, 28, 30, 0.72);
  --glass-bg-hover: rgba(38, 38, 42, 0.82);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 32px 60px -12px rgba(0, 0, 0, 0.7);
  --glass-specular:
    inset 0 1px 0.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -0.5px 0.5px 0 rgba(0, 0, 0, 0.8);
  --glass-tint: rgba(255, 255, 255, 0.02);

  /* Segmented Controls & Pills */
  --pill-bg: rgba(24, 24, 27, 0.8);
  --pill-active-bg: rgba(39, 39, 42, 0.95);
  --pill-active-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);

  --terminal-bg: #050505;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  transition: background 0.4s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-logo {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND LIQUID MESH & CANVAS
   -------------------------------------------------------------------------- */
.liquid-bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#liquid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--blob-1);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: var(--blob-2);
  top: 40%;
  right: -100px;
  animation-delay: -5s;
  animation-duration: 25s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--blob-3);
  bottom: -100px;
  left: 20%;
  animation-delay: -10s;
  animation-duration: 22s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, 60px) scale(1.1);
  }

  100% {
    transform: translate(-40px, 100px) scale(0.95);
  }
}

/* --------------------------------------------------------------------------
   4. GLASS UTILITIES & COMPONENTS
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-specular);
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-smooth);
  position: relative;
}

.glass-panel:hover {
  background: var(--glass-bg-hover);
}

.glass-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.glass-pill {
  background: var(--pill-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* iOS Spring Buttons */
.btn-liquid {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-spring), box-shadow var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  overflow: hidden;
}

.btn-liquid:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(135deg, hsl(230, 85%, 60%), hsl(260, 80%, 60%));
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-specular);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION DOCK
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-accent), var(--primary), var(--secondary));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

.header-dock {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1100px);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: var(--radius-full);
}

.brand-logo {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pill-bg);
  padding: 4px;
  border-radius: var(--radius-full);
}

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

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

.nav-link.active {
  background: var(--pill-active-bg);
  color: var(--text-main);
  box-shadow: var(--pill-active-shadow);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Segment Switcher */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pill-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform var(--transition-spring), background var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.05);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pill-bg);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 150px;
  padding-bottom: 80px;
  width: min(90%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.status-badge {
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-accent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typewriter-container {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
  min-height: 40px;
}

.typewriter-text {
  color: var(--primary);
  font-weight: 700;
  border-right: 2px solid var(--primary);
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {

  0%,
  100% {
    border-color: transparent;
  }

  50% {
    border-color: var(--primary);
  }
}

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

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

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

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.1rem;
  transition: transform var(--transition-spring), background var(--transition-fast), color var(--transition-fast);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Interactive Code Terminal */
.terminal-card {
  background: var(--terminal-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 11;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.dot:hover {
  transform: scale(1.3);
  filter: brightness(1.25);
}

.terminal-card.closed .terminal-body {
  display: none !important;
}

.terminal-card.closed .terminal-header {
  border-bottom: none;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal-title {
  color: #8b949e;
  font-size: 0.75rem;
}

.terminal-body {
  padding: 20px;
  color: var(--terminal-text);
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.json-key {
  color: #79c0ff;
}

.json-string {
  color: #a5d6ff;
}

.json-number {
  color: #d2a8ff;
}

.json-boolean {
  color: #ff7b72;
}

/* --------------------------------------------------------------------------
   7. SECTIONS GENERAL & ABOUT
   -------------------------------------------------------------------------- */
.section-wrapper {
  width: min(90%, 1100px);
  margin: 0 auto;
  padding: 80px 0;
  scroll-margin-top: 100px;
}

/* Animated Gradient Border on Hover */
.glass-card {
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12), var(--glass-shadow);
}

[data-theme="dark"] .glass-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(168, 85, 247, 0.15);
}

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

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 14px;
}

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

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.stat-card {
  text-align: center;
  padding: 28px 20px;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

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

.tabs-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--pill-bg);
  padding: 4px;
  border-radius: var(--radius-full);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.tab-btn.active {
  background: var(--pill-active-bg);
  color: var(--text-main);
  box-shadow: var(--pill-active-shadow);
}

.tab-content {
  display: none;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   8. SKILLS MATRIX
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pill-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
}

.skill-name {
  font-weight: 600;
  font-size: 1rem;
}

.skill-percentage {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--pill-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   9. PROJECTS SHOWCASE & MODAL
   -------------------------------------------------------------------------- */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  background: var(--glass-bg-hover);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

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

.project-banner {
  height: 200px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.banner-icon {
  font-size: 4rem;
  opacity: 0.8;
  transition: transform var(--transition-spring);
}

.banner-img {
  max-width: 75%;
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-spring);
}

.project-card:hover .banner-icon,
.project-card:hover .banner-img {
  transform: scale(1.1) translateY(-2px);
}

.project-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--pill-bg);
  color: var(--text-subtle);
  font-weight: 600;
}

/* Modal Liquid Sheet */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: min(90%, 750px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-spring);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pill-bg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   10. CAREER TIMELINE
   -------------------------------------------------------------------------- */
.timeline-track {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
  border-left: 2px solid var(--glass-border);
}

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

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

.timeline-node {
  position: absolute;
  left: -41px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--pill-active-bg);
  box-shadow: 0 0 12px var(--primary);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--text-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   11. CONTACT & FOOTER
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--pill-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--pill-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  padding: 14px 22px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-spring);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border-subtle);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 130px;
    text-align: center;
  }

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

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

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

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

  .nav-links {
    display: none;
    /* Collapsed for mobile drawer */
  }

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

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--glass-bg);
  border-left: 1px solid var(--glass-border);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right var(--transition-spring);
}

.mobile-drawer.active .drawer-content {
  right: 0;
}

.drawer-link {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border-subtle);
}

/* --------------------------------------------------------------------------
   PRELOADER SPLASH SCREEN
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

[data-theme="dark"] .preloader {
  background: #000000;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: preloaderPulse 1.4s ease-in-out infinite;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

.preloader-bar {
  width: 140px;
  height: 3px;
  border-radius: 4px;
  background: var(--glass-border);
  overflow: hidden;
}

.preloader-fill {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: preloaderFill 1.8s ease-in-out forwards;
}

@keyframes preloaderFill {
  0% {
    width: 0%;
  }

  60% {
    width: 75%;
  }

  100% {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   SCROLL TO TOP BUTTON
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s var(--transition-spring), background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 28px hsla(var(--primary-hsl), 0.35);
  transform: translateY(-3px);
}

.scroll-top-btn:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}



/* --------------------------------------------------------------------------
   PROJECT CARD 3D TILT
   -------------------------------------------------------------------------- */
.project-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   FOOTER GRID WITH SOCIAL LINKS
   -------------------------------------------------------------------------- */
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-back-top {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}

.footer-back-top:hover {
  color: var(--primary);
}

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

@media (max-width: 600px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   SERVICES SECTION STYLES
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS SECTION STYLES
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  color: var(--amber-accent);
  font-size: 0.9rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.65;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border-subtle);
}

.author-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-subtle);
}