.operating-systems-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.operating-systems-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  pointer-events: none;
}

.operating-systems-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.operating-systems-section .section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.os-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem !important;
  min-height: 140px;
}

.os-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.os-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2), 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid #007bff;
  background: linear-gradient(145deg, #ffffff 0%, #f0f8ff 100%);
}

.os-card:hover::before {
  left: 100%;
}

.os-icon {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  margin-bottom: 12px;
  width: 100%;
}

.os-card:hover .os-icon {
  transform: scale(1.1);
}

.os-icon img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(10%) brightness(1.1);
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.os-card:hover .os-icon img {
  filter: grayscale(0%) brightness(1.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.os-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2c3e50;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.os-card:hover .os-name {
  color: #007bff;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Single row layout for all screen sizes */
.operating-systems-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
  margin: 0 auto;
  max-width: 1200px;
}

.operating-systems-section .col {
  flex: 0 0 auto;
  width: calc(14.28% - 20px);
  min-width: 140px;
  margin-bottom: 20px;
}

/* Hide extra elements in desktop mode */
.operating-systems-section .col:nth-child(n+8) {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .operating-systems-section .section-title {
    font-size: 1.8rem;
  }
  
  .operating-systems-section .col {
    width: calc(20% - 20px);
    min-width: 120px;
  }
  
  .operating-systems-section .col:nth-child(n+6) {
    display: none;
  }
  
  .os-name {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
  }
  
  .os-card {
    padding: 1.2rem 0.8rem !important;
    border-radius: 15px;
    min-height: 120px;
  }
  
  .os-icon {
    height: 60px;
    margin-bottom: 10px;
  }
  
  .os-icon img {
    max-height: 45px !important;
  }
}

@media (max-width: 768px) {
  .operating-systems-section .section-title {
    font-size: 1.5rem;
  }
  
  .operating-systems-section .col {
    width: calc(25% - 15px);
    min-width: 100px;
  }
  
  .operating-systems-section .col:nth-child(n+5) {
    display: none;
  }
  
  .operating-systems-section .row {
    gap: 15px;
  }
  
  .os-card {
    padding: 1rem 0.5rem !important;
    border-radius: 12px;
    min-height: 100px;
  }
  
  .os-name {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
  }
  
  .os-icon {
    height: 50px;
    margin-bottom: 8px;
  }
  
  .os-icon img {
    max-height: 35px !important;
  }
}

@media (max-width: 576px) {
  .operating-systems-section .section-title {
    font-size: 1.3rem;
  }
  
  .operating-systems-section {
    overflow-x: hidden;
  }
  
  .operating-systems-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 15px;
  }
  
  .operating-systems-section .col {
    flex: 0 0 auto;
    width: calc(50% - 20px);
    min-width: 140px;
    margin-bottom: 20px;
  }
  
  /* Show all elements in mobile */
  .operating-systems-section .col:nth-child(n+8) {
    display: block;
  }
  
  .os-card {
    padding: 1rem 0.6rem !important;
    border-radius: 12px;
    min-height: 110px;
    margin: 0;
  }
  
  .os-name {
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    margin-top: 6px;
  }
  
  .os-icon {
    height: 50px;
    margin-bottom: 8px;
    animation: slideIconRightToLeft 15s linear infinite;
  }
  
  .os-icon:hover {
    animation-play-state: paused;
  }
  
  .os-icon img {
    max-height: 35px !important;
  }
}

/* Animation for icon sliding in mobile */
@keyframes slideIconRightToLeft {
  0% {
    transform: translateX(10px);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(10px);
  }
}

/* Animation for cards on scroll - Reduced movement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.os-card {
  animation: fadeInUp 0.4s ease forwards;
}

.os-card:nth-child(1) { animation-delay: 0.05s; }
.os-card:nth-child(2) { animation-delay: 0.1s; }
.os-card:nth-child(3) { animation-delay: 0.15s; }
.os-card:nth-child(4) { animation-delay: 0.2s; }
.os-card:nth-child(5) { animation-delay: 0.25s; }
.os-card:nth-child(6) { animation-delay: 0.3s; }
.os-card:nth-child(7) { animation-delay: 0.35s; }