/* ===================== OPTIMIZED ABOUT PAGE STYLES ===================== */

/* === Base Typography === */
h1,
h2,
h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

body {
  background: linear-gradient(145deg, #f8f9fb, #e8ebf2);
  font-family: 'Open Sans', sans-serif;
  color: #1a1a1a;
  font-weight: 400;
  line-height: 1.5;
}

.stat-card p,
.card-text h3,
.read-more-btn,
.read-more {
  font-family: 'Marcellus', serif;
  font-size: 1.5rem;
  font-weight: 500;
}

/* ========= NAVBAR ========= */
/* ===== HEADER BASE ===== */
.transparent-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color .3s ease, box-shadow .3s ease;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* logo left, toggle/nav right */
}

.logo {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  color: #0d1c3f;
  transition: color .3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #00aaff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease-in-out;
}

.nav-links li a:hover::after {
  transform: scaleX(1);
}

.nav-links li a:hover {
  color: #00aaff;
}

.nav-links li a.active {
  color: #00cfff;
}

/* ===== HAMBURGER (hidden on desktop) ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #003C8B;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 50%;
  right: 10%;
  /* distance from right edge */
  transform: translateY(-50%);
  /* vertical center */
}


/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: #003C8B;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    /* full height drawer */
    width: 100%;
    /* not full screen */
    max-width: 280px;
    /* limit width */
    flex-direction: column;
    /* <<< force vertical */
    /* align to left */
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
    top: 0;
    margin-top: 0;
    margin-right: 3%;
    padding-top: 6rem;
    /* little space under header */
    height: 100%;
    min-height: 100vw;
    width: 40%;
    /* cover full screen height */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    transition: transform 1s ease-in-out;
    visibility: visible;
    z-index: 1000;
    /* above header */
    text-align: center;
  }


  .nav-container {
    height: 10vh;

  }

  .nav-links li {
    width: 100%;
    /* make each link full width */
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #003C8B;
  }


}

/* === Hero Section === */
.hero-section {
  margin-top: 8rem;
  padding: 8rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("../img/AboutMainBackground.jpg") center/cover no-repeat;
  color: #fff;
  position: relative;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #eee;
  font-family: 'Marcellus', serif;
}

/* === Story Section === */
.company-story .story-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: center;
}

.company-story .story-block.reverse {
  flex-direction: row-reverse;
}

.story-image-carousel {
  flex: 1;
  max-width: 500px;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.story-image-carousel:hover {
  transform: translateY(-7px);
}

.story-image-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.story-text {
  flex: 1;
  min-width: 280px;
  text-align: justify;
}

.story-text h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

/* === Why Us Section === */
.why-alusystems {
  background: #fff;
  padding: 5rem 2rem;
  text-align: center;
}

.why-alusystems h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #003C8B;
}

.why-alusystems .grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-alusystems .item {
  background: #f5f7fb;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.why-alusystems .item:hover {
  transform: translateY(-5px);
}

.why-alusystems .item h3 {
  color: #003C8B;
  margin-bottom: 1rem;
}

.why-alusystems .item p {
  color: #333;
  font-size: 1rem;
}

/* === Milestones === */
.milestones {
  background-color: #003C8B;
  padding: 4rem 2rem;
  color: #fff;
}

.milestone-list {
  list-style: none;
  padding-left: 1rem;
  font-size: 1.1rem;
}

.milestone-list li {
  padding: 0.5rem 0;
  border-left: 4px solid #fff;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

/* === Values Section === */
.grid-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.value-box {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.value-box:hover {
  transform: translateY(-5px);
}

.value-box h3 {
  color: #003C8B;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.value-box ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: #000;
}

.values-section {
  background-color: #00000018;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === Team === */
.team-section {
  margin-top: 10%;
  margin-bottom: 5%;
  background-color: #5a98f648;
  padding: 6rem 2rem;
  text-align: center;
}

.team-pic {
  width: 100%;
  object-fit: cover;
  margin-top: 2rem;
}


/* ========== TOP MANAGEMENT SECTION ========== */
.top-management {
  display: flex;
  justify-content: center;
  /* Centers horizontally */
  align-items: center;
  /* Centers vertically (if container has height) */
  margin: 0 auto;
  /* Centers the block itself */
  padding: 2rem 0;
  /* Optional: add vertical spacing */
  text-align: center;
  /* Centers text inside the container */
  color: #003C8B;
}

.top-management img {
  margin-top: 10%;
  max-width: 100%;
  /* Makes sure the image is responsive */
  height: auto;
  display: block;
}


/* === Location === */
.location-section {
  margin-top: 5%;
  margin-bottom: 5%;
  background-color: #eef2f7;
  padding: 4rem 2rem;
  text-align: center;
}

.location-section h2 {
  font-size: 2.5rem;
  color: #003C8B;
  margin-bottom: 1rem;
}

.location-section p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === Footer === */
footer {
  background: #003C8B;
  color: #fff;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 1.5rem 3rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .value-box,
  .story-text,
  .story-image-carousel {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .grid-3 {
    flex-direction: column;
  }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  to {
    transform: scaleX(1);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .form-section,
  .contact-info {
    padding: 3rem 1rem;
  }

  form {
    padding: 0 1rem;
  }

  .form-box {
    flex: 1 1 100%;
  }
}