/* ==========================================================================
   Maciej Szeląg — Web Developer Portfolio
   Modern, High-Performance, Mobile-First Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Deep Obsidian & Cyber Glow */
  --bg-base: #060911;
  --bg-surface: #0c1220;
  --bg-card: rgba(16, 24, 40, 0.75);
  --bg-card-hover: rgba(22, 34, 56, 0.85);
  --bg-glass: rgba(12, 18, 32, 0.8);
  --bg-subtle: rgba(255, 255, 255, 0.03);

  /* Primary & Accent Gradients */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  --gradient-accent-subtle: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);

  /* Text Colors */
  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(56, 189, 248, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Spacing */
  --container-max: 1200px;
  --container-padding: clamp(1.25rem, 5vw, 2.5rem);
  --section-gap: clamp(4.5rem, 9vw, 8rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow Lights */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.45;
}

body::before {
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 80%);
}

body::after {
  top: 45%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 80%);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-cyan);
  color: #000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  position: relative;
  z-index: 1;
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGreen 2s infinite ease-in-out;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation (Desktop & Mobile)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 9, 17, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(6, 9, 17, 0.92);
  border-bottom-color: rgba(56, 189, 248, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-badge {
  transform: rotate(5deg) scale(1.05);
}

.brand-text {
  white-space: nowrap;
}

.brand-text span {
  color: var(--accent-cyan);
}

/* Desktop Nav Links */
.desktop-nav {
  display: none;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Actions: Language Switch & CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #060911;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.lang-btn:hover:not(.active) {
  color: var(--text-white);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  z-index: 1001;
  transition: all var(--transition-fast);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile Header & Responsive Brand Logo Controls
   -------------------------------------------------------------------------- */
@media (max-width: 580px) {
  .nav-container {
    height: 4.25rem;
    padding-inline: 1rem;
    gap: 0.5rem;
  }

  .site-header .brand-logo {
    gap: 0;
    flex-shrink: 0;
  }

  /* Hide name in navbar on mobile phones to prevent two-line wrapping and keep badge pristine */
  .site-header .brand-text {
    display: none;
  }

  .site-header .brand-badge {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .lang-btn {
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
  }

  .header-actions .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .menu-toggle {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
  }

  .mobile-nav-drawer {
    top: 4.25rem;
    height: calc(100dvh - 4.25rem);
  }
}

@media (min-width: 581px) and (max-width: 820px) {
  .site-header .brand-logo {
    font-size: 1.05rem;
    gap: 0.6rem;
  }

  .site-header .brand-text {
    white-space: nowrap;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  height: calc(100dvh - 4.5rem);
  background: rgba(6, 9, 17, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem var(--container-padding);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link:focus {
  color: var(--accent-cyan);
  padding-left: 0.5rem;
}

.mobile-nav-link svg {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mobile-nav-link:hover svg {
  opacity: 1;
  transform: translateX(4px);
}

.mobile-nav-footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   5. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Key Highlights Chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  transition: all var(--transition-fast);
}

.chip-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-white);
}

.chip-icon {
  color: var(--accent-cyan);
}

/* Hero Visual Card / Interactive Tech Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-code-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.hero-code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.hero-code-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.topbar-file {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.hero-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.metric-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   7. Featured Work (Checkmat BJJ Plymouth) - Live Screenshot Frame
   -------------------------------------------------------------------------- */
.work-section {
  position: relative;
}

.project-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr;
  transition: all var(--transition-normal);
}

@media (min-width: 960px) {
  .project-feature-card {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.project-feature-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
}

.project-visual {
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.14) 0%, rgba(15, 23, 42, 0.9) 60%, #060911 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  min-height: 380px;
}

@media (min-width: 960px) {
  .project-visual {
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }
}

.project-badge-overlay {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  z-index: 2;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tag-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-location {
  background: rgba(0, 0, 0, 0.75);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-gym {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Browser Mockup Window */
.browser-mockup-frame {
  width: 100%;
  border-radius: var(--radius-md);
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.project-feature-card:hover .browser-mockup-frame {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 35px 65px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.45);
}

.browser-chrome-bar {
  height: 38px;
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 0.75rem;
  user-select: none;
}

.browser-traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.browser-url-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.2rem 1rem;
  font-size: 0.72rem;
  font-family: var(--font-body);
  color: #94a3b8;
  max-width: 260px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-url-pill svg {
  color: #10b981;
  flex-shrink: 0;
}

.browser-tab-indicator {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: var(--radius-sm);
}

.browser-screenshot-viewport {
  position: relative;
  background: #020617;
  overflow: hidden;
  line-height: 0;
}

.browser-screenshot-viewport img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-feature-card:hover .browser-screenshot-viewport img {
  transform: scale(1.025);
}

.viewport-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 20%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.project-details {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.bullet-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.bullet-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 0.15rem;
}

.bullet-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   8. Why Me / Value For Your Business
   -------------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent-subtle);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.15);
}

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

.benefit-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.benefit-card:hover .benefit-icon-box {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.05);
}

.benefit-icon-box svg {
  width: 1.6rem;
  height: 1.6rem;
}

.benefit-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.benefit-card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.about-card-wrap::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.about-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-fast);
}

