/* 
  Theme Variables 
  Modern Greyish Black Palette - Serious Open Source Aesthetic
*/
:root {
  /* Base Colors - Dark Mode Default */
  --bg-primary: #000000;
  /* Pure black */
  --bg-secondary: #0a0a0a;
  /* Slightly lighter for contrast */
  --bg-card: #0a0a0a;
  /* Card background */
  --bg-hover: #1a1a1a;
  /* Hover state */

  /* Text Colors */
  --text-primary: #FFFFFF;
  /* Pure white text */
  --text-secondary: rgba(255, 255, 255, 0.85);
  /* Slightly dimmed white */
  --text-tertiary: rgba(255, 255, 255, 0.6);
  /* More dimmed for subtle text */

  /* Accents - Minimal & Professional */
  --accent-primary: #FFFFFF;
  /* White accent for austere look */
  --accent-secondary: #3b82f6;
  /* Subtle blue for links/actions */
  --border-color: rgba(255, 255, 255, 0.12);
  /* Subtle border */
  --border-hover: rgba(255, 255, 255, 0.25);

  /* Badges */
  --badge-bg: #1a1a1a;
  --badge-text: #FFFFFF;

  /* Typography */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "Fira Code", "Consolas", monospace;

  /* Spacing & Layout */
  --nav-height: 64px;
  --container-width: 1100px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Motion Tokens */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quad: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Golden Hover Glow */
  --golden-core: #0b22f5;
  --golden-alpha: rgba(11, 132, 245, 0.35);
  --golden-alpha-soft: rgba(62, 11, 245, 0.15);
}

/* Light Mode Overrides */
body.light-mode {
  --bg-primary: #f8f9fa; /* Slightly off-white background */
  --bg-secondary: #ffffff; /* Pure white for elements */
  --bg-card: #ffffff; /* Pure white for cards */
  --bg-hover: #f1f5f9;

  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;

  --accent-primary: #09090b;
  --border-color: #e2e8f0; /* Slightly darker border for visibility */
  --border-hover: #cbd5e1;

  --badge-bg: #f4f4f5;
  --badge-text: #18181b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* --- Smooth Scrolling for Internal Anchor Links --- */
html {
  scroll-behavior: smooth;
}


body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* --- Search --- */
.search-container {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  /* Space for icon */
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--text-tertiary);
  background: var(--bg-hover);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  width: 1rem;
  height: 1rem;
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  width: 1.5rem;
  height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
  opacity: 1;
}

.clear-search-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  width: 1.5rem;
  height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
  opacity: 1;
}

.clear-search-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.clear-search-btn {

    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  width: 1.5rem;
  height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {

    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);

  opacity: 1;
}

.clear-search-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);

}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1.5rem;
    height: 1.5rem;
}

.search-container:hover .clear-search-btn,
.search-input:focus + .clear-search-btn,
.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* --- About Page: Learning Path Timeline --- */
.learning-path {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding-left: 2rem;
}

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

.learning-step {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 2rem;
}

.learning-step::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.learning-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.learning-step p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  background: var(--bg-hover);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* --- Structure Page: Terminal Theme --- */
.terminal-window {
  background: #0d0d0d;
  /* Slightly darker than card for contrast */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin: 0 auto 4rem;
  /* Aligns with global spacing (tight top, breathing room bottom) */
  font-family: var(--font-mono);
  max-width: 900px;
}

.terminal-header {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.close {
  background-color: #ff5f56;
}

.control.minimize {
  background-color: #ffbd2e;
}

.control.maximize {
  background-color: #27c93f;
}

.terminal-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-main);
  user-select: none;
}

.terminal-body {
  padding: 1.5rem;
  color: var(--text-secondary);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Syntax Highlighting */
.tree-line {
  white-space: pre;
  cursor: default;
}

.tree-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tree-guide {
  color: var(--text-tertiary);
}

.tree-folder {
  color: #61afef;
  font-weight: bold;
}

/* VS Code Blue */
.tree-file {
  color: #98c379;
}

/* VS Code Green */
.tree-comment {
  color: #5c6370;
  font-style: italic;
}

/* VS Code Comment */

/* --- Layout Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* --- Navbar --- */
.navbar {
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.85);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo span {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.logo:hover span {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  position: relative;
  /* slightly increase horizontal hit area and make element block-level for predictable hover */
  padding: 0.5rem 0.4rem;
  display: inline-block;
  /* show default cursor until user hovers — pointer will be shown on :hover only */
  cursor: default;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  background: var(--text-primary);
  transition: width var(--duration-normal) var(--ease-out-quad);
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.4rem;
  display: inline-block;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* important */
  width: 0%;
  height: 3px;

  background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);

  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out-quad);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: rotate(15deg) scale(1.1);
}

.theme-toggle:active {
  transform: rotate(15deg) scale(0.95);
}

