/* ===============================
   LEMS — Mission, Vision & Values
   Full CSS (Mission & Vision first)
   =============================== */

:root {
  --blue: #152C47;
  --red: #BE1823;
  --lime: #D3D800;
  --light-gray: #f5f7fa;
  --dark-gray: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  color: var(--dark-gray);
  line-height: 1.7;
  overflow-x: hidden;
  font-family: "Poppins", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------
   Header / Hero
-------------------------------- */
header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
  color: #fff;
  padding: 70px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.header-content {
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  color: #f5f7fa;
}

/* -------------------------------
   Mission & Vision (First Section)
-------------------------------- */
.mission-vision {
  padding: 100px 0 50px;
  position: relative;
  background: #fff;
  margin-top: -50px; /* tucks under header angle */
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 60px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 2;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.mission-card {
  border-left: 8px solid var(--red);
}

.vision-card {
  border-left: 8px solid var(--lime);
}

.card h2 {
  color: var(--blue);
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
  font-weight: 800;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 5px;
  background: var(--red);
  border-radius: 10px;
}

.vision-card h2::after {
  background: var(--lime);
}

.card p {
  font-size: 1.4rem;
  color: var(--dark-gray);
  line-height: 1.8;
  font-weight: 500;
}

/* Accent background shapes */
.accent-shape {
  position: absolute;
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
}

.shape-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--red);
  top: 10%;
  left: 5%;
  animation: float 12s infinite ease-in-out;
}

.shape-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--lime);
  bottom: 15%;
  right: 10%;
  animation: float 15s infinite ease-in-out;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--blue);
  transform: rotate(45deg);
  top: 30%;
  right: 20%;
  animation: pulse 8s infinite ease-in-out;
}

/* -------------------------------
   Values (Second Section)
-------------------------------- */
.values-section {
  padding: 40px 0;
  background: var(--light-gray);
  position: relative;
 
}

.values-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.values-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 60px;
  opacity: 0.9;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.value-card {
  background: #fff;
  border-radius: 15px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-bottom: 5px solid var(--lime);
}

.value-card:nth-child(2) { border-bottom-color: var(--red); }
.value-card:nth-child(3) { border-bottom-color: var(--lime); }
.value-card:nth-child(4) { border-bottom-color: var(--red); }
.value-card:nth-child(5) { border-bottom-color: var(--lime); }

.value-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #0d1e31 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.value-card h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
}

.value-card p {
  color: #555;
  font-size: 1.05rem;
}

/* -------------------------------
   Footer (optional if used below)
-------------------------------- */
.footer {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 40px 0;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--lime), var(--red));
}

.footer p {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
}

/* -------------------------------
   Animations
-------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.1); }
}

/* -------------------------------
   Accessibility / Focus
-------------------------------- */
a, button, .value-card, .card {
  outline: none;
}

a:focus-visible, button:focus-visible, .value-card:focus-visible, .card:focus-visible {
  box-shadow: 0 0 0 4px rgba(211, 216, 0, 0.35);
  border-radius: 16px;
}

/* -------------------------------
   Responsive
-------------------------------- */
@media (max-width: 1200px) {
  .columns {
    gap: 40px;
  }
  .card {
    padding: 44px;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  .subtitle {
    font-size: 1.3rem;
  }
  .card {
    padding: 40px;
  }
  .card p {
    font-size: 1.25rem;
  }
  .values-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 80px 0 120px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
  h1 {
    font-size: 2.3rem;
  }
  .subtitle {
    font-size: 1.1rem;
  }
  .mission-vision {
    padding: 140px 0 90px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .card h2 {
    font-size: 2rem;
  }
  .card p {
    font-size: 1.15rem;
  }
  .values-section {
    padding: 90px 0;
  }
  .value-card {
    padding: 28px 22px;
  }
  .value-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 60px 0 100px;
  }
  h1 {
    font-size: 1.9rem;
  }
  .values-title {
    font-size: 1.8rem;
  }
  .value-card h3 {
    font-size: 1.25rem;
  }
  .card {
    padding: 30px;
  }
}
