:root {
  /* Palette */
  --primary: #172554; /* Royal Blue */
  --primary-hover: #1a2341;
  --primary-light: #eff6ff;
  --primary-ring: rgba(37, 99, 235, 0.1);

  --accent: #f59e0b; /* Amber/Gold for highlights */
  --accent-hover: #d97706;

  --secondary: #475569; /* Slate Gray for secondary elements */
  --secondary-light: #f1f5f9;

  /* Grays / Neutrals */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic Mappings */
  --text-main: var(--gray-700);
  --text-dark: var(--gray-900);
  --text-light: var(--gray-500);
  --text-lighter: var(--gray-300);
  --text-inverse: #ffffff;

  --bg-body: #ffffff;
  --bg-alt: var(--gray-50);
  --bg-card: #ffffff;
  --bg-dark: var(--gray-900);

  --border-light: var(--gray-100);
  --border-medium: var(--gray-200);
  --border-dark: var(--gray-300);

  --white: #ffffff;

  /* Settings */
  --border-radius: 20px;
  --transition: all 0.3s ease;
}

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

html, body {
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-body);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: "DM Serif Text", sans-serif;
}

body p, body button, body a, body li {
  font-family: "DM Sans", sans-serif;
}

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

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

/* Header */
.header {
  --max-width: 900px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 1px solid transparent;
  position: fixed;
  width: 90%;
  max-width: var(--max-width);
  border-radius: 50px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: all 0.4s ease;
  padding-block: 5px;
}

.header.scrolled {
  background: var(--primary);
   backdrop-filter: blur(12px); 
   -webkit-backdrop-filter: blur(12px); 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
   border: 1px solid rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 10px;
}

.logo {
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  transition: height 0.3s ease-in;
}

.header.scrolled .logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  padding-right: 5px;
}

.nav a {
  font-weight: 500;
  color: var(--gray-300);
  transition: var(--transition);
  font-size: 0.95rem;
}

.header.scrolled .nav a {
  color: var(--gray-100);
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--white);
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-hover);
  color: var(--text-inverse) !important;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background-color: var(--primary); /* Deep Blue - fallback */
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-highlight {
  font-size: 6rem;
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  font-style: italic;
  line-height: 1;
  margin-top: 10px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-300);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* ===================================
   HERO BENTO GRID BACKGROUND
   =================================== */

.hero-bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 12px;
  z-index: 0;
  overflow: hidden;
}

.bento-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
}

.bento-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: scrollUp var(--scroll-duration, 30s) linear infinite;
}

/* Reverse direction for specified columns */
.bento-column[data-direction="reverse"] .bento-track {
  animation-name: scrollDown;
}

.bento-item {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}

.bento-item.bento-tall {
  height: 280px;
}

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

.bento-item:hover img {
  transform: scale(1.05);
}

/* Animation keyframes */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Speed variations via CSS custom property */
.bento-column[data-speed="25"] .bento-track {
  --scroll-duration: 25s;
  animation-duration: 25s;
}

.bento-column[data-speed="28"] .bento-track {
  --scroll-duration: 28s;
  animation-duration: 28s;
}

.bento-column[data-speed="30"] .bento-track {
  --scroll-duration: 30s;
  animation-duration: 30s;
}

.bento-column[data-speed="33"] .bento-track {
  --scroll-duration: 33s;
  animation-duration: 33s;
}

.bento-column[data-speed="35"] .bento-track {
  --scroll-duration: 35s;
  animation-duration: 35s;
}

.bento-column[data-speed="40"] .bento-track {
  --scroll-duration: 40s;
  animation-duration: 40s;
}

/* Hero Overlay - gradient for readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(23, 37, 84, 0.92) 0%,
    rgba(15, 23, 42, 0.88) 50%,
    rgba(23, 37, 84, 0.92) 100%
  );
  z-index: 1;
}

/* Hero content positioning */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Responsive: Hide columns on smaller screens for performance */
@media (max-width: 1200px) {
  .bento-column:nth-child(6) {
    display: none;
  }
}

@media (max-width: 992px) {
  .bento-column:nth-child(5),
  .bento-column:nth-child(6) {
    display: none;
  }
  
  .bento-item {
    height: 180px;
  }
  
  .bento-item.bento-tall {
    height: 250px;
  }
}

