:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #0f172a;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent text size adjustment on mobile */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Better touch targets for mobile */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 0;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.contact-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item i {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--white);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  max-height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-card h4 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Stats Section */
.stats {
  background-color: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

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

.service-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

.service-card ul {
  list-style: none;
  color: var(--text-light);
}

.service-card li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
}

.contact-info-item {
  margin-bottom: 30px;
}

.contact-info-item h4 {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-item p {
  color: var(--text-light);
  padding-left: 30px;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--white);
}

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

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
}

.newsletter-form button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

/* Responsive Design */

/* Tablet Devices */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }

  section {
    padding: 60px 0;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Navigation */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-btn {
    display: block;
    margin-left: auto;
    order: 2;
  }

  nav {
    order: 1;
    flex: 0 0 auto;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    gap: 10px;
  }

  nav ul.active {
    display: flex;
  }

  nav a {
    padding: 10px 0;
    display: block;
  }

  /* Hero Section */
  .hero {
    padding: 100px 0 !important;
    min-height: 400px !important;
  }

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

  .hero p {
    font-size: 1.125rem !important;
    margin-bottom: 30px;
  }

  /* Sections */
  section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  /* Grids */
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Top Bar */
  .top-bar {
    padding: 10px 0;
  }

  .top-bar-content {
    justify-content: flex-end;
    gap: 10px;
  }

  .contact-info {
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
  }

  .social-links {
    gap: 20px;
    font-size: 18px;
  }

  /* Header/Logo */
  .nav-container {
    padding: 15px 0;
  }

  .nav-container > a {
    order: 0;
  }

  .logo {
    max-height: 40px;
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Content */
  .about-content h3 {
    font-size: 1.5rem;
  }

  .value-card,
  .service-card {
    padding: 25px 20px;
  }

  .value-card h4,
  .service-card h3 {
    font-size: 1.25rem;
  }

  /* Stats */
  .stat-number {
    font-size: 2.5rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 30px 20px;
  }

  .contact-info-card {
    padding: 30px 20px;
  }

  /* Footer */
  footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  /* Hero */
  .hero {
    padding: 80px 0 !important;
    min-height: 350px !important;
  }

  .hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem !important;
  }

  /* Sections */
  section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  /* Stats */
  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  /* Buttons */
  .btn {
    width: 100%;
    text-align: center;
  }

  /* Cards */
  .value-card,
  .service-card {
    padding: 20px 15px;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  /* Contact Info */
  .contact-item {
    font-size: 12px;
  }

  .top-bar {
    font-size: 12px;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 2rem;
}

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