.pillar-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.pillar-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.pillar-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.pillar-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Developer Stack Showcase */
.stack-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
}

.stack-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stack-title svg {
  color: var(--accent-cyan);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.stack-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.stack-tag:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-white);
  transform: translateY(-2px);
}

.commitment-card {
  padding: 1.25rem;
  background: var(--gradient-accent-subtle);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.commitment-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.commitment-card p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Coverage Section (Local & UK-Wide)
   -------------------------------------------------------------------------- */
.coverage-section {
  position: relative;
}

.coverage-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--accent-cyan);
  color: #060911;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .coverage-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.coverage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.coverage-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.coverage-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.coverage-region {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.coverage-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.city-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.coverage-card:hover .city-tag {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.2);
}

/* --------------------------------------------------------------------------
   11. Blog & Insights Section (English Only)
   -------------------------------------------------------------------------- */
.blog-section {
  position: relative;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
}

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

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

.blog-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.tag-security {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-ai {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.blog-read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
  color: var(--accent-cyan);
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.blog-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.blog-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.blog-card:hover .blog-chip {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.2);
}

.blog-read-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-read-action {
  gap: 0.75rem;
}

/* Blog Article Modal Reader */
.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.article-modal.active {
  opacity: 1;
  visibility: visible;
}

.article-modal-container {
  background: #0b111e;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.article-modal.active .article-modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  transform: rotate(90deg);
}

.article-full-body {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
}

.article-full-body h3 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-full-body p {
  margin-bottom: 1rem;
}

.article-full-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-full-body li {
  margin-bottom: 0.5rem;
}

.article-full-body .key-takeaway-box {
  background: var(--gradient-accent-subtle);
  border-left: 4px solid var(--accent-cyan);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-block: 1.5rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   12. Local FAQ (Accordion)
   -------------------------------------------------------------------------- */
.faq-section {
  position: relative;
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-white);
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--accent-cyan);
}

.faq-icon-arrow {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent-cyan);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-panel-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   13. Contact Section (Anti-Bot Protected, No Form)
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
}

.contact-card-box {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(12, 18, 32, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(25px);
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.contact-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.contact-header {
  margin-bottom: 2.5rem;
}

.contact-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* Bot Protection Security Notice */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 2rem;
}

.security-badge svg {
  width: 1rem;
  height: 1rem;
}

/* Direct Contact Action Buttons */
.contact-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .contact-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-channel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.contact-channel-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.channel-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.channel-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.channel-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.channel-value-protected {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  word-break: break-all;
}

.channel-btn-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.channel-btn-group .btn {
  flex: 1;
}

/* Social & Location Bar */
.contact-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item svg {
  color: var(--accent-cyan);
  width: 1.15rem;
  height: 1.15rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060b;
  padding-block: 3.5rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   15. Toast Notification (Copy to clipboard)
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  color: var(--text-white);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  color: var(--accent-emerald);
  width: 1.25rem;
  height: 1.25rem;
}

/* --------------------------------------------------------------------------
   16. Scroll Animations & Reveal Helper Classes
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.will-reveal {
  opacity: 0;
  transform: translateY(24px);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.will-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. Dedicated Blog Page & Single Article Reader (blog.php & article.php)
   -------------------------------------------------------------------------- */
.blog-hero-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Breadcrumbs */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb-bar a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-bar a:hover {
  color: var(--accent-cyan);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--text-white);
  font-weight: 600;
}

