/*
Theme Name: Portfolio 3D
Description: Modern 3D animated portfolio theme for developers and data analysts
Version: 1.0
*/

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Grain / Noise Overlay — fixed, pointer-events-none, sits above everything */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* Cursor Glow — tinted shadow matching background hue */
.cursor-glow {
  position: fixed;
  width: 384px;
  height: 384px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.08;
  background: radial-gradient(circle, rgba(0, 224, 122, 0.5) 0%, transparent 70%);
  filter: blur(40px);
  transition: opacity 0.3s ease;
}

/* CSS Variables for Theme */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: rgba(10, 12, 20, 0.85);
  --bg-tertiary: rgba(15, 15, 22, 0.9);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.85);
  --text-muted: rgba(240, 240, 245, 0.6);
  --text-code: #b8b8cc;
  --accent-primary: #00e07a;
  --accent-secondary: #0078d4;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-inset-light: rgba(255, 255, 255, 0.12);
  --glass-inset-dark: rgba(255, 255, 255, 0.04);
  --shadow-color: rgba(0, 0, 0, 0.35);
  --shadow-tinted: rgba(0, 10, 20, 0.4);
  --nav-bg: rgba(10, 10, 15, 0.75);
  --nav-border: rgba(255, 255, 255, 0.06);
  --effect-opacity: 0.025;
  --header-height: 80px;
}

body {
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip link — keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--accent-primary);
  color: #0a0a0f;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Scroll-driven reveal — animate on enter */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-category,
.project-card,
.showcase-project-card,
.experience-item,
.stat-card {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Blog cards — keep existing stagger animation; also respond to .revealed class */
.blog-card {
  transition:
    border-color 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* When blog card gets .revealed class, fade in smoothly */
.blog-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.skill-category.revealed,
.project-card.revealed,
.showcase-project-card.revealed,
.experience-item.revealed,
.stat-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Focus visible for keyboard accessibility */
.skill-category:focus-visible,
.project-card:focus-visible,
.showcase-project-card:focus-visible,
.experience-item:focus-visible,
.stat-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
  pointer-events: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Monospace numbers — tabular figures for data displays */
.stat-number,
.metric-value,
.showcase-metric-value,
.code-output {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

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

.code-keyword {
  color: var(--accent-primary);
}
.code-variable {
  color: var(--accent-secondary);
}
.code-operator {
  color: var(--text-primary);
}
.code-array {
  color: var(--accent-warning);
}
.code-function {
  color: var(--accent-secondary);
}
.code-string {
  color: var(--accent-warning);
}
.code-class {
  color: var(--accent-danger);
}
.code-bracket {
  color: var(--accent-warning);
}

/* Matrix Rain Background */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--effect-opacity);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent-primary);
  overflow: hidden;
}

.matrix-row {
  display: flex;
  white-space: nowrap;
}

.matrix-char {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--text-secondary);
  opacity: 0.5;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Hover state: ring expands, dot grows */
.custom-cursor.hovering .cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
}

.custom-cursor.hovering .cursor-ring {
  width: 50px;
  height: 50px;
  border-color: rgba(0, 224, 122, 0.4);
}

/* Clicking state */
.custom-cursor.clicking .cursor-ring {
  width: 28px;
  height: 28px;
  border-color: rgba(0, 224, 122, 0.8);
}

/* Hide default cursor on desktop - apply to entire page */
@media (min-width: 769px) {
  html,
  body,
  body * {
    cursor: none !important;
  }
  
  /* Exception for text inputs and textareas to show text cursor */
  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="url"],
  input[type="tel"],
  textarea {
    cursor: text !important;
  }
  
  /* Exception for iframe content (let browser handle) */
  iframe,
  iframe * {
    cursor: auto !important;
  }
}

/* Hide custom cursor on mobile/touch */
@media (max-width: 768px) {
  .custom-cursor {
    display: none;
  }
}

/* Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  width: 384px;
  height: 384px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.1;
  background: radial-gradient(circle, #00e07a 0%, transparent 70%);
  filter: blur(40px);
  transition: opacity 0.3s ease;
}

/* Navigation - Apple Frosted Glass */
.main-navigation.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;

  /* Apple-style frosted glass nav */
  background: var(--nav-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);

  /* Simple border (no border-image to avoid breaking radius) */
  border-bottom: 1px solid var(--nav-border);

  /* Clean shadow */
  box-shadow: 
    0 4px 24px var(--shadow-color),
    inset 0 -1px 0 var(--glass-border);

  /* Smooth Transition */
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State - More opaque frosted glass */
.main-navigation.glass-nav.scrolled {
  background: var(--glass-hover);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);

  border-bottom-color: var(--glass-border);

  box-shadow: 
    0 8px 32px var(--shadow-color),
    inset 0 -1px 0 var(--glass-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  transition: all 0.3s ease;
  text-shadow: 0 0 20px rgba(0, 224, 122, 0.25);
}

.nav-brand:hover {
  text-shadow: 0 0 30px rgba(0, 224, 122, 0.4);
  transform: scale(1.05);
}

/* Desktop menu container */
.nav-menu-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand i {
  margin-right: 0.5rem;
}

.nav-title-mobile {
  display: none;
}

/* Desktop Menu - Apple Glass Pill */
.desktop-menu.glass-menu {
  display: flex;
  gap: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.75rem 2rem;

  box-shadow: 
    0 4px 20px var(--shadow-color),
    inset 0 1px 0 var(--glass-border);

  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.desktop-menu.glass-menu:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border);

  box-shadow: 
    0 8px 28px var(--shadow-color),
    inset 0 1px 0 var(--glass-border);
}

.nav-link.glass-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.nav-link.glass-link:hover {
  color: var(--accent-primary);
  background: rgba(0, 224, 122, 0.08);
  transform: translateY(-1px);
}

.nav-link.glass-link:active {
  transform: scale(0.965) translateY(0);
}

.nav-link.glass-link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Mode Switch: Portfolio / Game */
.mode-switch.glass-mode-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.25rem;
  box-shadow:
    0 4px 12px var(--shadow-color),
    inset 0 1px 0 var(--glass-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.mode-switch.glass-mode-switch:hover {
  background: var(--glass-hover);
}

.mode-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mode-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
}

.mode-btn:active {
  transform: scale(0.965);
}

.mode-btn.active {
  color: var(--accent-primary);
  background: rgba(0, 224, 122, 0.1);
  box-shadow: 0 0 8px rgba(0, 224, 122, 0.15);
}

.mode-btn.active:hover {
  background: rgba(0, 224, 122, 0.16);
}

/* Mode switch in mobile menu */
.mode-switch-mobile {
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.mode-switch-mobile .mode-btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
}

