/* ============================================
   QUATERNA D.O.O. — Smart IT Solutions
   Design System & Styles
   ============================================ */

/* --- Fontshare Imports --- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&f[]=general-sans@200,300,400,500,600,700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --red-primary: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #EF5350;
  --red-glow: rgba(211, 47, 47, 0.35);
  --dark-bg: #0B0714;
  --dark-surface: #15102A;
  --dark-card: #1C1635;
  --light-bg: #F7F7F9;
  --white: #FFFFFF;
  --grey-text: #8A8A9A;
  --grey-dark: #2D2D3D;
  --grey-light: #C5C5D0;

  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, sans-serif;

  --nav-height: 80px;
  --section-padding: 120px;
  --container-width: 1200px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--grey-dark);
  background: var(--dark-bg);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Selection */
::selection {
  background: var(--red-primary);
  color: var(--white);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   SECTION: Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(11, 7, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav__logo img {
  height: 42px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--grey-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  padding: 10px 24px;
  border: 1px solid var(--red-primary);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-primary), var(--red-dark));
  transition: left 0.4s var(--ease-out-expo);
  z-index: -1;
}

.nav__cta:hover::before {
  left: 0;
}

.nav__cta:hover {
  border-color: var(--red-dark);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

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

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 7, 20, 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 999;
}

.nav__mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile .nav__link {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.nav__mobile.open .nav__link {
  transform: translateY(0);
  opacity: 1;
}

.nav__mobile.open .nav__link:nth-child(1) { transition-delay: 0.1s; }
.nav__mobile.open .nav__link:nth-child(2) { transition-delay: 0.15s; }
.nav__mobile.open .nav__link:nth-child(3) { transition-delay: 0.2s; }
.nav__mobile.open .nav__link:nth-child(4) { transition-delay: 0.25s; }
.nav__mobile.open .nav__link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   SECTION: Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Red radial glow */
.hero__glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.1); }
}

/* Floating tilted squares */
.hero__shape {
  position: absolute;
  border: 1px solid rgba(211, 47, 47, 0.15);
  transform: rotate(45deg);
  border-radius: 8px;
}

.hero__shape--1 {
  width: 200px;
  height: 200px;
  top: 15%;
  right: 10%;
  animation: floatShape 12s ease-in-out infinite;
}

.hero__shape--2 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 8%;
  animation: floatShape 10s ease-in-out infinite reverse;
  border-color: rgba(211, 47, 47, 0.1);
}

.hero__shape--3 {
  width: 80px;
  height: 80px;
  top: 30%;
  left: 20%;
  animation: floatShape 14s ease-in-out infinite 2s;
  border-color: rgba(211, 47, 47, 0.08);
}

.hero__shape--4 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: 20%;
  animation: floatShape 16s ease-in-out infinite 1s;
  border-color: rgba(211, 47, 47, 0.06);
}

@keyframes floatShape {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  25% { transform: rotate(47deg) translate(10px, -15px); }
  50% { transform: rotate(43deg) translate(-5px, 10px); }
  75% { transform: rotate(46deg) translate(8px, 5px); }
}

/* Grid pattern overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(211, 47, 47, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 47, 47, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotate(-5deg) scale(1.3);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--red-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero__tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red-primary);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: wordReveal 0.8s var(--ease-out-expo) forwards;
}

.hero__title .word:nth-child(1) { animation-delay: 0.3s; }
.hero__title .word:nth-child(2) { animation-delay: 0.4s; }
.hero__title .word:nth-child(3) { animation-delay: 0.5s; }

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

.hero__title span.highlight {
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--grey-text);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.7s forwards;
}

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

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.9s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(211, 47, 47, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(211, 47, 47, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
  border-color: var(--red-primary);
  color: var(--red-light);
}

.btn__arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey-text);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red-primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ============================================
   SECTION: Services
   ============================================ */
.services {
  background: var(--light-bg);
  padding: var(--section-padding) 0;
  position: relative;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.section__tag::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red-primary);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--grey-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__title--light {
  color: var(--white);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--grey-text);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-light));
  transition: width 0.4s var(--ease-out-expo);
  border-radius: 0 0 2px 2px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
  width: 60px;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(211, 47, 47, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--red-primary);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--grey-dark);
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.65;
}

/* ============================================
   SECTION: About / Why Quaterna
   ============================================ */