@media (max-width: 768px) {
  /* Switch to horizontal layout on mobile - 5 rows, each 20% height */
  .hero-bento-bg {
    flex-direction: column;
    gap: 0;
    padding: 0;
    height: 100%;
  }
  
  .bento-column {
    flex: 1;
    flex-direction: row;
    border-radius: 0;
    height: 20%;
    min-height: 0;
    overflow: hidden;
  }
  
  /* Show 5 rows on mobile, hide only the 6th */
  .bento-column:nth-child(6) {
    display: none;
  }
  
  /* Re-enable 5th column for mobile (was hidden for tablet) */
  .bento-column:nth-child(5) {
    display: flex;
  }
  
  .bento-track {
    flex-direction: row;
    gap: 0;
    animation-name: scrollLeft;
    height: 100%;
    align-items: stretch;
  }
  
  .bento-column[data-direction="reverse"] .bento-track {
    animation-name: scrollRight;
  }
  
  .bento-item {
    height: 100%;
    width: auto;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: 0;
  }
  
  .bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .bento-item.bento-tall {
    height: 100%;
    width: auto;
    aspect-ratio: 4/3;
  }
  
  /* Hero title: accent color instead of underline */
  .hero-highlight {
    color: var(--accent);
    border-bottom: none;
    font-size: 3.5rem;
  }
}

/* Horizontal scroll animations for mobile */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

@media (max-width: 480px) {
  /* Show only 5 rows, hide 6th */
  .bento-column:nth-child(6) {
    display: none;
  }
  
  /* Keep 5 rows visible */
  .bento-column:nth-child(5) {
    display: flex;
  }
  
  .hero-highlight {
    font-size: 2.8rem;
  }
}

/* Pause animation on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .bento-track {
    animation: none;
  }
}

/* Sections General */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Services */
.services {
  background-color: var(--bg-body);
}

.services-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.15rem;
  margin-top: -40px;
  margin-bottom: 60px;
}

/* New Services Grid - Bento-style layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.service-card-large {
  grid-row: span 1;
}

/* First large card spans 2 columns on left */
.service-card:nth-child(1) {
  grid-column: span 2;
}

/* Last large card spans 2 columns on right */
.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.service-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card-large .service-card-image {
  height: 220px;
}

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

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

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(23, 37, 84, 0.1) 100%
  );
  transition: background 0.4s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(23, 37, 84, 0.2) 100%
  );
}

.service-card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05) rotate(-3deg);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-benefit {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
}

.service-cta i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.service-cta:hover {
  color: var(--accent);
}

.service-cta:hover i {
  transform: translateX(5px);
}

/* Services Grid Responsive */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card:nth-child(1),
  .service-card:nth-child(4) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card:nth-child(1),
  .service-card:nth-child(4) {
    grid-column: span 1;
  }
  
  .services-subtitle {
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1rem;
    padding: 0 20px;
  }
  
  .service-card-image,
  .service-card-large .service-card-image {
    height: 180px;
  }
  
  .service-card-content {
    padding: 24px;
  }
  
  .service-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy grid - keep for other uses */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.card {
  padding: 40px 30px;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary);
  font-size: 1.75rem;
  transition: var(--transition);
}

.card:hover .icon-box {
  background: var(--primary);
  color: var(--text-inverse);
  transform: rotateY(360deg);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.card p {
  color: var(--text-light);
}

/* Projects Carousel */
.projects {
  background-color: var(--bg-alt);
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Vertical Navigation */
.carousel-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-dark);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background-color: var(--accent);
  transform: scale(1.2);
}

.nav-dot.active::after {
  border-color: var(--accent);
}

.nav-dot:hover {
  background-color: var(--accent-hover);
}

/* Slides Container */
.carousel-slides {
  flex: 1;
  position: relative;
  min-height: 450px; /* Fixed height prevents CLS */
}

.project-slide {
  display: none; /* Hidden by default */
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  height: 400px; /* Fixed height for consistent card proportions */
}

.project-slide.active {
  display: grid;
}

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

.slide-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 300px;
}

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

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

.slide-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
  line-height: 1.2;
}

