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

:root {
  --primary: #0839a6;
  --primary-dark: #062d87;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --text: #e5e7eb;
  --text-light: #9ca3af;
  --bg: #111827;
  --bg-alt: #1f2937;
  --border: #374151;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
[data-theme="dark"] .header { background: rgba(17,24,39,0.95); }
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 48px; }
.nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* HERO SLIDER */
.hero-slider {
  margin-top: 72px;
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #111;
}
.slides { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.slider-btn {
  pointer-events: all;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: var(--primary); color: #fff; }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active { background: #fff; transform: scale(1.2); }

/* SERVICES PREVIEW */
.services-preview {
  padding: 80px 0;
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card h3 { font-size: 20px; padding: 20px 24px 8px; }
.service-card p { font-size: 14px; color: var(--text-light); padding: 0 24px; line-height: 1.6; }
.link-arrow {
  display: inline-block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.link-arrow:hover { color: var(--primary-dark); }

/* HISTORY SECTION */
.history-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.history-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.img-main {
  grid-column: span 2;
  border-radius: var(--radius);
  height: 240px;
  object-fit: cover;
}
.img-secondary {
  border-radius: var(--radius);
  height: 140px;
  object-fit: cover;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.history-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.history-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* PAGE HERO */
.page-hero {
  margin-top: 72px;
  padding: 60px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.breadcrumb a { color: var(--primary); }
.page-hero h1 { font-size: 36px; font-weight: 700; }

/* COMPANY SECTION */
.company-section { padding: 80px 0; }
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.gallery-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.company-text h2 { font-size: 28px; margin-bottom: 20px; }
.company-text p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; line-height: 1.7; }

/* STATS */
.stats-section {
  padding: 60px 0;
  background: var(--primary);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number { display: block; font-size: 42px; font-weight: 700; }
.stat-label { font-size: 14px; opacity: 0.85; }

/* SERVICES DETAIL */
.services-detail { padding: 80px 0; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-content h2 { font-size: 28px; margin-bottom: 16px; }
.service-content p { font-size: 15px; color: var(--text-light); margin-bottom: 12px; line-height: 1.7; }

/* CONTACT */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}
.contact-info h2 { font-size: 28px; margin-bottom: 20px; }
.contact-info p { font-size: 15px; margin-bottom: 12px; line-height: 1.7; }

/* FOOTER */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 0;
}
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.footer-content { text-align: center; }
.footer-content p { font-size: 13px; margin-bottom: 8px; }
.footer-links a { color: #aaa; }
.footer-links a:hover { color: #fff; }
.footer-social { margin-top: 16px; display: flex; gap: 24px; justify-content: center; }
.footer-social a { color: #aaa; font-size: 13px; }
.footer-social a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .menu-toggle { display: flex; }
  [data-theme="dark"] .nav { background: #1f2937; }
  .hero-slider { height: 300px; }
  .services-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; gap: 40px; }
  .company-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse { direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-slider { height: 280px; }
}

/* DARK MODE OVERRIDES */
[data-theme="dark"] .service-card { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .slider-btn { background: rgba(31,41,55,0.9); color: var(--text); }
[data-theme="dark"] .slider-btn:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .btn-primary { background: var(--primary); }
[data-theme="dark"] .footer { background: #0d1117; }
