* {
  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);
}


/* Company Culture Section */
.culture-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin-bottom: 30px;
}

.section-description {
    font-size: 16px;
    color: #666;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.culture-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.culture-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.culture-card:hover::before {
    left: 100%;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.culture-card:hover .card-icon {
    transform: scale(1.1) rotateY(10deg);
}

.career-growth {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.health-care {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.great-people {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.social-commitment {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.card-icon i {
    color: white;
    font-size: 32px;
}

.culture-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.culture-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Jobs Section */
.jobs-section {
    background: white;
    padding: 80px 0;
}

.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.job-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #46a24a;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.job-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #46a24a, #71db76);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-icon i {
    color: white;
    font-size: 20px;
}

.job-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.job-level {
    color: #666;
    font-size: 14px;
}

.job-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    margin-top: 20px;
}

.job-content h4:first-child {
    margin-top: 0;
}

.job-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.job-content ul {
    list-style: none;
    margin-bottom: 25px;
}

.job-content ul li {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.job-content ul li::before {
    content: '•';
    color: #4285f4;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.apply-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* Application Section */
.application-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.application-intro {
    text-align: center;
    margin-bottom: 50px;
}

.application-intro p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.application-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.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: #46a24a;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.file-upload {
    position: relative;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.file-label:hover {
    border-color: #46a24a;
    background: #f0f7ff;
}

.file-label i {
    color: #46a24a;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.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);
}



/* ================================
   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 Enhancements
================================= */

/* Mobile adjustments for screens ≤768px */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Hero Section */
  .hero {
    height: 70vh;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  /* Company Culture Section */
  .culture-section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 28px;
  }
  .section-description {
    font-size: 16px;
    margin-bottom: 40px;
    text-align: left;
  }
  .culture-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .culture-card {
    padding: 30px 20px;
  }

  /* Jobs Section */
  .jobs-section {
    padding: 50px 0;
  }
  .job-listings {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .job-card {
    padding: 20px;
  }

  /* Application Section */
  .application-section {
    padding: 50px 0;
  }
  .application-form {
    padding: 30px 20px;
  }
}

/* Extra small screens ≤480px */
@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .culture-card h3 {
    font-size: 18px;
  }
  .culture-card p {
    font-size: 13px;
  }
  .job-info h3 {
    font-size: 18px;
  }
  .job-level,
  .job-content p,
  .job-content ul li {
    font-size: 13px;
  }
  .apply-btn {
    padding: 10px 25px;
    font-size: 13px;
  }
  .application-form {
    padding: 25px 15px;
  }
  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 14px;
  }
  .file-label {
    padding: 12px 15px;
    font-size: 14px;
  }
  .submit-btn {
    padding: 14px 30px;
    font-size: 14px;
  }
}
