/* ----------------- Enhanced Variables ----------------- */
:root {
  --primary: #2C3E50;       /* Deep slate blue */
  --accent: #E14D25;        /* Warm copper/orange */
  --light: #FDFEFE;         /* Off-white */
  --dark-bg: #0a192f;       /* Dark background */
  --gradient-primary: linear-gradient(45deg, #0984e3, #F44336);
  --gradient-accent: linear-gradient(45deg, #E14D25, #FF6B35);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ----------------- Enhanced Properties Overview ----------------- */
.body {
  font-family: 'Montserrat', sans-serif;
  text-align: justify;
}


.properties-overview {
  padding: 4rem 1.5rem;
  background: var(--dark-bg);
}



.overview-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.overview-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(0deg);
  transition: var(--transition);
}

.overview-image:hover {
  transform: perspective(1000px) rotateY(5deg);
}

.overview-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

.overview-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.overview-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

/* ----------------- Enhanced Machinery Categories ----------------- */
.machinery-categories {
  padding: 6rem 1.5rem;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.machinery-categories h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
}

.categories-container {
  max-width: 2000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
  justify-items: stretch;
}

.category-item {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.category-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(225, 77, 37, 0.1);
  opacity: 0;
  transition: var(--transition);
}

.category-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-item:hover::before {
  opacity: 1;
}

.category-item img {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.category-item:hover img {
  transform: rotate(-5deg) scale(1.1);
}

.category-item h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

.category-item h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.category-item:hover h3::after {
  width: 80px;
}

/* ----------------- Enhanced Animations ----------------- */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.machinery-categories.visible .category-item {
  animation: slideIn 0.6s ease forwards;
  animation-delay: calc(var(--index) * 0.1s);
}

/* ----------------- Super Responsive Styles ----------------- */
@media (max-width: 1200px) {
  .overview-container {
    gap: 2rem;
    padding: 2rem;
  }
  
  .overview-image img {
    height: 400px;
  }
}

@media (max-width: 992px) {
  .overview-container {
    grid-template-columns: 1fr;
  }
  
  .overview-content h2 {
    font-size: 2.4rem;
  }
  
  .categories-container {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .properties-overview {
    padding: 3rem 1rem;
  }
  
  .overview-container {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .overview-image img {
    height: 300px;
  }
  
  .machinery-categories h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .overview-content h2 {
    font-size: 2rem;
  }
  
  .category-item {
    padding: 1.5rem;
  }
  
  .category-item h3 {
    font-size: 1.4rem;
  }
  
  .cta-link {
    width: 100%;
    text-align: center;
  }
}

/* Touch Device Optimization */
@media (hover: none) {
  .overview-container:hover {
    transform: none;
    box-shadow: none;
  }
  
  .category-item:hover {
    transform: none;
  }
  
  .category-item:active {
    transform: scale(0.98);
  }
}

/* Performance Optimizations */
.overview-image,
.category-item {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}