/* --- Global Animations --- */
@keyframes enter {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Apply entry animation to main content wrapper */
main {
  animation: enter var(--duration-slow) var(--ease-out-quad) forwards;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  /* Animation handled by main wrapper now, but can stagger if needed */
}

 /* ===== CSS VARIABLES ===== */
    :root {
      --flame: #00e5ff;
      --flame-2: #00b4d8;
      --flame-glow: rgba(0, 229, 255, 0.25);
      --bg-void: #020308;
      --bg-deep: #05080f;
      --bg-surface: #0a0f1a;
      --bg-glass: rgba(10, 15, 26, 0.7);
      --text-primary: #e8f4ff;
      --text-secondary: #6688aa;
      --text-muted: #334455;
      --border: rgba(0, 229, 255, 0.15);
      --border-subtle: rgba(255, 255, 255, 0.06);
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 22px;
      --radius-xl: 32px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Space Grotesk', sans-serif;
      background: var(--bg-void);
      color: var(--text-primary);
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* ===== THREE.JS CANVAS ===== */
    #bg-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      pointer-events: none;
    }

    /* ===== MAIN WRAPPER ===== */
    .page-wrapper {
      position: relative;
      z-index: 1;
    }

    /* ===== CUSTOM CURSOR ===== */
    .cursor-dot {
      position: fixed;
      width: 8px;
      height: 8px;
      background: var(--flame);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      transition: transform 0.05s;
    }

    .cursor-ring {
      position: fixed;
      width: 36px;
      height: 36px;
      border: 1.5px solid rgba(255, 77, 0, 0.5);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      transform: translate(-50%, -50%);
      transition: all 0.12s ease;
    }

    .cursor-ring.hovered {
      width: 56px;
      height: 56px;
      background: rgba(255, 77, 0, 0.08);
      border-color: var(--flame);
    }

    /* ===== LOADER ===== */
    #loader {
      position: fixed;
      inset: 0;
      background: var(--bg-void);
      z-index: 9000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
    }

    .loader-text {
      font-family: 'Syne', sans-serif;
      font-size: clamp(1.5rem, 4vw, 2.5rem);
      font-weight: 800;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-primary);
    }

    .loader-text span {
      color: var(--flame);
    }

    .loader-bar-wrap {
      width: 220px;
      height: 2px;
      background: var(--border-subtle);
      border-radius: 2px;
      overflow: hidden;
    }

    .loader-bar {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #00e5ff, #00b4d8);
      border-radius: 2px;
    }

    .loader-pct {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.75rem;
      color: var(--text-secondary);
      letter-spacing: 0.1em;
    }

    #loader.hidden {
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
    }

    /* ===== NAVBAR ===== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 18px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(3, 3, 5, 0.7);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-subtle);
      transition: all 0.3s ease;
    }

    .navbar.scrolled {
      padding: 12px 48px;
      border-bottom-color: var(--border);
    }

    .nav-logo {
      font-family: 'Syne', sans-serif;
      font-weight: 800;
      font-size: 1.1rem;
      letter-spacing: 0.05em;
      text-decoration: none;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .nav-logo-badge {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, #00e5ff, #00b4d8);
      font-weight: 700;
      color: #fff;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 36px;
      list-style: none;
    }

    .nav-links a {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text-secondary);
      text-decoration: none;
      letter-spacing: 0.03em;
      transition: color 0.2s;
      position: relative;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      right: 0;
      height: 1px;
      background: var(--flame);
      transform: scaleX(0);
      transition: transform 0.2s;
    }

    .nav-links a:hover {
      color: var(--text-primary);
    }

    .nav-links a:hover::after {
      transform: scaleX(1);
    }

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

    .btn-nav {
      padding: 9px 22px;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s;
      font-family: 'Space Grotesk', sans-serif;
    }

    .btn-nav-outline {
      border: 1px solid var(--border);
      color: var(--text-secondary);
      background: transparent;
    }

    .btn-nav-outline:hover {
      border-color: var(--flame);
      color: var(--flame);
    }

    .btn-nav-fill {
      background: var(--flame);
      color: #000;
      border: 1px solid transparent;
    }

    .btn-nav-fill:hover {
      background: var(--flame-2);
      box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    }

    /* ===== HERO ===== */
    /* ===== HERO - ULTIMATE FIX ===== */
.hero {
  min-height: 100vh;
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 10;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 32px;
  backdrop-filter: blur(5px);
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 15;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--flame);
  border-radius: 50%;
  display: block;
  animation: pulse 2s ease infinite;
}

.hero-title .word {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: "Noto Sans", sans-serif;
  margin-bottom: 1rem;

  background-image: url("assets/images/cosmic-space-galaxy-stockcake.png");
  background-size: 200% auto;
  background-position: 0% 50;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: animate 20s linear infinite;
}
@keyframes animate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Ensure line is visible */
.hero-title .line {
  display: block;
  overflow: visible !important;
  margin: 0;
  padding: 0;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
}

@keyframes textAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.hero-title .accent {
  color: var(--flame) !important;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 15;
}

.hero-actions {
  display: flex !important;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 15;
}

