﻿*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-display);
  background: var(--bg-dark);
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Selection styling */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: var(--primary-color);
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  background: rgba(255, 100, 100, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  bottom: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background:
    url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: var(--primary-color);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
  color: var(--text-dark);
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

code {
  color: #c02d76;
}

/* ============================================
   Modern Minimalist Design System
   Inspired by dylanbrouwer.design
   ============================================ */

:root {
  /* Core colors - Dark theme with accent */
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-100: #1a1a1a;
  --color-gray-200: #2a2a2a;
  --color-gray-300: #3a3a3a;
  --color-gray-500: #888888;
  --color-gray-700: #cccccc;
  --color-accent:#ce2eceb4; /* #8b5cf6; */
  --color-accent-light:#e979e9b4; /* #a78bfa; */
  --color-accent-dark: #ca1ecab4; /*#7c3aed;*/
  --gradient-primary: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #a78bfa 50%,
    #c4b5fd 100%
  );
  --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);

  /* Dark theme specific */
  --bg-dark: #0a0a0a;
  --bg-dark-elevated: #141414;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Legacy support */
  --primary-color:  #ec37ecb4;/*#8b5cf6;*/
  --secondary-color:#ce2eceb4; /*#a78bfa;*/
  --text-dark: #000000;
  --text-light: #919191;
  --bg-light: #f8f8f8;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

/* ============================================
   Navigation Bar Styles - Modern Minimal
   ============================================ */

.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  z-index: 1000;
  transition:
    transform 0.5s var(--ease-out-expo),
    background 0.3s ease;
  width: 100%;
}

/* Hide navbar on scroll down */
.navbar-main.nav-hidden {
  transform: translateY(-100%);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: filter 0.3s ease;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.navbar-brand:hover {
  filter: brightness(1.2);
}

.navbar-brand:hover .logo-icon img {
  filter: drop-shadow(0 0 6px #00e5ff56) drop-shadow(0 0 12px #00bbd475);
}

.navbar-brand:hover .logo-text {
  color: #f0f0f0;
  text-shadow: 0 0 8px #00bbd475, 0 0 15px #00bbd4ab;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin-top: -11px;
  margin-bottom: -11px;
  transition: transform 0.4s var(--ease-out-expo);
}

.navbar-brand:hover .logo-icon {
  animation: wingFlap 1.2s ease-in-out;
}

@keyframes wingFlap {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(20deg); }
  20% { transform: rotate(-20deg); }
  30% { transform: rotate(20deg); }
  40% { transform: rotate(-20deg); }
  50% { transform: rotate(20deg); }
  60% { transform: rotate(-20deg); }
  70% { transform: rotate(20deg); }
  80% { transform: rotate(-20deg); }
  90% { transform: rotate(20deg); }
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.navbar-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.navbar-menu .nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  overflow: hidden;
}

.navbar-menu .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent-dark),
    var(--color-accent-light)
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.navbar-menu .nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-menu .nav-link:hover {
  color: var(--text-primary);
}

.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.navbar-toggler-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s var(--ease-out-expo);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.main-content {
  margin-top: 70px;
  flex: 1;
  width: 100%;
}

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

  .navbar-toggler {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark-elevated);
    border-bottom: 1px solid var(--border-dark);
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
    width: 100%;
  }

  .navbar-menu.show {
    max-height: 300px;
  }

  .navbar-menu .nav-link {
    padding: 1.25rem 2rem;
    width: 100%;
    border-bottom: 1px solid var(--border-dark);
    text-align: left;
    color: var(--text-secondary);
  }

  .navbar-menu .nav-link::before {
    display: none;
  }

  .navbar-menu .nav-link:hover {
    background: var(--color-gray-200);
    color: var(--text-primary);
  }
}

