:root {
  --primary: #1F3A5F;
  --primary-light: #2D4A73;
  --accent: #3D7EAA;
  --light: #F7F9FC;
  --dark: #1A1A2E;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

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

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

nav a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

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

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

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

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
  background: var(--light);
}

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

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

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

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

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

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

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

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

/* Two Column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

.two-col-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.two-col-content p {
  color: var(--gray);
  margin-bottom: 16px;
}

.two-col-image img {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

/* About Section Alt */
.bg-light {
  background: var(--light);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Services Detail */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

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

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

.service-item:last-child {
  margin-bottom: 0;
}

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

.service-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.service-content ul {
  list-style: none;
}

.service-content li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--gray);
}

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

.service-image img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

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

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

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

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

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

.contact-details p {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-light);
  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(--accent);
}

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

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header p {
  opacity: 0.9;
}

/* Text Content */
.text-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.text-content h2:first-child {
  margin-top: 0;
}

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

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

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

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

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

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

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

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

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--white);
}

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

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

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

/* Responsive */
@media (max-width: 992px) {
  .two-col,
  .service-item,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col.reverse,
  .service-item:nth-child(even) {
    direction: ltr;
  }

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

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

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

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex;
  }

  .hero {
    padding: 60px 0;
  }

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

  section {
    padding: 60px 0;
  }

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

  .features-list {
    grid-template-columns: 1fr;
  }

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

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