/* Override GSAP initial states */
.gsap-fade,
.gsap-up,
.gsap-left {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Ensure buttons are visible */
.btn-primary,
.btn-secondary {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 15;
}

/* Scroll indicator */
.scroll-indicator {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 15;
}
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 120px 24px 80px;
      position: relative;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      background: rgba(255, 77, 0, 0.08);
      border: 1px solid rgba(255, 77, 0, 0.2);
      border-radius: 100px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--flame);
      margin-bottom: 32px;
    }

    .hero-eyebrow::before {
      content: '';
      width: 6px;
      height: 6px;
      background: var(--flame);
      border-radius: 50%;
      animation: pulse 2s ease infinite;
    }

    @keyframes pulse {

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

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

    .hero-title {
      font-family: 'Syne', sans-serif;
      font-size: clamp(3rem, 9vw, 7.5rem);
      font-weight: 800;
      line-height: 0.95;
      letter-spacing: -0.03em;
      margin-bottom: 28px;
      max-width: 900px;
    }

    .hero-title .line {
      display: block;
      overflow: hidden;
    }

    .hero-title .word {
      display: inline-block;
      position: relative;
      z-index: 2;
    }

    .hero-title .accent {
      color: var(--flame);
    }

    .hero-subtitle {
      font-size: clamp(1rem, 2vw, 1.2rem);
      color: var(--text-secondary);
      max-width: 540px;
      margin-bottom: 48px;
      line-height: 1.7;
    }

    .hero-actions {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .btn-primary {
      padding: 16px 36px;
      background: linear-gradient(135deg, var(--flame), #00b4d8);
      color: #fff;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 0.95rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      transition: all 0.3s;
      font-family: 'Space Grotesk', sans-serif;
      letter-spacing: 0.02em;
      box-shadow: 0 4px 30px rgba(0, 229, 255, 0.3);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 40px rgba(0, 229, 255, 0.45);
    }

    .btn-primary .icon {
      transition: transform 0.2s;
    }

    .btn-primary:hover .icon {
      transform: translateX(4px);
    }

    .btn-secondary {
      padding: 16px 36px;
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-primary);
      border-radius: var(--radius-md);
      font-weight: 600;
      font-size: 0.95rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 1px solid var(--border-subtle);
      transition: all 0.3s;
      font-family: 'Space Grotesk', sans-serif;
    }

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

    /* Hero scroll indicator */
    .scroll-indicator {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--text-muted);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      font-family: 'JetBrains Mono', monospace;
    }

    .scroll-mouse {
      width: 22px;
      height: 34px;
      border: 1.5px solid var(--text-muted);
      border-radius: 11px;
      display: flex;
      justify-content: center;
      padding-top: 5px;
    }

    .scroll-mouse::before {
      content: '';
      width: 3px;
      height: 6px;
      background: var(--flame);
      border-radius: 2px;
      animation: scroll-anim 1.5s ease infinite;
    }

    @keyframes scroll-anim {
      0% {
        transform: translateY(0);
        opacity: 1;
      }

      100% {
        transform: translateY(10px);
        opacity: 0;
      }
    }

    /* ===== STATS TICKER ===== */
    .stats-ticker {
      background: rgba(255, 77, 0, 0.04);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 14px 0;
      overflow: hidden;
    }

    .ticker-inner {
      display: flex;
      gap: 60px;
      white-space: nowrap;
      animation: ticker 30s linear infinite;
    }

    @keyframes ticker {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-50%);
      }
    }

    .ticker-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.78rem;
      color: var(--text-secondary);
      letter-spacing: 0.08em;
    }

    .ticker-item strong {
      color: var(--flame);
    }

    .ticker-divider {
      width: 4px;
      height: 4px;
      background: var(--flame);
      border-radius: 50%;
      opacity: 0.4;
    }

    /* ===== SECTION BASE ===== */
    .section {
      padding: 100px 24px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--flame);
      margin-bottom: 16px;
    }

    .section-title {
      font-family: 'Syne', sans-serif;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
    }

    .section-desc {
      font-size: 1.05rem;
      color: var(--text-secondary);
      max-width: 520px;
      line-height: 1.7;
    }

    /* ===== FEATURES ===== */
    .features-wrap {
      background: linear-gradient(180deg, transparent, rgba(255, 77, 0, 0.02), transparent);
      padding: 0;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .feature-card {
      background: var(--bg-deep);
      padding: 48px 40px;
      position: relative;
      overflow: hidden;
      transition: background 0.3s;
    }

    .feature-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--flame), transparent);
      transform: scaleX(0);
      transition: transform 0.4s;
    }

    .feature-card:hover {
      background: var(--bg-surface);
    }

    .feature-card:hover::before {
      transform: scaleX(1);
    }

    .feature-icon-wrap {
      width: 52px;
      height: 52px;
      background: rgba(255, 77, 0, 0.08);
      border: 1px solid rgba(255, 77, 0, 0.2);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      margin-bottom: 24px;
      transition: all 0.3s;
    }

    .feature-card:hover .feature-icon-wrap {
      background: rgba(255, 77, 0, 0.15);
      box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    }

    .feature-card h3 {
      font-family: 'Syne', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .feature-card p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    /* ===== JOURNEY TIMELINE ===== */
    .timeline-section .section-header {
      margin-bottom: 64px;
    }

    .timeline {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      position: relative;
    }

    .timeline::before {
      content: '';
      position: absolute;
      top: 28px;
      left: 10%;
      right: 10%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
    }

    .timeline-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 36px 32px;
      position: relative;
      overflow: hidden;
      transition: all 0.35s;
    }

    .timeline-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.06), transparent 60%);
      opacity: 0;
      transition: opacity 0.3s;
    }

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

    .timeline-card:hover::after {
      opacity: 1;
    }

    .timeline-phase {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.68rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--flame);
      margin-bottom: 12px;
    }

    .timeline-days {
      font-family: 'Syne', sans-serif;
      font-size: 2.5rem;
      font-weight: 800;
      line-height: 1;
      color: var(--text-primary);
      margin-bottom: 16px;
    }

    .timeline-days span {
      font-size: 1rem;
      font-weight: 400;
      color: var(--text-muted);
    }

    .timeline-title {
      font-family: 'Syne', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .timeline-desc {
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    .timeline-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 20px;
    }

    .timeline-tag {
      padding: 4px 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      border-radius: 4px;
      font-size: 0.72rem;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
    }

    /* ===== COUNTER SECTION ===== */
    .counter-section {
      background: var(--bg-surface);
      border-radius: var(--radius-xl);
      border: 1px solid var(--border-subtle);
      padding: 80px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 48px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .counter-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--flame), transparent);
    }

    .counter-item {}

    .counter-num {
      font-family: 'Syne', sans-serif;
      font-size: 3rem;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1;
      display: block;
    }

    .counter-num .suffix {
      color: var(--flame);
    }

    .counter-label {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-top: 8px;
      letter-spacing: 0.05em;
    }

    /* ===== PROJECTS SECTION ===== */
    .projects-section {
      padding-top: 0;
    }

    .projects-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 40px;
      flex-wrap: wrap;
      gap: 24px;
    }

    .search-input {
      padding: 12px 20px 12px 44px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 0.9rem;
      font-family: 'Space Grotesk', sans-serif;
      width: 300px;
      outline: none;
      transition: all 0.2s;
      position: relative;
    }

    .search-input:focus {
      border-color: var(--flame);
      box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
    }

    .search-wrap {
      position: relative;
      display: inline-block;
    }

    .search-wrap .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 0.85rem;
      pointer-events: none;
    }

    /* Progress bar */
    #progress-summary {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 20px 28px;
      margin-bottom: 40px;
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .progress-text {
      font-size: 0.85rem;
      color: var(--text-secondary);
      white-space: nowrap;
      font-family: 'JetBrains Mono', monospace;
    }

    #progress-count {
      color: var(--flame);
      font-weight: 600;
    }

    .progress-bar-container {
      flex: 1;
      height: 4px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 4px;
      overflow: hidden;
    }

    #progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--flame), var(--flame-2));
      border-radius: 4px;
      transition: width 1s ease;
    }

    #projectsGrid,
    #project-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }

    .view-all-wrap {
      text-align: center;
      margin-top: 56px;
    }
    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.15);
      transform: translateY(-2px);
    }

    .hero-title {
      color: var(--text-primary) !important;
      text-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
      z-index: 10;
      position: relative;
    }

    .view-all-wrap .btn-secondary {
      margin-top: 24px;
      background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 180, 216, 0.15));
      border: 1.5px solid var(--flame);
      color: var(--text-primary);
    }

    .view-all-wrap .btn-secondary:hover {
      background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 180, 216, 0.25));
      border-color: var(--flame);
      box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
    }

    .hero-title {
      text-shadow: none !important;
      filter: none !important;
      font-weight: 900;
      letter-spacing: -0.02em;
    }
    /* ===== CTA SECTION ===== */
    .cta-section {
      background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(0, 180, 216, 0.04) 100%);
      border: 1px solid rgba(0, 229, 255, 0.15);
      border-radius: var(--radius-xl);
      padding: 80px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .cta-section::before {
      content: '';
      position: absolute;
      top: -50%;
      left: 50%;
      transform: translateX(-50%);
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(0, 229, 255, 0.1), transparent 70%);
      pointer-events: none;
    }

    .cta-section h2 {
      font-family: 'Syne', sans-serif;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }

    .cta-section p {
      color: var(--text-secondary);
      font-size: 1.05rem;
      max-width: 480px;
      margin: 0 auto 40px;
      line-height: 1.7;
    }

    /* ===== TESTIMONIALS ===== */
    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .testimonial-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 32px;
      transition: all 0.3s;
    }

    .testimonial-card:hover {
      border-color: var(--border);
      transform: translateY(-3px);
    }

    .testimonial-stars {
      color: var(--flame);
      font-size: 0.75rem;
      letter-spacing: 3px;
      margin-bottom: 16px;
    }

    .testimonial-text {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 24px;
      font-style: italic;
    }

    .testimonial-author {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .testimonial-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--flame), var(--flame-2));
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.85rem;
      color: #fff;
    }

    .testimonial-name {
      font-weight: 600;
      font-size: 0.875rem;
    }

    .testimonial-role {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    /* ===== TECH STACK ===== */
    .tech-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 40px;
    }

    .tech-pill {
      padding: 8px 20px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: 100px;
      font-size: 0.85rem;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }

    .tech-pill:hover {
      border-color: var(--flame);
      color: var(--text-primary);
    }

    .tech-pill-dot {
      width: 6px;
      height: 6px;
      background: var(--flame);
      border-radius: 50%;
    }

    /* ===== FOOTER ===== */
    .site-footer {
      background: var(--bg-deep);
      border-top: 1px solid var(--border-subtle);
      padding: 80px 48px 40px;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
      gap: 48px;
      margin-bottom: 64px;
    }

    .footer-brand .footer-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      margin-bottom: 16px;
    }

    .footer-brand .footer-logo img {
      width: 36px;
      height: 36px;
      border-radius: 8px;
    }

    .footer-brand .footer-logo h2 {
      font-family: 'Syne', sans-serif;
      font-size: 1rem;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.2;
    }

    .footer-brand .footer-logo h2 .text-flame {
      color: var(--flame);
    }

    .footer-desc {
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    .footer-col h3 {
      font-family: 'Syne', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-primary);
      margin-bottom: 20px;
    }

    .footer-links {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-link {
      font-size: 0.875rem;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
    }

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

    .footer-connect h3 {
      font-family: 'Syne', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-primary);
      margin-bottom: 8px;
    }

    .footer-socials {
      display: flex;
      gap: 10px;
      margin-top: 16px;
    }

    .social-btn {
      width: 38px;
      height: 38px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      text-decoration: none;
      transition: all 0.2s;
      font-size: 0.9rem;
    }

    .social-btn:hover {
      border-color: var(--flame);
      color: var(--flame);
      background: rgba(255, 77, 0, 0.08);
    }

    .social-btn .icon {
      width: 16px;
      height: 16px;
      stroke-width: 1.8;
      fill: none;
      stroke: currentColor;
    }

    .footer-bottom {
      max-width: 1200px;
      margin: 0 auto;
      padding-top: 32px;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .footer-bottom span {
      color: var(--flame);
    }

    /* ===== SCROLL TO TOP ===== */
    .scroll-to-top {
      position: fixed;
      bottom: 32px;
      right: 32px;
      width: 44px;
      height: 44px;
      background: var(--flame);
      color: #000;
      cursor: pointer;
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s;
    }

    .scroll-to-top.show {
      opacity: 1;
      transform: translateY(0);
    }

    .scroll-to-top:hover {
      background: var(--flame-2);
      box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
    }

    /* ===== SIDEBAR TOGGLE ===== */
    .sidebar-toggle {
      position: fixed;
      top: 22px;
      left: 16px;
      z-index: 200;
      background: transparent;
      border: none;
      cursor: pointer;
      color: var(--text-secondary);
      display: none;
    }

    /* ===== MOBILE NAV ===== */
    .mobile-bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(8, 8, 15, 0.95);
      backdrop-filter: blur(20px);
      border-top: 1px solid var(--border-subtle);
      z-index: 100;
      padding: 8px 0 20px;
    }

    .mobile-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 8px 16px;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
      font-size: 0.6rem;
      letter-spacing: 0.05em;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
      color: var(--flame);
    }

    .mobile-nav-icon {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      fill: none;
    }

    /* ===== GSAP INITIAL STATES ===== */
    .gsap-fade {
      opacity: 0;
    }

    .gsap-up {
      opacity: 0;
      transform: translateY(40px);
    }

    .gsap-left {
      opacity: 0;
      transform: translateX(-30px);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 900px) {
      .features-grid {
        grid-template-columns: 1fr;
      }

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

      .timeline::before {
        display: none;
      }

      .counter-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 48px 32px;
      }

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

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

      .footer-brand {
        grid-column: 1 / -1;
      }

      .navbar {
        padding: 16px 24px;
      }

      .nav-links,
      .nav-cta {
        display: none;
      }

      .sidebar-toggle {
        display: flex;
      }

      .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
      }

      main {
        padding-bottom: 80px;
      }
    }

    @media (max-width: 600px) {
      .counter-section {
        grid-template-columns: 1fr 1fr;
        padding: 32px 20px;
      }

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

      .cta-section {
        padding: 48px 24px;
      }
    }