.blog-lang-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-top: 1rem;
}

/* Blog Filter & Search Bar */
.blog-controls-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .blog-controls-bar {
    flex-direction: row;
    align-items: center;
  }
}

.blog-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-tab-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.blog-tab-btn.active, .blog-tab-btn:hover {
  background: var(--accent-cyan);
  color: #060911;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.blog-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  color: var(--text-secondary);
  min-width: 240px;
  transition: border-color var(--transition-fast);
}

.blog-search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.blog-search-box input {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.blog-search-box input::placeholder {
  color: var(--text-muted);
}

/* Blog Cards Grid */
.blog-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

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

.blog-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog-article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
}

.blog-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  display: block;
}

.blog-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-article-card:hover .blog-card-image-wrap img {
  transform: scale(1.05);
}

.blog-image-overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
  z-index: 2;
}

.blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 0.85rem;
  transition: color var(--transition-fast);
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--accent-cyan);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Blog Author Spotlight Box */
.blog-author-box {
  margin-top: 4.5rem;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(12, 18, 32, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-author-box {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
}

.author-avatar-wrap {
  flex-shrink: 0;
}

.author-details h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.author-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

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

/* Single Article Reader Page (article.php) */
.article-single-section {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.article-container {
  max-width: 860px;
}

.article-hero-header {
  margin-bottom: 2.25rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.article-main-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.byline-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

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

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

/* Cover Image Wrap */
.article-cover-wrap {
  margin-bottom: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #020617;
  box-shadow: var(--shadow-lg);
}

.article-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-cover-caption {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Article Body Typography */
.article-content-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-lead-text {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.article-content-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.article-content-body p {
  margin-bottom: 1.5rem;
}

.article-callout-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin-block: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.article-callout-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.article-callout-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.article-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-bullet-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
}

.article-bullet-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Action Bar */
.article-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Next Article Card */
.next-article-box {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.next-article-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.next-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-normal);
}

@media (min-width: 600px) {
  .next-article-card {
    flex-direction: row;
    align-items: center;
  }
}

.next-article-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
}

.next-article-thumb {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* Article CTA Bottom Box */
.article-cta-box {
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.95) 0%, rgba(12, 18, 32, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.article-cta-box h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.article-cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* =========================================================================
   19. 404 Not Found Page Styles
   ========================================================================= */
.error-404-section {
  padding-top: clamp(6.5rem, 12vw, 9.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Breadcrumb Navigation */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb-bar a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-bar a:hover {
  color: var(--accent-cyan);
}

.breadcrumb-sep {
  color: var(--border-medium);
  user-select: none;
}

.breadcrumb-current {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* 404 Hero Card */
.error-404-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.08);
}

.error-404-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #ec4899, transparent);
}

/* 404 Status Badge */
.error-badge {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.pulse-error {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

/* Huge, Spectacular 404 Number */
.error-404-number {
  font-family: var(--font-heading);
  font-size: clamp(6.5rem, 20vw, 14rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 35%, #ec4899 70%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.4)) drop-shadow(0 0 75px rgba(236, 72, 153, 0.25));
  margin: 0.75rem 0 1.5rem 0;
  user-select: none;
  display: block;
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.error-404-card:hover .error-404-number {
  transform: scale(1.025);
  filter: drop-shadow(0 0 45px rgba(56, 189, 248, 0.55)) drop-shadow(0 0 95px rgba(236, 72, 153, 0.35));
}

.error-404-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.error-404-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

/* 404 Action Button Row */
.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  align-items: center;
}

/* Suggested Articles (Recovery Area) */
.error-404-suggested {
  margin-top: 4.5rem;
}