/* Hero Section - Dark Theme */
.hero-section {
  background: var(--bg-dark);
  color: var(--text-primary);
  padding: 180px 20px 120px;
  text-align: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Subtle gradient overlay */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      ellipse at 30% 0%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 0%,
      rgba(167, 139, 250, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Circuit board lines */
.hero-circuit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.circuit-trace {
  stroke: var(--text-primary);
  stroke-opacity: 0.07;
  stroke-width: 1;
  fill: none;
}

.circuit-dot {
  fill: var(--bg-dark);
  stroke: var(--text-primary);
  stroke-opacity: 0.15;
  stroke-width: 1;
}

.circuit-pulse {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120 1000;
  stroke-dashoffset: 1120;
  filter: url(#glow);
}

.pulse-1 { animation: circuitPulse 4s ease-in-out 0s infinite; }
.pulse-2 { animation: circuitPulse 5s ease-in-out 1.2s infinite; }
.pulse-3 { animation: circuitPulse 4.5s ease-in-out 2s infinite; }
.pulse-4 { animation: circuitPulse 5.5s ease-in-out 0.8s infinite; }
.pulse-5 { animation: circuitPulse 3.5s ease-in-out 2.5s infinite; }
.pulse-6 { animation: circuitPulse 4s ease-in-out 1.5s infinite; }
.pulse-7 { animation: circuitPulse 4.5s ease-in-out 3s infinite; }
.pulse-8 { animation: circuitPulse 5s ease-in-out 0.5s infinite; }

@keyframes circuitPulse {
  0% {
    stroke-dashoffset: 1120;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  80% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* Dimmer circuit variant for non-hero sections */
.circuit-dim .circuit-trace {
  stroke-opacity: 0.04;
}

.circuit-dim .circuit-dot {
  stroke-opacity: 0.08;
}

.circuit-dim .circuit-pulse {
  stroke-width: 1.5;
  filter: url(#glow-dim);
}

.circuit-dim .pulse-1,
.circuit-dim .pulse-2,
.circuit-dim .pulse-3,
.circuit-dim .pulse-4 {
  opacity: 0.5;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1.7rem;
  line-height: 1.15;
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-accent-light) 25%,
    var(--color-white) 50%,
    var(--color-accent-light) 75%,
    var(--color-white) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  /* Blur reveal animation */
  animation:
    blurReveal 1.2s var(--ease-out-expo) forwards,
    gradientShift 4s ease-in-out infinite;
  animation-delay: 0s, 1.2s;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.2));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 3rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: blurReveal 1.2s var(--ease-out-expo) 0.15s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: blurReveal 1.2s var(--ease-out-expo) 0.3s both;
}

/* Blur reveal keyframe */
@keyframes blurReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Gradient shift animation for hero title */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Buttons - Dark Theme Style with Gradients */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-accent-dark) 0%,
    var(--color-accent) 50%,
    var(--color-accent-light) 100%
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  border: none;
  border-radius: 12px;
  color: var(--color-white);
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-accent-light) 0%,
    var(--color-white) 100%
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary:hover {
  color: var(--color-accent-dark) !important;
  background-position: 100% 50%;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  border: 1px solid var(--text-primary);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-accent-light) 0%,
    var(--color-white) 100%
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.btn-secondary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary:hover {
  color: var(--color-accent-dark) !important;
  border-color: var(--color-accent);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--color-accent);
  border: none;
  border-radius: 12px;
  color: var(--color-white);
  padding: 1.25rem 3rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.btn-cta:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-cta:hover {
  color: var(--bg-dark) !important;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Section Titles - Dark Theme Typography */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Projects Section */
.projects-section {
  padding: var(--space-xl) 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.projects-section .container {
  padding: 0 2rem;
}

.project-showcase {
  display: grid;
  width:90%;
  margin: 0 auto 4rem auto;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  background: var(--bg-dark-elevated);
  overflow: hidden;
}

.project-showcase:hover .project-image img {
  transform: scale(1.03);
}

.project-image {
  overflow: hidden;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-info {
  padding: 3rem 4rem;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

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

.project-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  background: rgba(139, 92, 246, 0.1);
  letter-spacing: 0.02em;
}

/* Slide-in animations for project section */
html.js-enabled .project-image.reveal {
  opacity: 0;
  transform: translateX(-100px);
  filter: blur(8px);
}

html.js-enabled .project-info.reveal {
  opacity: 0;
  transform: translateX(100px);
  filter: blur(8px);
}

html.js-enabled .project-image.reveal.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

html.js-enabled .project-info.reveal.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

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

  .project-image {
    max-height: 250px;
  }

  .project-info {
    padding: 1.5rem;
  }

  html.js-enabled .project-image.reveal {
    transform: translateY(40px);
  }

  html.js-enabled .project-info.reveal {
    transform: translateY(40px);
  }
}

/* Features Section - Dark Theme */
.features-section {
  padding: var(--space-xl) 20px;
  background: var(--bg-dark-elevated);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: left;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent-dark) 0%,
    var(--color-accent) 50%,
    var(--color-accent-light) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(139, 92, 246, 0.1);
  border-color: var(--color-gray-300);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-gray-300);
}

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

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

/* About Section - Dark Theme */
.about-section {
  padding: var(--space-xl) 20px;
  background: var(--bg-dark);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

.placeholder-image {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.placeholder-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.placeholder-image:hover::before {
  opacity: 0.05;
}

.placeholder-image:hover {
  transform: scale(1.02);
  border-color: var(--color-accent);
}

/* CTA Section - Dark Purple Theme */
.cta-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
  color: var(--color-white);
  padding: var(--space-xl) 20px;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(124, 58, 237, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.3),
    transparent
  );
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn-cta {
  background: linear-gradient(
    135deg,
    var(--color-accent-dark) 0%,
    var(--color-accent) 100%
  );
  color: var(--color-white);
  border: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.cta-section .btn-cta::before {
  background: linear-gradient(
    135deg,
    var(--color-accent-light) 0%,
    var(--color-white) 100%
  );
}

.cta-section .btn-cta:hover {
  color: var(--color-accent-dark);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
  transform: translateY(-3px);
}

/* Responsive Design - General */
@media (max-width: 768px) {
  .hero-section {
    padding: 140px 20px 80px;
    min-height: 70vh;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .placeholder-image {
    height: 300px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-cta {
    width: 100%;
    text-align: center;
  }

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

  .local-card-featured {
    max-width: 100%;
    border-radius: 10px;
  }

  .container {
    padding: 0 1.5rem;
  }

  section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
}

/* ============================================
   Footer Styles - Dark Theme
   ============================================ */

.footer-main {
  background: var(--bg-dark-elevated);
  border-top: 1px solid var(--border-dark);
  color: var(--text-primary);
  padding: 4rem 20px 2rem;
  margin-top: auto;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-logo-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.footer-logo-text {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.footer-logo-text .ampersand {
  font-size: 1.1rem;
  opacity: 0.8;
  font-style: italic;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-dark);
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
  color: var(--text-primary);
}

.social-link svg {
  stroke: var(--text-primary);
  width: 18px;
  height: 18px;
  transition: stroke 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(
    135deg,
    var(--color-accent-dark),
    var(--color-accent)
  );
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.social-link:hover svg {
  stroke: var(--color-white);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
  display: inline-block;
  font-size: 0.9rem;
}

.footer-list li a:hover {
  color: var(--color-accent);
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-legal .separator {
  color: var(--border-dark);
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

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

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-legal .separator {
    display: none;
  }
}

/* ============================================
   Modal Animations
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* ============================================
   Consultation Modal Styles
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.562);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-container {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--primary-color);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-light);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-header {
  text-align: center;
  flex-direction: column;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 1.75rem;
  color: var(--text-light);
  margin: 0 0 0.5rem 0;
}

.modal-header p {
  color: var(--text-light);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  font-family: inherit;
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-container .validation-message {
  color: #dc2626;
  font-size: 0.8rem;
}

.btn-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-message svg {
  color: #10b981;
  margin-bottom: 1rem;
}

.success-message h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.success-message p {
  color: var(--text-light);
  margin: 0 0 1.5rem 0;
}

.success-message .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.success-message .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 576px) {
  .modal-container {
    padding: 1.5rem;
  }

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

  .modal-header h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   Services Section - Dark Theme
   ============================================ */

.local-focus-section {
  padding: var(--space-xl) 20px;
  background: var(--bg-dark);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.local-badge-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.local-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-dark);
  transition: all 0.4s var(--ease-out-expo);
}

.local-badge:hover {
  background: linear-gradient(
    135deg,
    var(--color-accent-dark),
    var(--color-accent)
  );
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.local-badge:hover .badge-text,
.local-badge:hover .badge-icon {
  color: var(--color-white);
}

.local-badge:hover .badge-icon svg {
  stroke: var(--color-white);
}

.badge-icon {
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.badge-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  transition: stroke 0.4s ease;
}

.badge-text {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

.local-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.local-card {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
}

.local-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-accent-dark) 0%,
    var(--color-accent-light) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.local-card:hover::before {
  opacity: 0.05;
}

.local-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--color-gray-300);
}

.local-card-featured {
  grid-column: 1 / -1;
  max-width: 500px;
  justify-self: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 100%);
  position: relative;
  overflow: hidden;
}

.local-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 150px;
  background: radial-gradient(
    ellipse at center top,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(124, 58, 237, 0.1) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.local-card-featured::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.4),
    transparent
  );
  z-index: 1;
}

.local-card-featured .local-card-header {
  background: transparent;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  z-index: 1;
}

.local-card-featured .local-card-header h3 {
  color: var(--color-white);
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-accent-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.local-card-featured .local-icon {
  color: var(--color-accent-light);
}

.local-card-featured .local-icon svg {
  stroke: var(--color-accent-light);
}

.local-card-featured .local-card-content {
  position: relative;
  z-index: 1;
}

.local-card-featured .local-description {
  color: rgba(255, 255, 255, 0.8);
}

.local-card-featured .highlight-item {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(139, 92, 246, 0.15);
}

.local-card-featured .highlight-item:hover {
  color: var(--color-white);
}

.local-card-featured .highlight-icon {
  color: var(--color-accent-light);
}

.local-card-featured:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(139, 92, 246, 0.15);
}

.local-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--color-gray-200);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  z-index: 1;
}

.local-icon {
  color: var(--text-primary);
}

.local-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.local-card-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.local-card-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.local-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.local-partners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  transition: all 0.3s ease;
}

