* {
  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: 90vh;
  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: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;
  /* or left */
  max-width: 1100px;
  /* make wider */
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
  /* allow wrapping */
}


.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.8;
}

.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: #f8f9fa;
  position: relative;
  z-index: 10;
}

.title-section {
  padding: 10px 0;
  text-align: center;
  background: #f8f9fa;
}

.title-section h1 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.2;
}

.title-section p {
  font-size: 16px;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
  line-height: 2.2;
  text-align: center;
}


/*Service Section*/

.services {
  padding: 6rem 2rem;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards in one row */
  gap: 30px;              /* space between cards */
  padding: 40px 20px;     /* space around the grid */
  max-width: 1400px;      /* allow enough width */
  margin: 0 auto;         /* center the grid */
}

.service-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Responsive: switch to 2 columns on medium screens */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: single column on small screens */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  padding: 1rem;
  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;
  height: 500px;
}

.service-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;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #66ea92 0%, #4ba261 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon i {
  font-size: 1.5rem;
  color: white;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.service-subtitle {
  font-size: 1rem;
  color: #4ba261;
  font-weight: 500;
  margin-bottom: 1rem;
}

.service-description {
  color: #666;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Workflow Section */
.workflow {
  padding: 2rem 0;
  background: white;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  /* 5 equal columns */
  gap: 2rem;
  margin-top: 3rem;
}

.workflow-step {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 1rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  overflow: hidden;

  /* Make all equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.workflow-step::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;
}

.workflow-step:hover::before {
  transform: scaleX(1);
}

.workflow-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* FIXED: Ongoing Support should not take full row */
.workflow-step.ongoing-support {
  grid-column: auto;
  max-width: none;
  margin: 0;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #66ea92 0%, #4ba261 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.workflow-step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.step-icon i {
  font-size: 1.8rem;
  color: white;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.step-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 2.5;
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
  .workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}


/* Why Choose Us Section */
.why-choose-us {
  padding: 4rem 0;
  background: #f8f9fa;
  text-align: center;
}

.section-description {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.8;
}

/* What Sets Apart Section */
.what-sets-apart {
  padding: 2rem 0;
  background: white;
}

.features-list {
  list-style: none;
  max-width: 600px;
  margin: 2rem auto 0;
}

.features-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 2rem;
  color: #666;
  font-size: 1.05rem;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.2rem;
}

.features-list li:last-child {
  border-bottom: none;
}


/* ================================
   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: 1.8;
}
.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;
}

/* ================================
   Responsive Styles 
=============================== */

/* Hamburger visibility */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Make hamburger visible */
  }

  .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;
  }
}

/* Adjust container padding on small screens */
@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }
}

/* Hero Section Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-description {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
}

/* Services Section Responsive */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    height: auto; /* let height adjust naturally */
  }
}

/* Workflow Section Responsive */
@media (max-width: 1200px) {
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

/* What Sets Apart Section */
@media (max-width: 768px) {
  .features-list {
    max-width: 100%;
    padding: 0 15px;
  }
}

/* What Sets Apart Section */
@media (max-width: 768px) {
  .section-description {
   text-align: left;
  }
}

/* What Sets Apart Section */
@media (max-width: 768px) {
  .section-subtitle {
   text-align: left;
  }
}