/*
 * ThreeStar Ltd - Main Stylesheet
 * Design Credits: Datacare (https://datacare.co.ke)
 * Author: Claude Code
 * Version: 1.0.0
 */

/* ============================================
   CSS VARIABLES (Custom Properties)
   ============================================ */
:root {
  /* Color Palette - Light Blue & Green Theme */
  --primary-color: #2196F3;        /* Light Blue */
  --primary-dark: #1565C0;         /* Darker Blue */
  --primary-light: #64B5F6;        /* Lighter Blue */
  --secondary-color: #4CAF50;      /* Green */
  --secondary-dark: #388E3C;       /* Dark Green */
  --accent-color: #00BCD4;         /* Cyan/Teal Accent */
  --accent-dark: #0097A7;          /* Dark Cyan */

  --dark-color: #1A237E;           /* Dark Blue for Header/Footer */
  --dark-navy: #0D47A1;            /* Navy Blue */
  --light-color: #E3F2FD;          /* Very Light Blue */
  --white: #ffffff;
  --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;

  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-headings: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  /* Font Sizes */
  --fs-h1: 3.5rem;
  --fs-h2: 2.5rem;
  --fs-h3: 2rem;
  --fs-h4: 1.5rem;
  --fs-h5: 1.25rem;
  --fs-h6: 1rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  /* Spacing */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 1);
  --spacing-sm: calc(var(--spacing-unit) * 2);
  --spacing-md: calc(var(--spacing-unit) * 3);
  --spacing-lg: calc(var(--spacing-unit) * 4);
  --spacing-xl: calc(var(--spacing-unit) * 6);
  --spacing-xxl: calc(var(--spacing-unit) * 8);

  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p {
  margin-bottom: var(--spacing-md);
}

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

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

.lead-text {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray-600);
}

.text-highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-padding {
  padding: var(--spacing-xxl) 0;
}

.section-bg-light {
  background-color: var(--gray-100);
}

.section-bg-dark {
  background-color: var(--dark-color);
  color: var(--white);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4,
.section-bg-dark h5,
.section-bg-dark h6 {
  color: var(--white);
}

.section-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

.shadow-hover {
  transition: box-shadow var(--transition-base);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-xl);
}

.rounded-custom {
  border-radius: var(--border-radius-lg);
}

.border-custom {
  border: 2px solid var(--gray-300);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader,
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden,
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner,
.spinner-wrapper {
  text-align: center;
}

.spinner-border {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-300);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header,
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  box-shadow: var(--shadow-md);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.site-header.scrolled,
.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .text-primary {
  color: var(--accent-color) !important;
}

.navbar-brand:hover {
  color: var(--accent-color) !important;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-brand:hover {
  color: var(--white) !important;
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Dark navbar styling */
.navbar-light {
  background-color: var(--dark-color);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

/* Mega Menu */
.mega-menu {
  position: static;
}

.mega-menu .dropdown-menu {
  width: 100%;
  max-width: 1200px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2rem;
}

.mega-menu-column {
  padding: 0 1rem;
}

.mega-menu-column h6 {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.mega-menu-column .dropdown-item {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  display: inline-block;
  text-align: center;
  border: 2px solid var(--primary-color);
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary-custom {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  display: inline-block;
  text-align: center;
}

.btn-secondary-custom:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  display: inline-block;
  text-align: center;
}

.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg-custom {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-icon i {
  transition: transform var(--transition-fast);
}

.btn-icon:hover i {
  transform: translateX(5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section,
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

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

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

.hero-section .lead {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-section .typed-text {
  color: var(--accent-color);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

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

.scroll-indicator i {
  font-size: 2rem;
  color: var(--white);
  opacity: 0.7;
}

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

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section,
#stats {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
}

.stats-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.stats-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-headings);
  display: block;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: var(--border-radius-round);
  color: var(--white);
  font-size: 2rem;
  transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray-600);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-card .btn-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition-fast);
}

.service-card .btn-link:hover {
  gap: 10px;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--gray-200);
}

.product-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.product-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
}

.product-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success-color);
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.team-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: var(--gray-300);
}

.team-info {
  padding: var(--spacing-lg);
}

.team-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.team-card .position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-100);
  border-radius: var(--border-radius-round);
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  margin: var(--spacing-lg) 0;
}

.testimonial-quote {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  padding-left: 40px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-round);
  object-fit: cover;
  background-color: var(--gray-300);
}

.testimonial-author-info h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.testimonial-author-info .company {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.testimonial-rating {
  color: var(--accent-color);
  margin-top: 0.5rem;
}

/* ============================================
   ICON BOX
   ============================================ */
.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius-md);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.icon-box-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-column h5 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-column p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  opacity: 0.5;
}

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

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact-info i {
  color: var(--primary-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-800);
  border-radius: var(--border-radius-round);
  color: var(--gray-400);
  transition: all var(--transition-base);
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ============================================
   FLOATING CONTACT BUTTON
   ============================================ */
.floating-contact {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--success-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-sticky);
  animation: pulse-button 2s infinite;
}

.floating-contact:hover {
  background-color: #1e7e34;
  transform: scale(1.1);
}

@keyframes pulse-button {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  padding: 12px 15px;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.1);
}

.form-control.is-valid {
  border-color: var(--success-color);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
}

.invalid-feedback {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  position: relative;
  padding: 150px 0 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
  color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--white);
  color: var(--dark-color);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-body {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-300);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  right: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border: 4px solid var(--white);
  border-radius: var(--border-radius-round);
  box-shadow: var(--shadow-md);
}

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

.timeline-content {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .mega-menu .dropdown-menu {
    position: relative;
    transform: none;
    left: 0;
    padding: 1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats-number {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .back-to-top,
  .floating-contact {
    right: 20px;
  }

  .floating-contact {
    bottom: 80px;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: var(--spacing-xl) 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .stats-section {
    padding: var(--spacing-xl) 0;
  }
}
