/* ═══════════════════════════════════════════════
   ENA Innovation – Corporate Website Styles
   Multi-page version with dropdown navigation
   Brand colors: Charcoal (#2B2B2B) + Red (#CC2029)
   ═══════════════════════════════════════════════ */

:root {
  --color-primary: #1A1A2E;
  --color-primary-light: #252545;
  --color-accent: #CC2029;
  --color-accent-dark: #A81B22;
  --color-accent-light: #E8353D;
  --color-dark: #111827;
  --color-body: #374151;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-light: #F3F4F6;
  --color-lighter: #F9FAFB;
  --color-white: #FFFFFF;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.25rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 4rem;
  /* 64px – section spacing */
  --space-5xl: 5rem;
  /* 80px – large section spacing */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .05), 0 2px 4px rgba(0, 0, 0, .03);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, .06), 0 4px 10px rgba(0, 0, 0, .04);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .08);
  --shadow-2xl: 0 25px 60px rgba(0, 0, 0, .10);
  --transition: 0.4s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-family);
}

/* ═══════════════ CONTAINER ═══════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ═══════════════ TYPOGRAPHY ═══════════════ */
.text-accent {
  color: var(--color-accent);
}

.section-tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: 2rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header .section-tag {
  padding-left: 0;
}

.section-header .section-tag::before {
  display: none;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--color-muted);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204, 32, 41, .25);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}

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

.btn--white {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-lighter);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

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

/* ═══════════════ TOP BAR ═══════════════ */
.top-bar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, .7);
  font-size: 0.75rem;
  line-height: 1;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__social a {
  color: rgba(255, 255, 255, .6);
  transition: color .2s ease;
  display: flex;
  align-items: center;
}

.top-bar__social a:hover {
  color: var(--color-white);
}

.top-bar__info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar__info a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
  font-size: 0.75rem;
}

.top-bar__info a:hover {
  color: var(--color-white);
}

.top-bar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .2);
}

.top-bar .lang-switcher {
  gap: 4px;
}

.top-bar .lang-btn {
  font-size: 0.7rem;
  padding: 3px 8px;
  color: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  border-radius: 4px;
}

.top-bar .lang-btn:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .4);
}

