/**
 * Features CSS - Features Grid and Cards
 * 
 * This file contains styles for:
 * - Home section wrapper (combines header and features)
 * - Features grid layout
 * - Feature card styling
 * - Feature hover effects
 * 
 * Extracted from index.php during section compartmentalization refactoring
 */

/* ============================================
   Home Section Wrapper
   ============================================ */
.home-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ============================================
   Features Grid
   ============================================ */
.features { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); 
  gap: clamp(20px, 3vw, 30px); 
  margin-top: clamp(60px, 8vw, 100px);
  margin-bottom: 0;
  min-height: fit-content;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   Feature Cards
   ============================================ */
.feature {
  background: rgba(19,26,34,0.92);
  padding: clamp(20px, 3vw, 30px);
  border-radius: clamp(12px, 1.5vw, 16px);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 16px #000;
  backdrop-filter: blur(2px);
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(63,224,249,0.1), transparent);
  transform: translateY(100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature:hover::before {
  transform: translateY(0) rotate(45deg);
}

.feature h3 { 
  font-size: clamp(1.2em, 3vw, 1.5em); 
  margin-bottom: clamp(12px, 2.5vw, 18px); 
  color: var(--accent);
  position: relative;
}

.feature p { 
  font-size: clamp(0.9em, 2vw, 1em); 
  color: #ccc;
  position: relative;
  line-height: 1.6;
  margin: 0;
}