@media (max-width: 768px) {
  .nav-container .mode-switch:not(.mode-switch-mobile) {
    display: none;
  }
}

@media (min-width: 769px) {
  .mode-switch-mobile {
    display: none !important;
  }
}

/* Mobile Menu Toggle - Apple Glass */
.mobile-menu-toggle.glass-toggle {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  padding: 0.75rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;

  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle.glass-toggle:hover {
  background: rgba(0, 224, 122, 0.08);
  border-color: rgba(0, 224, 122, 0.25);
  transform: translateY(-1px);

  box-shadow: 
    0 6px 20px rgba(0, 224, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background: #00e07a;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 224, 122, 0.2);
}

/* Mobile Menu - Apple Glass */
.mobile-menu.glass-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);

  border-top: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.mobile-menu-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link.glass-mobile-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 16px; /* Touch-friendly padding (1.5 × 8px, 2 × 8px) */
  min-height: 44px; /* Touch-friendly minimum height */
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 224, 122, 0.2);
}

.mobile-nav-link.glass-mobile-link:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.mobile-nav-link.glass-mobile-link:hover {
  color: var(--accent-primary);
  background: rgba(0, 224, 122, 0.08);
  border-color: rgba(0, 224, 122, 0.2);
  transform: translateX(6px);
}

/* CV Button - Apple Glass */
.btn-cv.glass-button {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(0, 224, 122, 0.2);
  border-radius: 14px;
  color: #00e07a;
  padding: 0.75rem 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-cv.glass-button:hover {
  background: rgba(0, 224, 122, 0.08);
  border-color: rgba(0, 224, 122, 0.35);
  transform: translateY(-2px);

  box-shadow: 
    0 8px 24px rgba(0, 224, 122, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-cv .cv-text-short {
  display: none;
}

.desktop-only {
  display: flex;
}

/* Active States */
.mobile-menu.glass-mobile-menu.active {
  display: block;
}

.mobile-menu-toggle.glass-toggle.active {
  background: rgba(0, 224, 122, 0.12);
  border-color: rgba(0, 224, 122, 0.4);
  box-shadow: 
    0 8px 25px rgba(0, 224, 122, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mobile-menu-toggle.glass-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
  box-shadow: 0 0 8px rgba(0, 224, 122, 0.25);
}

.mobile-menu-toggle.glass-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.glass-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
  box-shadow: 0 0 8px rgba(0, 224, 122, 0.25);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-title {
    display: none;
  }

  .nav-title-mobile {
    display: inline;
  }

  .desktop-menu.glass-menu {
    display: none;
  }

  .mobile-menu-toggle.glass-toggle {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  /* Mobile glass adjustments */
  .main-navigation.glass-nav {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    background: rgba(255, 255, 255, 0.05);
  }

  .main-navigation.glass-nav.scrolled {
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    background: rgba(255, 255, 255, 0.07);
  }

  .mobile-menu.glass-mobile-menu {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    background: rgba(10, 10, 15, 0.88);
  }
}

@media (max-width: 480px) {
  .btn-cv.glass-button .cv-text-full {
    display: none;
  }

  .btn-cv.glass-button .cv-text-short {
    display: inline;
  }

  .nav-container {
    padding: 0.75rem;
  }

  .nav-brand {
    font-size: 1.25rem;
  }

  .mobile-menu-content {
    padding: 1.5rem 1rem;
  }
  
  .mobile-nav-link.glass-mobile-link {
    padding: 12px 16px;
    min-height: 44px;
  }
}

/* Form Input Optimization - Mobile */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 224, 122, 0.2);
  }
  
  textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
  }
  
  /* Ensure labels are always visible, not just placeholders */
  input::placeholder,
  textarea::placeholder {
    opacity: 0.5;
  }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur()) {
  .main-navigation.glass-nav {
    background: rgba(10, 10, 15, 0.92);
  }

  .main-navigation.glass-nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
  }

  .glass {
    background: rgba(17, 24, 39, 0.85);
  }

  .desktop-menu.glass-menu,
  .mobile-menu.glass-mobile-menu,
  .mobile-menu-toggle.glass-toggle,
  .btn-cv.glass-button,
  .mobile-nav-link.glass-mobile-link {
    background: rgba(17, 24, 39, 0.88);
  }
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
  min-height: 44px; /* Touch-friendly minimum height */
  touch-action: manipulation; /* Prevent double-tap zoom */
  -webkit-tap-highlight-color: rgba(0, 224, 122, 0.15);
}

/* Active / press state — spring-like press feel */
.btn:active {
  transform: scale(0.965) translateY(1px);
  opacity: 0.88;
}

/* Focus ring — keyboard accessibility */
.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 224, 122, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 224, 122, 0.3);
  filter: brightness(1.08);
}

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

.btn-outline:hover {
  background: rgba(0, 224, 122, 0.08);
  border-color: var(--accent-primary);
  opacity: 1;
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 224, 122, 0.15);
}

.btn-cv .cv-text-short {
  display: none;
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
  z-index: 20;
  transform-style: preserve-3d;
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 224, 122, 0.02) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.section-title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 5rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.04em;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - var(--header-height));
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 1rem;
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 2rem;
  box-sizing: border-box;
}