.top-bar .lang-btn.active,
.top-bar .lang-btn--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.top-bar .lang-btn.active:hover,
.top-bar .lang-btn--active:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ═══════════════ HEADER ═══════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.header__logo-img {
  height: 46px;
  width: auto;
  filter: contrast(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.nav__link:hover {
  color: var(--color-accent);
  background: rgba(204, 32, 41, .05);
}

.nav__link--cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  margin-left: var(--space-sm);
}

.nav__link--cta:hover {
  background: var(--color-accent-dark) !important;
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav__link--dropdown svg {
  transition: var(--transition);
}

/* ── Dropdown ── */
.nav__dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown-menu--wide {
  min-width: 520px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.nav__dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown:hover .nav__link--dropdown svg {
  transform: rotate(180deg);
}

.dropdown-menu__label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
  margin-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.dropdown-menu__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu__link:hover {
  background: rgba(204, 32, 41, .05);
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Social Icons (inline in nav) */
.nav__social {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: var(--space-sm);
}

.nav__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  transition: var(--transition);
}

.nav__social-link:hover {
  color: var(--color-accent);
  background: rgba(204, 32, 41, .06);
}

.nav__social-link svg {
  width: 18px;
  height: 18px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-sm);
  background: var(--color-lighter);
  border-radius: var(--radius-md);
  padding: 2px;
  border: 1px solid var(--color-border);
}

.lang-btn {
  padding: 0.3rem 0.5rem;
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--color-dark);
  background: var(--color-white);
}

.lang-btn--active {
  color: var(--color-white);
  background: var(--color-accent);
  box-shadow: 0 1px 3px rgba(204, 32, 41, .25);
}

.lang-btn--active:hover {
  color: var(--color-white);
  background: var(--color-accent);
}

/* ═══════════════ PAGE HERO (inner pages) ═══════════════ */
.page-hero {
  padding: calc(76px + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(160deg, #F8F9FC 0%, #FFFFFF 40%, #FFF5F5 100%);
  position: relative;
  overflow: hidden;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .5;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .section-tag {
  margin-bottom: var(--space-md);
}

.page-hero__title {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.page-hero__desc {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  max-width: 600px;
  line-height: 1.8;
}

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

.page-hero--center .page-hero__desc {
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-muted);
  transition: var(--transition);
}

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

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════ HERO (home) ═══════════════ */
.hero {
  position: relative;
  padding: calc(76px + var(--space-4xl)) 0 var(--space-5xl);
  background: linear-gradient(160deg, #F8F9FC 0%, #FFFFFF 40%, #FFF5F5 100%);
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .6;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-height: 480px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: rgba(204, 32, 41, .08);
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: var(--space-xl);
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Visual – Glassmorphism Sphere */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__sphere {
  position: relative;
  width: 420px;
  height: 420px;
}

/* Dot grid bg */
.sphere__dotgrid {
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(circle, rgba(26, 26, 46, .06) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 50%;
  opacity: .6;
}

/* Connection SVG */
.sphere__connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Glass layers */
.sphere__glass {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(204, 32, 41, .08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sphere__glass--outer {
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15) 0%, rgba(204, 32, 41, .03) 50%, rgba(26, 26, 46, .04) 100%);
  animation: sphere-rotate 30s linear infinite;
  box-shadow:
    inset 0 0 60px rgba(204, 32, 41, .04),
    0 0 80px rgba(204, 32, 41, .06);
}

.sphere__glass--mid {
  inset: 15%;
  background: linear-gradient(225deg, rgba(255, 255, 255, .2) 0%, rgba(204, 32, 41, .05) 100%);
  border-color: rgba(204, 32, 41, .1);
  animation: sphere-rotate 22s linear infinite reverse;
  box-shadow: inset 0 0 40px rgba(204, 32, 41, .05);
}

.sphere__glass--inner {
  inset: 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, .3) 0%, rgba(204, 32, 41, .08) 100%);
  border-color: rgba(204, 32, 41, .12);
  animation: sphere-rotate 15s linear infinite;
  box-shadow: inset 0 0 30px rgba(204, 32, 41, .06);
}

/* Core */
.sphere__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow:
    0 0 40px rgba(204, 32, 41, .3),
    0 0 80px rgba(204, 32, 41, .15);
  animation: core-pulse 3s ease-in-out infinite;
  z-index: 5;
}

/* Light trails */
.sphere__trail {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.sphere__trail--1 {
  inset: -5%;
  border-top-color: rgba(204, 32, 41, .35);
  border-right-color: rgba(204, 32, 41, .15);
  animation: trail-spin 8s linear infinite;
  filter: blur(1px);
}

.sphere__trail--2 {
  inset: 5%;
  border-bottom-color: rgba(26, 26, 46, .3);
  border-left-color: rgba(26, 26, 46, .12);
  animation: trail-spin 12s linear infinite reverse;
  filter: blur(0.5px);
}

.sphere__trail--3 {
  inset: 12%;
  border-top-color: rgba(204, 32, 41, .2);
  border-left-color: rgba(204, 32, 41, .08);
  animation: trail-spin 6s linear infinite;
}

/* Floating particles */
.sphere__particle {
  position: absolute;
  border-radius: 50%;
  z-index: 4;
}

.sphere__particle--1 {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  top: 8%;
  left: 45%;
  animation: particle-float-1 7s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(204, 32, 41, .4);
}

.sphere__particle--2 {
  width: 5px;
  height: 5px;
  background: #1A1A2E;
  top: 25%;
  right: 5%;
  animation: particle-float-2 9s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(26, 26, 46, .3);
}

.sphere__particle--3 {
  width: 6px;
  height: 6px;
  background: var(--color-accent-light);
  bottom: 15%;
  left: 8%;
  animation: particle-float-3 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(204, 32, 41, .3);
}

.sphere__particle--4 {
  width: 4px;
  height: 4px;
  background: rgba(26, 26, 46, .5);
  top: 60%;
  right: 2%;
  animation: particle-float-1 11s ease-in-out infinite 2s;
}

.sphere__particle--5 {
  width: 7px;
  height: 7px;
  background: rgba(204, 32, 41, .5);
  bottom: 5%;
  right: 35%;
  animation: particle-float-2 6s ease-in-out infinite 1s;
  box-shadow: 0 0 8px rgba(204, 32, 41, .25);
}

.sphere__particle--6 {
  width: 3px;
  height: 3px;
  background: rgba(26, 26, 46, .4);
  top: 15%;
  left: 10%;
  animation: particle-float-3 10s ease-in-out infinite 3s;
}

/* Tech icon nodes */
.sphere__node {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(204, 32, 41, .1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  z-index: 6;
}

.sphere__node--ai {
  top: 18%;
  left: 5%;
  color: #8B5CF6;
  animation: node-float 5s ease-in-out infinite;
}

.sphere__node--health {
  top: 25%;
  right: 2%;
  color: #10B981;
  animation: node-float 6s ease-in-out infinite 1.5s;
}

.sphere__node--data {
  bottom: 15%;
  right: 15%;
  color: #3B82F6;
  animation: node-float 7s ease-in-out infinite 3s;
}

/* Keyframes */
@keyframes sphere-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes core-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 40px rgba(204, 32, 41, .3), 0 0 80px rgba(204, 32, 41, .15);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 50px rgba(204, 32, 41, .4), 0 0 100px rgba(204, 32, 41, .2);
  }
}

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

@keyframes particle-float-1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(8px, -12px);
  }

  50% {
    transform: translate(-4px, -20px);
  }

  75% {
    transform: translate(12px, -8px);
  }
}

@keyframes particle-float-2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-10px, 8px);
  }

  66% {
    transform: translate(6px, -14px);
  }
}