.project-desc {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.project-tech {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-tech li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
}

.project-tech li i {
  color: var(--accent);
}

/* Responsive Carousel */
@media (max-width: 900px) {
  .carousel-wrapper {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .carousel-nav {
    flex-direction: row;
  }

  .carousel-slides {
    min-height: auto; /* Allow natural height on mobile */
  }

  .project-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto; /* Fixed image height, auto content */
    height: auto; /* Allow natural height on mobile */
  }

  .slide-image {
    min-height: 200px;
    height: 200px; /* Fixed height for image on mobile */
  }

  .slide-content {
    padding: 24px;
    overflow: visible; /* Ensure content is not cut off */
  }

  .slide-content h3 {
    font-size: 1.5rem;
  }

  .project-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .project-tech li {
    font-size: 0.9rem;
  }
}

/* Carousel Arrow Navigation - Desktop Only */
.carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 15px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: scale(1.1);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

/* Position arrows outside carousel on larger screens */
@media (min-width: 1100px) {
  .carousel-arrows {
    left: -60px;
    right: -60px;
    padding: 0;
  }
}

/* Hide arrows on mobile/tablet, show dots navigation instead */
@media (max-width: 900px) {
  .carousel-arrows {
    display: none;
  }
}

/* Hide dots navigation on desktop, show arrows instead */
@media (min-width: 901px) {
  .carousel-nav {
    display: none;
  }
}

/* Contact */ /* Contact */
.contact {
  background-color: var(--bg-body);
}

.contact p {
  color: var(--text-light);
  margin-bottom: 40px;
  text-align: center;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-alt);
  color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.contact-form button {
  width: 100%;
  font-size: 1rem;
  padding: 14px;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: 80px 0 0;
}

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

.footer-logo {
  color: var(--text-inverse);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-desc {
  color: var(--text-lighter);
  line-height: 1.6;
  max-width: 350px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-inverse);
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-lighter);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-inverse);
  padding-left: 5px;
}

.footer-contact li {
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--accent);
  padding: 30px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-highlight {
    font-size: 3.5rem;
    border-bottom-width: 3px;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    left: -100%;
    top: 0;
    gap: 0;
    flex-direction: column;
    background-color: rgba(15, 23, 42, 0.97); /* Darker Deep Blue with opacity */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height */
    text-align: center;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    box-shadow: none;
    padding: 120px 0 40px;
    z-index: 998; /* Behind header */
    opacity: 0;
    border-radius: 20px;
  }

  .nav.active {
    left: 0;
    opacity: 1;
  }

  .nav ul {
    flex-direction: column;
    gap: 40px;
  }

  .nav a {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 300;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Background overlay blur when menu is open */
  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
  }
  
  body.menu-open::after {
    opacity: 1;
    visibility: visible;
  }
}

/* ===================================
   PHASE 1 NEW COMPONENTS
   =================================== */

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.lang-link {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  opacity: 0.6;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 4px;
}

.lang-link:hover {
  opacity: 1;
}

.lang-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.lang-divider {
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-secondary {
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(5px);
}

.btn-secondary i {
  transition: transform 0.3s ease;
}

.btn-secondary:hover i {
  transform: translateX(4px);
}

/* Trust Bar */
.trust-bar {
  background: var(--gray-50);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.trust-label {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  font-weight: 500;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.trust-logo-item {
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}

.trust-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.trust-logo-placeholder {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 15px 25px;
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  display: block;
}

.trust-logo-item img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Contact Options */
.contact-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.contact-option {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 35px 30px;
  text-align: center;
  transition: var(--transition);
}

.contact-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.contact-option-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.75rem;
  transition: var(--transition);
}

.contact-option:hover .contact-option-icon {
  transform: scale(1.1);
}

.contact-option-icon.whatsapp {
  background: #dcfce7;
  color: #16a34a;
}

.contact-option h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contact-option p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-whatsapp {
  border-color: #16a34a;
  color: #16a34a;
}

.btn-whatsapp:hover {
  background: #16a34a;
  color: var(--white);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease;
}

.contact-form-wrapper.visible {
  max-height: 800px;
  opacity: 1;
  padding-top: 20px;
}

.contact-form {
  max-width: 100%;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-alt);
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 15px;
}

.form-note {
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-note i {
  color: var(--accent);
}

.contact-form button[type="submit"] {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    gap: 15px;
  }

  .btn-secondary {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .hero-ctas .btn-primary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 12px 24px;
  }

  .trust-logos {
    gap: 20px;
  }

  .trust-logo-placeholder {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

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

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

  .contact-form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 20px;
  }
}

/* Notification System */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 400px;
  border: 1px solid var(--border-light);
}

.notification.visible {
  transform: translateX(0);
}

.notification-success {
  border-left: 4px solid #16a34a;
}

.notification-success i:first-child {
  color: #16a34a;
  font-size: 1.25rem;
}