/* Tablet and Mobile: Adjust hero for smaller screens */
@media (max-width: 1024px) {
  .hero-section {
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + 0.75rem);
    padding-bottom: 1.5rem;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

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

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

  .hero-avatar-wrapper {
    order: -1;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-intro-text {
    font-size: 0.95rem;
  }

  .hero-avatar-container {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 0.5rem);
    padding-bottom: 1rem;
  }

  .hero-main {
    gap: 1.5rem;
  }

  .hero-avatar-container {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .hero-avatar-container {
    width: 120px;
    height: 120px;
  }
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 1200px;
  width: 100%;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

/* Hero Avatar */
.hero-avatar-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar-container {
  position: relative;
  width: 180px;
  height: 180px;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(0, 224, 122, 0.2);
  transition: border-color 0.3s ease;
}

.hero-avatar:hover {
  border-color: rgba(0, 224, 122, 0.4);
}

/* Hero Text */
.hero-text {
  text-align: left;
}

.typing-animation {
  color: #00e07a;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* Hero Introduction */
.hero-intro {
  margin-bottom: 1.5rem;
}

.hero-intro-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-family: "JetBrains Mono", monospace;
}

.hero-intro-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* Experimental Mindset Badge */
.hero-mindset {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.mindset-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  background: rgba(0, 224, 122, 0.1);
  border: 1px solid rgba(0, 224, 122, 0.25);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.mindset-badge:hover {
  background: rgba(0, 224, 122, 0.15);
  border-color: rgba(0, 224, 122, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 122, 0.2);
}

.mindset-badge i {
  color: #00e07a;
  font-size: 1.1rem;
}

.mindset-label {
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.code-block {
  background: var(--bg-secondary);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}

/* Code Demo: code block + live preview side by side */
.code-demo {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  max-width: 850px;
  margin: 1.5rem auto;
}

/* Hero Code Output Panel */
.code-output {
  flex: 0 0 280px;
  background: rgba(10, 12, 20, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 224, 122, 0.15);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}

.output-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.output-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e07a;
  box-shadow: 0 0 4px rgba(0, 224, 122, 0.25);
}

.output-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.output-body {
  display: flex;
  flex-direction: column;
}

.output-line {
  opacity: 0;
  color: rgba(255, 255, 255, 0.6);
}

.output-key {
  color: #0078d4;
}

.output-val {
  color: #00e07a;
}

.output-cursor {
  display: inline-block;
  color: #00e07a;
  opacity: 0;
  animation: blinkCursor 1s step-end infinite;
}

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

/* Tech Stack Marquee */
.tech-marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 20;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.marquee-item:hover {
  color: #00e07a;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.code-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

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

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27ca3f;
}

.code-filename {
  color: #888888;
  font-size: 0.8rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 224, 122, 0.4);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

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

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.terminal-window,
.system-status {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.status-window {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: visible;
}

.status-window .stats-under-status {
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header,
.status-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #00e07a;
  font-size: 0.9rem;
}

.terminal-header i,
.status-header i {
  margin-right: 0.5rem;
}

.terminal-content {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.markdown-header {
  color: #0078d4;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Hide gradient pseudo on stat cards nested inside glass */
.stat-card.glass::after {
  display: none;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #00e07a;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  background: linear-gradient(135deg, #00e07a, #0078d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: #888888;
  font-family: "JetBrains Mono", monospace;
}

.status-list {
  padding: 1rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-item:last-child {
  border-bottom: none;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e07a;
}

.status-dot.active {
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 0.7rem;
  color: #00e07a;
  font-weight: 600;
}

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

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.skill-header i {
  font-size: 2rem;
  margin-right: 1rem;
  color: #00e07a;
}

.skill-header h3 {
  font-size: 1.5rem;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  flex: 1;
}

.skill-chevron {
  font-size: 1rem !important;
  margin-right: 0 !important;
  margin-left: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.4) !important;
}

.skill-category.active .skill-chevron {
  transform: rotate(180deg);
}

.skill-category.active .skill-header {
  margin-bottom: 2rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category.active .skill-list {
  max-height: 600px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  font-size: 0.9rem;
  color: #cccccc;
  font-family: "JetBrains Mono", monospace;
}

.skill-percent {
  font-size: 0.8rem;
  color: #888888;
  font-family: "JetBrains Mono", monospace;
}

.skill-bar {
  height: 8px;
  background: #1f2937;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00e07a, #0078d4);
  width: 0%;
  transition: width 1s ease-in-out;
  border-radius: 4px;
}

/* Projects Section */
.projects-section {
  position: relative;
  transform-style: preserve-3d;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
              border-color 0.3s ease, 
              box-shadow 0.4s ease, 
              background 0.3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 224, 122, 0.05) 0%, 
    transparent 50%, 
    rgba(0, 136, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

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

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-8px) translateZ(20px) rotateX(2deg) rotateY(-2deg) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(0, 224, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.project-icon {
  background: rgba(0, 224, 122, 0.2);
  color: #00e07a;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.project-header h3 {
  font-size: 1.25rem;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.3;
  flex: 1;
}

.project-link {
  color: #888888;
  font-size: 1.25rem;
  transition: color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.project-link:hover {
  color: #00e07a;
}

.project-description {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
}

.metric-label {
  font-size: 0.7rem;
  color: #888888;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #1f2937;
  color: #cccccc;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
}

/* Projects subsections (Website / System / Data) */
.projects-subsection {
  margin-bottom: 3rem;
}

.projects-subsection:last-child {
  margin-bottom: 0;
}

.projects-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: "JetBrains Mono", monospace;
}

.projects-subtitle .gradient-text {
  margin-left: 0.25rem;
}

.projects-empty {
  color: #888;
  font-style: italic;
  padding: 2rem;
  text-align: center;
}

/* ===== Blog & Single: clear fixed header + margin top ===== */
.blog-layout #blog-content,
.blog-layout #single-content {
  scroll-margin-top: 6rem;
}
.blog-page .blog-section,
.single-post-page .single-post {
  margin-top: 2rem;
  padding-top: 6rem;
  min-height: 60vh;
}
.single-post-page .single-post {
  padding-bottom: 4rem;
}

/* Blog listing page */
.blog-container {
  max-width: 1280px;
  margin: 0 auto;
}
.blog-header {
  margin-bottom: 2rem;
}
.blog-title {
  margin-bottom: 1.25rem;
}
.blog-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}
.blog-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 1.75rem;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.view-toggle-btn.active {
  color: #00e07a;
  background: rgba(0, 224, 122, 0.1);
  border: 1px solid rgba(0, 224, 122, 0.25);
}

.view-toggle-btn.active:hover {
  background: rgba(0, 224, 122, 0.15);
  border-color: rgba(0, 224, 122, 0.5);
}

/* Blog View Switching */
.blog-graph-view {
  display: block;
}

.blog-list-view {
  display: none;
}

.blog-list-view.active {
  display: block;
}

.blog-graph-view.hidden {
  display: none;
}
.blog-cat-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  color: #cccccc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.blog-cat-pill:hover {
  color: #00e07a;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 224, 122, 0.08);
  transform: translateY(-1px);
}
.blog-cat-pill.active {
  color: #0a0a0a;
  background: #00e07a;
  border-color: #00e07a;
}
.blog-main-wrap {
  display: block;
}
.blog-main {
  min-width: 0;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Blog grid layout (replaces graph view) */
.blog-grid-wrap {
  width: 100%;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog card enhancements for grid */
.blog-card .blog-card-link {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card .blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.blog-card-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: #ffffff;
  transition: color 0.25s ease;
}
.blog-card:hover .blog-card-title {
  color: #00e07a;
}
.blog-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.blog-card-cat {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  background: rgba(0, 224, 122, 0.1);
  border: 1px solid rgba(0, 224, 122, 0.25);
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
}
.blog-card-excerpt {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  margin-top: auto;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.blog-card:hover .blog-card-read-more {
  opacity: 1;
  transform: translateX(0);
}

/* Empty state */
.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 5rem 2rem;
  text-align: center;
}
.blog-empty-icon {
  color: rgba(255, 255, 255, 0.2);
}
.blog-empty-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "JetBrains Mono", monospace;
}

/* Category tabs (replacing pill nav) */
.blog-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
}
.blog-cat-tabs .blog-cat-pill {
  cursor: pointer;
}

/* Header title — code aesthetic */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}
.blog-title.section-title {
  font-size: 3rem;
  margin-bottom: 0;
}

.blog-sidebar {
  position: sticky;
  top: 6rem;
  min-width: 260px;
  width: 100%;
}
.blog-sidebar .blog-widget,
.blog-sidebar .blog-widget-default,
.blog-widget,
.blog-widget-default {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.blog-sidebar .blog-widget:last-child,
.blog-sidebar .blog-widget-default:last-child {
  margin-bottom: 0;
}
.blog-widget-title,
.blog-widget .blog-widget-title {
  font-size: 0.95rem;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
}
.blog-widget-list,
.blog-widget .blog-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-widget-list li,
.blog-widget .blog-widget-list li {
  margin-bottom: 0.5rem;
  padding: 0.2rem 0;
}
.blog-widget-list li:last-child,
.blog-widget .blog-widget-list li:last-child {
  margin-bottom: 0;
}
.blog-widget-list a,
.blog-widget .blog-widget-list a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.blog-widget-list a:hover,
.blog-widget .blog-widget-list a:hover {
  color: #00e07a;
}
.blog-widget-list .count,
.blog-widget .blog-widget-list .count {
  color: #666;
  font-size: 0.8rem;
}

/* Table of Contents (sidebar) */
.blog-widget-toc .toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-widget-toc .toc-list a,
.blog-widget-toc .toc-item {
  display: block;
  font-size: 0.85rem;
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.2rem 0;
}
.blog-widget-toc .toc-list a:hover,
.blog-widget-toc .toc-item:hover {
  color: #00e07a;
}
.blog-widget-toc .toc-level-3,
.blog-widget-toc .toc-item.toc-level-3 {
  padding-left: 1rem;
}
.blog-widget-toc .toc-level-4,
.blog-widget-toc .toc-item.toc-level-4 {
  padding-left: 1.5rem;
}

@keyframes blogFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.blog-card-animate {
  animation: blogFadeInUp 0.5s ease forwards;
  animation-delay: calc(0.06s * var(--i, 1));
  opacity: 0;
}
.blog-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    background 0.35s ease;
}

/* Spotlight border — border illuminates on hover */
.blog-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 224, 122, 0.25), rgba(0, 120, 212, 0.15));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.blog-card:hover {
  border-color: rgba(0, 224, 122, 0.3);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(0, 224, 122, 0.08);
}

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

.blog-card > * {
  position: relative;
  z-index: 1;
}
.blog-card-link {
  display: block;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
}
.blog-card-body {
  margin-top: 0;
}
.blog-card-thumb {
  margin: -2rem -2rem 1rem -2rem;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}
.blog-card:hover .blog-card-thumb img {
  opacity: 0.9;
}
.blog-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.03);
}
.blog-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.blog-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.blog-card-cat {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(0, 224, 122, 0.15);
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
}
.blog-card-title {
  font-size: 1.25rem;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  margin: 0;
  transition: color 0.2s ease;
}
.blog-card:hover .blog-card-title {
  color: #00e07a;
}
.blog-card-date {
  font-size: 0.85rem;
  color: #888888;
  font-family: "JetBrains Mono", monospace;
}
.blog-card-excerpt {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.blog-empty {
  color: #888;
  font-style: italic;
  padding: 2rem;
  text-align: center;
}
.blog-pagination {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: "JetBrains Mono", monospace;
}
.blog-pagination a,
.blog-pagination span {
  margin: 0 0.5rem;
  color: #00e07a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-pagination a:hover {
  text-decoration: underline;
  color: #ffffff;
}
.blog-pagination .current {
  color: #ffffff;
}

/* Single post layout */
.single-container {
  max-width: 1280px;
  margin: 0 auto;
}
.breadcrumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: #888888;
}
.breadcrumb a {
  color: #00e07a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: #ffffff;
}
.breadcrumb-sep {
  margin: 0 0.35rem;
  color: #555;
}
.breadcrumb-current {
  color: #cccccc;
  max-width: 200px;
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.single-main-wrap {
  display: block;
}
.single-main {
  min-width: 0;
}
/* Single post sidebar uses same widget styles as blog */
.single-sidebar .blog-widget,
.single-sidebar .blog-widget-default {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.single-post-header {
  margin-bottom: 2rem;
}

.single-post-header .back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #00e07a;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.single-post-header .back-link:hover {
  color: #ffffff;
  text-decoration: underline;
  transform: translateX(-2px);
}

.single-post-title {
  font-size: 2.5rem;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.single-post-meta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.single-post-date {
  display: block;
  font-size: 0.9rem;
  color: #888888;
  font-family: "JetBrains Mono", monospace;
}

.single-post-views {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(0, 224, 122, 0.7);
  font-family: "JetBrains Mono", monospace;
}

.single-post-thumbnail {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 224, 122, 0.2);
}

.single-post-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
}