/* 
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* --- Standardized Internal Page Header --- */
.page-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  /* Compact vertical matching user request */
  max-width: 800px;
  margin: 0 auto;
  animation: enter var(--duration-normal) var(--ease-out-quad) forwards;
} */

/* Guest Mode Banner */
.guest-banner {
  background: linear-gradient(
    135deg,
    rgba(255, 157, 0, 0.15),
    rgba(255, 157, 0, 0.05)
  );
  border: 1px solid rgba(255, 157, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  animation: slideDown 0.4s ease-out;
}

.guest-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.guest-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.guest-text {
  flex: 1;
  min-width: 250px;
}

.guest-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.guest-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.upgrade-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 157, 0, 0.9);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.upgrade-btn:hover {
  background: rgb(255, 157, 0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 157, 0, 0.4);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .guest-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .guest-text {
    min-width: auto;
  }

  .upgrade-btn {
    width: 100%;
  }
}

.page-hero h1 {
  font-size: 2.5rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.section-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Mission Section */
.mission-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.mission-text {
  flex: 1;
  min-width: 300px;
}

.mission-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Circular Progress */
.circular-progress {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-primary) 0% 100%,
    var(--bg-hover) 100% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--bg-card);
}

.circular-value {
  position: relative;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  z-index: 1;
}