.about {
  background: var(--dark-bg);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__left .section__subtitle {
  margin-bottom: 32px;
}

.about__text {
  font-size: 1.05rem;
  color: var(--grey-text);
  line-height: 1.8;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.stat-card {
  background: var(--dark-surface);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid rgba(211, 47, 47, 0.08);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(211, 47, 47, 0.2);
}

.stat-card__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--grey-text);
  font-weight: 500;
}

/* Decorative shape in about section */
.about__decor {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(211, 47, 47, 0.06);
  transform: rotate(45deg);
  border-radius: 16px;
  right: -150px;
  top: -100px;
}

/* ============================================
   SECTION: Projects
   ============================================ */
.projects {
  background: var(--light-bg);
  padding: var(--section-padding) 0;
}

.projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.projects__header .section__subtitle {
  margin-bottom: 0;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: var(--dark-surface);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 7, 20, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background 0.4s ease;
}

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

.project-card:hover .project-card__overlay {
  background: linear-gradient(180deg, rgba(11, 7, 20, 0.3) 0%, rgba(11, 7, 20, 0.95) 100%);
}

.project-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.project-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-light);
  background: rgba(211, 47, 47, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
}

.project-card:hover .project-card__desc {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient placeholder backgrounds for project cards */
.project-card--1 { background: linear-gradient(135deg, #1a1040 0%, #2d1b69 100%); }
.project-card--2 { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }
.project-card--3 { background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%); }
.project-card--4 { background: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 100%); }

/* ============================================
   SECTION: Process
   ============================================ */
.process {
  background: var(--dark-bg);
  padding: var(--section-padding) 0;
  position: relative;
}

.process__header {
  text-align: center;
  margin-bottom: 80px;
}

.process__header .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--red-primary) 0%,
    var(--red-light) 50%,
    rgba(211, 47, 47, 0.2) 100%
  );
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.process-step__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--dark-surface);
  border: 2px solid var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.process-step:hover .process-step__number {
  background: var(--red-primary);
  box-shadow: 0 0 30px rgba(211, 47, 47, 0.3);
}

.process-step__number span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red-primary);
  transition: color 0.3s ease;
}

.process-step:hover .process-step__number span {
  color: var(--white);
}

.process-step__icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

.process-step__text {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.6;
}

/* ============================================
   SECTION: Testimonials
   ============================================ */
.testimonials {
  background: var(--dark-surface);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

/* Diagonal grid background */
.testimonials__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(211, 47, 47, 0.02) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(211, 47, 47, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.testimonials__carousel {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  text-align: center;
  padding: 0 20px;
  display: none;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s var(--ease-out-expo);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
}

.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--red-primary);
  opacity: 0.3;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--grey-text);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonials__dot.active {
  background: var(--red-primary);
  box-shadow: 0 0 12px rgba(211, 47, 47, 0.4);
  transform: scale(1.2);
}

/* ============================================
   SECTION: Contact
   ============================================ */
.contact {
  background: var(--light-bg);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--grey-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact__text {
  font-size: 1.05rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(211, 47, 47, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red-primary);
  flex-shrink: 0;
}

.contact__info-text {
  font-size: 0.95rem;
  color: var(--grey-dark);
  font-weight: 500;
}

.contact__info-label {
  font-size: 0.8rem;
  color: var(--grey-text);
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-dark);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  outline: none;
  transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.08);
}

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

.contact__form .btn {
  align-self: flex-start;
  width: auto;
}

/* Decorative shapes */
.contact__decor {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(211, 47, 47, 0.06);
  transform: rotate(45deg);
  border-radius: 12px;
  bottom: -80px;
  right: -60px;
  pointer-events: none;
}

/* ============================================
   SECTION: Footer
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #060410 100%);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(211, 47, 47, 0.08);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 36px;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
}

.footer__desc {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dark-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-text);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__social-link:hover {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.footer__link:hover {
  color: var(--red-light);
  transform: translateX(4px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--grey-text);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.8rem;
  color: var(--grey-text);
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--red-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 68px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__content {
    text-align: center;
  }

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

  .hero__actions {
    justify-content: center;
    flex-direction: column;
  }

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

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .projects__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

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

  .process__timeline::before {
    display: none;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .testimonial-card__quote {
    font-size: 1.25rem;
  }

  .hero__shape--1,
  .hero__shape--4 {
    display: none;
  }
}

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

  .btn {
    width: 100%;
    padding: 14px 28px;
  }
}