.notification span {
  flex: 1;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.notification-close:hover {
  color: var(--text-dark);
}

@media (max-width: 480px) {
  .notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

/* ===================================
   PHASE 2 NEW COMPONENTS
   =================================== */

/* Enhanced Service Cards */
.card-benefit {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

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

.card-cta i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.card-cta:hover i {
  transform: translateX(4px);
}

/* Metrics Section */
.metrics {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.metrics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.metric-item {
  text-align: center;
  padding: 20px;
}

.metric-number {
  font-family: "DM Serif Text", serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: inline;
}

.metric-suffix {
  font-family: "DM Serif Text", serif;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.metric-label {
  color: var(--gray-300);
  font-size: 1rem;
  margin-top: 10px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .metric-number {
    font-size: 3rem;
  }
}

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

/* Testimonials Section */
.testimonials {
  background: var(--bg-alt);
  padding: 100px 0;
  overflow: hidden;
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  position: relative;
  min-height: 380px; /* Fixed height to prevent CLS */
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-content {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  text-align: center;
  min-height: 320px; /* Consistent minimum height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-rating {
  margin-bottom: 25px;
}

.testimonial-rating i {
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0 2px;
}

.testimonial-content blockquote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-content blockquote::before {
  content: '"';
  font-family: "DM Serif Text", serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-dark);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.testimonial-dot:hover {
  background: var(--accent-hover);
}

/* Testimonial Arrows - Desktop Only */
.testimonial-arrows {
  position: absolute;
  top: 50%;
  left: -60px;
  right: -60px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.testimonial-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-arrow:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: scale(1.1);
}

.testimonial-arrow:active {
  transform: scale(0.95);
}

/* Hide arrows on mobile/tablet, show dots navigation instead */
@media (max-width: 900px) {
  .testimonial-arrows {
    display: none;
  }
}

/* Hide dots navigation on desktop, show arrows instead */
@media (min-width: 901px) {
  .testimonial-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .testimonial-content {
    padding: 35px 25px;
    min-height: 350px; /* Adjusted height for mobile */
  }
  
  .testimonial-content blockquote {
    font-size: 1.1rem;
  }
  
  .testimonial-track {
    min-height: 450px; /* Adjusted for mobile content */
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gray-900) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-content > p {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-large i {
  transition: transform 0.3s ease;
}

.btn-large:hover i {
  transform: translateX(5px);
}

.cta-note {
  color: var(--gray-300);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-note i {
  color: var(--accent);
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content > p {
    font-size: 1.05rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--bg-card);
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-card);
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.75rem;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* ===================================
   Diagnostic Section
   =================================== */
.diagnostic {
  background-color: var(--bg-alt);
  padding: 100px 0;
}

.diagnostic-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: -40px;
  margin-bottom: 50px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Diagnostic Form */
.diagnostic-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.diagnostic-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.diagnostic-form .form-group {
  margin-bottom: 24px;
}

.label-hint {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-alt);
  transition: var(--transition);
  font-family: "DM Sans", sans-serif;
}

.checkbox-label:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label span {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.4;
}

.field-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Loading State */
.diagnostic-loading {
  text-align: center;
  padding: 80px 20px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-medium);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.loading-subtext {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Error State */
.diagnostic-error {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.error-icon {
  font-size: 2.5rem;
  color: #dc2626;
  margin-bottom: 16px;
}

.diagnostic-error p {
  color: var(--text-main);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* Results */
.diagnostic-results {
  max-width: 800px;
  margin: 0 auto;
}

.results-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.results-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.results-header i {
  font-size: 1.75rem;
  color: var(--accent);
}

.results-header h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0;
}

.results-opportunities {
  margin-bottom: 30px;
}

.opportunity-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.opportunity-item h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.opportunity-item h4 .opportunity-number {
  background: var(--primary);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: "DM Sans", sans-serif;
  flex-shrink: 0;
}

.opportunity-item p {
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.95rem;
  padding-left: 38px;
}

.results-closing {
  background: var(--primary-light);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 30px;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.95rem;
}

.results-cta {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid var(--border-light);
}

.results-cta p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 500;
}

.diagnostic-restart-btn {
  display: block;
  margin: 24px auto 0;
}

/* Responsive - Diagnostic */
@media (max-width: 768px) {
  .diagnostic-form {
    padding: 24px;
  }

  .results-card {
    padding: 24px;
  }

  .results-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .results-header h3 {
    font-size: 1.25rem;
  }

  .opportunity-item h4 {
    font-size: 1rem;
  }

  .opportunity-item p {
    padding-left: 0;
    margin-top: 6px;
  }
}