/* Features Grid (Pro Cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--duration-normal) var(--ease-out-quad);
}

.feature-card:hover {
  border-color: var(--text-secondary);
  transform: translateY(-4px);
  background: var(--bg-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Stats Banner (Clean) */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Flow Timeline */
.timeline-section {
  position: relative;
  max-width: 800px;
  margin: 0 auto 6rem;
}

.timeline-flow {
  position: relative;
  padding-left: 3rem;
}

/* The vertical line */
.timeline-flow::before {
  content: "";
  position: absolute;
  left: 11px;
  /* Center of the 24px icon roughly */
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-primary),
    var(--bg-hover)
  );
}

.timeline-node {
  position: relative;
  margin-bottom: 3rem;
}

.node-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-marker svg {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.node-card:hover {
  border-color: var(--text-tertiary);
}

.node-meta {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

/* --- SVG Icons Utility --- */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration-normal) var(--ease-out-quad);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transform: scale(1);
}

.btn:active {
  transform: scale(0.97);
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* --- Heatmap Section --- */
.tracker-section {
  margin-bottom: 4rem;
}

/* refined heatmap header */
.tracker-wrapper {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.tracker-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  /* Significant whitespace as requested */
  padding: 0 0.5rem;
}

.tracker-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tracker-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 400px;
}

