/* =========================
   1. VARIABILE GLOBALE
   ========================= */
:root {
  color-scheme: dark;

  /* Brand — constant across themes */
  --brand: #7c5cff;
  --brand-2: #35d1ff;
  --accent: #7c5cff;
  --accent-2: #35d1ff;

  /* Surfaces & text — dark theme (default).
     Compact rgba() on purpose: keeps these definitions distinct from the
     spaced rgba() literals used throughout the file. */
  --bg: #0b1020;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.1);
  --surface-3: rgba(255,255,255,0.04);
  --hover: rgba(255,255,255,0.07);
  --text: rgba(255,255,255,0.92);
  --text-strong: rgba(255,255,255,0.85);
  --muted: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.14);
  --border-soft: rgba(255,255,255,0.08);

  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --max: 1100px;
}

/* =========================
   LIGHT THEME
   ========================= */
:root[data-theme="light"] {
  color-scheme: light;

  /* Deepen the accents so they stay legible as text on light surfaces.
     Gradients keep the vivid brand literals, so the brand look is preserved. */
  --accent: #5b3df0;
  --accent-2: #0a8fb0;

  --bg: #f5f6fc;
  --surface: rgba(255,255,255,0.75);
  --surface-2: #ffffff;
  --surface-3: rgba(17,22,42,0.035);
  --hover: rgba(17,22,42,0.05);
  --text: #141a2e;
  --text-strong: #141a2e;
  --muted: rgba(20,26,46,0.62);
  --border: rgba(17,22,42,0.1);
  --border-soft: rgba(17,22,42,0.06);

  --shadow: 0 14px 40px rgba(17,22,42,0.12);
}

/* =========================
   2. RESET & BAZĂ
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

/* =========================
   3. LAYOUT - CONTAINER
   ========================= */
.container {
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   4. NAVIGAȚIE
   ========================= */
.nav-wrap {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background:
    radial-gradient(
      1000px 500px at 20% 10%,
      rgba(124, 92, 255, 0.3),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 0%,
      rgba(53, 209, 255, 0.22),
      transparent 60%
    ),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: 180ms ease;
}

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

.nav-links a.active {
  color: var(--text);
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   5. BUTOANE
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  transition: 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--hover);
}

.btn.primary {
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.95),
    rgba(53, 209, 255, 0.85)
  );
  color: #070a13;
  font-weight: 700;
  text-wrap: nowrap;
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.icon-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 180ms ease;
}

.icon-btn:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

/* =========================
   6. HAMBURGER MENU
   ========================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 999px;
  transition: 180ms ease;
}

.icon-btn[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.icon-btn[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.icon-btn[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   7. MOBILE PANEL
   ========================= */
.mobile-panel {
  padding: 14px 0 18px 0;
}

.mobile-panel .panel {
  border: 1px solid var(--border);
  background: var(--surface-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-panel .panel > a {
  display: flex;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
  transition: 180ms ease;
}

.mobile-panel .panel > a:last-child {
  border-bottom: 0;
}

.mobile-panel .panel > a:hover {
  background: var(--surface);
  color: var(--text);
}

.mobile-panel .panel > a.active {
  color: var(--text);
  background: rgba(124, 92, 255, 0.18);
}

/* Language switcher, theme toggle and CTA live inside the burger panel on
   mobile, where the top bar keeps only the logo and the burger. */
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--surface-3);
}

.panel-actions .panel-cta {
  display: inline-flex;
  margin-left: auto;
}

/* =========================
   8. CONȚINUT PRINCIPAL
   ========================= */
main {
  min-height: calc(100vh - 73px);
  padding-top: 73px;
}

/* =========================
   9. SECȚIUNI
   ========================= */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  scroll-margin-top: 80px;
}

