* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
}

.bg-image-hero {
  background-image: url("public/assets/mask-group.png");
  background-position: center;
  background-repeat: no-repeat;
  height: 637px;
  width: 100%;
}
.container {
  max-width: 1296px !important;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  background-color: #ef8b1d;
  color: white;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  /* border-radius: 6px; */
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #d67a18;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: black;
}

.nav-item:hover {
  color: #253a76;
  border-bottom: 2px solid #ef8b1d;
}

.nav-item:hover::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: calc(50% - 2.5px);
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid #ef8b1d;
}

.nav-item.active {
  font-weight: 700;
  color: #253a76;
  border-bottom: 2px solid #ef8b1d;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: calc(50% - 2.5px);
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid #ef8b1d;
}

.hero-image-container {
  /* position: relative; */
  width: 636px;
  height: 636px;
}

.product-card {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(242, 246, 255, 0.8) 100%
  );
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .modal.active {
    align-items: flex-start;
    padding: 10px;
    padding-top: 20px;
  }
}

.modal-content {
  background-color: white;
  padding: 0;
  border-radius: 12px;
  width: 1080px;
  height: 621px;
  position: relative;
  animation: slideIn 0.3s ease;
  overflow-y: auto;
}

.modal-header {
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-header h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #253a76;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background-color: #c1c1c1;
}

.modal-body {
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Mobile Modal Responsive Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    height: auto;
    max-height: 90vh;
    margin: auto !important;
  }

  .modal-right span {
    margin: 0% !important;
  }

  .cable-type-item {
    margin-bottom: 6px !important;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .modal-body {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }

  .modal-left {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .modal-right {
    order: 2;
    width: 100%;
    margin: 0;
  }

  .modal-cable-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
  }

  .modal-right h3 {
    font-size: 20px !important;
    margin-bottom: 12px;
  }

  .modal-right h4 {
    font-size: 18px !important;
    margin-bottom: 8px;
  }

  .modal-right p {
    font-size: 16px !important;
    margin-bottom: 8px;
  }

  .modal-right .cable-type-item .description {
    font-size: 16px;
  }

  .close-modal {
    right: 15px;
    top: 15px;
    padding: 8px;
  }

  .close-modal img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98vw;
    margin: 5px;
    max-height: 95vh;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-body {
    padding: 15px;
    gap: 15px;
  }

  .modal-cable-image {
    max-width: 250px;
  }

  .modal-right h3 {
    font-size: 18px;
  }

  .modal-right h4 {
    font-size: 16px;
  }

  .modal-right p {
    font-size: 14px;
  }
}

/* Additional mobile modal improvements */
@media (max-width: 768px) {
  .modal {
    z-index: 1001; /* Ensure it's above mobile menu */
  }

  .modal-content {
    border-radius: 8px;
  }

  .modal-header::after {
    left: 15px;
    right: 15px;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .modal-content {
    max-height: 85vh;
  }

  .modal-body {
    padding: 15px;
    gap: 15px;
  }

  .modal-cable-image {
    max-width: 200px;
  }
}

.modal-left {
  /* flex: 1; */
  position: relative;
}

.modal-right {
  flex: 1;
  /* padding-left: 20px; */
  margin: auto;
}

.modal-right h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #000000;
  margin-bottom: 15px;
}

.modal-right span {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #767676;
  margin-top: 6px;
  display: block;
}

.modal-right .cable-type {
  display: flex;
  flex-direction: column;
}

.modal-right .cable-type-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.modal-right .cable-type-item .label {
  font-weight: 600;
  color: #000000;
  min-width: 60px;
}

.modal-right .cable-type-item .description {
  font-weight: 400;
  color: #767676;
  flex: 1;
}

.modal-right h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #767676;
  margin-bottom: 10px;
}

.modal-right p {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #767676;
  margin-bottom: 10px;
  align-self: stretch;
}

.modal-cable-image {
  /* width: 100%; */
  /* height: 300px; */
  object-fit: contain;
  position: relative;
}

.modal-q-shape {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  background-color: rgba(200, 200, 200, 0.3);
  border-radius: 50%;
  z-index: 1;
}

.modal-q-shape::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
}

.modal-q-shape::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 30px;
  height: 30px;
  background-color: rgba(200, 200, 200, 0.3);
  border-radius: 50%;
}

.close-modal {
  position: absolute;
  right: 30px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 4px;
}

.close-modal:hover {
  color: #ef8b1d;
  background-color: rgba(239, 139, 29, 0.1);
  transform: scale(1.1);
}

