* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #fcfcfd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'%3E%3Cpath fill='%23fff0f2' fill-opacity='1' d='M0,320L48,298.7C96,277,192,235,288,240C384,245,480,299,576,325.3C672,352,768,352,864,320C960,288,1056,224,1152,197.3C1248,171,1344,181,1392,186.7L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 800px;
  color: #1d1d1f;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================================
           2. NAVIGATION
           ========================================= */
nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 2.5rem;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: #515154;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #e50914;
  border-bottom: 2px solid #e50914;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1d1d1f;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* =========================================
           3. MAIN LAYOUT & HEADER
           ========================================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}
.page-header h1 {
  font-family: "Poppins", sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: #1d1d1f;
  line-height: 1.1;
}
.page-header h1 span {
  color: #e50914;
} /* Modern Emerald Green to match home page */
.page-header p {
  font-size: 1.3rem;
  color: #86868b;
  margin-top: 10px;
  font-weight: 500;
}

/* =========================================
           4. DYNAMIC GLASS CARDS
           ========================================= */
.about-card {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 4rem;
  border-radius: 40px;

  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.5s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* Subtle glowing gradients behind the glass */
.card-blue {
  background: linear-gradient(
    135deg,
    rgba(234, 244, 255, 0.7),
    rgba(255, 255, 255, 0.5)
  );
}
.card-green {
  background: linear-gradient(
    135deg,
    rgba(236, 253, 243, 0.7),
    rgba(255, 255, 255, 0.5)
  );
}
.card-purple {
  background: linear-gradient(
    135deg,
    rgba(243, 238, 255, 0.7),
    rgba(255, 255, 255, 0.5)
  );
}
.card-warm {
  background: linear-gradient(
    135deg,
    rgba(255, 241, 242, 0.7),
    rgba(255, 255, 255, 0.5)
  );
}

.about-card.reverse {
  flex-direction: row-reverse;
}

/* =========================================
           5. 3D IMAGES
           ========================================= */
.card-image {
  flex-shrink: 0;
  perspective: 1200px;
}

.card-image img {
  width: 280px;
  object-fit: contain;
  border-radius: 30px;
  opacity: 0; /* Handled by JS */

  /* Initial 3D Tilt */
  transform: rotateX(8deg) rotateY(-15deg) rotateZ(2deg) translateY(30px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  box-shadow:
    -10px 20px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.about-card.reverse .card-image img {
  transform: rotateX(8deg) rotateY(15deg) rotateZ(-2deg) translateY(30px);
  box-shadow:
    10px 20px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Visible state from JS Observer */
.card-image img.visible {
  opacity: 1;
  transform: rotateX(8deg) rotateY(-15deg) rotateZ(2deg) translateY(0);
}
.about-card.reverse .card-image img.visible {
  opacity: 1;
  transform: rotateX(8deg) rotateY(15deg) rotateZ(-2deg) translateY(0);
}

/* Snaps flat when user hovers over the card */
.about-card:hover .card-image img.visible {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-10px);
}

/* =========================================
           6. TYPOGRAPHY & BUTTONS
           ========================================= */
.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #86868b;
}

.card-text h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1d1d1f;
  line-height: 1.2;
}

.red {
  color: #e50914;
} /* Swapped to Emerald Green to match your brand */

.card-text p {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: #515154;
  line-height: 1.8;
  min-height: 150px; /* Prevents layout jumping during JS typing effect */
}

.click-here-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background-color: #1d1d1f;
  width: fit-content;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.click-here-btn:hover {
  background-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* =========================================
           7. FOOTER
           ========================================= */
footer {
  text-align: center;
  padding: 3rem 0;
  color: #86868b;
  font-size: 0.95rem;
  border-top: 1px solid #e5e5ea;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================================
           8. MOBILE RESPONSIVENESS
           ========================================= */
@media (max-width: 968px) {
  .about-card,
  .about-card.reverse {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    padding: 3rem 2rem;
  }
  .card-text {
    align-items: center;
  }
  .card-image img {
    width: 220px;
    transform: none !important;
  }
  .about-card:hover .card-image img.visible {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  main {
    padding-top: 100px;
  }
  .page-header h1 {
    font-size: 3rem;
  }
  .card-text h2 {
    font-size: 2.2rem;
  }
}
