/* About Us Section Styles - Modern Redesign
   Part of MazenWare Landing Page
   Colors: Blue #004AAD, Orange #FF914D, White #FFF, Light Grey #F0F0F0
   Font: Glacial Indifference
*/

/* About Section */
.about {
  padding: 80px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 100vh;
}

/* Video Background */
.about__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  object-fit: cover;
  object-position: center bottom;
  min-height: 100%;
  display: block;
}

/* For portrait 9:16 videos, ensure proper coverage - prioritize showing footer */
@media (min-aspect-ratio: 16/9) {
  .about__video-background {
    object-position: center bottom;
  }
}

/* Dark overlay to hide quality issues and create futuristic dark mode effect */
.about__video-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(10, 10, 20, 0.8) 25%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(10, 10, 20, 0.8) 75%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Additional dark overlay with blue/orange accents for futuristic look */
.about__video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 74, 173, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 145, 77, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.about__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.about__container > *:first-child {
  margin-top: 0;
}

/* Header */
.about__header {
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.about__header.animate {
  opacity: 1;
  transform: translateY(0);
}

.about__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 74, 173, 0.5);
}

.about__subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Mini-Sections with Background Images */
.about__mini-section {
  position: relative;
  min-height: 500px;
  margin-bottom: 4rem;
  margin-top: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--white);
}

.about__mini-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.about__mini-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mini-section__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
  z-index: 1;
  border-radius: 24px;
  margin: 0;
  padding: 0;
  transform: translateZ(0);
  will-change: transform;
}

.mini-section__background--gradient {
  background: linear-gradient(135deg, 
    rgba(0, 74, 173, 0.9) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(255, 145, 77, 0.7) 100%
  );
  background-attachment: scroll;
}

.about__mini-section:hover .mini-section__background:not(.mini-section__background--gradient) {
  transform: translateZ(0) scale(1.05);
}

.mini-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 74, 173, 0.85) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(255, 145, 77, 0.6) 100%
  );
  z-index: 2;
  transition: opacity 0.4s ease;
  border-radius: 24px;
  margin: 0;
  padding: 0;
  transform: translateZ(0);
}

.about__mini-section:hover .mini-section__overlay {
  opacity: 0.9;
}

.mini-section__content {
  position: relative;
  z-index: 3;
  padding: 4rem 3rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.mini-section__icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.about__mini-section:hover .mini-section__icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mini-section__icon svg {
  width: 50px;
  height: 50px;
  color: var(--white);
}

.mini-section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 0 25px rgba(0, 74, 173, 0.7), 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.mini-section__description {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  opacity: 1;
}

/* Language Flags */
.language-flags {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.flag {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  cursor: default;
}

.flag:hover {
  transform: scale(1.2) rotate(5deg);
}

/* Founder Section */
.about__founder-section {
  margin-top: 6rem;
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.about__founder-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.founder__container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 0 2rem;
}

.founder__image-wrapper {
  position: relative;
  text-align: center;
}

.founder__image {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  box-shadow: 0 15px 50px rgba(0, 74, 173, 0.3);
  border: 5px solid var(--white);
  transition: all 0.4s ease;
  position: relative;
}

.founder__image:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 74, 173, 0.4);
}

.founder__badge {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4);
  border: 4px solid var(--white);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.founder__badge svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

.founder__content {
  padding-top: 1rem;
}

.founder__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 145, 77, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.founder__name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(0, 74, 173, 0.6), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.founder__education {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.founder__education:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 30px rgba(0, 74, 173, 0.15);
}

.education__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.education__icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.education__text {
  flex: 1;
}

.education__degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.education__institution {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.founder__vision {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--blue);
}