.progress-stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  /* Fully rounded pill */
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-total {
  color: var(--text-tertiary);
  font-size: 1rem;
  font-weight: 500;
}

/* refined heatmap */
.tracker-container {
  background: #0d1117;
  /* GitHub Dark Dimmed content bg */
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .heatmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .heatmap-grid {
    grid-template-columns: 1fr;
  }
}

.quarter-block {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.day-cell {
  aspect-ratio: 1;
  width: 100%;
  background: #21262d;
  /* Slightly lighter inactive */
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.day-cell:hover {
  transform: scale(1.15);
  z-index: 10;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.day-cell.completed {
  background: #238636;
  /* Professional Deep Green */
  box-shadow: 0 0 8px rgba(35, 134, 54, 0.5);
  border-color: #2ea043;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-tertiary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-chip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.code-chip:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge.beginner {
  background: rgba(39, 201, 63, 0.15);
  color: #27c93f;
}

.badge.intermediate {
  background: rgba(255, 189, 46, 0.15);
  color: #ffbd2e;
}

.badge.advanced {
  background: rgba(255, 95, 86, 0.15);
  color: #ff5f56;
}

.badge.capstone {
  background: rgba(189, 147, 249, 0.15);
  color: #bd93f9;
}

.day-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
}

/* Completion Checkbox Styles */
.completion-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.completion-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
  opacity: 0.7;
  border-color: var(--accent-primary);
  background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.completion-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
  opacity: 0.7;
  border-color: var(--accent-primary);
  background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);

  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.completion-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
  opacity: 0.7;
  border-color: var(--accent-primary);
  background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);

}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completion Checkbox Styles */
.completion-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.completion-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Completed Project Styles */
.project-card.completed {
    opacity: 0.7;
    border-color: var(--accent-primary);
    background: rgba(237, 237, 237, 0.05);
}

.project-card.completed .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Tooltip for Day Cell */
.day-cell::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border-color);
  z-index: 20;
  font-weight: 500;
}

.day-cell:hover::after {
  opacity: 1;
}

/* --- Timeline / Feed --- */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border-color);
  margin: 2rem 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.2s;
}

.timeline-item:hover::before {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.timeline-content:hover {
  border-color: var(--text-tertiary);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* --- Contributors --- */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contributor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  /* Ensure link underline doesn't interfere */
}

.contributor-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-secondary);
  background: var(--bg-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.contributor-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-hover);
  margin-bottom: 1rem;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.contributor-info h3,
.contributor-name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
  display: block;
}

.contributor-stats,
.contributor-commits {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.highlight-count {
  color: var(--accent-secondary);
  /* Blue or distinct color */
  font-weight: 800;
  font-size: 1.1em;
}

.view-profile {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.contributor-card:hover .view-profile {
  opacity: 1;
  color: var(--accent-secondary);
}

/* --- Footer --- */
.main-footer {
  background: #050505;
  /* Deepest black */
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem 1rem;
  /* Significantly reduced padding */
  margin-top: auto;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;

  --text-primary: #ededed; /* Resets Header/Main text to White */
  --text-secondary: #a1a1aa; /* Resets Description/Link text to Light Grey */
  --text-tertiary: #52525b; /* Resets copyright text to Muted Grey */

  /* Ensure the color is applied */
  color: var(--text-primary);
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color),
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Specific column weighting for larger screens */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Enforce left alignment */
  transition: transform 0.3s ease;
}

.footer-col:hover {
  transform: translateY(-2px);
  color: var(--text-secondary);
}

.footer-col h4 {
  color: var(--text-primary) !important;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--text-primary),
    var(--accent-secondary)
  );
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 30px;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  max-width: 300px;
  text-align: left;
  transition: color 0.3s ease;
}

.footer-col:hover .footer-description {
  color: var(--text-primary);
}

/* Social Icons Row */
.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  opacity: 0;
}

.social-link:hover::before {
  width: 100px;
  height: 100px;
  opacity: 1;
}