.partner-item:hover {
  background: var(--orange-light);
  transform: translateX(5px);
}

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

.partner-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.partner-info strong {
  color: var(--text-dark);
  font-size: 1rem;
}

.partner-location {
  color: var(--text-light);
  font-size: 0.85rem;
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  border-top: 3px solid var(--primary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.3;
}

.community-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

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

.highlight-item:hover {
  padding-left: 0.5rem;
  color: var(--text-primary);
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--color-accent-light);
  font-weight: 500;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Delivery Area Section */
.delivery-area {
  margin-top: 4rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.delivery-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.delivery-icon {
  font-size: 2.5rem;
}

.delivery-description {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.delivery-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.area-badge {
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.area-badge:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.delivery-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg-white);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-light);
  position: relative;
}

.map-icon {
  font-size: 3rem;
}

.map-placeholder p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.store-marker {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Local Focus Responsive */
@media (max-width: 992px) {
  .local-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

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

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

@media (max-width: 576px) {
  .local-badge-container {
    flex-direction: column;
    align-items: stretch;
  }

  .local-badge {
    justify-content: center;
  }

  .delivery-area {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   Modern Animations & Motion Effects
   ============================================ */

/* Text blur reveal animation */
@keyframes blurReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

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

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll-triggered animation classes */
/* Elements are visible by default, JS adds .js-enabled to html */
.reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    filter 0.8s var(--ease-out-expo);
}

/* Only hide when JS is enabled and ready */
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
}

html.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger children animations - only when JS enabled */
html.js-enabled .stagger-children .reveal:nth-child(1) {
  transition-delay: 0s;
}
html.js-enabled .stagger-children .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
html.js-enabled .stagger-children .reveal:nth-child(3) {
  transition-delay: 0.2s;
}
html.js-enabled .stagger-children .reveal:nth-child(4) {
  transition-delay: 0.3s;
}
html.js-enabled .stagger-children .reveal:nth-child(5) {
  transition-delay: 0.4s;
}
html.js-enabled .stagger-children .reveal:nth-child(6) {
  transition-delay: 0.5s;
}

/* Word-by-word reveal (for JS enhancement) */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    filter 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

.word-reveal.visible .word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Line animation */
.line-reveal {
  position: relative;
  overflow: hidden;
}

.line-reveal::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent-dark),
    var(--color-accent-light)
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out-expo);
}

.line-reveal:hover::after,
.line-reveal.visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Smooth image reveal */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.8s var(--ease-out-expo);
  z-index: 1;
}

.image-reveal.visible::before {
  transform: scaleX(0);
}

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

  .reveal,
  .word-reveal .word {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
