/* About Page Styles for Akeva Technologies */

/* Page Header Section */
.page-header {
  background: url("img/AboutOffice.jpg") no-repeat center center;
  background-size: cover;
  color: var(--black);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  position: relative;
  animation: fadeInUp 1s ease;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0px 2px 5px rgba(255, 255, 255, 0.8));
  transition: transform 0.3s ease;
  z-index: 1;
  padding-bottom: 0.1em;
  line-height: 1.2;
  background-size: 100% 120%;
  background-position: 0 -0.1em;
}

/* Section titles */
.section-title {
  text-align: left;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 20px;
  position: relative;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

/* About Section */
.about-preview {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-image {
  position: relative;
  perspective: 1000px;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.tech-frame {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  z-index: -1;
  transition: all 0.5s ease;
}

.about-image:hover img {
  transform: rotateY(-5deg);
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.1);
}

.about-image:hover .tech-frame {
  top: 30px;
  left: 30px;
  border-color: var(--primary-teal);
}

/* Mission Section */
.mission-section {
  background: var(--light-gray);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.mission-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mission-image {
  position: relative;
  perspective: 1000px;
  order: 1;
}

.mission-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.mission-tech-frame {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  z-index: -1;
  transition: all 0.5s ease;
}

.mission-image:hover img {
  transform: rotateY(5deg);
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.1);
}

.mission-image:hover .mission-tech-frame {
  top: 30px;
  right: 30px;
  border-color: var(--primary-teal);
}

.mission-content {
  order: 2;
}

.mission-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 30px;
  position: relative;
}

.mission-content h2::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  opacity: 0.2;
  border-radius: 8px;
}

.mission-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.mission-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

/* Values Section */
.values-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
  position: relative;
}

.values-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.values-section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-box {
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  padding: 40px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
}

.value-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: -1;
}

.value-box:hover {
  transform: translateY(-15px);
  border-color: rgba(67, 97, 238, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-box:hover::before {
  transform: scaleX(1);
}

.value-box i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.value-box:hover i {
  color: var(--primary-teal);
  transform: scale(1.2);
}

.value-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.value-box p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Team Member Card Styling */
.team-section {
  padding: 80px 0;
  text-align: center;
}

.team-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.team-section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.team-member {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  max-width: 350px;
  margin: 0 auto;
}

.team-member:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(67, 97, 238, 0.24);
}

.team-member img {
  max-height: 400px;
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.team-member:hover img {
  transform: scale(1.05);
}

.team-member h3 {
  margin-top: 15px;
  font-size: 1.5rem;
  padding: 0 15px;
}

.team-member p {
  color: var(--primary-teal);
  padding: 0 15px 15px;
  font-weight: 500;
}

/* Modal Styling - UPDATED */
#founderModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  will-change: opacity;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  width: 90%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 40px;
  will-change: transform, opacity;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  color: #777;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
}

.close-btn:hover {
  color: var(--primary-blue);
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.modal-content h2 {
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.modal-content h2::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

.modal-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--dark-gray);
}

.modal-content p:first-of-type {
  margin-top: 20px;
}

.modal-content p strong {
  color: var(--primary-blue);
}

/* Animation for modal content */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to modal content when modal is visible */
#founderModal[style*="display: block"] .modal-content {
  animation: modalFadeIn 0.4s forwards;
}

/* Improved Responsive adjustments */
@media (max-width: 1200px) {
  .about-preview .container,
  .mission-section .container {
    gap: 40px;
  }

  .value-box {
    padding: 35px 25px;
  }
}

@media (max-width: 992px) {
  .about-preview .container,
  .mission-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content,
  .mission-content {
    text-align: center;
  }

  .about-content h2::after,
  .mission-content h2::after,
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .mission-content h2::before {
    display:none;
  }

  .mission-image {
    order: 1;
    margin: 0 auto;
    max-width: 600px;
  }

  .mission-content {
    order: 2;
  }

  .about-image {
    margin: 0 auto;
    max-width: 600px;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 60px 0;
  }

  .about-preview,
  .mission-section,
  .values-section,
  .team-section {
    padding: 60px 0;
  }

  .modal-content {
    margin: 10% auto;
    padding: 30px 25px;
  }

  .modal-content h2 {
    font-size: 1.8rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
  }

  .value-box {
    padding: 30px 20px;
  }

  .value-box i {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .value-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 50px 0;
  }

  .about-preview,
  .mission-section,
  .values-section,
  .team-section {
    padding: 50px 0;
  }

  .about-content p,
  .mission-content p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .modal-content {
    margin: 15% auto;
    padding: 25px 20px;
    width: 95%;
  }

  .close-btn {
    top: 10px;
    right: 10px;
    font-size: 24px;
    width: 35px;
    height: 35px;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }

  .modal-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .value-box {
    padding: 25px 20px;
    max-width: 350px;
    margin: 0 auto;
  }

  .value-box:hover {
    transform: translateY(-10px);
  }

  .tech-frame,
  .mission-tech-frame {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 40px 0;
  }

  .about-preview,
  .mission-section,
  .values-section,
  .team-section {
    padding: 40px 0;
  }

  .value-box i {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .value-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .value-box p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .team-member h3 {
    font-size: 1.3rem;
  }

  .team-member p {
    font-size: 0.9rem;
  }
}

/* Add support for dark mode and reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .page-header h1,
  .about-image img,
  .mission-image img,
  .value-box,
  .team-member,
  .modal-content,
  .close-btn {
    transition: none;
    animation: none;
  }

  .value-box:hover,
  .team-member:hover {
    transform: none;
  }
}
