/* ========================================================================
   ABOUT.CSS - Professional UI/UX Styles for About Page
   ======================================================================== */

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600&display=swap');

/* ------------------ Base Styles & Variables ------------------ */
:root {
  --primary-color: #E14D25;       /* Accent color */
  --secondary-color: #f5f5f5;       /* Light background */
  --dark-color: #0A192F;          /* Dark background */
  --text-color: #333;
  --light-color: #FDFEFE;
  --base-padding: 1.5rem;
  --transition-speed: 0.3s;
  --shadow-color: rgba(34, 34, 34, 0.27);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: justify;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: linear-gradient(150deg, #ffffff, var(--secondary-color));
  color: var(--text-color);
  text-align: justify;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ------------------ Main Content Container ------------------ */
/*.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}*/
.about-container {
  margin: auto;
  padding: 0px;
}

.about-container h1 {
  font-size: 5rem;
  padding: 7rem;
  margin: auto;
  color: #ffffff;
  display: block;
  background-color: #0a192fc9;
  text-align: center;
  background-image: url("../images/background.jpg");
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  inset: 0;
  content: "";
  pointer-events: none;
  background-size: 100%;
}
/* ------------------ Fade-In Animations ------------------ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* ========================================================================
   ABOUT SECTION STYLES
   ======================================================================== */
.about {
  padding: 0rem -0.5rem;
  background: white;
  color: var(--light-color);
  text-align: center;
  overflow: hidden;
}

/* About Logo */
.about-logo {
  margin-bottom: 2rem;
  text-align: center;
}
.about-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: transform 0.4s ease;
}
.about-logo img:hover {
  transform: scale(1.05);
}

/* Main Heading */


/* Mission Section */
.mission {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  color: #0a192f;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* History Section */
.about h2 {
  margin: 2rem 3rem;
  color: #0a192f;
  position: relative;
}
.about h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* History Paragraph */
.history {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  color: #0a192f;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ========================================================================
   TEAM SECTION STYLES
   ======================================================================== */
.team-section {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0rem;
  margin-bottom: 3rem;
  flex-direction: row;
  align-items: stretch;
}

.team-member {
  background: var(--secondary-color);
  color: var(--dark-color);
  border-radius: 21px;
  padding: 0.5rem;
  max-width: 300px;
  flex: 1;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-color);
}
.team-photo {
  width: 100%;
  height: 216px;
  object-fit: cover;
  border-radius: 0px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.team-photo:hover {
  transform: scale(1.05);
}
.team-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.team-info .position {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 500;
}
.team-info .bio {
  font-size: 1rem;
  line-height: 1.6;
}

/* ========================================================================
   GALLERY SECTION STYLES
   ======================================================================== */
.about-gallery {
  margin: 3rem auto;
  overflow: hidden;
  position: relative;
  max-width: 1000px;
}
.gallery-wrapper {
  display: flex;
  color: #0a192f;
  animation: infiniteSlide 20s linear infinite;
}
.about-gallery img {
  width: calc(100% / 3);
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0.5rem;
}
@keyframes infiniteSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================================
   CONTACT CTA STYLES
   ======================================================================== */
.cta-contact {
  font-size: 1.3rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: #0a192f;
}

/* ========================================================================
   RESPONSIVE STYLES
   ======================================================================== */
@media (max-width: 1024px) {
  .team-section {
    flex-direction: column;
    align-items: center;
    gap: 1.01rem;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    flex-wrap: nowrap;
    align-content: stretch;
  }
  .about h1 {
    font-size: 4rem;
    padding: 7rem;
    margin: 0rem;
  }
  .mission, .history, .cta-contact {
    font-size: 1.1rem;
  }
}

.about-gallery img {
  width: calc(100% / 3);
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .about-logo img {
    max-width: 240px;
  }
  .about h1 {
    font-size: 4rem;
    padding: 4rem;
    margin: 0rem;
  }
  .mission, .history, .cta-contact {
    font-size: 1rem;
    padding: 1rem 4rem;
  }
  .gallery-wrapper {
    animation-duration: 15s;
  }
}

.about-gallery img {
  width: calc(100% / 2);
}

@media (max-width: 480px) {
  .about h1 {
    font-size: 2.5rem;
    padding: 4rem;
    margin: 0rem;
  }
  .team-photo {
    height: 200px;
  }
  .mission, .history, .cta-contact {
    font-size: 0.9rem;
  }
  .about-gallery img {
  width: calc(200% / 2);
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0.6rem;  
}
}


/* ========================================================================
   EXTRA ANIMATIONS & TRANSITIONS
   ======================================================================== */
/* Reveal animations for About Section Elements */
.about.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Additional hover transition for team members */
.team-member {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Shine effect on team photos */
.team-photo:hover {
  animation: shine 1s linear infinite;
}
@keyframes shine {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
  100% { filter: brightness(1); }
}

/* Smooth scroll margin for in-page links */
html {
  scroll-behavior: smooth;
}

/* Additional spacing and layout adjustments */
.about-gallery {
  margin-bottom: 3rem;
}

.gallery-wrapper img {
  transition: transform 0.3s ease;
}
.gallery-wrapper img:hover {
  transform: scale(1.05);
}

/* Extra styling for headings and paragraphs */
.about h2, .team-info h3 {
  position: relative;
  margin-bottom: 1rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.about h2::after, .team-info h3::after {
  content: "";
  display: block;
  width: 97%;
  height: 2px;
  background: var(--accent);
  margin: 0.5rem auto;
}

/* ==============================
   Team Member Hover Overlay
   ============================== */
   .team-photo-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
  }
  
  .team-photo {
    width: 100%;
    height: 100%;
    border-radius: 31px;
    object-fit: fill;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .team-photo-wrapper:hover .team-photo {
    transform: scale(1.05);
    filter: blur(2px) brightness(0.7);
  }
  
  .team-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 38px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    padding: 1rem;
    text-align: center;
  }
  
  .team-photo-wrapper:hover .team-info-overlay {
    opacity: 1;
    transform: translateY(0);
  }
  
  .team-info-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .team-info-overlay .position {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
  }
  
  .team-info-overlay .bio {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Hide original static info */
  .team-info {
    display: none;
  }
  