@keyframes particle-float-3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  30% {
    transform: translate(14px, 6px);
  }

  60% {
    transform: translate(-8px, 12px);
  }
}

@keyframes node-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ═══════════════ SOLUTION CARDS (3-card home) ═══════════════ */
.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-5xl);
  position: relative;
  z-index: 1;
}

.solution-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-xl);
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
  cursor: default;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
  text-decoration: none;
  color: inherit;
}

.solution-card:hover {
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}

.solution-card__icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  transition: var(--transition);
}

/* Pastel color variants */
.solution-card--blue .solution-card__icon {
  background: rgba(59, 130, 246, .08);
  color: #3B82F6;
}

.solution-card--green .solution-card__icon {
  background: rgba(16, 185, 129, .08);
  color: #10B981;
}

.solution-card--purple .solution-card__icon {
  background: rgba(139, 92, 246, .08);
  color: #8B5CF6;
}

.solution-card:hover .solution-card__icon {
  transform: scale(1.08);
}

.solution-card__title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.solution-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.solution-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.solution-card__features li {
  font-size: var(--font-size-sm);
  color: var(--color-body);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.solution-card--blue .solution-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: rgba(59, 130, 246, .2);
  border: 2px solid #3B82F6;
  border-radius: 50%;
}

.solution-card--green .solution-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: rgba(16, 185, 129, .2);
  border: 2px solid #10B981;
  border-radius: 50%;
}

.solution-card--purple .solution-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: rgba(139, 92, 246, .2);
  border: 2px solid #8B5CF6;
  border-radius: 50%;
}

.solution-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: var(--transition);
  margin-top: auto;
}

.solution-card:hover .solution-card__cta {
  gap: var(--space-md);
}

/* ═══════════════ TECH STACK (home) ═══════════════ */
.tech-stack {
  padding: var(--space-5xl) 0;
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.tech-stack::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(204, 32, 41, .08) 0%, transparent 70%);
  pointer-events: none;
}

.tech-stack .section-tag {
  color: rgba(255, 255, 255, .45);
}

.tech-stack .section-tag::before {
  background: rgba(255, 255, 255, .25);
}

.tech-stack .section-title {
  color: var(--color-white);
}

.tech-stack .section-desc {
  color: rgba(255, 255, 255, .55);
}

.tech-stack__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.tech-stack__card {
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
}

.tech-stack__card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.tech-stack__card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.tech-stack__card--ai .tech-stack__card-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, .2), rgba(59, 130, 246, .15));
  color: #A78BFA;
}

.tech-stack__card--scale .tech-stack__card-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, .2), rgba(6, 182, 212, .15));
  color: #34D399;
}

.tech-stack__card--code .tech-stack__card-icon {
  background: linear-gradient(135deg, rgba(251, 146, 60, .2), rgba(244, 63, 94, .15));
  color: #FB923C;
}

.tech-stack__card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.tech-stack__card p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
}

/* Tech logo badges */
.tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  min-width: 100px;
}

.tech-logo:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  transform: translateY(-3px);
}

.tech-logo__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--font-size-xl);
  font-weight: 800;
}

.tech-logo__icon--react {
  background: rgba(97, 218, 251, .12);
  color: #61DAFB;
}

.tech-logo__icon--dotnet {
  background: rgba(81, 43, 212, .12);
  color: #512BD4;
}

.tech-logo__icon--python {
  background: rgba(55, 118, 171, .12);
  color: #3776AB;
}

.tech-logo__icon--postgres {
  background: rgba(51, 103, 145, .12);
  color: #336791;
}

.tech-logo__icon--docker {
  background: rgba(36, 150, 237, .12);
  color: #2496ED;
}

.tech-logo__icon--azure {
  background: rgba(0, 120, 212, .12);
  color: #0078D4;
}

.tech-logo span {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
}

