@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
}

:root {
  scroll-padding-top: 70px;
  --brand-gradient: linear-gradient(135deg, #185CFC 0%, #5158D4 50%, #543FF6 100%);
  --brand-gradient-hover: linear-gradient(135deg, #1252E3 0%, #4A52C7 50%, #4C38E6 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  color: #1f2937;
  background: #ffffff;
  animation: slideInFromLeft 0.4s ease-out;
  padding-top: 61px;
}

p {
  letter-spacing: 0.01em;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: min(92%, 1200px);
  margin: 0 auto;
  overflow: visible !important;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 61px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #4F46E5;
}

nav a.btn {
  background: var(--brand-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
}

nav a.btn:hover {
  background: var(--brand-gradient-hover);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.6rem;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: #0f172a;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #0f172a;
  border-radius: 3px;
  transition: all 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
}

.btn-secondary {
  background: white;
  color: #1f2937;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  border-color: #4F46E5;
  color: #4F46E5;
}

.hero {
  background: #EEF2FF;
  padding: 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.hero-content .highlight,
.highlight,
.service-card ul li:before,
.offer-card .arrow,
.contact-title {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.dots-pattern-hero {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 280px;
  height: 280px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.circle-design-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.circle-orange {
  background: #FB923C;
}

.circle-white {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
}

.circle-blue {
  background: #4F46E5;
}

.circle-red {
  background: #EF4444;
}

.section {
  padding: 4rem 0;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 3rem;
  text-align: center;
}

.challenges {
  padding: 5rem 0;
  position: relative;
  overflow: visible;
}

.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.challenges-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: visible;
  height: 100%;
}

.dots-pattern {
  position: absolute;
  left: -40px;
  top: 60px;
  width: 320px;
  height: 320px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

.image-placeholder {
  background: #E5E7EB;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.image-placeholder.large {
  height: 100%;
  min-height: 360px;
  width: 100%;
}

.image-placeholders-bottom {
  display: flex;
  gap: 1rem;
}

.image-placeholder.small {
  height: 140px;
  flex: 1;
}

.image-placeholder.medium {
  height: 140px;
  flex: 1;
}

.challenges-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
}

.challenges-card {
  background: #fafaff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.challenges-card h4,
.challenges-subheading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.challenges-card .check-list {
  margin-bottom: 1.5rem;
}

.challenges-card .check-list:last-of-type {
  margin-bottom: 0;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  background: #4F46E5;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.check-list li span:last-child {
  color: #1f2937;
  line-height: 1.6;
  font-size: 0.95rem;
}

.light {
  background: #f9fafb;
}

.services-section {
  background: white;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.service-card {
  background: #fafaff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  z-index: 1;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Removed unused service-card-wrapper CSS */

.service-icon,
.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  background: transparent;
}

.service-icon:hover,
.why-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.service-icon.purple {
  background: transparent;
}

.services-section .service-icon {
  background: transparent;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.service-card p {
  font-size: 0.9rem;
  color: #07003A;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  font-size: 0.85rem;
  color: #07003A;
  padding-left: 1.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  line-height: 1.5;
}

.service-card ul li:before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: bold;
}

.dots-pattern-service {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 240px;
  height: 240px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.why-section {
  background: #EEF2FF;
  overflow: visible !important;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 100%;
  overflow: visible !important;
}

/* Protect the container inside why section */
.why-section .container {
  max-width: 100%;
  overflow: visible !important;
}

.why-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
}

.why-card:nth-child(1) {
  border: 1px solid rgba(123, 140, 255, 0.4);
  box-shadow: 0 12px 28px rgba(90, 100, 180, 0.4);
}

.why-card:nth-child(1):hover {
  box-shadow: 0 16px 40px rgba(90, 100, 180, 0.5);
}

.why-card:nth-child(2) {
  border: 1px solid rgba(255, 138, 138, 0.4);
  box-shadow: 0 12px 28px rgba(200, 90, 90, 0.4);
}

.why-card:nth-child(2):hover {
  box-shadow: 0 16px 40px rgba(200, 90, 90, 0.5);
}

.why-card:nth-child(3) {
  border: 1px solid rgba(123, 255, 157, 0.4);
  box-shadow: 0 12px 28px rgba(80, 180, 110, 0.4);
}

.why-card:nth-child(3):hover {
  box-shadow: 0 16px 40px rgba(80, 180, 110, 0.5);
}

.why-card:nth-child(4) {
  border: 1px solid rgba(255, 179, 107, 0.4);
  box-shadow: 0 12px 28px rgba(200, 120, 70, 0.4);
}

.why-card:nth-child(4):hover {
  box-shadow: 0 16px 40px rgba(200, 120, 70, 0.5);
}

.why-card:nth-child(5) {
  border: 1px solid rgba(195, 139, 255, 0.4);
  box-shadow: 0 12px 28px rgba(140, 90, 190, 0.4);
}

.why-card:nth-child(5):hover {
  box-shadow: 0 16px 40px rgba(140, 90, 190, 0.5);
}

.why-card:nth-child(6) {
  border: 1px solid rgba(139, 184, 255, 0.4);
  box-shadow: 0 12px 28px rgba(90, 130, 200, 0.4);
}

.why-card:nth-child(6):hover {
  box-shadow: 0 16px 40px rgba(90, 130, 200, 0.5);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  margin-bottom: 1rem;
  background: transparent;
}

.why-icon.blue {
  background: transparent;
}

.why-icon.red {
  background: transparent;
}

.why-icon.green {
  background: transparent;
}

.why-icon.orange {
  background: transparent;
}

.why-icon.purple {
  background: transparent;
}

.why-icon.blue2 {
  background: transparent;
}

.why-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.why-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}

.offer-section {
  background: white;
  padding: 5rem 0;
  position: relative;
  overflow: visible;
}

.offer-wrapper {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18);
}

.offer-card-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 1.5rem;
  align-items: start;
}

.offer-image {
  grid-column: 2;
  grid-row: 1 / 5;
  height: 100%;
  min-height: 400px;
  background: #E5E7EB;
  border-radius: 12px;
  position: relative;
}

.offer-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.offer-card:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.offer-card:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

.offer-card:nth-child(4) {
  grid-column: 1;
  grid-row: 4;
}

.dots-pattern-offer {
  grid-column: 2;
  grid-row: 1 / 5;
  opacity: 0.1;
}

.offer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 0;
  transition: all 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
  border-color: #6366F1;
  background: #F9FAFB;
}

.offer-card.expanded {
  background: #F9FAFB;
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.offer-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.offer-card .arrow {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.offer-card .arrow.rotated {
  transform: rotate(90deg);
}

.offer-description {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  display: none;
}

.offer-description.open {
  display: block;
}

.offer-right {
  position: relative;
  z-index: 1;
}

.offer-image {
  height: 400px;
  background: #E5E7EB;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.dots-pattern-offer {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 340px;
  height: 340px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.contact-section {
  background: white;
  padding: 5rem 0;
}

.contact-title {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.blue {
  background: #6366F1;
}

.contact-icon.purple {
  background: #9333EA;
}

.contact-icon.pink {
  background: #e1108d;
}

.contact-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
}

.contact-link {
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  color: #0f172a;
  font-weight: 600;
}

.contact-link:hover {
  color: #4F46E5;
  text-decoration: underline;
}

.map-container {
  width: 100%;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.world-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero {
  background: #EEF2FF;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Legal page hero (uses about-hero wrapper) */
.about-hero > .container > h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #0f172a;
}

.about-hero > .container > p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #475569;
  max-width: 760px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-content h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #0f172a;
  line-height: 1.2;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 0.7rem;
}

.about-circles {
  width: 100%;
  height: 100%;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-circles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.dots-pattern-about-left {
  position: absolute;
  left: -20px;
  top: 15%;
  width: 320px;
  height: 320px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.dots-pattern-about-right {
  position: absolute;
  right: -20px;
  bottom: 10%;
  width: 360px;
  height: 360px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.vision-section {
  background: white;
  padding: 5rem 0;
  position: relative;
  overflow: visible;
}

/* EXACTLY MATCHES "Challenges we solve" LAYOUT */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Left = image, Right = text */
  gap: 1.5rem;
  align-items: stretch; /* equalize column height with right card stack */
}

/* Left column container */
.vision-left {
  position: relative;
  display: flex;
  justify-content: center;   /* 🔥 horizontal centering */
  align-items: flex-end;     /* pin image to bottom of equal-height column */
  padding-top: 0;            /* no offset */
  height: 100%;              /* fill available space */
  min-height: 0;
}

/* IMAGE WRAPPER — fixed height based on typical text box size */
.vision-image-wrapper {
  width: 80%;                /* keep your earlier 20% width reduction */
  height: 100%;              /* exact bottom alignment with right cards */
  min-height: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* IMAGE FIT — fills nicely inside reduced height */
.vision-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills nicely inside reduced height */
  object-position: center;
  transition: transform 0.45s ease;
}

.dots-pattern-left {
  position: absolute;
  left: -30px;
  bottom: 10px;
  width: 320px;
  height: 320px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.dots-pattern-bottom {
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

/* RIGHT SIDE: TWO TEXT BOXES STACKED */
.vision-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* VISION TEXT CARD (SAME STYLE AS CHALLENGES CARD) */
.vision-card {
  background: white;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.6rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .vision-image-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25);
  }

  .vision-image-wrapper:hover .vision-image {
    transform: scale(1.04);
  }

  .vision-card:hover {
    transform: translateY(-6px);
  }

  .vision-card:nth-child(1):hover {
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.4);
  }

  .vision-card:nth-child(2):hover {
    border-color: rgba(139, 92, 246, 0.9);
    box-shadow: 0 18px 36px rgba(124, 58, 237, 0.4);
  }

  .challenges .image-placeholder:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
  }

  .challenges .image-placeholder:hover img {
    transform: scale(1.03);
    transition: transform 0.45s ease;
  }

  .challenges-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.2);
  }
}

.vision-card:nth-child(1) {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

.vision-card:nth-child(2) {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.35);
}

.vision-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: transparent;
}

.vision-card:nth-child(1) .vision-icon {
  background: transparent;
}

.vision-card:nth-child(2) .vision-icon {
  background: transparent;
}

.vision-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.vision-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* Vision section popup animation */
.vision-popup {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.vision-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shared popup reveal animation */
.popup-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.popup-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .vision-popup {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .popup-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.values-section {
  background: #EEF2FF;
  padding: 5rem 0;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.values-section .section-subtitle {
  margin-bottom: 2rem;
}

/* FIXED VALUES LAYOUT */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "v1 v2 v3 v4"
    "v5 v6 img img";
  gap: 1.5rem;
  row-gap: 1.5rem;
  grid-auto-rows: minmax(272px, auto); /* allow card growth when text wraps */
  padding: 0.35rem;      /* allow shadow bleed near grid edges */
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.value-card:nth-child(1) { grid-area: v1; }
.value-card:nth-child(2) { grid-area: v2; }
.value-card:nth-child(3) { grid-area: v3; }
.value-card:nth-child(4) { grid-area: v4; }
.value-card:nth-child(5) { grid-area: v5; }
.value-card:nth-child(6) { grid-area: v6; }

.value-card {
  background: white;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 12px;
  padding: 1.25rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 256px;
  height: auto;
  opacity: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: transparent;
  font-size: 0;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.value-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.value-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}

.values-image-card {
  grid-area: img;
  width: 100%;
  min-height: 256px;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Keep value shadows visible (override generic overflow clipping rule) */
.values-section .values-grid {
  overflow: visible !important;
}

.values-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dots-pattern-values-left {
  position: absolute;
  left: -20px;
  top: 20%;
  width: 320px;
  height: 320px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.dots-pattern-values-right {
  position: absolute;
  right: -20px;
  bottom: 10%;
  width: 360px;
  height: 360px;
  background-image: url('../assets/images/rombusdot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .about-circles {
    justify-content: center;
    max-height: 300px;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "v1 v2"
      "v3 v4"
      "v5 v6"
      "img img";
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .about-hero-grid,
  .challenges-grid,
  .vision-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-art,
  .about-circles {
    justify-self: center;
    margin-top: 2rem;
  }

  .hero-content h1,
  .about-content h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .offer-card-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .offer-card:nth-child(1),
  .offer-card:nth-child(2),
  .offer-card:nth-child(3),
  .offer-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }

  .offer-image {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-height: 260px;
    height: 280px;
  }

  .dots-pattern-offer {
    display: none;
  }

  .values-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "v1"
      "v2"
      "v3"
      "v4"
      "v5"
      "v6"
      "img";
  }

  .values-image-card {
    grid-column: auto;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "text1" "text2";
  }

  .vision-image-wrapper {
    width: 100% !important;
    height: 320px !important;
    max-height: none !important;
    min-height: 240px;
    overflow: hidden !important;
  }

  .vision-image {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
  }

  .dots-pattern-left {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }

  .container {
    width: 100%;
    padding: 0 1rem;
  }

  /* Mobile Hamburger Menu */
  .hamburger {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 61px;
    left: 0;
    width: 100%;
    height: calc(100vh - 61px);
    background: white;
    display: none; /* fully hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    z-index: 1002; /* above navbar */
  }

  .nav-menu.active {
    display: flex; /* only show when active */
  }

  .nav-menu a {
    font-size: 1rem;
  }

  .nav-menu .btn {
    width: 80%;
    text-align: center;
  }

  .logo {
    font-size: clamp(1.1rem, 6vw, 1.45rem);
  }

  .logo-img {
    height: 32px;
  }

  .hero {
    padding: 3rem 0;
    min-height: auto;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-art {
    padding: 0.5rem;
  }

  .hero-content h1,
  .about-content h1 {
    font-size: clamp(1.6rem, 7vw, 1.95rem);
    line-height: 1.2;
  }

  .section-heading {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons a {
    flex: 1;
    padding: 0.85rem 0.6rem;
    font-size: 0.95rem;
  }

  .btn {
    text-align: center;
  }

  .service-card {
    padding: 1.2rem;
  }

  .why-card,
  .offer-card {
    padding: 1.25rem;
  }

  .value-card {
    padding: 0.9rem 1rem;
    width: 100%;
    min-height: auto;
  }

  .values-grid {
    gap: 1rem;
    row-gap: 1rem;
    grid-auto-rows: auto;
    padding: 0;
  }

  .value-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }

  .value-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .value-card p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .values-image-card {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .values-image {
    object-fit: cover;
    background: transparent;
  }

  .services-grid {
    gap: 1.25rem;
  }

  .values-section .container {
    width: 100%;
    padding: 0 1rem;
  }

  .services-grid,
  .why-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .values-grid .value-card {
    grid-column: auto;
  }

  h2.section-heading {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  .map-container {
    min-height: 180px;
    padding: 1rem;
  }

  .hero-art {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .about-circles {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .circle {
    width: 80px;
    height: 80px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-column {
    width: 100%;
    text-align: left;
  }

  .footer-column a {
    white-space: normal;
  }

  .footer-logo-section {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-copyright {
    font-size: 0.72rem;
  }

  .footer {
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 576px) {
  nav a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }

  nav a.btn {
    padding: 0.45rem 0.9rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .hero-content h1,
  .about-content h1 {
    font-size: clamp(1.5rem, 8vw, 1.75rem);
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .vision-image-wrapper {
    height: 240px !important;
    min-height: 200px;
  }

  .hero,
  .about-hero {
    padding: 3rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-art {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-circles {
    grid-template-columns: repeat(2, 1fr);
  }

  .circle {
    width: 70px;
    height: 70px;
  }

  .offer-card,
  .service-card,
  .why-card,
  .value-card {
    padding: 1.25rem;
  }

  .value-card p {
    line-height: 1.6;
    font-size: 0.88rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  nav a.btn {
    padding: 0.5rem 1rem;
  }

  .dots-pattern,
  .dots-pattern-service,
  .dots-pattern-offer,
  .dots-pattern-left,
  .dots-pattern-bottom,
  .dots-pattern-values-left,
  .dots-pattern-values-right,
  .dots-pattern-about-left,
  .dots-pattern-about-right {
    display: none;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.footer {
  background: #0f0d55;
  color: white;
  padding: 3rem 0 0;
  margin-top: 100px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-brand {
  max-width: 500px;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer-company-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.footer-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #140e56;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-linkedin:hover {
  background: #1a1270;
  transform: translateY(-2px);
}

.footer-linkedin svg {
  width: 14px;
  height: 14px;
}

.footer-divider {
  width: 1px;
  height: 24px;
  background: white;
  opacity: 0.5;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #CBD5E1;
  white-space: normal;
}

.footer-copyright-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #CBD5E1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-logo-mark {
  height: 14px;
  width: auto;
  display: block;
}

.footer-logo {
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: #ffffff;
  max-width: 520px;
}

.footer-social {
  display: none;
}

.social-icon {
  display: none;
}

.social-icon:hover {
  background: #334155;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-column h5 {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-column a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: #CBD5E1;
  transform: translateX(5px);
}

.footer-bottom-wrapper {
  background: #03022f;
  padding: 1rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #CBD5E1;
  background: transparent;
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  line-height: 1.6;
  color: #CBD5E1 !important;
  max-width: 1400px;
}

/* ===== FINAL MOBILE FOOTER FIX (MUST BE LAST) ===== */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
  }

  .footer-column {
    width: 100%;
    text-align: left;
  }

  .footer-column h5 {
    margin-bottom: 0.5rem;
  }

  .footer {
    padding: 3rem 0 0;
  }

  .footer-bottom-wrapper {
    background: #03022f;
    padding: 1rem 0;
  }

  .footer-bottom {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .footer-disclaimer {
    background: transparent !important;
    margin: 0;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .footer-links {
    gap: 1rem;
  }

  .footer-column a {
    font-size: 0.9rem;
  }

  .footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-logo {
    margin-bottom: 0.5rem;
  }

  .footer-logo-section {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .footer-bottom {
    border-radius: 0;
    padding: 0;
  }
}

/* ========================================
   HORIZONTAL OVERFLOW FIXES
   ======================================== */

/* Prevent horizontal overflow everywhere */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Also fix common overflow containers */
.container,
.services-grid,
.why-grid,
.values-grid,
.contact-grid,
.footer-main,
.footer-links {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== LEGAL PAGE IMPROVEMENTS ===== */
.legal-container {
  background: #ffffff;
  padding: 5rem 0;
}

.legal-main {
  background: white;
  border-radius: 12px;
  box-shadow: none;
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.legal-main h2 {
  text-align: center;
  font-size: 2.4rem;
  color: #4F46E5;
  margin-bottom: 0.5rem;
}

.legal-main .last-updated {
  text-align: left;
  color: #64748b;
  margin-bottom: 2rem;
}

.legal-main ol {
  margin-left: 1.2rem;
}

.legal-main li {
  margin-bottom: 1.4rem;
  line-height: 1.75;
}

.legal-main ul {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  margin-left: 1.2rem;
  list-style: disc inside;
}

.legal-footer {
  text-align: left;
  margin-top: 2rem;
  color: #64748b;
}

/* ===== MOBILE RESPONSIVE - VISION SECTION ===== */
/* Vision mobile styles are consolidated in the main @media (max-width: 992px) block above */

/* Handle problematic dotted patterns at tablet size */
@media (max-width: 1024px) {
  .dots-pattern,
  .dots-pattern-left,
  .dots-pattern-bottom,
  .dots-pattern-values-left,
  .dots-pattern-values-right,
  .dots-pattern-about-left,
  .dots-pattern-about-right {
    transform: scale(0.9);
  }
}

/* Completely remove scroll animation from Values section */
.values-section,
.values-section.animate-on-scroll,
.values-section.animate-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: white;
  padding: 1.2rem 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-content a {
  color: #6366f1;
  text-decoration: underline;
}

.cookie-accept {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.cookie-accept:hover {
  background: var(--brand-gradient-hover);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    font-size: 0.9rem;
  }
}

/* Make Terms & Conditions fully readable - Override faded colors */
.legal-main p,
.legal-main li,
.legal-main ol {
  color: #0f172a !important; /* deep dark navy */
}

.legal-main em {
  color: #0f172a !important; /* remove faded emphasis */
  font-weight: 600;
}

.legal-main .last-updated {
  color: #334155 !important; /* slightly lighter but still readable */
}

.legal-footer {
  color: #334155 !important; /* slightly lighter but still readable */
  text-align: left;
  margin-top: 2rem;
}

/* STOP flicker / disappear issue on Terms page (mobile animation bug) */
.legal-container,
.legal-container.animate-on-scroll,
.legal-container.animate-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
