/* Vision & Mission Page - Enhanced Professional Design */

/* Use the same CSS Variables from your index.css */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --primary-light: #e8f4ff;
  --secondary-color: #6c757d;
  --accent-color: #0dcaf0;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-50: #f8f9fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --shadow-sm: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  --shadow-md: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 0.5rem 2rem rgba(0, 0, 0, 0.16);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

/* Base Typography - Match your index.css exactly */
html {
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Professional Corporate Typography Scale */
h1,
.h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
}

h3,
.h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h4,
.h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

h5,
.h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: normal;
}

h6,
.h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.375rem;
  letter-spacing: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--gray-900);
}

/* ===== PAGE HEADER ENHANCEMENTS ===== */
.page-header {
  background: linear-gradient(
      135deg,
      rgba(13, 110, 253, 0.95),
      rgba(11, 94, 215, 0.95)
    ),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-color);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: left center;
  }
  100% {
    background-position: right center;
  }
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

.page-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--light-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--space-lg);
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.header-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  min-width: 140px;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--warning-color);
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
  font-weight: 600;
}

/* ===== MAIN CONTENT ENHANCEMENTS ===== */
.main-content {
  padding: var(--space-2xl) 0;
  background: linear-gradient(
    180deg,
    var(--light-color) 0%,
    #f0f7ff 50%,
    var(--light-color) 100%
  );
}

/* ===== SECTION HEADER ENHANCEMENTS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
  padding: 0 var(--space-md);
}

.section-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.3);
  }
}

.section-icon i {
  font-size: 2.25rem;
  color: var(--light-color);
}

.section-header h2 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.section-description {
  color: var(--gray-600);
  font-size: 1.125rem;
  max-width: 600px;
  margin: var(--space-md) auto 0;
  line-height: 1.6;
  font-weight: 400;
}

/* ===== VISION SECTION ENHANCEMENTS ===== */
.vision-section {
  margin-bottom: var(--space-2xl);
}

.vision-content {
  position: relative;
  padding: var(--space-xl);
}

.vision-card {
  background: linear-gradient(
      135deg,
      rgba(13, 110, 253, 0.95),
      rgba(11, 94, 215, 0.95)
    ),
    url("https://images.unsplash.com/photo-1542744095-fcf48d80b0fd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: none;
  transition: all 0.5s ease;
  animation: slideInUp 0.8s ease-out;
}

.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.3);
}

.vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.9),
    rgba(11, 94, 215, 0.9)
  );
  z-index: 1;
}

.vision-card .card-body {
  position: relative;
  z-index: 2;
}

.vision-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.vision-icon i {
  font-size: 3rem;
  color: var(--warning-color);
  animation: rotateReverse 20s linear infinite;
}

@keyframes rotateReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.vision-statement {
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.8;
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-xl);
  position: relative;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vision-statement::before,
.vision-statement::after {
  content: '"';
  font-size: 4rem;
  color: var(--warning-color);
  opacity: 0.7;
  position: absolute;
  font-family: "Times New Roman", serif;
}

.vision-statement::before {
  top: -30px;
  left: 0;
}

.vision-statement::after {
  bottom: -50px;
  right: 0;
}

.vision-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.highlight-item i {
  font-size: 2.25rem;
  color: var(--warning-color);
  margin-bottom: var(--space-xs);
}

.highlight-item span {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== MISSION SECTION ENHANCEMENTS ===== */
.mission-section {
  margin-bottom: var(--space-2xl);
}

.mission-card {
  background: var(--light-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: none;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--primary-color);
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.mission-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  z-index: 1;
}

.mission-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-light);
  opacity: 0.15;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}

.mission-content {
  position: relative;
  z-index: 2;
}

.mission-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
  transition: all 0.3s ease;
}

.mission-card:hover .mission-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.3);
}

.mission-icon i {
  font-size: 2rem;
  color: var(--light-color);
}

.mission-card h3 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: var(--space-sm);
}

.mission-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.mission-card p {
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  font-size: 1.0625rem;
}

.mission-objectives {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
}

.objective {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) 0;
  transition: all 0.2s ease;
}

.objective:hover {
  transform: translateX(5px);
  padding-left: var(--space-sm);
}

.objective:last-child {
  margin-bottom: 0;
}

.objective i {
  color: var(--success-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.objective span {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ===== VALUES SECTION ENHANCEMENTS ===== */
.values-section {
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(
    135deg,
    rgba(248, 249, 250, 0.9),
    rgba(232, 244, 255, 0.9)
  );
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%230d6efd" opacity="0.03"/></svg>');
  background-size: cover;
  z-index: 1;
}

.values-section > * {
  position: relative;
  z-index: 2;
}

.value-card {
  background: var(--light-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  height: 100%;
  transition: all 0.4s ease;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1);
  border-color: var(--primary-light);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.25);
}

.value-icon i {
  font-size: 2.25rem;
  color: var(--light-color);
}

.value-card h4 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.375rem;
}

.value-card p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== BACK TO TOP BUTTON ENHANCEMENTS ===== */
#backToTop {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--light-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
  cursor: pointer;
  font-size: 1.25rem;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
}

#backToTop:active {
  transform: translateY(-2px) scale(1.05);
}

/* ===== ANIMATION CLASSES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ENHANCEMENTS ===== */
@media (max-width: 1200px) {
  .vision-statement {
    font-size: 1.5rem;
    padding: 0 var(--space-lg);
  }

  .vision-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .page-title {
    font-size: 2.25rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .vision-statement {
    font-size: 1.375rem;
    padding: 0 var(--space-md);
  }

  .vision-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .header-stats {
    gap: var(--space-lg);
  }

  .stat-item {
    min-width: 120px;
    padding: var(--space-sm);
  }

  .stat-number {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: var(--space-xl) 0;
    background-attachment: scroll;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.125rem;
  }

  .vision-statement {
    font-size: 1.25rem;
  }

  .vision-highlights {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .header-stats {
    gap: var(--space-md);
    justify-content: center;
  }

  .stat-item {
    flex: 0 0 calc(50% - var(--space-md));
    min-width: 0;
  }

  .mission-card {
    padding: var(--space-lg);
  }

  .mission-icon {
    width: 60px;
    height: 60px;
  }

  .mission-icon i {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .vision-card {
    padding: var(--space-lg);
  }

  .vision-statement {
    font-size: 1.125rem;
    padding: 0;
  }

  .vision-statement::before,
  .vision-statement::after {
    font-size: 3rem;
  }

  .vision-statement::before {
    top: -20px;
  }

  .vision-statement::after {
    bottom: -30px;
  }

  .header-stats {
    gap: var(--space-sm);
  }

  .stat-item {
    flex: 0 0 calc(50% - var(--space-sm));
    padding: var(--space-sm) var(--space-xs);
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .mission-card {
    padding: var(--space-md);
  }

  .mission-number {
    font-size: 3rem;
    top: var(--space-sm);
    right: var(--space-sm);
  }

  .values-section {
    padding: var(--space-xl) var(--space-md);
  }

  #backToTop {
    width: 48px;
    height: 48px;
    bottom: var(--space-md);
    right: var(--space-md);
  }
}

/* Print Styles */
@media print {
  .page-header {
    background: var(--primary-color) !important;
  }

  #backToTop {
    display: none !important;
  }

  .mission-card,
  .value-card,
  .vision-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid var(--gray-300) !important;
  }
}
