/* ========== ABOUT US PAGE STYLING ========== */

/* General */
:root {
  --bg-color--: #b30000;
}

body {
  font-family: "Poppins", sans-serif;
  color: #202020;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

section {
  width: 100%;
  padding: 60px 8%;
}

/* ---------- Hero Section ---------- */
.about-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  opacity: 0.6;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.about-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

.about-hero .hero-text {
  position: absolute;
  text-align: center;
  color: #fff;
  z-index: 2;
  animation: slideInDown 0.8s ease-out;
}

.about-hero .hero-text h1 {
  font-size: 3rem;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.about-hero .hero-text p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #f8f8f8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ---------- Animations ---------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Our Story Section ---------- */
.about-story {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  animation: slideInUp 0.8s ease-out;
}

.story-text {
  flex: 1 1 45%;
}

.story-text h2 {
  font-size: 2.2rem;
  color: var(--bg-color--);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.story-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #b30000, #8b0000);
  border-radius: 2px;
}

.story-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.story-text p:hover {
  color: #667eea;
  transform: translateX(5px);
}

.story-image {
  flex: 1 1 45%;
}

.story-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.story-image img:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

/* ---------- Values Section ---------- */
.values {
  background: #fafafa;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.values h2 {
  font-size: 2rem;
  color: var(--bg-color--);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.values h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #b30000, #8b0000);
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.value-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: slideInUp 0.8s ease-out both;
  border-top: 4px solid #b30000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.value-card:nth-child(2) {
  animation-delay: 0.2s;
  border-top-color: #8b0000;
}

.value-card:nth-child(3) {
  animation-delay: 0.4s;
  border-top-color: #ff4d4d;
}

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

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

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(179, 0, 0, 0.2);
}

.value-card i {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #b30000, #8b0000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.value-card:hover i {
  transform: scale(1.1) rotate(10deg);
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.value-card p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ---------- Team Section ---------- */
.team {
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.team h2 {
  font-size: 2rem;
  color: var(--bg-color--);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.team h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  justify-content: center;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideInUp 0.8s ease-out both;
}

.team-card:nth-child(2) {
  animation-delay: 0.2s;
}

.team-card:nth-child(3) {
  animation-delay: 0.4s;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(179, 0, 0, 0.2);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #111;
  font-weight: 700;
}

.team-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* ---------- CTA Section ---------- */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
  color: #fff;
  border-radius: 10px;
  padding: 70px 5%;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #f9f9f9;
  position: relative;
  z-index: 1;
}

.cta .btn {
  display: inline-block;
  background: #fff;
  color: #b30000;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.cta .btn:hover {
  background: #f2f2f2;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta .btn:active {
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-story {
    flex-direction: column;
    text-align: center;
  }

  .story-text,
  .story-image {
    flex: 1 1 100%;
  }

  .story-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-hero .hero-text h1 {
    font-size: 2.4rem;
  }

  .values h2,
  .team h2,
  .cta h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 500px) {
  .about-hero {
    height: 50vh;
    clip-path: none;
  }

  .about-hero .hero-text h1 {
    font-size: 1.8rem;
  }

  .about-hero .hero-text p {
    font-size: 1rem;
  }

  .about-hero::before,
  .about-hero::after,
  .cta::before,
  .cta::after {
    width: 200px;
    height: 200px;
  }

  section {
    padding: 40px 6%;
  }

  .value-card {
    padding: 25px 15px;
  }

  .values h2,
  .team h2,
  .cta h2 {
    font-size: 1.5rem;
  }

  .story-text h2 {
    font-size: 1.8rem;
  }

  .cta {
    padding: 50px 5%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }

  .value-card {
    background: #333;
  }

  .value-card h3 {
    color: #e0e0e0;
  }

  .value-card p {
    color: #b0b0b0;
  }

  .team-card {
    background: #333;
  }

  .team-card h3,
  .story-text p {
    color: #e0e0e0;
  }
}
