/* ================ VARIABLES ================ */
:root {
  /* Base Colors - Tetrad Color Scheme */
  --primary-color: #3E54AC; /* Primary blue */
  --secondary-color: #AC3E3E; /* Red accent */
  --tertiary-color: #3EAC6F; /* Green accent */
  --quaternary-color: #AC8F3E; /* Gold accent */
  
  /* Shades and Tints */
  --primary-dark: #2A3A78;
  --primary-light: #6077D0;
  --secondary-dark: #7E2D2D;
  --secondary-light: #D46F6F;
  --tertiary-dark: #2A7A4F;
  --tertiary-light: #70D9A3;
  --quaternary-dark: #7E672D;
  --quaternary-light: #D9C070;
  
  /* Neutral Colors */
  --dark: #212529;
  --gray-900: #343a40;
  --gray-800: #495057;
  --gray-700: #6c757d;
  --gray-600: #868e96;
  --gray-500: #adb5bd;
  --gray-400: #ced4da;
  --gray-300: #dee2e6;
  --gray-200: #e9ecef;
  --gray-100: #f8f9fa;
  --light: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-dark: rgba(33, 37, 41, 0.75);
  --glass-bg-light: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --card-spacing: 1.5rem;
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ================ BASE STYLES ================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--gray-800);
  background-color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

img {
  max-width: 100%;
  height: auto;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 2rem;
  border-radius: var(--border-radius);
}

/* Buttons */
.btn {
  transition: all var(--transition-normal);
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-outline-light {
  color: var(--light);
  border-color: var(--light);
}

.btn-outline-light:hover {
  color: var(--dark);
  background-color: var(--light);
}

/* Card Styles */
.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--light);
  border: none;
  box-shadow: var(--glass-shadow);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Glassmorphism Classes */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
}

.glassmorphism-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: var(--glass-shadow);
  color: var(--light);
}

.glassmorphism-light {
  background: var(--glass-bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Form Styles */
.form-control, .form-select {
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  background-color: var(--light);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(62, 84, 172, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ================ HEADER ================ */
.header-glassmorphism {
  background: var(--glass-bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--gray-800);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-normal);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* ================ HERO SECTION ================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--light);
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ================ ABOUT SECTION ================ */
.about-section {
  padding: 5rem 0;
}

.about-image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

/* ================ MISSION SECTION ================ */
.mission-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.mission-card {
  text-align: center;
  padding: 2.5rem;
}

.mission-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mission-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================ VISION SECTION ================ */
.vision-section {
  padding: 5rem 0;
}

.vision-image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

/* ================ HISTORY SECTION ================ */
.history-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.timeline {
  position: relative;
  padding: 2rem;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-date {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--primary-color);
  color: var(--light);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.timeline-content {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* ================ CUSTOMER STORIES SECTION ================ */
.customer-stories-section {
  padding: 5rem 0;
}

/* ================ CLIENTELE SECTION ================ */
.clientele-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.statistics-widget {
  padding: 2rem;
}

.stat-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.demographic-chart {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ================ TESTIMONIALS SECTION ================ */
.testimonials-section {
  padding: 5rem 0;
}

.testimonial-card {
  height: 100%;
  text-align: center;
  background-color: var(--light);
  color: var(--gray-800);
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--primary-light);
  margin-bottom: 1rem;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-author h4 {
  margin: 0;
  font-size: 1.1rem;
}

/* ================ RESOURCES SECTION ================ */
.resources-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.resources-list {
  padding: 2rem;
}

.list-group-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: var(--light);
  border: none;
  border-radius: var(--border-radius);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.list-group-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.list-group-item h4 {
  margin-top: 0;
  color: var(--primary-color);
}

/* ================ CONTACT SECTION ================ */
.contact-section {
  padding: 5rem 0;
}

.contact-info {
  padding: 2rem;
}

.contact-method {
  margin-bottom: 1.5rem;
}

.contact-icon {
  flex-shrink: 0;
}

.contact-form {
  padding: 2rem;
}

/* ================ FOOTER ================ */
.footer-section {
  padding: 5rem 0 2rem;
}

.footer-links {
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  transition: color var(--transition-normal);
}

.footer-links a:hover {
  color: var(--light);
}

.social-links a {
  color: var(--gray-300);
  font-weight: 500;
  transition: color var(--transition-normal);
}

.social-links a:hover {
  color: var(--light);
  text-decoration: none;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--light);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ================ SUCCESS PAGE ================ */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  padding: 3rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary-color);
  margin-bottom: 2rem;
}

/* ================ PRIVACY & TERMS PAGES ================ */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.content-wrapper {
  padding: 3rem;
}

/* ================ SCROLL-REVEAL ANIMATIONS ================ */
.reveal-from-bottom {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-from-left {
  opacity: 0;
  transform: translateX(-30px);
}

.reveal-from-right {
  opacity: 0;
  transform: translateX(30px);
}

/* ================ RESPONSIVE STYLES ================ */
@media (max-width: 1199.98px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section p {
    font-size: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .timeline:before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .card-image {
    height: 180px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .contact-info, .contact-form, .statistics-widget, .resources-list, .mission-card, .timeline {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .testimonial-author img {
    width: 50px;
    height: 50px;
  }
}

/* ================ CUSTOM ANIMATIONS ================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes slideRight {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

*{
  opacity: 1 !important;
}
html,body{
  overflow-x: hidden;
}