/* About Page Specific Styles */

/* ABOUT HERO - MATCHED TO HOME PAGE */
.about-hero {
  position: relative;
  height: 70vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px; /* Changed from margin-top: 80px to match home page */
  box-sizing: border-box;
}

.about-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.about-hero .color-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(11, 28, 45, 0.9) 0%,
    rgba(24, 165, 88, 0.4) 50%,
    rgba(11, 28, 45, 0.9) 100%);
  z-index: 1;
}

.about-hero-content {
  position: relative;
  max-width: 800px;
  color: #fff;
  text-align: center;
  padding: 0 40px;
  z-index: 2;
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin: 20px 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.about-hero p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 30px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: white;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* OUR STORY */
.our-story {
  padding: 100px 0;
  background: #ffffff;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.story-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-align: center;
}

.story-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-highlights {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.highlight-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid var(--highlight-color, var(--primary-color));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: var(--highlight-color, var(--primary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.highlight-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.highlight-content p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

.story-image {
  position: relative;
}

.story-image .image-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.story-image:hover img {
  transform: scale(1.05);
}

.years-experience {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 2;
}

.years-badge {
  background: var(--gradient-primary);
  padding: 20px;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  animation: pulse 3s infinite;
}

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

.years-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}

.years-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* MISSION & VISION */
.mission-vision {
  padding: 100px 0;
  background: #f8f9fa;
  position: relative;
}

.mv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  padding: 50px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 5px solid var(--card-color, var(--primary-color));
  transition: transform 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mv-card:hover {
  transform: translateY(-15px);
}

.mv-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, 
    rgba(var(--card-color-rgb, 24, 165, 88), 0.1), 
    rgba(var(--card-color-rgb, 24, 165, 88), 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: var(--card-color, var(--primary-color));
  font-size: 2.5rem;
  position: relative;
}

.mv-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.mv-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 30px;
}

.mission-points, .vision-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mission-point, .vision-point {
  background: rgba(var(--card-color-rgb, 24, 165, 88), 0.1);
  color: var(--card-color, var(--primary-color));
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mission-point:hover, .vision-point:hover {
  background: var(--card-color, var(--primary-color));
  color: white;
  transform: translateY(-2px);
}

/* VALUES */
.values {
  padding: 100px 0;
  background: #ffffff;
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  padding: 40px 30px;
  background: #fff;
  border-radius: 15px;
  border: 2px solid #eaeaea;
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--value-color, var(--primary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--value-color, var(--primary-color));
}

.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, 
    rgba(var(--value-color-rgb, 24, 165, 88), 0.1), 
    rgba(var(--value-color-rgb, 24, 165, 88), 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--value-color, var(--primary-color));
  font-size: 2rem;
  position: relative;
}

.value-glow {
  position: absolute;
  inset: -10px;
  background: var(--value-color, var(--primary-color));
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(10px);
  animation: iconGlow 2s infinite alternate;
}

.value-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.value-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.value-tags span {
  background: rgba(var(--value-color-rgb, 24, 165, 88), 0.1);
  color: var(--value-color, var(--primary-color));
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* RESPONSIVE - MATCHED TO HOME PAGE MOBILE VIEW */
@media (max-width: 1200px) {
  .story-container,
  .mv-container,
  .values-container {
    padding: 0 40px;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mv-container {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .about-hero {
    height: 60vh;
    min-height: 500px;
  }
  
  .about-hero h1 {
    font-size: 2.8rem;
  }
  
  .about-hero p {
    font-size: 1.1rem;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .story-intro {
    font-size: 1.1rem;
  }
  
  .mv-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  
  .years-badge {
    width: 100px;
    height: 100px;
  }
  
  .years-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .about-hero {
    height: 50vh;
    min-height: 400px;
    padding-top: 70px; /* Matched to home page mobile header height */
  }
  
  .about-hero-content {
    padding: 0 20px;
  }
  
  .about-hero h1 {
    font-size: 2.2rem;
  }
  
  .about-hero p {
    font-size: 1rem;
  }
  
  .story-container,
  .mv-container,
  .values-container {
    padding: 0 20px;
  }
  
  .our-story,
  .mission-vision,
  .values {
    padding: 60px 0;
  }
  
  .story-content h2 {
    font-size: 2.2rem;
  }
  
  .highlight-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .highlight-icon {
    margin: 0 auto 15px;
  }
  
  .years-experience {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }
  
  .years-badge {
    width: 120px;
    height: 120px;
  }
  
  .years-number {
    font-size: 2.5rem;
  }
  
  .mv-card {
    padding: 30px 20px;
  }
  
  .mv-card h3 {
    font-size: 1.8rem;
  }
  
  .mv-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 45vh;
    min-height: 350px;
    margin-top: 70px;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-hero-content {
    padding: 0 20px;
  }

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

  .about-hero p {
    font-size: 0.9rem;
  }
  
  .story-content h2 {
    font-size: 1.8rem;
  }
  
  .story-intro {
    font-size: 1rem;
  }
  
  .mv-card h3 {
    font-size: 1.5rem;
  }
  
  .mv-card p {
    font-size: 1rem;
  }
  
  .mission-point, .vision-point {
    font-size: 0.8rem;
  }
  
  .value-card {
    padding: 30px 20px;
  }
}

/* Fix video aspect ratio for mobile - Same as home page */
@media (min-aspect-ratio: 16/9) {
  .about-hero video {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .about-hero video {
    width: auto;
    height: 100%;
  }
}

/* Ensure proper spacing - Matched to home page */
.about-hero .color-overlay {
  pointer-events: none;
}

.about-hero video {
  pointer-events: none;
}