.social-link:hover {
  background: var(--text-primary);
  color: var(--text-tertiary);
  border-color: var(--text-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Links List */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: #ffffff !important; /* Ensure hover state is bright white */
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 0;
  background: linear-gradient(
    45deg,
    var(--text-primary),
    var(--accent-secondary)
  );
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

.footer-links a:hover::before {
  height: 100%;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(8px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.footer-links a svg {
  color: var(--text-tertiary);
  transition: all 0.3s ease;
}

.footer-links a:hover svg {
  color: var(--accent-primary);
  transform: rotate(5deg) scale(1.1);
}

/* Usage Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tech-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.tech-tag:hover::before {
  left: 100%;
}

.tech-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tag-html {
  background: rgba(227, 76, 38, 0.1);
  color: #e34c26;
  border: 1px solid rgba(227, 76, 38, 0.2);
}

.tag-html:hover {
  background: rgba(227, 76, 38, 0.15);
  border-color: rgba(227, 76, 38, 0.4);
  box-shadow: 0 4px 15px rgba(227, 76, 38, 0.2);
}

.tag-css {
  background: rgba(38, 77, 228, 0.1);
  color: #264de4;
  border: 1px solid rgba(38, 77, 228, 0.2);
}

.tag-css:hover {
  background: rgba(38, 77, 228, 0.15);
  border-color: rgba(38, 77, 228, 0.4);
  box-shadow: 0 4px 15px rgba(38, 77, 228, 0.2);
}

.tag-js {
  background: rgba(247, 223, 30, 0.1);
  color: #f7df1e;
  border: 1px solid rgba(247, 223, 30, 0.2);
}

.tag-js:hover {
  background: rgba(247, 223, 30, 0.15);
  border-color: rgba(247, 223, 30, 0.4);
  box-shadow: 0 4px 15px rgba(247, 223, 30, 0.2);
}

/* Legal Pills */
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.legal-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.4s ease;
}

.legal-btn:hover::before {
  left: 100%;
}

.legal-btn:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Copyright Row */
.footer-bottom {
  max-width: var(--container-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.created-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.created-by a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.created-by a::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--text-secondary),
    var(--accent-secondary)
  );
  transition: width 0.3s ease;
}

.created-by a:hover::before {
  width: 100%;
}

.created-by a:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
  .auth-card {
    flex-direction: column;
    max-width: 450px;
  }

  .auth-visual {
    display: none;
    /* Hide visual on mobile for compactness, or can reduce to header */
  }

  .auth-form-side {
    width: 100%;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* --- Showcase Page Styles --- */

.showcase-card {
  padding: 0;
  overflow: hidden;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.showcase-img-container {
  width: 100%;
  height: 180px;
  background-color: var(--bg-secondary);
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}

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

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

.showcase-card h3,
.showcase-card p,
.showcase-card .card-actions {
  padding: 0 1.5rem;
}

.showcase-card h3 {
  margin-bottom: 0.25rem;
}

.showcase-card p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* --- Auth / Login Page --- */
/* --- Auth / Login Page (Full Viewport) --- */
body.login-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  /* Fixed height for the entire viewport */
  overflow: hidden;
  /* No scrollbars for the main auth page */
  background: var(--bg-primary);
}

.split-screen {
  flex: 1;
  /* Take all space above the footer */
  display: flex;
  width: 100%;
  overflow: hidden;
}

/* --- Visual Side (Left - 60%) --- */
/* --- Visual Side (Left - 60%) --- */
.split-visual {
  flex: 0 0 60%;
  /* Dark Terminal Theme as requested */
  background: #0d1117;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4rem;
  color: #fff;
  overflow: hidden;
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 20%
    );
  pointer-events: none;
}

.brand-big-icon {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.visual-content-direct {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Back to center for balance */
  max-width: 600px;
  transform: translateY(-5%);
  /* Slight upward bias to fix 'forehead' */
  animation: float 6s ease-in-out infinite;
  /* Subtle floating animation */
}

@keyframes float {
  0% {
    transform: translateY(-5%);
  }

  50% {
    transform: translateY(-7%);
  }

  100% {
    transform: translateY(-5%);
  }
}

.visual-content-direct h1 {
  font-family: "Courier New", Courier, monospace;
  /* Terminal font */
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  /* Tighter for code look */
}

.code-text {
  color: #fff;
  text-shadow: 0 0 10px rgba(57, 211, 83, 0.2);
  /* Subtle glow */
}

.cursor {
  display: inline-block;
  color: var(--text-tertiary);
  /* Accent color or just white */
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 5px;
}

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

  50% {
    opacity: 0;
  }
}

.visual-content-direct p {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 80%;
}

.visual-footer {
  font-size: 0.9rem;
  opacity: 0.5;
  margin-top: auto;
}

/* --- Form Side (Right - 40%) --- */
.split-form {
  flex: 1;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center to use the flexible space */
  padding: 2rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.auth-form-container {
  width: 100%;
  max-width: 380px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-5%);
  /* Match visual side bias */

  width: 100%;
  max-width: 380px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  transform: translateY(-5%);
  /* Match visual side bias */
}

.auth-brand-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* Header & Toggle */
.auth-header {
  text-align: left;
  margin-bottom: 0.5rem;
}

.auth-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 800;

  font-size: 2.3rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 800;
}

.auth-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.text-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-primary);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