/* ═══════════════ PRODUCT CARDS ═══════════════ */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(204, 32, 41, .25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 32, 41, .07);
  color: var(--color-accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.product-card__name {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.product-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: var(--transition);
}

.product-card:hover .product-card__cta {
  gap: var(--space-md);
}

/* ═══════════════ PRODUCT DETAIL PAGE ═══════════════ */
.product-section {
  padding: var(--space-4xl) 0;
}

.product-section:nth-child(even) {
  background: var(--color-lighter);
}

.product-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.product-section__inner--reverse {
  direction: rtl;
}

.product-section__inner--reverse>* {
  direction: ltr;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(204, 32, 41, .2);
  box-shadow: var(--shadow-sm);
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 32, 41, .07);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.feature-item p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0;
}

/* Feature visual placeholder (icon grid) */
.feature-visual {
  background: linear-gradient(135deg, rgba(204, 32, 41, .04), rgba(26, 26, 46, .04));
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-visual__item {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: var(--transition);
}

.feature-visual__item:hover {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

/* Module cards for detail pages */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.module-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition);
}

.module-card:hover {
  border-color: rgba(204, 32, 41, .2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.module-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 32, 41, .06);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-md);
}

.module-card h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.module-card p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

/* ═══════════════ ABOUT ═══════════════ */
.about {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.about__story h3,
.about__focus h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-md);
}

.about__story h3::after,
.about__focus h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.about__story p {
  color: var(--color-body);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about__focus-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about__focus-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-lighter);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.about__focus-item:hover {
  border-color: rgba(204, 32, 41, .2);
  background: #FFF7F7;
}

.about__focus-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.about__focus-item strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.about__focus-item p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-lighter);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.value-card:hover {
  border-color: rgba(204, 32, 41, .2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(204, 32, 41, .08);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.value-card h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

/* ═══════════════ SERVICES ═══════════════ */
.services {
  padding: var(--space-5xl) 0;
  background: var(--color-lighter);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-detail {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: var(--transition);
}

.service-detail:hover {
  border-color: rgba(204, 32, 41, .2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.service-detail__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 32, 41, .06);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.service-detail h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-dark);
}

.service-detail>p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-detail__list li {
  font-size: var(--font-size-sm);
  color: var(--color-body);
  padding-left: 1.25rem;
  position: relative;
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ═══════════════ TECH ═══════════════ */
.tech {
  padding: var(--space-5xl) 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.tech .section-tag {
  color: rgba(255, 255, 255, .5);
}

.tech .section-tag::before {
  background: rgba(255, 255, 255, .3);
}

.tech .section-title {
  color: var(--color-white);
}

.tech .section-desc {
  color: rgba(255, 255, 255, .6);
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.tech-card {
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.tech-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(204, 32, 41, .4);
  transform: translateY(-4px);
}

.tech-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 32, 41, .15);
  color: var(--color-accent-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.tech-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.tech-card p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
}

/* ═══════════════ CONTACT ═══════════════ */
.contact {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact__details {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-body);
  font-size: var(--font-size-sm);
}

.contact__detail svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact__form {
  background: var(--color-lighter);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(204, 32, 41, .08);
}

.form-group textarea {
  resize: vertical;
}

.contact__form--success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.form-success {
  padding: var(--space-2xl);
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: #22C55E;
  margin: 0 auto var(--space-lg);
}

.form-success h3 {
  font-size: var(--font-size-xl);
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--color-muted);
}

/* ═══════════════ BLOG CAROUSEL (homepage) ═══════════════ */
.blog-carousel-section {
  padding: var(--space-2xl) 0;
  background: var(--color-lighter);
  overflow: hidden;
}

.blog-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.blog-carousel__header .section-title {
  margin-bottom: 0;
}

.blog-carousel__title-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-lg);
}

.blog-carousel__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 4px;
}

.blog-carousel__all {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: var(--transition);
  white-space: nowrap;
}

.blog-carousel__all:hover {
  gap: var(--space-sm);
}

.blog-carousel__wrapper {
  padding-left: max(var(--space-xl), calc((100vw - 1200px) / 2 + var(--space-xl)));
}

/* Carousel Card */
.blog-swiper .swiper-slide {
  height: auto;
}

.blog-carousel-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 240px;
  padding: var(--space-xl);
}

.blog-carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .08);
}

/* Carousel Navigation */
.blog-swiper-prev,
.blog-swiper-next {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  padding: 0;
  font-family: inherit;
}

.blog-swiper-prev:hover,
.blog-swiper-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(204, 32, 41, .25);
}

.blog-swiper-prev.swiper-button-disabled,
.blog-swiper-next.swiper-button-disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