.single-post-content.entry-content {
  color: var(--text-code);
  line-height: 1.85;
  font-size: 1.05rem;
  max-width: 68ch;
}

.single-post-content.entry-content p {
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.single-post-content.entry-content h2,
.single-post-content.entry-content h3 {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.single-post-content.entry-content a {
  color: #00e07a;
  text-decoration: none;
}

.single-post-content.entry-content a:hover {
  text-decoration: underline;
}

.single-post-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #888888;
  font-family: "JetBrains Mono", monospace;
}

.single-post-meta .post-categories a,
.single-post-meta .post-tags a {
  color: #00e07a;
  text-decoration: none;
}

.single-post-meta .post-categories a:hover,
.single-post-meta .post-tags a:hover {
  text-decoration: underline;
}

.single-post-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}
.single-post-nav-prev,
.single-post-nav-next {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.single-post-nav-prev {
  text-align: left;
}
.single-post-nav-next {
  text-align: right;
  margin-left: auto;
}
.single-post-nav a {
  color: #00e07a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.single-post-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Experience Section */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.experience-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.experience-header h3 {
  font-size: 1.25rem;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.3;
}

.experience-period {
  background: transparent;
  border: 1px solid #0078d4;
  color: #0078d4;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}

.experience-company {
  color: #00e07a;
  font-size: 1.1rem;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 1rem;
}

.experience-description {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.experience-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.achievement {
  background: rgba(31, 41, 55, 0.5);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Contact Section */
.contact-info-block {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.contact-json {
  padding: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cccccc;
}

.json-key {
  color: #0078d4;
}
.json-string {
  color: #00e07a;
}
.json-array {
  color: #e09a00;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00e07a;
}

.contact-card h3 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: "JetBrains Mono", monospace;
}

.contact-card p {
  font-size: 0.9rem;
  color: #cccccc;
  font-family: "JetBrains Mono", monospace;
  word-break: break-all;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Contact Form */
.contact-form-container {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.contact-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form-title {
  font-size: 1.75rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.contact-form-title i {
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.contact-form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: "JetBrains Mono", monospace;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-label i {
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.required {
  color: var(--accent-danger);
  margin-left: 0.25rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--glass-hover);
  box-shadow: 0 0 0 3px rgba(0, 224, 122, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-error {
  color: var(--accent-danger);
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-input.error,
.form-textarea.error {
  border-color: var(--accent-danger);
  background: rgba(255, 0, 136, 0.05);
}

.form-actions {
  margin-top: 0.5rem;
}

.form-message {
  padding: 1rem;
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  text-align: center;
  display: none;
  margin-top: 1rem;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: rgba(0, 224, 122, 0.1);
  border: 1px solid rgba(0, 224, 122, 0.25);
  color: var(--accent-primary);
}

.form-message.error {
  background: rgba(255, 0, 136, 0.1);
  border: 1px solid rgba(255, 0, 136, 0.3);
  color: var(--accent-danger);
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.back-to-top-btn[style*="display: flex"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: var(--glass-hover);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 224, 122, 0.2);
}

.back-to-top-btn:active {
  transform: translateY(-1px);
}

/* Active Navigation State */
.nav-link.active,
.mobile-nav-link.active {
  color: var(--accent-primary) !important;
  background: rgba(var(--accent-primary-rgb), 0.1) !important;
  border-color: rgba(var(--accent-primary-rgb), 0.3) !important;
}

/* Mobile-only and Desktop-only utilities */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }
}

/* Sticky Mobile CTA */
@media (max-width: 768px) {
  .sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    padding: 1rem;
    z-index: 99;
    box-shadow: 0 -4px 20px var(--shadow-color);
  }

  .sticky-mobile-cta .btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  /* Add padding to body to prevent content from being hidden behind sticky CTA */
  body {
    padding-bottom: 80px;
  }
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--glass-bg) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 0.9;
  pointer-events: auto;
}

.loading-overlay .loading-spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* Footer */
.main-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.footer-text {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: rgba(240, 240, 245, 0.4);
  margin-top: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.footer-nav-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: rgba(240, 240, 245, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-nav-link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.footer-sep {
  color: rgba(240, 240, 245, 0.25);
  font-size: 0.8rem;
}

.copyright {
  color: rgba(0, 224, 122, 0.7);
}
.separator {
  color: rgba(240, 240, 245, 0.25);
}
.crafted {
  color: rgba(0, 120, 212, 0.7);
}
.heart {
  color: #e05555;
}
.and {
  color: rgba(0, 120, 212, 0.7);
}
.code {
  color: #e09a00;
}

/* Icons are now handled by Font Awesome classes directly in HTML */

/* ============================================
   Enhanced Parallax & 3D Effects
   ============================================ */

/* Parallax Container Base */
.parallax-container {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Parallax Layers - Different speeds for depth */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.parallax-bg {
  transform: translateZ(-200px) scale(1.2);
  z-index: 0;
}

.parallax-mid {
  transform: translateZ(-100px) scale(1.1);
  z-index: 1;
}

.parallax-fore {
  transform: translateZ(0);
  z-index: 2;
}

/* Depth-based element movement */
[data-parallax-speed] {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 3D Perspective Containers */
.perspective-container {
  perspective: 1200px;
  perspective-origin: center center;
  transform-style: preserve-3d;
}

.perspective-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 3D Card Effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

/* Deep Layer Shadows */
.depth-shadow-1 {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 16px 48px rgba(0, 0, 0, 0.1);
}

.depth-shadow-2 {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 24px 64px rgba(0, 0, 0, 0.12);
}

.depth-shadow-3 {
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.2),
    0 32px 80px rgba(0, 0, 0, 0.15);
}

/* Enhanced Glass Morphism with Depth */
.glass-depth {
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.glass-depth::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent
  );
  pointer-events: none;
}

/* Scroll-based fade and transform */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section depth transitions */
.section-depth {
  position: relative;
  transform-style: preserve-3d;
}

.section-depth::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 224, 122, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* GPU Acceleration */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer,
  [data-parallax-speed],
  .card-3d,
  .scroll-fade,
  .hero-3d-canvas,
  #arch-particles,
  .matrix-rain {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  .hero-content,
  .section-title,
  .project-card,
  .arch-3d-layer {
    transform: none !important;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

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

  /* Architecture tablet */
  .arch-split {
    gap: 2rem;
  }

  .arch-intro-heading {
    font-size: 2.2rem;
  }

  .arch-intro {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px; /* Changed to 16px (2 × 8px) for 8px grid system */
  }

  .section {
    padding: 24px 0; /* Changed from 5rem to 24px (3 × 8px) for consistent spacing */
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  /* Navigation Mobile */
  .nav-title {
    display: none;
  }

  .nav-title-mobile {
    display: inline;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    padding: 12px; /* Touch-friendly padding */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 224, 122, 0.2);
  }
  
  .mobile-menu-toggle:active {
    transform: scale(0.95);
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .desktop-only {
    display: none;
  }

  /* Hero Mobile */
  .hero-section {
    padding-top: calc(var(--header-height) + 0.5rem);
    padding-bottom: 1rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .hero-intro {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .hero-intro-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-mindset {
    margin-bottom: 1rem;
  }

  .mindset-badge {
    padding: 0.5rem 1rem;
  }

  .mindset-label {
    font-size: 0.8rem;
  }

  .typing-animation {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .code-block {
    font-size: 0.75rem;
    padding: 1rem;
  }

  .code-demo {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem auto;
  }

  .code-output {
    flex: none;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    min-height: 44px; /* Ensure touch-friendly size */
    padding: 12px 16px; /* Touch-friendly padding (1.5 × 8px, 2 × 8px) */
    font-size: 16px; /* Minimum readable size */
  }
  
  /* Button spacing - prevent accidental taps */
  .btn + .btn {
    margin-top: 12px; /* Minimum 8px gap between buttons */
  }

  /* About Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px; /* 3 × 8px */
  }

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

  /* Skills Mobile */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 16px; /* 2 × 8px */
  }

  /* Architecture Mobile */
  .architecture-section {
    padding: 3rem 0;
    overflow: visible;
  }

  .arch-sticky-wrap {
    height: auto !important; /* Remove fixed height on mobile */
    min-height: auto;
    position: relative;
  }

  .arch-sticky-content {
    position: relative !important; /* Disable sticky on mobile */
    height: auto !important;
    padding: 2rem 1rem;
    overflow: visible;
    display: block;
    align-items: stretch;
  }

  .arch-split {
    flex-direction: column;
    gap: 24px; /* 3 × 8px */
    text-align: left;
    margin-bottom: 0;
    width: 100%;
    overflow: visible;
  }

  .arch-intro {
    max-width: 100%;
    width: 100%;
    overflow: visible;
  }

  .arch-intro-heading {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .arch-intro-desc {
    font-size: 16px; /* Minimum readable size */
    margin-bottom: 24px; /* 3 × 8px */
    line-height: 1.6;
  }

  .arch-legend {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px; /* 1.5 × 8px */
    margin-bottom: 16px; /* 2 × 8px */
  }

  .arch-legend-item {
    gap: 0.5rem;
  }

  .arch-legend-bar {
    width: 24px;
  }

  .arch-legend-label {
    font-size: 0.72rem;
  }

  /* Hide particles canvas on mobile - no noise animation */
  #arch-particles {
    display: none !important;
    visibility: hidden;
  }

  .arch-3d-stack {
    min-height: auto;
    height: auto;
    width: 100%;
    position: relative;
    overflow: visible;
  }

  .arch-cards-overlay {
    gap: 16px; /* 2 × 8px - More spacing between cards */
    padding: 16px 0; /* 2 × 8px */
    width: 100%;
    overflow: visible;
  }

  .arch-3d-layer {
    padding: 16px 12px; /* 2 × 8px, 1.5 × 8px - More padding for better readability */
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
    opacity: 1 !important; /* Always visible on mobile */
    pointer-events: auto !important;
    overflow: visible;
  }

  .arch-3d-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .arch-3d-sub {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  /* Show details by default on mobile, no hover needed */
  .arch-3d-detail {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 0.75rem !important;
    overflow: visible;
  }

  .arch-3d-detail p {
    font-size: 14px; /* Minimum readable size for small text */
    line-height: 1.6;
  }

  .arch-3d-tag {
    font-size: 12px; /* Small but readable */
    padding: 4px 8px; /* 0.5 × 8px, 1 × 8px */
    margin-right: 8px; /* 1 × 8px */
    margin-bottom: 8px; /* 1 × 8px */
  }

  .arch-options {
    grid-template-columns: 1fr;
    padding: 24px 16px 32px; /* 3 × 8px, 2 × 8px, 4 × 8px */
    gap: 16px; /* 2 × 8px */
  }

  .arch-option {
    padding: 16px; /* 2 × 8px */
  }

  .arch-option h4 {
    font-size: 0.95rem;
  }

  .arch-option p {
    font-size: 0.8rem;
  }

  .arch-option li {
    font-size: 0.78rem;
  }

  /* Projects Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 16px; /* 2 × 8px */
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px; /* 2 × 8px */
  }

  .project-header h3 {
    font-size: 1.1rem;
  }

  .project-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* 1 × 8px */
  }

  .metric-value {
    font-size: 1rem;
  }

  /* Experience Mobile */
  .experience-item {
    padding: 16px; /* 2 × 8px */
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; /* 1 × 8px */
  }

  .experience-header h3 {
    font-size: 1.1rem;
  }

  .experience-achievements {
    grid-template-columns: 1fr;
  }

  /* Contact Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .contact-form-title {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px 16px;
    min-height: 44px; /* Touch-friendly */
  }

  .form-textarea {
    min-height: 120px;
  }

  /* Matrix Rain Mobile */
  .matrix-rain {
    opacity: calc(var(--effect-opacity) * 0.6);
  }

  .matrix-char {
    width: 12px;
    height: 12px;
    font-size: 10px;
  }

  /* Cursor Glow Mobile */
  .cursor-glow {
    display: none;
  }
  
  /* Accessibility: Focus states */
  *:focus-visible {
    outline: 2px solid #00e07a;
    outline-offset: 2px;
    border-radius: 4px;
  }
  
  /* Remove hover-only interactions on mobile - use :active states instead */
  
  .btn:active,
  .mobile-nav-link:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
}

/* Additional Mobile Breakpoints */
@media (max-width: 414px) {
  /* iPhone Plus, large Android */
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 24px 0;
  }
}

@media (max-width: 390px) {
  /* iPhone 12/13/14 Pro */
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 375px) {
  /* iPhone X/11/12 mini */
  .container {
    padding: 0 12px; /* 1.5 × 8px for very small screens */
  }
  
  .section {
    padding: 24px 0;
  }
}

@media (max-width: 320px) {
  /* Small Android phones */
  .container {
    padding: 0 12px;
  }
  
  .hero-title {
    font-size: 1.5rem; /* 24px for very small screens */
  }
  
  .section-title {
    font-size: 1.25rem; /* 20px */
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 65px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 0.5rem);
    padding-top: max(calc(var(--header-height) + 0.5rem), env(safe-area-inset-top, 0px));
    padding-bottom: 0.75rem;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .hero-intro {
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }

  .hero-intro-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero-mindset {
    margin-bottom: 0.75rem;
  }

  .mindset-badge {
    padding: 0.45rem 0.9rem;
  }

  .mindset-badge i {
    font-size: 0.85rem;
  }

  .mindset-label {
    font-size: 0.75rem;
  }

  .typing-animation {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .code-demo {
    margin: 0.75rem auto;
    gap: 0.75rem;
  }

  .code-block {
    font-size: 0.7rem;
    padding: 0.75rem;
  }

  .hero-avatar-container {
    width: 100px;
    height: 100px;
  }

  .hero-avatar-wrapper {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 1.5rem; /* 24px - H2 size */
    line-height: 1.4;
  }
  
  /* Ensure body text is minimum 16px */
  body {
    font-size: 16px;
  }
  
  p, .arch-intro-desc, .mobile-card-description, .detail-description {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Small text minimum 14px */
  .arch-legend-label, .detail-metric-label, .arch-3d-sub {
    font-size: 14px;
  }

  .btn-cv .cv-text-full {
    display: none;
  }

  .btn-cv .cv-text-short {
    display: inline;
  }

  .project-metrics {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Architecture small phone */
  .architecture-section {
    padding: 24px 0; /* 3 × 8px */
  }

  .arch-sticky-wrap {
    height: auto !important;
    min-height: auto;
  }

  .arch-sticky-content {
    padding: 24px 12px; /* 3 × 8px, 1.5 × 8px */
  }

  .arch-intro-heading {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .arch-3d-stack {
    min-height: auto;
    height: auto;
  }

  .arch-3d-layer {
    padding: 1rem 0.875rem;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
  }

  .arch-3d-label {
    font-size: 0.8rem;
  }

  .arch-3d-sub {
    font-size: 0.58rem;
  }

  .contact-card p {
    font-size: 0.8rem;
  }
}

/* Respect user's motion preferences */
@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;
  }
  
  /* Disable 3D animations for reduced motion */
  .hero-3d-canvas,
  #arch-particles,
  .liquid-bg {
    display: none !important;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   APPLE LIQUID GLASS EFFECT
   ============================================ */

/* Animated Liquid Background Container */
.liquid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Liquid Blobs with Smooth Animation */
.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: liquid-float 20s ease-in-out infinite;
  will-change: transform;
}

.liquid-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.4;
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.liquid-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  opacity: 0.4;
  top: 30%;
  right: -10%;
  animation-delay: -5s;
}

.liquid-blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
  opacity: 0.4;
  bottom: -10%;
  left: 30%;
  animation-delay: -10s;
}

.liquid-blob-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-danger) 0%, transparent 70%);
  opacity: 0.3;
  top: 50%;
  left: 50%;
  animation-delay: -15s;
}

@keyframes liquid-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 50px) scale(0.95);
  }
  75% {
    transform: translate(-50px, -20px) scale(1.05);
  }
}

/* ============================================
   GLASS STYLE - APPLE FROSTED GLASS
   ============================================ */
.glass {
  position: relative;
  /* Apple-style frosted glass */
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  
  /* Solid border that respects border-radius (no border-image!) */
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  
  /* Refined Apple-style shadow */
  box-shadow: 
    0 8px 32px var(--shadow-color),
    inset 0 1px 0 var(--glass-inset-light),
    inset 0 -1px 0 var(--glass-inset-dark);
  
  /* Smooth Transition */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Gradient border overlay via pseudo-element (preserves border-radius) */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 50%,
    var(--accent-tertiary) 100%
  );
  opacity: 0.15;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass Hover State - Enhanced */
.glass:hover {
  background: var(--glass-hover);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  
  border-color: var(--glass-border);
  
  box-shadow: 
    0 16px 48px var(--shadow-color),
    inset 0 1px 0 var(--glass-inset-light),
    inset 0 -1px 0 var(--glass-inset-dark),
    0 0 60px rgba(0, 224, 122, 0.06);
  
  transform: translateY(-2px);
}

.glass:hover::after {
  opacity: 1;
}

/* Liquid inside glass */
.glass-liquid {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 50%,
    var(--accent-tertiary) 100%
  );
  opacity: 0.05;
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px var(--shadow-color),
    0 0 0 1px var(--glass-inset-dark) inset;
}

.glass-liquid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, var(--accent-primary) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, var(--accent-secondary) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, var(--accent-tertiary) 0%, transparent 60%);
  opacity: 0.15;
  animation: liquid-shift 15s ease-in-out infinite;
  pointer-events: none;
}

.glass-liquid::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 50%,
    var(--accent-tertiary) 100%
  );
  opacity: 0.4;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes liquid-shift {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
  }
  66% {
    opacity: 0.9;
    transform: scale(0.95) rotate(-5deg);
  }
}

