/* ==============================
   About Page Styles – about.css
   Fully responsive and optimized for all modern devices & browsers
============================== */

:root {
  --color-accent-start: #10B981;
  --color-accent-end:   #84CC16;
  --color-dark:         #111827;
  --color-gray-dark:    #6B7280;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--color-dark);
  background: #ffffff;
}

/* iOS Zoom Fix */
input, select, textarea {
  font-size: 16px;
}

/* ===== Hero Section ===== */
.about-hero {
  position: relative;
  height: 65vh;
  overflow: hidden;
  background-color: #000;
}

.about-hero picture,
.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s ease-out;
  will-change: transform;
}

.about-hero.scrolled picture,
.about-hero.scrolled img {
  transform: scale(1.05) translateY(-10px);
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(16,185,129,0.3), rgba(17,24,39,0.5));
  z-index: 1;
  pointer-events: none;
}

.about-hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  z-index: 10;
  padding: 1rem;
}

.about-hero-overlay h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: heroFloat 4s ease-in-out infinite;
}

.about-hero-overlay p {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.9;
  animation: fadeUp 1.5s ease-in-out 1s both;
}

/* ===== Content Section ===== */
.about-details {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.about-text h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--color-dark);
}

.about-text p {
  font-size: 1.05rem;
  color: #374151;
  margin-top: 0.5rem;
}

.about-extra img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== Button Group ===== */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.25;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-end);
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: #111827;
  color: white;
}

.btn-secondary:hover {
  background: #374151;
  transform: scale(1.05);
}

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

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    height: 45vh;
  }

  .about-hero-overlay h1 {
    font-size: 2rem;
  }

  .about-hero-overlay p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .about-details {
    padding: 2rem 1rem;
  }

  .about-text h2 {
    font-size: 1.25rem;
  }

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

  .about-extra {
    order: 2;
    margin-top: 2rem;
  }

  .about-text {
    order: 1;
  }
}

@media (max-width: 480px) {
  .about-hero-overlay h1 {
    font-size: 1.75rem;
  }

  .about-hero-overlay p {
    font-size: 0.95rem;
  }

  .button-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .about-extra img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }
}
