* {
  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: 3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.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);
}



/* Contact Section */
.contact-section {
  background: #f8f6ff;
  padding: 80px 0;
}

.contact-intro {
  text-align: center;
  margin-bottom: 60px;
}

.contact-intro p {
  font-size: 20px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Contact Form */
.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* margin-bottom: 20px; */
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

.submit-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(238, 90, 82, 0.3);
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.phone {
  background: linear-gradient(135deg, #4caf50, #45a049);
}

.contact-icon.email {
  background: linear-gradient(135deg, #ee5a52, #e94239);
}

.contact-icon.location {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

.contact-icon i {
  color: white;
  font-size: 20px;
}

.contact-details h4 {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-details p {
  color: #2d3748;
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
}

/* ================================
   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.6;
}

.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
================================ */

/* 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;
  }
}

/* ==============================
   Mobile Responsiveness
================================= */

/* Adjust container padding */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2rem; /* scale down */
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  /* Contact Section */
  .contact-content {
    grid-template-columns: 1fr; /* stack columns */
    gap: 40px;
  }

  .contact-form-container {
    padding: 40px 30px; /* reduce padding */
  }

  .form-row {
    grid-template-columns: 1fr; /* single column for inputs */
    gap: 15px;
  }

  .contact-info {
    gap: 40px;
  }
}

/* Small screens (≤480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .contact-form-container {
    padding: 30px 20px;
  }


.contact-section {
  padding: 50px;
  text-align: center;
}

/* Map Section Styling - Desktop First */
.map-container {
  width: 100%;
  max-width: 1400px;
  margin: 60px auto 0 auto;
  padding: 0 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.map-container iframe {
  width: 100%;
  max-width: 1200px;
  height: 600px;
  min-height: 400px;
  border: none;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  display: block;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.map-container iframe:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* Contact Section with Map - Desktop Optimized */
.contact-section:last-of-type {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.contact-section:last-of-type .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-section:last-of-type h2 {
  font-size: 3.5rem;
  color: #2c3e50;
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-section:last-of-type p {
  font-size: 1.3rem;
  color: #5a6c7d;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Large Desktop Optimization */
@media (min-width: 1440px) {
  .map-container {
    max-width: 1600px;
    margin: 80px auto;
    padding: 0 60px;
  }
  
  .map-container iframe {
    max-width: 1400px;
    height: 650px;
    border-radius: 30px;
  }
  
  .contact-section:last-of-type {
    padding: 140px 0;
  }
  
  .contact-section:last-of-type .container {
    max-width: 1600px;
    padding: 0 60px;
  }
  
  .contact-section:last-of-type h2 {
    font-size: 4rem;
    margin-bottom: 3rem;
  }
  
  .contact-section:last-of-type p {
    font-size: 1.4rem;
    max-width: 900px;
    margin-bottom: 6rem;
  }
}

/* Responsive Design for Map */
@media (max-width: 1024px) {
  .map-container {
    max-width: 900px;
    margin: 40px auto;
  }
  
  .map-container iframe {
    max-width: 850px;
    height: 450px;
  }
  
  .contact-section:last-of-type h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .map-container {
    width: 100%;
    padding: 0 15px;
    margin: 30px auto 0 auto;
    max-width: 100%;
  }
  
  .map-container iframe {
    width: 100%;
    max-width: 100%;
    height: 350px;
    min-height: 300px;
    border-radius: 15px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-section:last-of-type {
    padding: 80px 0;
    width: 100%;
  }
  
  .contact-section:last-of-type h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-section:last-of-type p {
    font-size: 1.1rem;
    padding: 0 20px;
    margin-bottom: 3rem;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .map-container {
    width: 100%;
    margin: 25px auto 0 auto;
    padding: 0 10px;
  }
  
  .map-container iframe {
    width: 100%;
    height: 280px;
    min-height: 250px;
    border-radius: 12px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-section:last-of-type {
    padding: 60px 0;
    width: 100%;
  }
  
  .contact-section:last-of-type h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }
  
  .contact-section:last-of-type p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
  }
}
  
  .contact-section:last-of-type {
    padding: 40px 0;
  }
  
  .contact-section:last-of-type h2 {
    font-size: 1.8rem;
  }
}

/* Additional Map Section Enhancements - Desktop Optimized */
.map-container {
  position: relative;
}

.map-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  border-radius: 3px;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Desktop-specific decorative elements */
.contact-section:last-of-type::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 85%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(68, 160, 73, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Enhanced focus and accessibility for desktop */
.map-container iframe:focus {
  outline: 4px solid #4CAF50;
  outline-offset: 4px;
  border-radius: 25px;
}

/* Desktop hover effects */
@media (hover: hover) {
  .contact-section:last-of-type h2 {
    transition: all 0.3s ease;
  }
  
  .contact-section:last-of-type h2:hover {
    color: #4CAF50;
    transform: translateY(-2px);
  }
}

/* Loading animation for map */
.map-container iframe {
  opacity: 0;
  animation: fadeInMap 1s ease-out 0.5s forwards;
}

@keyframes fadeInMap {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Map section background pattern */
.contact-section:last-of-type {
  position: relative;
  overflow: hidden;
}

.contact-section:last-of-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(68, 160, 73, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Ensure content is above the background pattern */
.contact-section:last-of-type .container {
  position: relative;
  z-index: 1;
}

/* Focus styles for accessibility */
.map-container iframe:focus {
  outline: 3px solid #4CAF50;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .map-container iframe {
    display: none;
  }
  
  .map-container::after {
    content: "Map: Kuwait City, Qibla, Salhiya Street, Luhaib (3), Office No: 213";
    display: block;
    padding: 20px;
    border: 2px solid #333;
    text-align: center;
    font-weight: bold;
  }
}/* Enh
anced Map Responsiveness and Pin Visibility */
.map-container {
  aspect-ratio: 16/9;
  min-height: 300px;
}

.map-container iframe {
  aspect-ratio: inherit;
  object-fit: cover;
}

/* Map Loading State */
.map-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  animation: mapSpin 1s linear infinite;
  z-index: -1;
}

@keyframes mapSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hide loading spinner when map loads */
.map-container iframe[src] + ::after {
  display: none;
}

/* Ensure map container maintains aspect ratio */
@media (max-width: 1200px) {
  .map-container {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 768px) {
  .map-container {
    aspect-ratio: 16/10;
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .map-container {
    aspect-ratio: 1/1;
    min-height: 200px;
  }
}

/* Enhanced pin visibility styles */
.map-container iframe {
  filter: contrast(1.1) saturate(1.2);
}

.map-container iframe:hover {
  filter: contrast(1.2) saturate(1.3);
}