/* Inputs */
.form-group {
  margin-bottom: 1rem;
}

.input-wrapper .form-input {
  width: 100%;
  /* Match button length */
  background: var(--bg-hover);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  /* Slightly more space as requested */
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
  /* Ensure padding doesn't increase width */
  color: #fff;
  /* Ensure text is visible on dark background */
}

.input-wrapper .form-input.error {
  border-bottom-color: #ef4444;
}

.input-wrapper .form-input:focus {
  background: var(--bg-hover);
  border-bottom-color: var(--text-primary);
  outline: none;
  box-shadow: none;

  background: var(--bg-hover);
  border-bottom-color: var(--text-primary);
  outline: none;
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.18);
}

/* Stacked Buttons */
.btn-lg {
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);

  opacity: 0.92;
  transform: translateY(-2px);
}

.btn-google {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-google:hover {
  background: var(--bg-hover);
}

/* New Horizontal Social Row */
.social-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-social:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
  border-color: var(--text-primary);
}

/* Footer Hover Effects */
.community-link-row {
  transition: opacity 0.2s;
}

.community-link-row:hover {
  opacity: 0.8;
}

/* Footer Actions */
.form-footer-actions {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  display: flex;
  gap: 0.25rem;
  color: var(--text-secondary);
}

.forget-password {
  color: var(--text-secondary);
  text-decoration: none;
}

.text-bold {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: underline;
  cursor: pointer;
}

/* --- Responsive Stacking --- */
@media (max-width: 900px) {
  .split-screen {
    flex-direction: column;
    height: auto;
  }

  .split-visual {
    flex: 0 0 auto;
    padding: 3rem 1.5rem;
    min-height: 300px;
  }

  .visual-content-direct h1 {
    font-size: 3rem;
  }

  .split-form {
    flex: 1 0 auto;
    padding: 3rem 1.5rem;
    min-height: auto;
  }
}

.social-btn .icon {
  width: 20px;
  height: 20px;
}

/* Back Link */
.back-link-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* --- Responsive Stacking --- */
@media (max-width: 900px) {
  .split-screen {
    flex-direction: column;
    height: auto;
    /* Allow scrolling on mobile */
  }

  .split-visual {
    flex: 0 0 auto;
    padding: 3rem 1.5rem;
    min-height: 250px;
  }

  .terminal-content {
    max-width: 100%;
  }

  .split-form {
    flex: 1 0 auto;
    padding: 3rem 1.5rem;
    min-height: 100vh;
    /* Ensure form takes full height on mobile too or at least fills screen */
  }

  .auth-header {
    text-align: center;
  }
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* Collapsible Form Group Animation */
#confirmPasswordGroup {
  overflow: hidden;
  max-height: 120px;
  opacity: 1;
  margin-bottom: 1rem;
  transition: all var(--duration-normal) var(--ease-in-out);
  transform-origin: top;
}

#confirmPasswordGroup.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
  padding: 0;
  transform: translateY(-10px);
}

/* Form inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.hidden {
  display: none;
}

/* Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: "✓";
  font-size: 12px;
  color: var(--bg-primary);
  font-weight: bold;
}

.forgot-password {
  color: var(--accent-secondary);
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 1rem;
}

/* Improved PNG icon styles */
.footer-socials .social-btn img.icon {
    width: 26px; /* Slightly larger */
    height: 26px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Make black icons adapt to theme */
    filter: brightness(0) saturate(100%) invert(55%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(90%);
}

/* Light theme */
[data-theme="light"] .footer-socials .social-btn img.icon {
    filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%) contrast(80%);
}

/* Dark theme */
[data-theme="dark"] .footer-socials .social-btn img.icon {
    filter: brightness(0) saturate(100%) invert(75%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Hover effects */
.footer-socials .social-btn:hover img.icon {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(0) saturate(100%) invert(68%) sepia(67%) saturate(500%) hue-rotate(350deg) brightness(105%) contrast(101%);
}

[data-theme="light"] .footer-socials .social-btn:hover img.icon {
    filter: brightness(0) saturate(100%) invert(25%) sepia(100%) saturate(1500%) hue-rotate(350deg) brightness(95%) contrast(95%);
}

[data-theme="dark"] .footer-socials .social-btn:hover img.icon {
    filter: brightness(0) saturate(100%) invert(90%) sepia(100%) saturate(1500%) hue-rotate(350deg) brightness(110%) contrast(110%);
}


/* =========================================
   CONTACT PAGE – FINAL VISIBILITY FIX
========================================= */

.contact-page h1,
.contact-page h2,
.contact-title {
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Inputs & textarea */
.contact-page input,
.contact-page textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

/* Placeholder (empty fields) */
.contact-page input::placeholder,
.contact-page textarea::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
}

/* Focus (cursor + typing) */
.contact-page input:focus,
.contact-page textarea:focus {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #4f46e5 !important;
  outline: none;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-secondary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top-btn:hover {
  background: var(--accent-primary);
  transform: translateY(-2px);
}