/* ========================================
   Philosophy Styles - NexzenSoft Website
   ======================================== */

/* === Philosophy Section === */
.philosophy-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, #f1f3f4 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(26, 42, 108, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(243, 108, 33, 0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23F36C21' fill-opacity='0.02'%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.philosophy-section .container {
  position: relative;
  z-index: 2;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.philosophy-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(26, 42, 108, 0.08);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  z-index: 2;
}

.philosophy-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(243, 108, 33, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.philosophy-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: var(--accent-orange);
}

.philosophy-card:hover::after {
  transform: scale(1.2);
  opacity: 0.6;
}

.philosophy-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(26, 42, 108, 0.3);
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}

.philosophy-card:hover .philosophy-icon {
  transform: scale(1.1);
}

.philosophy-title {
  font-size: 1.6rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 3;
  font-weight: 700;
}

.philosophy-title::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.philosophy-text {
  font-size: 1rem;
  color: var(--black);
  line-height: 1.7;
  position: relative;
  z-index: 3;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* === Enhanced Animations === */
@keyframes philosophyFadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.philosophy-card:nth-child(1) {
  animation: philosophyFadeInUp 0.8s ease-out;
}

.philosophy-card:nth-child(2) {
  animation: philosophyFadeInUp 0.8s ease-out 0.2s;
  animation-fill-mode: both;
}

.philosophy-card:nth-child(3) {
  animation: philosophyFadeInUp 0.8s ease-out 0.4s;
  animation-fill-mode: both;
}

.philosophy-card:nth-child(4) {
  animation: philosophyFadeInUp 0.8s ease-out 0.6s;
  animation-fill-mode: both;
}

/* === Responsive Design === */
@media (max-width: 1200px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .philosophy-section {
    padding: 4rem 0;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .philosophy-card {
    padding: 2rem 1.5rem;
  }

  .philosophy-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .philosophy-title {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  .philosophy-title::before {
    width: 30px;
    height: 3px;
    top: -12px;
  }

  .philosophy-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .philosophy-section {
    padding: 3rem 0;
  }

  .philosophy-card {
    padding: 1.5rem 1.25rem;
    border-radius: 15px;
  }

  .philosophy-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .philosophy-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .philosophy-text {
    font-size: 0.9rem;
  }
}