* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Oxanium', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  margin-top: 60px;
}

/* RTL Support */
html[dir="rtl"] .nav-menu {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .nav-menu li {
  float: right;
}

html[dir="rtl"] .hero-content {
  text-align: right;
}

/* ================================
   Header & Navbar
================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}

.logo-icon img {
  width: 40px;
  height: auto;
  display: block;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.logo-text .cubic {
  font-weight: 600;
}

.logo-text .labs {
  font-weight: 400;
}

/* Language Switcher */
.language-switcher {
  margin-left: 10px;
}

#lang-btn {
  background: #46a24a;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

#lang-btn:hover {
  background: #f44336;
}


/* Nav Links */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: 0.3s;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #4CAF50;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #4CAF50;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* reduced from 1rem */
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}


/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 2;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
  background: linear-gradient(45deg, #f44336, #d32f2f);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}


/* Main Content */
.main-content {
  background: white;
  position: relative;
  z-index: 10;
}

.title-section {
  padding: 30px 0;
  padding-bottom: 50px;
  text-align: center;
  background: #f8f9fa;
}

.title-section h1 {
  font-size: 30px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.2;
}

.title-section p {
  font-size: 1rem;
  color: #666;
  max-width: 1900px;
  margin: 0 10px;
  line-height: 2;
  text-align: left;
}

/* How We Work Section */
.how-we-work {
  padding: 30px 0;
  background: white;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.text-content h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.text-content p {
  font-size: 1rem;
  color: #666;
  line-height: 2;
  margin-bottom: 30px;
}

.cta-button {
  background: #46a24a;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #dc2626;
}

.image-content img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Our Essence Section */
.our-essence {
  padding: 40px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.badge {
  display: inline-block;
  /* background: #10b981; */
  color: #333;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 36px;
  font-weight: 600;
  /* margin-bottom: 20px; */
}

.section-header h2 {
  font-size: 22px;
  font-weight:400;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}

.essence-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}


.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #66ea92 0%, #4ba261 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}



.card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* From The Heart Section */
.from-the-heart {
  padding: 40px 0;
  background: white;
}

.from-the-heart h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.heart-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.heart-content .text-content p {
  font-size: 1rem;
  color: #666;
  line-height: 2;
  margin-bottom: 25px;
}

.signature {
  margin-top: 40px;
  padding-left: 20px;
  border-left: 4px solid #10b981;
}

.signature p {
  margin-bottom: 5px !important;
  color: #333 !important;
}

.heart-content .image-content img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* What Makes Different Section */
.what-makes-different {
  padding: 30px 0;
  background: #f8f9fa;
}

.what-makes-different .container {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* LAYOUT */
.different-content {
  display: flex;
  align-items: center;
  /* vertical alignment */
  justify-content: center;
  /* center the two columns */
  gap: 48px;
  /* controlled space between text & image */
  flex-wrap: wrap;
  /* stack on small screens */
}

/* TEXT SIDE */
.text-content {
  max-width: 520px;
}

.what-makes-different h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: #333;
  margin-bottom: 32px;
  /* smaller gap above content */
}

.different-content h3 {
  color: #46a24a;
  font-size: clamp(22px, 2.2vw, 32px);
  margin: 0 0 10px;
  /* minimal gap to paragraph */
}

.different-content p {
  color: #444;
  line-height: 2;
  margin: 0 0 16px;
}

/* DOTS */
/* .service-dots { display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.green { background: #10b981; }
.dot.blue { background: #3b82f6; }
.dot.yellow { background: #f59e0b; } */

/* IMAGE SIDE — NO BOX SHADOW */
.image-content {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  /* kill any wrapper shadow */
}

.image-content img {
  width: min(420px, 40vw);
  height: 400px;
  /* object-fit: fill;
  object-fit: contain; */
  background: transparent !important;
  border: 0;
  outline: none;
  filter: none !important;
  box-shadow: none !important;
  /* kill any image shadow */
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .different-content {
    flex-direction: column;
    text-align: left;
    gap: 24px;
  }

  .service-dots {
    justify-content: center;
  }
}


.carousel {
  position: relative;
  min-height: 160px;
}

.carousel-item {
  display: none;
  animation: fadeIn 0.8s ease-in-out;
}

.carousel-item.active {
  display: block;
  line-height: 1.7;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.dot.active {
  background: #ef4444;
}



/* ================================
   Footer
================================ */
.footer {
  background: #333;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.logo-text .cubic-footer,
.logo-text .labs-footer {
  color: white !important;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-description {
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 2;
}

.footer-contact p {
  color: #ccc;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #4CAF50;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #ccc;
  font-size: 1.2rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: #4CAF50;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* ================================
   Mobile Responsiveness (Improved)
================================ */

/* Hamburger visibility */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    height: calc(100vh - 70px);
    width: 250px;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }
}

/* Hero Section */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    line-height: 2;
    text-align: left;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 2;
    text-align: left;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Main Content Sections */
@media (max-width: 992px) {
  .section-content,
  .heart-content,
  .different-content,
  .essence-cards {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 30px;
  }

  .image-content img,
  .how-we-work .image-content img,
  .heart-content .image-content img,
  .what-makes-different .image-content img,
  .our-essence .card img {
    width: 100%;
    height: auto;
  }

  .text-content,
  .different-content .text-content,
  .heart-content .text-content {
    max-width: 100%;
    text-align: left;
    line-height: 2;
  }

  .section-header h2,
  .from-the-heart h2,
  .what-makes-different h2,
  .title-section h1 {
    font-size: clamp(24px, 5vw, 32px);
    text-align: left;
  }

  .text-content h2,
  .card h3,
  .different-content h3 {
    font-size: clamp(20px, 4vw, 28px);
    text-align: center;
  }

  .text-content p,
  .card p,
  .different-content p,
  .heart-content .text-content p {
    font-size: 16px;
    line-height: 2;
    text-align: left;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 2;
    text-align: left;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 2;
    text-align: left;
  }

  .cta-button,
  .btn {
    width: 100%;
    text-align: center;
  }

  .essence-cards,
  .heart-content {
    grid-template-columns: 1fr;
  }

  .what-makes-different .different-content {
    flex-direction: column;
    text-align: left;
  }

  .image-content img {
    width: 100%;
    height: auto;
  }

  .text-content p {
    line-height: 2;
    text-align: left;
  }
}