.blog-carousel-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-carousel-card__badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(204, 32, 41, .06);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  align-self: flex-start;
}

.blog-carousel-card__title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-carousel-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-carousel-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  opacity: .7;
  margin-top: auto;
}

/* ═══════════════ BLOG LIST PAGE ═══════════════ */
.blog-list {
  padding: var(--space-4xl) 0;
}

.blog-filter {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.blog-filter__btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition);
}

.blog-filter__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(204, 32, 41, .04);
}

.blog-filter__btn--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.blog-filter__btn--active:hover {
  background: #b01c24;
  border-color: #b01c24;
  color: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .08);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

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

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  opacity: .3;
}

.blog-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(204, 32, 41, .06);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.blog-card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  flex: 1;
}

.blog-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  opacity: .7;
  margin-top: auto;
}

/* Compact card (related posts) */
.blog-card--compact .blog-card__body {
  padding: var(--space-lg);
}

.blog-card--compact .blog-card__title {
  font-size: var(--font-size-base);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.blog-pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition);
}

.blog-pagination__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.blog-pagination__btn--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ═══════════════ BLOG POST PAGE ═══════════════ */
.blog-post-section {
  padding: var(--space-4xl) 0;
}

.blog-post {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post__hero-image {
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.blog-post__hero-image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.blog-post__content {
  font-size: var(--font-size-base);
  color: var(--color-body);
  line-height: 1.9;
}

.blog-post__content h2,
.blog-post__content h3 {
  font-weight: 700;
  color: var(--color-dark);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.blog-post__content h2 {
  font-size: var(--font-size-xl);
}

.blog-post__content h3 {
  font-size: var(--font-size-lg);
}

.blog-post__content p {
  margin-bottom: var(--space-lg);
}

.blog-post__content ul,
.blog-post__content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.blog-post__content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.blog-post__content strong {
  color: var(--color-dark);
}

.blog-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.blog-post__tag {
  padding: 0.3rem 0.875rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-lighter);
  border-radius: var(--radius-lg);
}

/* Related posts */
.blog-related {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.blog-related__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-xl);
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ═══════════════ REFERENCES ═══════════════ */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.reference-card {
  background: var(--color-lighter);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: var(--transition);
}

.reference-card:hover {
  border-color: rgba(204, 32, 41, .2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reference-card__logo {
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  position: relative;
  overflow: hidden;
}

.reference-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Fallback: show initials when image is missing */
.reference-card__logo img[src=""],
.reference-card__logo img:not([src]) {
  display: none;
}

.reference-card__logo::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-muted);
  z-index: 0;
}

.reference-card__logo img {
  position: relative;
  z-index: 1;
  background: var(--color-white);
}

.reference-card__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-dark);
}

/* ═══════════════ CTA BANNER ═══════════════ */
.cta-banner {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2A2A4A 100%);
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(255, 255, 255, .6);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-lg);
}

.cta-banner .btn {
  margin: 0 var(--space-sm);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--color-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: rgba(255, 255, 255, .5);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .5);
  transition: var(--transition);
}

.footer__social a:hover {
  background: rgba(204, 32, 41, .2);
  color: var(--color-accent-light);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__links h4 {
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer__links a {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, .5);
  padding: var(--space-xs) 0;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent-light);
}

.footer__bottom {
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
}

/* ═══════════════ REVEAL ═══════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  :root {
    --space-4xl: 3rem;
    --space-5xl: 4rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .solution-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .tech__grid,
  .tech-stack__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-section__inner {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-xl);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: var(--transition);
    opacity: 0;
    align-items: stretch;
  }

  .nav.active {
    transform: translateX(0);
    opacity: 1;
  }

  .nav__link {
    width: 100%;
    text-align: left;
    padding: var(--space-md);
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: var(--space-sm);
    text-align: center;
  }

  .hamburger {
    display: block;
  }

  /* Mobile dropdown */
  .nav__dropdown {
    width: 100%;
  }

  .nav__link--dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-lighter);
    border-radius: var(--radius-md);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .dropdown-menu--wide {
    display: flex;
    flex-direction: column;
    min-width: auto;
  }

  .nav__dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: var(--space-sm);
  }

  .hero {
    padding-top: calc(76px + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .solution-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

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

  .values {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tech__grid,
  .tech-stack__grid {
    grid-template-columns: 1fr;
  }

  .tech-logos {
    gap: var(--space-md);
  }

  .tech-logo {
    min-width: 80px;
    padding: var(--space-md);
  }

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

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .page-hero__title {
    font-size: var(--font-size-3xl);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--font-size-2xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

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