.glass-liquid:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 50px var(--shadow-color),
    0 0 80px rgba(0, 224, 122, 0.15);
}

/* Glass Content Wrapper */
.glass-content {
  position: relative;
  z-index: 1;
}

/* Apply Glass to Buttons */
.btn.glass,
button.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 
    0 4px 16px var(--shadow-color),
    inset 0 1px 0 var(--glass-inset-light);
}

/* Hide gradient border pseudo on buttons (they use simpler style) */
.btn.glass::after,
button.glass::after {
  display: none;
}

.btn.glass:hover,
button.glass:hover {
  background: var(--glass-hover);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border-color: var(--accent-primary);
  opacity: 0.8;
  box-shadow: 
    0 8px 28px var(--shadow-color),
    inset 0 1px 0 var(--glass-inset-light),
    0 0 40px rgba(0, 224, 122, 0.06);
}

/* Note: Removed wildcard * transition for performance. 
   Individual components define their own transitions. */

/* ============================================
   SCROLL ANIMATIONS WITH ANIME.JS
   ============================================ */

/* Hidden state for scroll animations */
.animate-on-scroll {
  opacity: 0;
  visibility: hidden;
}

/* Animation base classes */
.animate-fade-up {
  opacity: 0;
  transform: translateY(60px);
}