.close-modal img {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: white;
  /* border: 1px solid #cfd4dc; */
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  align-self: stretch;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 14px;
  background: white;
  /* border: 1px solid #cfd4dc; */
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  resize: none;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-label {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  color: #374151;
  font-size: 16px;
  margin-bottom: 6px;
}

/* Font Family Classes */
.font-poppins {
  font-family: "Poppins", sans-serif;
}

.font-manrope {
  font-family: "Manrope", sans-serif;
}

/* Typography Styles */
.heading-primary {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.heading-secondary {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.body-text {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
}

.body-text-medium {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
}

.body-text-semibold {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.body-text-bold {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

/* Manufacturing Technologies Section */
.manufacturing-section {
  position: relative;
  overflow: visible;
  scroll-behavior: smooth;
  min-height: 100vh;
}

.manufacturing-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  min-height: 100vh;
}

.manufacturing-right-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 20px 0;
}

/* Hide scrollbar for webkit browsers */
.manufacturing-right-content::-webkit-scrollbar {
  display: none;
}

.manufacturing-left-panel {
  position: sticky;
  top: 100px;
  flex: 0 0 350px;
  /* height: 100vh; */
  z-index: 10;
  transition: transform 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-choose-card {
  width: 300px;
  height: 601px;
  background-color: #253a76;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.why-choose-text {
  position: absolute;
  top: 39px;
  left: 35px;
  font-family: "Manrope", sans-serif;
  font-size: 46px;
  line-height: 50px;
  z-index: 2;
}

.cable-image-container {
  position: absolute;
  bottom: 0;
  left: -57px;
  width: 413px;
  height: 266px;
  z-index: 1;
}

.cable-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manufacturing-section-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  min-height: 400px;
  transition: opacity 0.3s ease;
  scroll-margin-top: 20px;
}

.section-number {
  color: #767676;
  font-family: "Manrope", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.section-item-content {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  color: #000;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.section-description {
  color: #767676;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.section-image {
  width: 416px;
  height: 416px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .manufacturing-section {
    height: auto;
    min-height: 100vh;
  }

  .manufacturing-content {
    flex-direction: column;
    gap: 40px;
    height: auto;
  }

  .manufacturing-left-panel {
    display: none;
  }

  .manufacturing-right-content {
    height: auto;
    overflow-y: visible;
  }

  .manufacturing-section-item {
    flex-direction: column;
    /* gap: 20px;
    text-align: center; */
  }

  .section-number {
    font-size: 80px;
    flex: none;
    margin-top: 0;
  }

  .section-image {
    width: 100%;
    max-width: 416px;
    height: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .why-choose-card {
    width: 280px;
    height: 500px;
  }

  .why-choose-text {
    font-size: 36px;
    line-height: 40px;
    top: 30px;
    left: 25px;
  }

  .section-item-content {
    gap: 0px;
  }

  .manufacturing-right-content {
    height: auto;
    overflow-y: visible;
    padding-right: 0;
    gap: 10px;
  }

  .cable-image-container {
    left: -40px;
    width: 360px;
    height: 200px;
  }

  .section-number {
    font-size: 60px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-description {
    font-size: 16px;
  }
}

/* Products Page Styles */
.products-hero {
  background: linear-gradient(135deg, #253a76 0%, #1e2f5a 100%);
}

.bg-image-products {
  background-image: url("public/assets/products/product-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  /* height: 100%;
  width: 100%; */
}

.products-hero h1 {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.background-text {
  font-size: 8rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1024px) {
  .background-text {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .background-text {
    font-size: 4rem;
  }
}

/* Product Section Styling */
.product-section {
  position: relative;
  overflow: hidden;
}

.product-section:nth-child(even) {
  background-color: #f8f9fa;
}

/* Cable Type Items */
.cable-type-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cable-type-item .label {
  font-weight: 600;
  color: #253a76;
  min-width: 80px;
  font-size: 1.125rem;
}

.cable-type-item .description {
  font-weight: 400;
  color: #6b7280;
  flex: 1;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Mobile Navigation Styles */
.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #253a76;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: white;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-close {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-line {
  width: 20px;
  height: 2px;
  background-color: #253a76;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.close-line:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

.close-line:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-close:hover {
  background-color: #f3f4f6;
  border-radius: 6px;
}

.mobile-menu-nav {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-item {
  display: block;
  padding: 12px 0;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  transform: translateX(20px);
  animation: slideInNavItem 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-item:nth-child(2) {
  animation-delay: 0.15s;
}
.mobile-nav-item:nth-child(3) {
  animation-delay: 0.2s;
}
.mobile-nav-item:nth-child(4) {
  animation-delay: 0.25s;
}

@keyframes slideInNavItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-item:hover {
  color: #253a76;
  padding-left: 12px;
  cursor: pointer;
}

.mobile-nav-item.active {
  color: #253a76;
  font-weight: 700;
  background-color: #f0f4ff;
  padding-left: 12px;
  border-radius: 10px;
}

.mobile-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background-color: #ef8b1d;
  border-radius: 2px;
}

/* Mobile Menu Button Animation */
#mobile-menu-button.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

#mobile-menu-button.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-button.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive adjustments for mobile menu */
@media (max-width: 768px) {
  .mobile-menu-content {
    width: 85%;
    max-width: 300px;
  }

  .mobile-nav-item {
    font-size: 16px;
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .mobile-menu-content {
    width: 90%;
    max-width: 280px;
  }
}

/* Mobile Hero Section Styles */
@media (max-width: 1023px) {
  .hero-section-container {
    background-image: none !important;
  }
  .section-item-content {
    max-width: 100%;
  }
  .section-image {
    margin: 0 0;
  }
}
