﻿/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* ---- SECTION FLOATING ELEMENTS ---- */
.about-section-floats { position: relative; overflow: hidden; }

.about-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.af {
  position: absolute;
  font-size: 2.4rem;
  opacity: 0;
  user-select: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  animation: afDrift ease-in-out infinite;
}
@keyframes afDrift {
  0%   { opacity: 0;    transform: translateY(0)     rotate(0deg)  scale(0.85); }
  15%  { opacity: 0.55; }
  50%  {                transform: translateY(-20px) rotate(6deg)  scale(1.05); }
  85%  { opacity: 0.4; }
  100% { opacity: 0;    transform: translateY(0)     rotate(-4deg) scale(0.85); }
}

/* Unique positions, sizes & timings per element */
.af-1 { top: 10%; left:  2%;  font-size: 3rem;   animation-duration: 7s;   animation-delay: 0s;   }
.af-2 { top: 65%; left:  4%;  font-size: 2.6rem;  animation-duration: 8.5s; animation-delay: 1.2s; }
.af-3 { top: 20%; right: 3%;  font-size: 2.8rem;  animation-duration: 6.5s; animation-delay: 0.6s; }
.af-4 { top: 70%; right: 5%;  font-size: 3.2rem;  animation-duration: 9s;   animation-delay: 2s;   }
.af-5 { top: 42%; left:  1%;  font-size: 2.2rem;  animation-duration: 7.5s; animation-delay: 1.8s; }
.af-6 { top: 80%; right: 2%;  font-size: 2.5rem;  animation-duration: 6s;   animation-delay: 3s;   }

/* Make sure section content sits above floaters */
.about-section-floats > .container { position: relative; z-index: 1; }

/* ---- BRAND STORY ---- */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Image stack */
.about-img-stack {
  position: relative;
  cursor: pointer;
}

/* Decorative ring behind image */
.about-img-stack::before {
  content: '';
  position: absolute;
  top: -18px; left: -18px;
  right: 18px; bottom: 18px;
  border: 3px solid rgba(200,16,46,0.15);
  border-radius: var(--radius-lg);
  z-index: 0;
  transition: transform 0.5s ease, border-color 0.4s ease;
}
.about-img-stack:hover::before {
  transform: translate(6px, 6px);
  border-color: rgba(245,166,35,0.4);
}

/* Gold dot accent */
.about-img-stack::after {
  content: '';
  position: absolute;
  top: -10px; right: -10px;
  width: 60px; height: 60px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
  animation: dotPulse 3s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 0.35; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

.about-img-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.5s ease;
  will-change: transform;
}
.about-img-stack:hover .about-img-main {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 36px 80px rgba(0,0,0,0.3);
}

.about-img-secondary {
  position: absolute;
  bottom: -1.5rem;
  right: -2rem;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 2;
  transition: transform 0.4s ease;
}
.about-img-stack:hover .about-img-secondary {
  transform: translateY(-6px) rotate(-2deg);
}

/* Floating badge */
.about-exp-badge {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 2;
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.about-exp-badge .counter-num { font-size: 2.5rem; color: var(--gold); }
.about-exp-badge strong { font-size: 2rem; color: var(--gold); }
.about-exp-badge p { font-size: 0.75rem; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem; }

/* Story text side */
.about-story-grid .reveal-right .section-tag {
  animation: none; /* handled by scroll reveal */
}

/* Animated underline on h2 */
.about-story-grid h2.section-title {
  position: relative;
  display: inline-block;
}

/* Highlight stats */
.about-highlights {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200,16,46,0.1);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.about-highlight-item {
  text-align: center;
  flex: 1;
  padding: 1.5rem 1rem;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.about-highlight-item::after {
  content: '';
  position: absolute;
  top: 20%; right: 0;
  width: 1px; height: 60%;
  background: rgba(200,16,46,0.12);
}
.about-highlight-item:last-child::after { display: none; }
.about-highlight-item:hover {
  background: linear-gradient(135deg, rgba(200,16,46,0.04), rgba(245,166,35,0.06));
  transform: translateY(-3px);
}

/* Glowing ring on hover */
.about-highlight-item::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}
.about-highlight-item:hover::before {
  border-color: rgba(245,166,35,0.3);
}

.about-highlight-item .counter-num {
  font-size: 2.2rem;
  display: inline;
}
.about-highlight-item strong {
  font-size: 1.6rem;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
}
.about-highlight-item p {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 0.3rem;
}

/* ---- MISSION VISION ---- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(200,16,46,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(200,16,46,0.1); }
.mv-card:hover::after { transform: scaleX(1); }
.mv-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.mv-card:hover .mv-icon { transform: scale(1.25) rotate(-5deg); }
.mv-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}
.mv-card p { color: var(--gray); line-height: 1.7; }

/* ---- PROCESS TIMELINE ---- */
.process { background: var(--white); }
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.process-step {
  position: relative;
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200,16,46,0.08);
  transition: var(--transition);
  overflow: hidden;
}
/* Animated shimmer on hover */
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
}
.process-step:hover::before { left: 130%; }
.process-step:hover {
  background: var(--white);
  box-shadow: 0 16px 48px rgba(200,16,46,0.12);
  transform: translateY(-6px);
  border-color: rgba(245,166,35,0.3);
}
.process-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(200,16,46,0.08);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.process-step:hover .process-num { color: rgba(200,16,46,0.18); }
.process-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.process-step:hover .process-icon { transform: scale(1.3) rotate(8deg); }
.process-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.process-step:hover .process-content h4 { color: var(--red); }
.process-content p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ---- CERTIFICATIONS ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.cert-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.3s ease;
}
.cert-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.2); }
.cert-card:hover::before { border-color: rgba(255,255,255,0.3); }
.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.cert-card:hover .cert-icon { transform: scale(1.3) rotate(-8deg); }
.cert-card h4 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.cert-card p { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.5; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-secondary { display: none; }
  .about-exp-badge { left: 1rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .about-highlights { gap: 0; }
}
@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
  .about-highlights { flex-direction: column; }
  .about-highlight-item::after { display: none; }
}