.animate-fade-down {
  opacity: 0;
  transform: translateY(-60px);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(60px);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(-60px);
}

.animate-scale-up {
  opacity: 0;
  transform: scale(0.8);
}

.animate-rotate-in {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
}

.animate-3d-flip {
  opacity: 0;
  transform: perspective(1000px) rotateX(45deg);
}

/* Glass card for animations */
.animate-glass-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

/* Process flow animations */
.animate-process-item {
  opacity: 0;
  transform: translateX(-30px);
}

.animate-process-line {
  width: 0;
  transform-origin: left;
}

/* Architecture diagram animations */
.animate-arch-box {
  opacity: 0;
  transform: scale(0.8);
}

.animate-arch-connector {
  height: 0;
  width: 0;
}

/* Timeline animations */
.animate-timeline-item {
  opacity: 0;
  transform: translateX(-50px);
}


/* Roadmap phase */
.animate-roadmap-phase {
  opacity: 0;
  transform: translateY(30px);
}

.animate-roadmap-connector {
  width: 0;
}

/* Service card */
.animate-service-card {
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
}

/* Feature list */
.animate-feature-item {
  opacity: 0;
  transform: translateX(-20px);
}

/* Solution card */
.animate-solution-card {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

/* Stats counter */
.animate-stat-number {
  opacity: 0;
  transform: translateY(20px);
}

/* Glitch text effect */
.glitch-text {
  position: relative;
  color: #fff;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: #00e07a;
  animation: glitch-1 0.3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
  color: #0078d4;
  animation: glitch-2 0.3s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(2px); }
  40% { transform: translateX(-2px); }
  60% { transform: translateX(1px); }
  80% { transform: translateX(-1px); }
}

