:root {
    /* Modern Color Palette */
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary-color: #4cc9f0;
    --accent-color: #f72585;
    --dark-color: #14213d;
    --light-color: #f8f9fa;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --success-color: #4bb543;
    --warning-color: #f9c74f;
    --danger-color: #ef476f;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Spacing */
    --space-unit: 1rem;
    --space-xs: calc(0.5 * var(--space-unit));
    --space-sm: calc(0.75 * var(--space-unit));
    --space-md: calc(1.25 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3.25 * var(--space-unit));
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==========================================================================
   #BASE
   ========================================================================== */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS and IE text size adjust after device orientation change,
 *    without disabling user zoom.
 */

html {
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
  font-size: 100%; /* 1 */
  scroll-behavior: smooth;
  height: 100%;
}

/**
 * Remove default margin and padding.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/**
 * 1. Improve consistency of default fonts in all browsers.
 * 2. Set default font size to 16px.
 * 3. Set default line height to 1.5.
 * 4. Set default color.
 * 5. Prevent adjustments of font size after orientation changes in iOS.
 */

body {
  font-family: var(--font-primary);
  font-size: 1rem; /* 2 */
  line-height: 1.6; /* 3 */
  color: var(--text-color); /* 4 */
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%; /* 5 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography
   ========================================================================== */

/**
 * 1. Remove top margins from headings.
 * 2. Set consistent heading sizes and spacing.
 */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0; /* 1 */
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

h5 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

h6 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
}

/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */

a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

/**
 * 1. Remove the border on images inside links in IE 10-.
 * 2. Responsive images
 */

img {
  border-style: none; /* 1 */
  max-width: 100%; /* 2 */
  height: auto; /* 2 */
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
  margin: var(--space-lg) 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre,
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  margin-bottom: var(--space-md);
}

.section-title p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.bg-dark {
  background-color: var(--dark-color);
  color: #ffffff;
}

.text-center {
  text-align: center;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  background-color: var(--primary-color);
  color: #ffffff;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: scaleX(1);
  transform-origin: right;
}

.btn:hover::before {
  transform: scaleX(0);
  transform-origin: left;
}

.btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Button Variants */
.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Button with Icon */
.btn i {
  margin-right: 0.5rem;
}

/* Grid System
   ========================================================================== */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-md) * -1);
}

.col {
  flex: 1 0 0%;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
}

/* Responsive Grid */
@media (min-width: 640px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 1024px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Utility Classes
   ========================================================================== */

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }

.mt-1 { margin-top: var(--space-xs) !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.ml-1 { margin-left: var(--space-xs) !important; }
.mr-1 { margin-right: var(--space-xs) !important; }
.mx-1 { margin-left: var(--space-xs) !important; margin-right: var(--space-xs) !important; }
.my-1 { margin-top: var(--space-xs) !important; margin-bottom: var(--space-xs) !important; }

.mt-2 { margin-top: var(--space-sm) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.ml-2 { margin-left: var(--space-sm) !important; }
.mr-2 { margin-right: var(--space-sm) !important; }
.mx-2 { margin-left: var(--space-sm) !important; margin-right: var(--space-sm) !important; }
.my-2 { margin-top: var(--space-sm) !important; margin-bottom: var(--space-sm) !important; }

.mt-3 { margin-top: var(--space-md) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.ml-3 { margin-left: var(--space-md) !important; }
.mr-3 { margin-right: var(--space-md) !important; }
.mx-3 { margin-left: var(--space-md) !important; margin-right: var(--space-md) !important; }
.my-3 { margin-top: var(--space-md) !important; margin-bottom: var(--space-md) !important; }

.mt-4 { margin-top: var(--space-lg) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }
.ml-4 { margin-left: var(--space-lg) !important; }
.mr-4 { margin-right: var(--space-lg) !important; }
.mx-4 { margin-left: var(--space-lg) !important; margin-right: var(--space-lg) !important; }
.my-4 { margin-top: var(--space-lg) !important; margin-bottom: var(--space-lg) !important; }

.mt-5 { margin-top: var(--space-xl) !important; }
.mb-5 { margin-bottom: var(--space-xl) !important; }
.ml-5 { margin-left: var(--space-xl) !important; }
.mr-5 { margin-right: var(--space-xl) !important; }
.mx-5 { margin-left: var(--space-xl) !important; margin-right: var(--space-xl) !important; }
.my-5 { margin-top: var(--space-xl) !important; margin-bottom: var(--space-xl) !important; }

/* ==========================================================================
   #HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.logo:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.logo span {
  color: var(--dark-color);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: all var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal) ease;
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--dark-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) {
  top: 10px;
}

.menu-toggle span:nth-child(4) {
  top: 20px;
}

.menu-toggle.open span:nth-child(1),
.menu-toggle.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.menu-toggle.open span:nth-child(2) {
  transform: rotate(45deg);
  background: var(--primary-color);
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  background: var(--primary-color);
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease-in-out;
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
  
  .header.scrolled .nav {
    top: 0;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* CTA Button in Header */
.header .btn {
  margin-left: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .header-actions {
    margin-left: auto;
  }
  
  .header .btn {
    display: none;
  }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
  .header {
    background-color: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
  }
  
  .logo span {
    color: #ffffff;
  }
  
  .nav-link {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-light);
  }
  
  .menu-toggle span {
    background: #ffffff;
  }
  
  @media (max-width: 992px) {
    .nav {
      background-color: var(--dark-color);
    }
  }
}

/* ==========================================================================
   #HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark-color);
  color: #ffffff;
  padding: 100px 0 80px;
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.9) 0%, rgba(76, 201, 240, 0.9) 100%),
              url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
  background-attachment: fixed;
  z-index: 1;
  animation: gradientBG 15s ease infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--container-padding);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-title span {
  color: var(--primary-light);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transform: skew(-12deg);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-cta .btn:first-child {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid #ffffff;
}

.hero-cta .btn:first-child:hover {
  background: transparent;
  color: #ffffff;
}

.hero-cta .btn:last-child {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.hero-cta .btn:last-child:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 6rem auto 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 1s ease-out 1s both;
}

.stat-item {
  text-align: center;
  padding: 0 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.hero-scroll i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.hero-scroll:hover i {
  color: #ffffff;
  transform: translateY(5px);
}

/* Hero Animations */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    margin-top: 4rem;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 100px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.05rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    margin-top: 3rem;
    gap: 1rem;
    padding: 1rem;
  }
  
  .stat-item {
    flex: 0 0 calc(50% - 1rem);
    padding: 0.5rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-item {
    flex: 0 0 100%;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.about-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.about-stats {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
  min-width: 100px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 300px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-overlay span {
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
    min-height: 250px;
  }

  .about-stats {
    justify-content: center;
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover i {
  transform: scale(1.1);
}

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

.service-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* Update for Services Section to make it horizontal */
@media (min-width: 768px) {
  .services-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    justify-content: space-between;
  }

  .service-card {
    flex: 0 0 calc(16.66% - 1.5rem);
    min-width: 200px;
    text-align: center;
    padding: 1.5rem 1rem;
  }
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding-bottom: 1.5rem;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-member-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 2rem auto 1.5rem;
  background-size: cover;
  background-position: center;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.team-member:hover .team-member-img {
  transform: scale(1.05);
}

.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.team-member p {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.team-member a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-member a:hover {
  color: var(--primary-color);
}

/* Update for Team Section to make it horizontal */
@media (min-width: 768px) {
  .team-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    justify-content: space-between;
  }

  .team-member {
    flex: 0 0 calc(10% - 1.5rem);
    min-width: 180px;
    text-align: center;
  }

  .team-member-img {
    width: 120px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: rgba(248, 249, 250, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  padding: 1.5rem 0;
  background: var(--light-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  padding: 0 1.5rem;
}

.contact-info p {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  color: var(--text-color);
  padding: 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info i {
  margin-right: 0.75rem;
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  margin-top: 0.2rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  transition: var(--transition-fast);
  font-size: 1rem;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .contact-info {
    order: -1;
    text-align: center;
    background: transparent;
    padding: 0;
  }

  .contact-info p {
    justify-content: center;
    padding: 0;
  }

  .social-links {
    justify-content: center;
    padding: 0;
  }
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #e5e7eb;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: #9ca3af;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-links ul li a {
  color: #9ca3af;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-legal {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

.legal-links {
  margin-top: 1rem;
}

.legal-links a {
  color: #9ca3af;
  margin: 0 0.5rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.legal-links a:hover {
  color: white;
}

.legal-links span {
  color: #4b5563;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
    padding: 0.8rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  header, footer, .btn, .social-links {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  transform: translateY(0);
}
