/* ============================================
   INDUS WEIGHING SYSTEMS - STYLES
   ============================================ */

:root {
  /* Colors */
  --primary: #0097F0;
  --secondary: #1A1A1A;
  --accent: #FF5E5B;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--secondary);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: var(--spacing-xl) 0;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* FLOATING COMPANIES BUTTON */
.floating-companies {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: block;
}

.floating-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 160px;
  justify-content: center;
}

.floating-btn:hover {
  background: #0076bd;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 151, 240, 0.3);
}

.floating-btn:active {
  transform: translateY(0);
}

.floating-icon {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

.floating-text {
  white-space: nowrap;
}

.floating-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: var(--transition);
  min-width: 200px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.floating-companies.active .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}

.floating-link:last-child {
  border-bottom: none;
}

.floating-link:hover {
  background: var(--gray-50);
  color: var(--primary);
  padding-left: 1.5rem;
}

.company-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.company-name {
  font-weight: 500;
  font-size: 0.9rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobile responsive for floating button */
@media (max-width: 768px) {
  .floating-companies {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-btn {
    padding: 0.875rem 1.25rem;
    min-width: 140px;
    font-size: 0.85rem;
  }
  
  .floating-text {
    display: none;
  }
  
  .floating-btn {
    min-width: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }
  
  .floating-menu {
    min-width: 180px;
  }
  
  .floating-link {
    padding: 0.875rem 1rem;
  }
  
  .company-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .floating-companies {
    bottom: 15px;
    right: 15px;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
  }
  
  .floating-icon {
    font-size: 1rem;
  }
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #0076bd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* NAVBAR */
.navbar {
  height: var(--header-height);
  background: var(--white);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0; /* Back to top since top bar removed */
  left: 0;
  width: 100%;
  z-index: 1000; /* Back to top z-index */
  transition: var(--transition);
}

.navbar.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.logo-img-wrapper {
  height: 60px;
  /* Bigger logo height */
  overflow: hidden;
  /* This will crop the red border */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.logo img {
  height: 64px;
  /* Slightly taller to push borders out */
  margin: -2px;
  /* Pull borders outside the overflow container */
  width: auto;
  object-fit: contain;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.nav-links li {
  display: list-item;
}

.nav-link {
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  margin-top: -var(--header-height);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide img {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 20%);
  /* Modern gradient to make left-side black text readable without hiding the image */
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-left: 5%;
  /* Left align */
}

.hero-content {
  max-width: 700px;
  text-align: left;
  color: #000000;
  /* Pure black text as requested */
  background: transparent;
  /* No box, preserve image visibility */
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 5;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 151, 240, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #000000;
  /* Soft white glow to pop black text against images without a solid box */
  /* text-shadow: 0 0 12px rgba(255, 255, 255, 1), 2px 2px 4px rgba(255, 255, 255, 0.5); */
}

.hero-highlight {
  color: var(--primary);
}

.hero p {
  background: rgba(248, 248, 248, 0.7); /* 0.5 is 50% transparency */
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #2a06f5;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 15px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-image {
  position: relative;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.experience-badge .number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.experience-badge .text {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PRODUCTS */
.products-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--spacing-lg);
}

.tab {
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  border-radius: 30px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.tab:hover {
  background: var(--gray-200);
}

.tab.active {
  background: var(--primary);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image-container {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.product-card-accuracy {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.product-card-footer {
  margin-top: 1rem;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  background: var(--gray-50);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-lg);
}

.contact-info-list {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  color: var(--primary);
  font-size: 1.25rem;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
}

/* FOOTER */
footer {
  background: var(--gray-800);
  color: var(--white);
  padding: var(--spacing-lg) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  color: var(--gray-300);
}

.footer-bottom a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: none;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero {
    height: 100vh;
  }
  
  .hero-slide {
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .modal-content {
    max-width: 1200px;
  }
  
  .modal-title {
    font-size: 2.5rem;
  }
}

/* Desktops (992px to 1199px) */
@media (max-width: 1199px) {
  .hero {
    height: 100vh;
  }
  
  .hero-slide {
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
  .hero {
    height: 80vh;
  }
  
  .hero-slide {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .product-card {
    padding: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }
  
  .modal-info-side {
    padding: 2.5rem;
  }
  
  .modal-image-side {
    padding: 2rem;
  }
}

/* Mobile Landscape (480px to 767px) */
@media (max-width: 767px) {
  .hero {
    height: 70vh;
  }
  
  .hero-slide {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-card {
    padding: 1rem;
  }
  
  .product-card-name {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px; /* Touch-friendly */
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Mobile Portrait (320px to 479px) */
@media (max-width: 479px) {
  .hero {
    height: 60vh;
  }
  
  .hero-slide {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-card {
    padding: 1.5rem;
  }
  
  .product-card-image {
    height: 200px;
  }
  
  .product-card-name {
    font-size: 1.2rem;
  }
  
  .product-card-accuracy {
    font-size: 0.85rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    font-size: 2rem;
  }
  
  .service-title {
    font-size: 1.1rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .modal-content {
    width: 98%;
    border-radius: 16px;
    margin: 10px auto;
  }
  
  .modal-info-side {
    padding: 1.5rem;
  }
  
  .modal-image-side {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.75rem;
  }
  
  .modal-category {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .modal-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .modal-section h4 {
    font-size: 1rem;
  }
  
  .modal-specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-list li {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
  
  .modal-footer {
    padding: 1.5rem;
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
  }
  
  .close-modal {
    width: 36px;
    height: 36px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
}

/* Touch and Accessibility Improvements */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    transform: none;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .modal-section:hover {
    transform: none;
  }
  
  .modal-list li:hover {
    transform: none;
  }
  
  .spec-item:hover {
    transform: none;
  }
  
  /* Increase tap targets */
  .close-modal {
    min-width: 44px;
    min-height: 44px;
  }
  
  .product-card {
    cursor: pointer;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .modal-image-side img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .modal,
  .hero,
  .footer {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(10px);
  padding-top: 30px;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff, #fafbfc);
  margin: auto;
  padding: 0;
  border-radius: 24px;
  width: 92%;
  max-width: 1000px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #64748b;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
  color: #ffffff;
  background: var(--primary);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

#modalBody {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
}

.modal-image-side {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.modal-image-side::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.modal-image-side img {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 400px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-in;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.modal-image-side:hover img {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.3);
}

/* Click for fullscreen only */
.modal-image-side.fullscreen-zoom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: zoom-out;
}

.modal-image-side.fullscreen-zoom img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: none;
}

.modal-info-side {
  padding: 3.5rem;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff, #fafbfc);
}

.modal-info-side::-webkit-scrollbar {
  width: 6px;
}

.modal-info-side::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.modal-info-side::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: 3px;
}

.modal-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.modal-category {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.modal-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-section h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section h4::before {
  content: '▸';
  color: var(--primary);
  font-size: 1.2rem;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.spec-item {
  font-size: 0.95rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.spec-item:hover {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-color: var(--primary);
  transform: translateX(2px);
}

.spec-label {
  font-weight: 800;
  color: var(--primary);
  margin-right: 0.5rem;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-list {
  padding-left: 0;
  list-style: none;
}

.modal-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  transition: all 0.2s ease;
  position: relative;
}

.modal-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.modal-list li:hover {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  transform: translateX(4px);
  box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.2);
}

.modal-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-section th {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
  font-weight: 800;
  padding: 1rem;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-section td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  font-size: 0.9rem;
}

.modal-section tr:last-child td {
  border-bottom: none;
}

.modal-section tr:hover td {
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
}

.modal-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  margin: 2.5rem -3.5rem -3.5rem -3.5rem;
  padding: 2rem 3.5rem;
  border-radius: 0 0 24px 24px;
}

@media (max-width: 768px) {
  #modalBody {
    grid-template-columns: 1fr;
  }

  .modal-image-side {
    padding: 1rem;
  }

  .modal-info-side {
    padding: 1.5rem;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr;
  }
}

.modal-tabs-container {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.modal-tabs {
  display: flex;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-bottom: 1px solid #e2e8f0;
}

.modal-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gray-600);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  outline: none;
}

.modal-tab:hover {
  background: rgba(59, 130, 246, 0.05);
  color: var(--primary);
}

.modal-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.modal-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.modal-tab-content {
  position: relative;
  min-height: 200px;
}

.modal-tab-pane {
  display: none;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}