.section-content {
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.section-white {
  background: #fff;
  color: #222;
}

.section-crem {
  background: #f8f5f0;
  color: #222;
}

.section-accent {
  background: var(--accent);
  color: #fff;
}

.section-accent2 {
  background: var(--accent-2);
  color: #fff;
}

.section-servicii {
  background: linear-gradient(135deg, #7c5cff 0%, #35d1ff 100%);
  color: #fff;
}

.section-despre {
  background: #2d1a5a;
  color: #fff;
}

/* =========================
   DESPRE SECTION - ADVANCED
   ========================= */
.despre-section {
  position: relative;
  min-height: 100vh;
  padding: 40px 0 60px;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(124, 92, 255, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(53, 209, 255, 0.2) 0%,
      transparent 50%
    ),
    var(--bg);
  overflow: hidden;
}

.despre-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.despre-header {
  margin-bottom: 60px;
  text-align: center;
}

.despre-title {
  margin: 0 0 16px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(40px);
}

.despre-title.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.despre-subtitle {
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(30px);
}

.despre-subtitle.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-gradient {
  background: linear-gradient(135deg, #7c5cff 0%, #35d1ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.despre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

/* Images Stack */
.despre-images {
  position: relative;
  height: 500px;
  opacity: 0;
}

.despre-images.animated {
  animation: fadeIn 1s ease forwards;
}

.image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-card {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.image-card-1 {
  top: 0;
  left: 0;
  width: 70%;
  height: 65%;
  z-index: 2;
}

.image-card-2 {
  right: 0;
  bottom: 0;
  width: 65%;
  height: 55%;
  z-index: 1;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.1),
    rgba(53, 209, 255, 0.1)
  );
  pointer-events: none;
}

/* Content */
.despre-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 100%;
  overflow: hidden;
}

.content-block {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content-block.animated {
  animation: slideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-block:hover {
  background: var(--surface-2);
  border-color: rgba(124, 92, 255, 0.3);
  transform: translateX(0) scale(1.02);
}

.content-block h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--accent);
}

.content-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-block strong {
  color: var(--accent-2);
}

/* Stats */
.despre-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  opacity: 0;
  transform: translateY(30px);
}

.despre-stats.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-item {
  padding: 24px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.15),
    rgba(53, 209, 255, 0.1)
  );
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 16px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(124, 92, 255, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c5cff, #35d1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number::after {
  content: "%";
}

.stat-label {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.stat-desc {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Marquee */
.despre-marquee {
  margin-bottom: 60px;
  padding: 20px 0;
  overflow: hidden;
  opacity: 0;
}

.despre-marquee.animated {
  animation: fadeIn 0.8s ease forwards;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.marquee-track .dot {
  color: var(--accent);
}

/* Footer */
.despre-footer {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.despre-footer.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.tech-tag {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.despre-cta {
  font-size: 1.2rem;
  color: var(--muted);
}

.despre-cta strong {
  color: var(--accent-2);
}

/* Keyframes */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   SERVICII SECTION - MODERN
   ========================= */
.servicii-section {
  position: relative;
  min-height: 100vh;
  padding: 40px 0 60px;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(124, 92, 255, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(53, 209, 255, 0.2) 0%,
      transparent 50%
    ),
    var(--bg);
  overflow: hidden;
}

.servicii-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.servicii-header {
  margin-bottom: 60px;
  text-align: center;
}

.servicii-title {
  margin: 0 0 16px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(40px);
}

.servicii-title.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.servicii-subtitle {
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(30px);
}

.servicii-subtitle.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Servicii Grid */
.servicii-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  align-items: start;
  gap: 30px;
  margin-bottom: 60px;
}

.servicii-grid:has(.servicii-card.expanded) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.servicii-grid:has(.servicii-card.expanded) .servicii-card.expanded {
  grid-column: 1 / -1;
  grid-row: 1;
}

.servicii-grid:has(.servicii-card.expanded) .servicii-card:not(.expanded) {
  grid-row: 2;
}

/* Servicii Card */
.servicii-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicii-card.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.servicii-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(124, 92, 255, 0.3);
  border-color: rgba(124, 92, 255, 0.4);
}

.servicii-card.expanded {
  order: -1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
  height: auto;
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 36px 70px -18px rgba(124, 92, 255, 0.35);
  animation: cardExpand 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.servicii-card.expanded:hover {
  transform: translateY(0);
}

.servicii-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.servicii-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicii-card:hover .servicii-card-image img {
  transform: scale(1.1);
}

.servicii-card.expanded .servicii-card-image {
  height: 100%;
}

.servicii-card.expanded .servicii-card-image img {
  transform: scale(1.04);
}

.servicii-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(11, 16, 32, 0.8) 100%
  );
  pointer-events: none;
}

.servicii-card-content {
  padding: 28px;
}

.servicii-expand-row {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.servicii-expand-label {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.servicii-expand-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.14);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

/* Draw the arrow from an SVG mask (filled with currentColor) instead of a text
   glyph, so it is centered geometrically and follows the theme color. */
.servicii-expand-arrow span {
  display: none;
}

.servicii-expand-arrow::after {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2012h15M13%206l6%206-6%206'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2012h15M13%206l6%206-6%206'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
}

.servicii-expand-arrow:hover {
  background: rgba(124, 92, 255, 0.24);
  border-color: rgba(124, 92, 255, 0.65);
}

.servicii-card.expanded .servicii-expand-arrow {
  transform: rotate(90deg);
}

.servicii-card-content h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.servicii-card-content p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

.servicii-features li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-soft);
}

.servicii-features li:first-child {
  border-top: none;
}

.servicii-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #7c5cff, #35d1ff);
  border-radius: 50%;
}

.servicii-card-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    margin-top 0.3s ease;
}