/* Pulse glow effect */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 224, 122, 0.25);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 224, 122, 0.4);
  }
}

/* Floating animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

/* Border flow animation */
.border-flow {
  position: relative;
  overflow: hidden;
}

.border-flow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e07a, transparent);
  animation: border-flow 2s linear infinite;
}

@keyframes border-flow {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Stagger delay classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }

/* Process Analysis Section */
.process-analysis-section {
  position: relative;
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.process-step::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 100%;
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(0, 224, 122, 0.5), transparent);
}

.process-step:last-child::before {
  display: none;
}

.process-step-number {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  background: rgba(0, 224, 122, 0.1);
  border: 2px solid rgba(0, 224, 122, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #00e07a;
  font-size: 1.2rem;
}

.process-step-content h4 {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 0.5rem;
}

.process-step-content p {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.process-step-issues {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 0.25rem;
}

.process-step-issues h5 {
  color: #ff4444;
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 0.5rem;
}

.process-step-issues ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-step-issues li {
  color: #ffaaaa;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.process-step-issues li::before {
  content: '!';
  position: absolute;
  left: 0;
  color: #ff4444;
  font-weight: 700;
}

/* Architecture Section */
.architecture-section {
  position: relative;
  padding: 0;
  overflow: visible;
  transform-style: preserve-3d;
  perspective: 2000px;
}

.arch-sticky-wrap {
  height: 200vh;
  position: relative;
}

.arch-sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Architecture Split Layout (nfinite-style) */
.arch-split {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.arch-intro {
  flex: 1;
  max-width: 480px;
}

.arch-intro-heading {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.arch-accent {
  color: #00e07a;
}

.arch-intro-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.arch-legend {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.arch-legend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
}

.arch-legend-bar {
  display: block;
  width: 40px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}

.arch-legend-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}

/* Particle Stack Visualization */
.arch-3d-stack {
  flex: 1;
  position: relative;
  min-height: 420px;
  transform-style: preserve-3d;
  perspective: 1500px;
}

#arch-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.arch-cards-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  transform-style: preserve-3d;
}

.arch-3d-layer {
  position: relative;
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.5s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.arch-3d-layer.revealed {
  opacity: 1;
  pointer-events: auto;
}

.arch-3d-layer.revealed:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px) translateZ(20px) rotateX(1deg);
}

.arch-3d-layer-1.revealed:hover { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.04); }
.arch-3d-layer-2.revealed:hover { box-shadow: 0 4px 20px rgba(0, 224, 122, 0.15), inset 0 0 20px rgba(0, 224, 122, 0.04); }
.arch-3d-layer-3.revealed:hover { box-shadow: 0 4px 20px rgba(255, 204, 0, 0.15), inset 0 0 20px rgba(255, 204, 0, 0.04); }
.arch-3d-layer-4.revealed:hover { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.04); }