.vision__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 0 15px rgba(0, 74, 173, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.vision__title::before {
  content: '';
  width: 4px;
  height: 30px;
  background: linear-gradient(180deg, var(--blue), var(--orange));
  border-radius: 2px;
}

.vision__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.vision__text:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .founder__container {
    grid-template-columns: 250px 1fr;
    gap: 3rem;
  }
  
  .founder__image {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 968px) {
  .about__mini-section {
    min-height: 450px;
    margin-bottom: 3rem;
  }
  
  .mini-section__content {
    padding: 3rem 2rem;
  }
  
  .mini-section__title {
    font-size: 2rem;
  }
  
  .mini-section__description {
    font-size: 1.1rem;
  }
  
  .founder__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .founder__image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .founder__badge {
    position: relative;
    top: -30px;
    right: auto;
    margin-bottom: -30px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 60px 0;
  }
  
  .about__video-background {
    object-position: center top;
  }
  
  .about__container {
    padding: 0 1rem;
  }
  
  .about__header {
    margin-bottom: 3rem;
  }
  
  .about__title {
    font-size: 2.5rem;
  }
  
  .about__subtitle {
    font-size: 1.1rem;
  }
  
  .about__mini-section {
    min-height: 400px;
    margin-bottom: 2.5rem;
    border-radius: 16px;
  }
  
  .mini-section__content {
    padding: 2.5rem 1.5rem;
  }
  
  .mini-section__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }
  
  .mini-section__icon svg {
    width: 40px;
    height: 40px;
  }
  
  .mini-section__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .mini-section__description {
    font-size: 1rem;
  }
  
  .flag {
    font-size: 2.5rem;
  }
  
  .about__founder-section {
    margin-top: 4rem;
    padding: 3rem 0;
    border-radius: 16px;
  }
  
  .founder__name {
    font-size: 2rem;
  }
  
  .founder__education {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
  
  .education__icon {
    align-self: flex-start;
  }
  
  .vision__title {
    font-size: 1.3rem;
  }
  
  .vision__text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about__title {
    font-size: 2rem;
  }
  
  .about__mini-section {
    min-height: 350px;
  }
  
  .mini-section__content {
    padding: 2rem 1rem;
  }
  
  .mini-section__icon {
    width: 70px;
    height: 70px;
  }
  
  .mini-section__icon svg {
    width: 35px;
    height: 35px;
  }
  
  .mini-section__title {
    font-size: 1.5rem;
  }
  
  .mini-section__description {
    font-size: 0.95rem;
  }
  
  .founder__image {
    width: 180px;
    height: 180px;
  }
  
  .founder__badge {
    width: 50px;
    height: 50px;
  }
  
  .founder__badge svg {
    width: 25px;
    height: 25px;
  }
  
  .founder__name {
    font-size: 1.8rem;
  }
  
  .founder__education {
    padding: 1.25rem;
  }
  
  .education__icon {
    width: 45px;
    height: 45px;
  }
  
  .education__icon svg {
    width: 24px;
    height: 24px;
  }
  
  .education__degree {
    font-size: 1rem;
  }
  
  .education__institution {
    font-size: 0.9rem;
  }
  
  .founder__vision {
    padding: 1.5rem;
  }
  
  .vision__title {
    font-size: 1.2rem;
  }
  
  .vision__text {
    font-size: 0.95rem;
  }
  
  .flag {
    font-size: 2rem;
  }
}

/* Animation Delays */
.about__mini-section:nth-child(2) { transition-delay: 0.1s; }
.about__mini-section:nth-child(3) { transition-delay: 0.2s; }
.about__mini-section:nth-child(4) { transition-delay: 0.3s; }
.about__mini-section:nth-child(5) { transition-delay: 0.4s; }
.about__mini-section:nth-child(6) { transition-delay: 0.5s; }
.about__mini-section:nth-child(7) { transition-delay: 0.6s; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .about__mini-section,
  .mini-section__background,
  .mini-section__icon,
  .founder__image,
  .founder__badge,
  .founder__education {
    transition: none;
    animation: none;
  }
  
  .about__mini-section:hover {
    transform: none;
  }
  
  .about__mini-section:hover .mini-section__background {
    transform: none;
  }
  
  .founder__image:hover {
    transform: none;
  }
  
  .founder__badge {
    animation: none;
  }
}

/* Focus styles for accessibility */
.about__mini-section:focus {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