.servicii-card.expanded .servicii-card-extra {
  max-height: 520px;
  opacity: 1;
  margin-top: 18px;
}

.servicii-features-extra {
  margin-top: 14px;
}

@keyframes cardExpand {
  from {
    opacity: 0.85;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Servicii Marquee */
.servicii-marquee {
  margin-bottom: 60px;
  padding: 20px 0;
  overflow: hidden;
  opacity: 0;
}

.servicii-marquee.animated {
  animation: fadeIn 0.8s ease forwards;
}

/* Servicii CTA */
.servicii-cta {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.servicii-cta.animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.servicii-cta p {
  margin: 0 0 20px;
  font-size: 1.3rem;
  color: var(--muted);
}

.servicii-cta .btn.primary {
  padding: 0 32px;
  height: 52px;
  font-size: 1rem;
}

/* Responsive Servicii */
@media (max-width: 1024px) {
  .servicii-section {
    padding: 90px 0 70px;
    min-height: auto;
  }

  .servicii-container {
    padding: 0 20px;
    max-width: 100%;
  }

  .servicii-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
  }

  .servicii-grid:has(.servicii-card.expanded) {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .servicii-grid:has(.servicii-card.expanded) .servicii-card.expanded,
  .servicii-grid:has(.servicii-card.expanded) .servicii-card:not(.expanded) {
    grid-column: auto;
    grid-row: auto;
  }

  .servicii-grid .servicii-card:last-child {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }

  .servicii-card {
    height: auto;
    opacity: 1 !important;
    transform: none !important;
  }

  .servicii-card.expanded {
    order: 0;
    grid-template-columns: 1fr;
  }

  .servicii-card.expanded .servicii-card-image {
    height: 220px;
  }

  .servicii-card.animated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .servicii-title {
    font-size: 3rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .servicii-title.animated {
    animation: none !important;
  }

  .servicii-subtitle {
    opacity: 1 !important;
    transform: none !important;
  }

  .servicii-subtitle.animated {
    animation: none !important;
  }

  .servicii-header {
    margin-bottom: 40px;
  }

  .servicii-cta {
    opacity: 1 !important;
    transform: none !important;
  }

  .servicii-cta.animated {
    animation: none !important;
  }

  .servicii-marquee {
    opacity: 1 !important;
    margin-bottom: 40px;
  }

  .servicii-marquee.animated {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .servicii-section {
    min-height: auto;
    align-items: flex-start;
    padding: 28px 0 44px;
  }

  .servicii-container {
    padding: 0 16px;
  }

  .servicii-title {
    font-size: 2.2rem;
  }

  .servicii-subtitle {
    font-size: 1rem;
  }

  .servicii-grid {
    max-width: 100%;
    gap: 20px;
  }

  .servicii-card {
    border-radius: 18px;
  }

  .servicii-card.expanded .servicii-card-image {
    height: 190px;
  }

  .servicii-card-image {
    height: 160px;
  }

  .servicii-card-content {
    padding: 18px;
  }

  .servicii-card-icon {
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .servicii-card-icon svg {
    width: 32px;
    height: 32px;
  }

  .servicii-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .servicii-card-content p {
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.5;
  }

  .servicii-features li {
    font-size: 0.85rem;
    padding: 6px 0 6px 20px;
  }

  .servicii-features li::before {
    width: 6px;
    height: 6px;
  }

  .servicii-cta p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .servicii-cta .btn.primary {
    padding: 0 24px;
    height: 44px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .servicii-section {
    min-height: auto;
    align-items: flex-start;
    padding: 20px 0 32px;
  }

  .servicii-container {
    padding: 0 12px;
  }

  .servicii-title {
    font-size: 1.3rem;
  }

  .servicii-subtitle {
    font-size: 0.9rem;
  }

  .servicii-header {
    margin-bottom: 30px;
  }

  .servicii-grid {
    gap: 16px;
    margin-bottom: 40px;
  }

  .servicii-card {
    border-radius: 14px;
  }

  .servicii-card-image {
    height: 130px;
  }

  .servicii-card.expanded .servicii-card-image {
    height: 150px;
  }

  .servicii-card-content {
    padding: 14px;
  }

  .servicii-card-icon {
    padding: 8px;
    margin-bottom: 10px;
  }

  .servicii-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .servicii-card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .servicii-card-content p {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .servicii-features li {
    font-size: 0.8rem;
    padding: 5px 0 5px 18px;
  }

  .servicii-marquee {
    margin-bottom: 30px;
    padding: 15px 0;
  }

  .servicii-marquee .marquee-track span {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .servicii-cta {
    margin-top: 30px;
    display: block;
  }

  .servicii-cta p {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .servicii-cta .btn.primary {
    padding: 0 20px;
    height: 42px;
    font-size: 0.85rem;
    display: inline-flex;
  }
}

/* Responsive Despre */
@media (max-width: 900px) {
  .despre-section {
    min-height: auto;
    align-items: flex-start;
    padding: 28px 0 44px;
    overflow-x: hidden;
  }

  .despre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .despre-images {
    height: 350px;
    order: -1;
  }

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

  .despre-subtitle {
    font-size: 1.1rem;
  }

  .despre-header {
    margin-bottom: 40px;
  }

  .content-block {
    padding: 22px;
    transform: none;
    opacity: 1;
  }

  .content-block.animated {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .content-block h3 {
    font-size: 1.15rem;
  }

  .despre-marquee {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .despre-section {
    min-height: auto;
    align-items: flex-start;
    padding: 20px 0 32px;
    overflow-x: hidden;
  }

  .despre-container {
    padding: 0 15px;
    overflow: hidden;
  }

  .despre-header {
    margin-bottom: 30px;
  }

  .despre-title {
    font-size: 1.3rem;
    letter-spacing: 0;
  }

  .despre-subtitle {
    font-size: 1rem;
  }

  .despre-grid {
    gap: 30px;
    margin-bottom: 40px;
  }

  .despre-images {
    height: 280px;
  }

  .image-card {
    border-radius: 16px;
  }

  .image-card-1 {
    width: 75%;
    height: 60%;
  }

  .image-card-2 {
    width: 60%;
    height: 50%;
  }

  .despre-content {
    gap: 20px;
    width: 100%;
  }

  .content-block {
    padding: 18px;
    border-radius: 14px;
    transform: none !important;
    opacity: 1 !important;
    width: 100%;
  }

  .content-block h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .content-block p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .despre-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    transform: none !important;
    opacity: 1 !important;
  }

  .stat-item {
    padding: 18px;
    border-radius: 12px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .stat-desc {
    font-size: 0.8rem;
  }

  .despre-marquee {
    margin-bottom: 30px;
    padding: 15px 0;
  }

  .marquee-track {
    gap: 25px;
  }

  .marquee-track span {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .tech-stack {
    gap: 8px;
    margin-bottom: 18px;
  }

  .tech-tag {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .despre-cta {
    font-size: 1rem;
    line-height: 1.6;
  }

  .despre-footer {
    padding: 0 10px;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 46px !important;
  }

  .despre-section {
    min-height: auto;
    align-items: flex-start;
    padding: 16px 0 24px;
  }

  .despre-title {
    font-size: 1.4rem;
  }

  .despre-subtitle {
    font-size: 0.9rem;
  }

  .despre-images {
    height: 220px;
  }

  .content-block {
    padding: 15px;
  }

  .content-block h3 {
    font-size: 1rem;
  }

  .content-block p {
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-item {
    padding: 15px;
  }

  .marquee-track span {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .tech-tag {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .despre-cta {
    font-size: 0.9rem;
  }
}

.section-contact {
  background: #163d4e;
  color: #fff;
}

/* =========================
   10. BANNER
   ========================= */
.banner {
  /* Grows with its content: a fixed 100vh box centers the overflow upward,
     which pushes the first title line under the fixed header. */
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 40px 0 60px;
  background:
    radial-gradient(
      1000px 500px at 20% 10%,
      rgba(124, 92, 255, 0.3),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 0%,
      rgba(53, 209, 255, 0.22),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
}

.banner-flex {
  display: grid !important;
  /* minmax(0, 1fr) locks the columns at 50/50 so a long (e.g. Romanian)
     hero title can't grow its column and squeeze the image. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-text {
  padding: 40px 0;
}

.banner-img {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 500px;
}

.banner-img img {
  width: 80%;
  height: auto;
}

/* =========================
   11. CARDURI SERVICII
   ========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-height: 340px;
  padding: 32px 24px 24px;
  background: #fff;
  color: #222;
  border-radius: 18px;
  box-shadow:
    0 4px 24px rgba(124, 92, 255, 0.08),
    0 1.5px 8px rgba(53, 209, 255, 0.07);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.service-card:hover,
.service-card:focus-within {
  box-shadow:
    0 8px 32px rgba(124, 92, 255, 0.18),
    0 3px 16px rgba(53, 209, 255, 0.13);
  transform: translateY(-2px) scale(1.015);
}

.service-card.expanded {
  z-index: 2;
  background: #f8f5f0;
  color: #222;
  box-shadow:
    0 12px 48px rgba(124, 92, 255, 0.22),
    0 6px 24px rgba(53, 209, 255, 0.18);
  transform: scale(1.03);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #7c5cff;
}

.service-card .card-summary {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #222;
}

.card-toggle {
  padding: 7px 18px;
  margin-bottom: 0;
  background: linear-gradient(90deg, #7c5cff 60%, #35d1ff 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.08);
  cursor: pointer;
  transition: filter 0.18s;
}

.card-toggle:hover,
.card-toggle:focus {
  filter: brightness(1.08);
}

.card-details {
  max-height: 0;
  margin-top: 0;
  font-size: 0.98rem;
  color: #444;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.4, 1.6, 0.4, 1),
    opacity 0.3s;
}

.service-card.expanded .card-details {
  max-height: 300px;
  margin-top: 18px;
  opacity: 1;
}

/* =========================
   12. CONTACT SECTION
   ========================= */
.contact-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 0 60px;
  background: url("../img/contact-bg.jpg") center/cover no-repeat;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 28, 48, 0.82);
}

.contact-container {
  position: relative;
  z-index: 2;
  width: 950px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
  line-height: 1.5;
}

.contact-text-center {
  margin-bottom: 40px;
  text-align: center;
}

.contact-text-center h2 {
  margin: 0 0 16px;
  font-size: 3rem;
}

.contact-text-center p {
  max-width: 1200px;
  margin: 0 auto 20px;
  font-size: 1.08rem;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-col-1 {
  flex: 1 1 280px;
  min-width: 220px;
}

.contact-col-2 {
  flex: 1 1 340px;
  padding: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(53, 209, 255, 0.1);
}

.contact-address-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-address-line:last-child {
  margin-bottom: 0;
}

.contact-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
}

.contact-info {
  color: #fff;
}

.contact-info-title {
  margin-bottom: 2px;
  color: #35d1ff;
  font-weight: 700;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
}

.contact-form-block {
  padding: 32px 28px;
}

.contact-form-block h2 {
  margin: 0 0 24px;
  color: #222;
  font-size: 1.25rem;
}

.contact-form-row {
  margin-bottom: 22px;
}

.contact-form-row label {
  display: block;
  margin-bottom: 6px;
  color: #222;
  font-weight: 500;
}

.contact-form-field {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #222;
  color: #222;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form-field:focus {
  border-color: #35d1ff;
}

textarea.contact-form-field {
  min-height: 80px;
  resize: vertical;
}

.contact-send-btn {
  padding: 12px 32px;
  background: #35d1ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    filter 0.18s,
    transform 0.18s;
}

.contact-send-btn:hover,
.contact-send-btn:focus {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* =========================
   13. UTILITĂȚI
   ========================= */
.mobile-break {
  display: none;
}

/* =========================
   14. MEDIA QUERIES
   ========================= */

/* Desktop: > 1024px */
@media (min-width: 1025px) {
  h1 {
    margin: 0 0 18px;
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .nav-links {
    display: flex;
  }

  .hamburger,
  .icon-btn,
  .mobile-panel {
    display: none !important;
  }
}

/* Tabletă & Mobil: <= 1024px */
@media (max-width: 1024px) {
  .brand {
    min-width: auto;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  /* Moved into the burger panel (.panel-actions) */
  .nav-actions .lang-switch,
  .nav-actions .theme-toggle,
  .nav-actions .btn.primary {
    display: none;
  }

  .hamburger,
  .icon-btn {
    display: inline-flex;
  }

  .icon-btn[aria-expanded="true"] + .mobile-panel {
    display: block;
  }
}

/* Tabletă: <= 900px */
@media (max-width: 900px) {
  .banner-flex {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .banner-text {
    order: 1;
    padding: 24px 30px 0 !important;
  }

  .banner-img {
    order: 2;
    justify-content: center;
    height: auto;
    margin-top: 30px;
  }

  .banner-img img {
    max-width: 420px;
    width: 100%;
    height: auto;
  }

  section {
    min-height: 80vh;
  }

  .contact-content {
    flex-direction: column;
    gap: 24px;
  }

  /* Stacked: the 280px/340px flex-basis would become a minimum HEIGHT and
     leave a large empty strip between the address and the form. */
  .contact-col-1,
  .contact-col-2 {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Carduri: <= 700px */
@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-card {
    min-height: 0;
    padding: 24px 12px 18px;
  }
}

/* Mobil: <= 600px */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  .btn.primary {
    display: none;
  }

  .panel-actions .panel-cta {
    display: inline-flex;
    width: 100%;
    margin-left: 0;
  }

  .banner {
    padding: 30px 0 40px;
  }

  /* Sized by height so it keeps its aspect ratio and stops crowding the edges */
  .banner-img img {
    height: 300px;
    width: auto;
    max-width: 100%;
  }

  .banner-text {
    padding: 0px 20px 0 !important;
  }

  .mobile-break {
    display: block;
    width: 100%;
    height: 0;
  }
}

/* Contact: <= 900px */
@media (max-width: 900px) {
  .contact-section {
    min-height: auto;
    align-items: flex-start;
    padding: 28px 0 44px;
  }

  .contact-text-center h2 {
    font-size: 2.5rem;
  }

  .contact-text-center p {
    font-size: 1rem;
  }
}

/* Contact: <= 600px */
@media (max-width: 600px) {
  .contact-section {
    min-height: auto;
    align-items: flex-start;
    padding: 20px 0 32px;
  }

  .contact-text-center h2 {
    font-size: 1.5rem;
  }

  .contact-text-center p {
    font-size: 0.9rem;
  }

  .contact-info {
    font-size: 0.9rem;
  }

  .contact-info-title {
    font-size: 0.95rem;
  }
}

/* Contact: <= 500px */
@media (max-width: 500px) {
  .contact-section {
    padding: 16px 0 24px;
  }

  .contact-container {
    padding: 0 10px;
  }

  .contact-form-block {
    padding: 22px 14px;
  }

  .contact-text-center h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
  }

  .contact-text-center p {
    font-size: 0.85rem;
  }

  .contact-info {
    font-size: 0.85rem;
  }

  .contact-info-title {
    font-size: 0.9rem;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}

/* =========================
   BANNER ANIMATIONS
   ========================= */
.banner-title {
  margin: 0 0 16px;
  font-size: 3rem;
  font-weight: 800;
  line-height: normal;
  letter-spacing: -1px;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent);
  width: 0;
  animation: typing 1.5s steps(21, end) forwards;
}

.typing-text-2 {
  animation: typing 1.5s steps(23, end) 1.5s forwards;
  border-right-color: var(--accent-2);
}

.typing-text.typed {
  border-right-color: transparent;
}

.banner-desc {
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.banner-fade {
  opacity: 0;
  transform: translateY(20px);
}

.banner-fade.visible {
  animation: bannerFadeIn 0.8s ease forwards;
}

.text-accent {
  color: var(--accent-2);
  font-weight: 600;
}

.banner-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn.secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--border-soft);
  border-color: var(--accent);
}

.banner-img {
  opacity: 0;
  transform: translateX(60px) scale(0.9);
}

.banner-img.visible {
  animation: bannerImageIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes bannerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bannerImageIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Banner responsive */
@media (max-width: 900px) {
  .banner-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }

  .banner-title br {
    display: none;
  }

  .typing-text,
  .typing-text-2 {
    display: block !important;
    white-space: normal !important;
    border-right: none !important;
    width: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .banner-fade {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .banner-img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    padding: 0 20px;
  }

  .banner-cta {
    flex-direction: column;
    gap: 12px;
  }

  .banner-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .banner-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .banner-title br {
    display: none;
  }

  .typing-text,
  .typing-text-2 {
    display: block !important;
    white-space: normal !important;
    border-right: none !important;
    width: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .banner-fade {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .banner-img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    padding: 0 16px;
  }

  .banner-cta {
    margin-top: 24px;
  }
}

/* =========================
   FOOTER SECTION
   ========================= */
.footer-section {
  background:
    radial-gradient(
      ellipse at 20% 100%,
      rgba(124, 92, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(53, 209, 255, 0.1) 0%,
      transparent 50%
    ),
    var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-col h4 {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a,
.footer-col p {
  display: flex;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  height: 32px;
}

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

.footer-icon {
  margin-right: 8px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

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

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

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

  .footer-brand {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .footer-section {
    padding: 40px 0 0;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* =========================
   LEGAL MODALS
   ========================= */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  pointer-events: none;
}

.legal-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.legal-modal {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      600px 300px at 30% 0%,
      rgba(124, 92, 255, 0.12),
      transparent 60%
    ),
    var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.legal-modal-overlay.active .legal-modal {
  transform: translateY(0) scale(1);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
}

.legal-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: 180ms ease;
  line-height: 1;
}

.legal-modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.legal-modal-footer .btn {
  cursor: pointer;
}

.legal-modal-body {
  flex: 1;
  overflow-y: auto;
  /* Stop the wheel from continuing onto the page once the body hits its end */
  overscroll-behavior: contain;
  padding: 24px 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-modal-body h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal-modal-body h3:first-of-type {
  margin-top: 12px;
}

.legal-modal-body p {
  margin: 0 0 12px;
}

.legal-modal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-modal-body ul li {
  margin-bottom: 6px;
}

.legal-modal-body a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.legal-modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* Scrollbar styling for modal */
.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .legal-modal {
    max-height: 90vh;
    border-radius: 14px;
  }

  .legal-modal-header {
    padding: 18px 20px 14px;
  }

  .legal-modal-body {
    padding: 18px 20px;
  }

  .legal-modal-footer {
    padding: 14px 20px 18px;
  }
}

/* =========================
   SHARED SECTION SCAFFOLD (Process / Results / FAQ)
   ========================= */
.proces-section,
.rezultate-section,
.faq-section {
  position: relative;
  min-height: 100vh;
  padding: 60px 0;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(124, 92, 255, 0.22) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(53, 209, 255, 0.18) 0%,
      transparent 50%
    ),
    var(--bg);
  overflow: hidden;
}

.proces-container,
.rezultate-container,
.faq-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.proces-header,
.rezultate-header,
.faq-header {
  margin-bottom: 56px;
  text-align: center;
}

.proces-title,
.rezultate-title,
.faq-title {
  margin: 0 0 16px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.proces-subtitle,
.rezultate-subtitle,
.faq-subtitle {
  font-size: 1.4rem;
}

/* Animation scaffold for the new sections */
.proces-section [data-animate],
.rezultate-section [data-animate],
.faq-section [data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

.proces-section [data-animate="fade-in"],
.rezultate-section [data-animate="fade-in"],
.faq-section [data-animate="fade-in"] {
  transform: none;
}

.proces-section [data-animate].animated,
.rezultate-section [data-animate].animated,
.faq-section [data-animate].animated {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.proces-section [data-animate="fade-in"].animated,
.rezultate-section [data-animate="fade-in"].animated,
.faq-section [data-animate="fade-in"].animated {
  animation: fadeIn 0.8s ease forwards;
}

/* =========================
   PROCESS SECTION
   ========================= */
.proces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.proces-step {
  position: relative;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.proces-step:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 24px 50px -18px rgba(124, 92, 255, 0.35);
}

.proces-step-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #7c5cff, #35d1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proces-step h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--text);
}

.proces-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.proces-cta {
  text-align: center;
}

.proces-cta p {
  margin: 0 0 20px;
  font-size: 1.3rem;
  color: var(--muted);
}

.proces-cta .btn.primary,
.rezultate-cta .btn.primary,
.faq-cta .btn.primary {
  padding: 0 32px;
  height: 52px;
  font-size: 1rem;
}

/* =========================
   RESULTS / CASE STUDIES SECTION
   ========================= */
.rezultate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.rezultate-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: linear-gradient(
    160deg,
    rgba(124, 92, 255, 0.12),
    rgba(53, 209, 255, 0.06)
  );
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 22px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.rezultate-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 30px 60px -20px rgba(124, 92, 255, 0.4);
}

.rezultate-metric {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #7c5cff, #35d1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rezultate-metric-label {
  margin: 8px 0 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rezultate-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--accent);
}

.rezultate-problem,
.rezultate-solution {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.rezultate-solution {
  margin-bottom: 0;
}

.rezultate-solution strong {
  color: var(--accent-2);
}

.rezultate-cta {
  text-align: center;
}

.rezultate-cta p {
  margin: 0 0 20px;
  font-size: 1.3rem;
  color: var(--muted);
}

/* =========================
   FAQ SECTION
   ========================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(124, 92, 255, 0.45);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* The +/− toggle is drawn from two currentColor bars (not a text glyph) so it
   is centered geometrically and follows the theme text color. */
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background-color: rgba(124, 92, 255, 0.14);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: center;
  background-size:
    12px 2px,
    2px 12px;
  transition: background-size 0.3s ease;
}

.faq-item[open] summary::after {
  /* collapse the vertical bar -> turns the "+" into a "−" */
  background-size:
    12px 2px,
    2px 0;
}

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

.faq-cta {
  text-align: center;
}

/* =========================
   CONTACT FORM ENHANCEMENTS
   ========================= */
.contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form-status.is-success {
  color: #1a8f5a;
}

.contact-form-status.is-error {
  color: #c0392b;
}

.contact-offer {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 22px;
  border: 1px solid rgba(53, 209, 255, 0.4);
  border-radius: 12px;
  background: rgba(53, 209, 255, 0.08);
  font-size: 1.02rem;
}

.contact-offer strong {
  color: #35d1ff;
}

/* =========================
   RESPONSIVE - NEW SECTIONS
   ========================= */
@media (max-width: 1024px) {
  .proces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .proces-section,
  .rezultate-section,
  .faq-section {
    min-height: auto;
    align-items: flex-start;
    padding: 44px 0;
  }

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

  .proces-title,
  .rezultate-title,
  .faq-title {
    font-size: 2.4rem;
  }

  .proces-subtitle,
  .rezultate-subtitle,
  .faq-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .proces-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .proces-header,
  .rezultate-header,
  .faq-header {
    margin-bottom: 36px;
  }

  .proces-title,
  .rezultate-title,
  .faq-title {
    font-size: 1.6rem;
    letter-spacing: 0;
  }

  .proces-subtitle,
  .rezultate-subtitle,
  .faq-subtitle {
    font-size: 0.95rem;
  }

  .proces-cta p,
  .rezultate-cta p {
    font-size: 1rem;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .proces-section [data-animate],
  .rezultate-section [data-animate],
  .faq-section [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* =========================
   15. THEME TOGGLE + LIGHT MODE
   ========================= */

/* Smooth crossfade when switching themes */
@media (prefers-reduced-motion: no-preference) {
  body {
    transition:
      background-color 0.35s ease,
      color 0.35s ease;
  }
}

/* Theme toggle button — kept on its own class (not .icon-btn) so it stays
   visible at every breakpoint, including desktop. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  transition: 180ms ease;
}

.theme-toggle:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

/* Language switcher (EN | RO) — a compact pill that sits next to the theme
   toggle and stays visible at every breakpoint. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 42px;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: 180ms ease;
}

.lang-option:hover {
  background: var(--hover);
}

.lang-option.active {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.95),
    rgba(53, 209, 255, 0.85)
  );
  color: #070a13;
}

.lang-option.active:hover {
  filter: brightness(1.05);
}

/* --- Light theme: re-tint the decorative section gradients so the brand
   glows stay subtle on a near-white canvas. --- */
:root[data-theme="light"] .nav-wrap,
:root[data-theme="light"] .banner {
  background:
    radial-gradient(
      1000px 500px at 20% 10%,
      rgba(124, 92, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 0%,
      rgba(53, 209, 255, 0.1),
      transparent 60%
    ),
    var(--bg);
}

:root[data-theme="light"] .nav-wrap {
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
}

:root[data-theme="light"] .servicii-section,
:root[data-theme="light"] .despre-section,
:root[data-theme="light"] .proces-section,
:root[data-theme="light"] .rezultate-section,
:root[data-theme="light"] .faq-section {
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(124, 92, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(53, 209, 255, 0.09) 0%,
      transparent 50%
    ),
    var(--bg);
}

:root[data-theme="light"] .footer-section {
  background:
    radial-gradient(
      ellipse at 20% 100%,
      rgba(124, 92, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      rgba(53, 209, 255, 0.06) 0%,
      transparent 50%
    ),
    var(--bg);
}

/* Headline gradient text: deepen for contrast on light surfaces */
:root[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #5b3df0 0%, #0a8fb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Soften the dark image-bottom fade on service cards in light mode */
:root[data-theme="light"] .servicii-image-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(17, 22, 42, 0.5) 100%
  );
}

/* Modal scrollbar thumb visible on light backgrounds */
:root[data-theme="light"] .legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(17, 22, 42, 0.2);
}

:root[data-theme="light"] .legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 22, 42, 0.32);
}

/* =========================
   COOKIE CONSENT
   ========================= */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 9998;
  width: min(1100px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(
      700px 300px at 0% 0%,
      rgba(124, 92, 255, 0.14),
      transparent 60%
    ),
    var(--bg);
  box-shadow: var(--shadow);
  animation: cookie-rise 0.35s ease both;
}

@keyframes cookie-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-banner-text h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.cookie-banner-text p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn,
.cookie-modal-footer .btn {
  cursor: pointer;
}

/* Accept and Reject must read as equally available choices */
.cookie-banner-actions .btn.primary,
.cookie-modal-footer .btn.primary {
  min-width: 150px;
}

.cookie-modal-footer {
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-category {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-modal-body .cookie-category-head h3 {
  margin: 0;
}

.cookie-always {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  transition: 180ms ease;
  pointer-events: none;
}

.cookie-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 180ms ease;
}

.cookie-switch input:checked + .cookie-slider {
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.95),
    rgba(53, 209, 255, 0.85)
  );
}

.cookie-switch input:checked + .cookie-slider::after {
  background: #fff;
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-slider {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.cookie-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-table {
  width: 100%;
  margin: 12px 0 0;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.cookie-table th,
.cookie-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  border: 1px solid var(--border-soft);
}

.cookie-table th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-3);
}

@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .cookie-banner-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    width: 100%;
    padding: 20px;
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  /* Reject and Accept stay side by side and identical; Settings drops below.
     display is re-asserted because .btn.primary is hidden site-wide here. */
  .cookie-banner-actions .btn.primary,
  .cookie-modal-footer .btn.primary {
    display: inline-flex;
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
  }

  .cookie-banner-actions .btn:not(.primary),
  .cookie-modal-footer .btn:not(.primary) {
    order: 2;
    flex: 1 1 100%;
  }

  .cookie-table,
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table td {
    display: block;
    width: 100%;
  }

  .cookie-table thead {
    display: none;
  }

  .cookie-table tr {
    margin-bottom: 10px;
  }

  .cookie-table td {
    border-top: 0;
  }

  /* Headers are dropped, so the name cell carries the row */
  .cookie-table tr td:first-child {
    border-top: 1px solid var(--border-soft);
    color: var(--text);
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-slider,
  .cookie-slider::after {
    animation: none;
    transition: none;
  }
}