/* Layer detail on hover */
.arch-3d-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.arch-3d-layer.revealed:hover .arch-3d-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.75rem;
}

.arch-3d-layer.revealed:hover {
  z-index: 10;
}

.arch-3d-detail p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.arch-3d-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  margin-right: 0.4rem;
  margin-bottom: 0.3rem;
}

.arch-3d-layer-1 {
  border-left: 3px solid #00d4ff;
}

.arch-3d-layer-2 {
  border-left: 3px solid #00e07a;
}

.arch-3d-layer-3 {
  border-left: 3px solid #ffcc00;
}

.arch-3d-layer-4 {
  border-left: 3px solid #a855f7;
}

.arch-3d-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.arch-3d-sub {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

/* Architecture options */
.arch-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 4rem 0 6rem;
}

.arch-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.arch-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.arch-option.selected {
  background: rgba(0, 224, 122, 0.06);
  border-color: rgba(0, 224, 122, 0.25);
}

.arch-option h4 {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-option p {
  color: #888888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.arch-option ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arch-option li {
  color: #cccccc;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.arch-option li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
}

/* Technology Roadmap Section */
.roadmap-section {
  position: relative;
}

.roadmap-timeline {
  position: relative;
  padding-left: 80px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #00e07a, #0078d4, #7800d4);
  border-radius: 2px;
}

.roadmap-phase {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 50px;
}

.roadmap-phase:last-child {
  margin-bottom: 0;
}

.roadmap-phase::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: rgba(0, 224, 122, 0.15);
  border: 3px solid #00e07a;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 224, 122, 0.4);
}

.roadmap-phase-icon {
  position: absolute;
  left: -68px;
  top: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.roadmap-content {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-content:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roadmap-header h4 {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.roadmap-period {
  background: rgba(0, 224, 122, 0.1);
  border: 1px solid rgba(0, 224, 122, 0.25);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  color: #00e07a;
}

.roadmap-goals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.roadmap-goals li {
  color: #a0a0a0;
  font-size: 0.8rem;
  line-height: 1.4;
  padding-left: 1rem;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.roadmap-goals li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  margin-top: 2px;
}

.roadmap-goals li strong {
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .roadmap-timeline {
    padding-left: 60px;
  }
  
  .roadmap-phase {
    padding-left: 35px;
  }
  
  .roadmap-phase::before {
    left: -40px;
    width: 12px;
    height: 12px;
  }
  
  .roadmap-phase-icon {
    left: -54px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .roadmap-content {
    padding: 0.75rem 1rem;
  }
  
  .roadmap-header h4 {
    font-size: 0.9rem;
  }
  
  .roadmap-goals li {
    font-size: 0.75rem;
  }
}

/* Services Section */
.services-section {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 224, 122, 0.4), rgba(0, 136, 255, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(0, 224, 122, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: #00e07a;
}

.service-card h3 {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #888888;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  color: #cccccc;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00e07a;
  font-weight: 700;
}

/* CRM Section */
.crm-section {
  position: relative;
}

.crm-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .crm-overview {
    grid-template-columns: 1fr;
  }
}

.crm-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crm-feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.crm-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.crm-feature-icon {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 224, 122, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #00e07a;
}

.crm-feature-content h4 {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.crm-feature-content p {
  color: #888888;
  font-size: 0.85rem;
  line-height: 1.5;
}

.crm-stats {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
}

.crm-stats-title {
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 224, 122, 0.2);
}

.crm-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.crm-stat-item:last-child {
  border-bottom: none;
}

.crm-stat-label {
  color: #888888;
  font-size: 0.85rem;
}

.crm-stat-value {
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

/* Optimization Section */
.optimization-section {
  position: relative;
}

.optimization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.optimization-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.optimization-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

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

.optimization-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 224, 122, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #00e07a;
}

.optimization-card h4 {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
}

.optimization-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.optimization-metric {
  text-align: center;
}

.optimization-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00e07a;
  font-family: "JetBrains Mono", monospace;
}

.optimization-metric-label {
  font-size: 0.7rem;
  color: #888888;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

/* Solutions Section */
.solutions-section {
  position: relative;
}

.solutions-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

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

.solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.solution-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 224, 122, 0.1), rgba(0, 136, 255, 0.1));
  border-bottom: 1px solid rgba(0, 224, 122, 0.2);
}

.solution-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.solution-badge {
  background: rgba(0, 224, 122, 0.2);
  border: 1px solid rgba(0, 224, 122, 0.25);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  color: #00e07a;
}

.solution-title {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.solution-subtitle {
  color: #888888;
  font-size: 0.85rem;
}

.solution-body {
  padding: 1.5rem;
}

.solution-description {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.solution-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.solution-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cccccc;
}

.solution-feature i {
  color: #00e07a;
  font-size: 0.75rem;
}

.solution-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.3);
  border-radius: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  color: #0078d4;
}

/* Print styles */
@media print {
  .matrix-rain,
  .cursor-glow,
  .main-navigation,
  .hero-3d-canvas {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}
