/* Why We Are Page Specific Styles */

/* Color Variables */
:root {
  --charcoal: #1C1C1C;
  --steel: #4A4A4A;
  --concrete: #F5F5F5;
  --sky: #BFD8E5;
  --yellow: #F2C94C;
}

/* Why RAMCO Section */
.why-ramco-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--concrete) 0%, var(--sky) 100%);
  position: relative;
  overflow: hidden;
}

.why-ramco-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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23BFD8E5" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.why-ramco-section .container {
  position: relative;
  z-index: 2;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.why-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(28, 28, 28, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sky);
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--sky));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.why-item:hover::before {
  transform: scaleX(1);
}

.why-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(28, 28, 28, 0.15);
}

.why-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--yellow), var(--sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.why-icon i {
  font-size: 32px;
  color: #ffffff;
}

.why-item:hover .why-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(242, 201, 76, 0.3);
}

.why-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
  line-height: 1.3;
}

.why-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--steel);
  margin: 0;
}

/* Values Section */
.values-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--concrete) 100%);
  position: relative;
  overflow: hidden;
}

.values-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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23BFD8E5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.4;
  z-index: 1;
}

.values-content {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.values-content p {
  font-size: 18px;
  color: var(--steel);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.value-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid var(--sky);
  box-shadow: 0 8px 25px rgba(28, 28, 28, 0.08);
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--sky));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.value-item:hover::before {
  transform: scaleX(1);
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(28, 28, 28, 0.15);
  border-color: var(--yellow);
}

.value-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--yellow), var(--sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 auto 30px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.value-number::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--yellow), var(--sky));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.value-item:hover .value-number::before {
  opacity: 0.3;
}

.value-item:hover .value-number {
  transform: scale(1.1);
}

.value-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
  line-height: 1.3;
}

.value-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--steel);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
  }
  
  .value-item {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .why-ramco-section,
  .values-section {
    padding: 60px 0;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  
  .why-item {
    padding: 30px 20px;
  }
  
  .why-icon {
    width: 60px;
    height: 60px;
  }
  
  .why-icon i {
    font-size: 24px;
  }
  
  .why-item h3 {
    font-size: 20px;
  }
  
  .why-item p {
    font-size: 14px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 100%;
  }
  
  .value-item {
    padding: 40px 30px;
  }
  
  .value-number {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }
  
  .value-item h3 {
    font-size: 22px;
  }
  
  .value-item p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .why-ramco-section,
  .values-section {
    padding: 40px 0;
  }
  
  .why-item {
    padding: 25px 15px;
  }
  
  .why-icon {
    width: 50px;
    height: 50px;
  }
  
  .why-icon i {
    font-size: 20px;
  }
  
  .why-item h3 {
    font-size: 18px;
  }
  
  .value-item {
    padding: 35px 25px;
  }
  
  .value-number {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  
  .value-item h3 {
    font-size: 20px;
  }
  
  .value-item p {
    font-size: 14px;
  }
}

/* Arabic RTL Support */
[dir="rtl"] .why-item,
[dir="rtl"] .value-item {
  text-align: center;
}

[dir="rtl"] .why-icon,
[dir="rtl"] .value-number {
  margin: 0 auto 25px;
}

/* Animation Enhancements */
.why-item,
.value-item {
  opacity: 0;
  transform: translateY(30px);
}

.why-item.aos-animate,
.value-item.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.why-item,
.value-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* Hover Effects Enhancement */
.why-item:hover .why-icon i,
.value-item:hover .value-number {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
