/* Import IBM Plex fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* CSS Custom Properties for consistent spacing */
:root {
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */
  --space-4xl: 8rem;
  /* 128px */

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  display: block;
  width: auto;
  max-height: 32px;
}

.nav-menu {
  display: none;
  gap: var(--space-lg);
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: var(--space-xs);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  color: white;
  padding: calc(var(--space-4xl) + var(--space-lg)) 0 var(--space-4xl);
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0, 0.5);
  z-index: 2;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background: #2563eb;
  color: white;
}

/* Unified Section Styles */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-xl);
  color: #1f2937;
  font-weight: 700;
}

.section-content {
  display: grid;
  gap: var(--space-xl);
}

.section-content.two-column {
  grid-template-columns: 1fr;
}

.section-content.three-column {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Content Components */
.content-text p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: #4b5563;
}

.content-text h3 {
  margin-bottom: var(--space-md);
  color: #1f2937;
  font-size: 1.5rem;
}

.content-card {
  background: white;
  padding: var(--space-lg);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.content-card h3 {
  color: #1f2937;
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 600;
}

.content-card p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  color: #6b7280;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  padding-left: var(--space-lg);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 600;
}

.services-grid {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat-card {
  background: white;
  padding: var(--space-lg);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: var(--space-xs);
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-card p {
  color: #6b7280;
  font-weight: 500;
}

/* Contact Items */
.contact-item {
  margin-bottom: var(--space-md);
}

.contact-item strong {
  color: #374151;
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-item p {
  color: #6b7280;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: var(--space-lg) 0;
}

/* Login Page Styles */
.login-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  background: #f8fafc;
}

.login-section {
  padding: var(--space-4xl) 0;
  width: 100%;
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  padding: var(--space-xl);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.login-header h2 {
  color: #1f2937;
  margin-bottom: var(--space-xs);
  font-size: 2rem;
  font-weight: 600;
}

.login-header p {
  color: #6b7280;
}

.login-form {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: #374151;
  font-weight: 500;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #6b7280;
}

.checkbox-container input[type="checkbox"] {
  margin-right: var(--space-xs);
}

.forgot-password {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-full {
  width: 100%;
}

.login-footer {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid #e5e7eb;
}

.login-footer p {
  color: #6b7280;
}

.signup-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.signup-link:hover {
  text-decoration: underline;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section-content.two-column {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .section-content.three-column {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

  .section-content.three-column {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

/* Mobile menu active state */
@media (max-width: 767px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {

  .header,
  .nav-toggle,
  .btn {
    display: none;
  }

  .hero {
    background: none;
    color: black;
  }
}