:root {
  --primary: #1F3A5F;
  --primary-light: #2C4A6E;
  --secondary: #4A90A4;
  --accent: #6BB8A8;
  --text: #2D3748;
  --text-light: #718096;
  --bg: #FFFFFF;
  --bg-alt: #F7FAFC;
  --border: #E2E8F0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

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

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

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

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

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

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(31, 58, 95, 0.15);
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(31, 58, 95, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 1.5rem;
}

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

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.features {
  background: var(--bg-alt);
}

.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.feature-text h4 {
  color: var(--primary);
  margin-bottom: 4px;
}

.feature-text p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-text h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.contact-section {
  background: var(--bg-alt);
}

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

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-text span {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
}

.contact-text p {
  color: var(--text);
  font-weight: 500;
}

.contact-form {
  background: var(--bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

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

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

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

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

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: var(--primary-light);
}

.cta {
  background: var(--primary);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 16px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta .btn:hover {
  background: var(--bg-alt);
}

footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand .logo span {
  color: var(--accent);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-column h4 {
  margin-bottom: 20px;
  font-size: 1rem;
}

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

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: white;
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
}

.page-header {
  background: var(--bg-alt);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--primary);
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-light);
}

.content-section {
  padding: 60px 0;
}

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

.content-block h2 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.content-block h3 {
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.content-block p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.content-block ul {
  color: var(--text-light);
  margin-left: 24px;
  margin-bottom: 16px;
}

.content-block li {
  margin-bottom: 8px;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: center;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.service-detail h3 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.service-detail p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  padding: 32px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.team-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

.team-card h4 {
  color: var(--primary);
  margin-bottom: 4px;
}

.team-card span {
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .hero-content,
  .features-content,
  .about-grid,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

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

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

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

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  nav ul.active {
    display: flex;
  }

  .hero {
    padding: 48px 0;
  }

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

  .hero-image img {
    height: 280px;
  }

  section {
    padding: 48px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

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