:root {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --text-primary: #f9fafb;
  --text-muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --card-border: #374151;
}

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

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

body {
  font-family: "Cairo", sans-serif;
  background: linear-gradient(180deg, var(--bg-primary), #0f172a);
  color: var(--text-primary);
  line-height: 1.7;
}

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

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(17, 24, 39, 0.85);
  border-bottom: 1px solid rgba(203, 213, 225, 0.12);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: lowercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

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

.menu-toggle {
  display: none;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.hero {
  padding-top: 112px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-subtitle {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.35;
  max-width: 760px;
}

.hero-description {
  color: var(--text-muted);
  max-width: 700px;
  margin: 20px 0 0;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  width: min(340px, 88%);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.hero-image-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.16), transparent 60%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  background-color: #0b1220;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #02131f;
}

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

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: rgba(56, 189, 248, 0.12);
}

h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3.7vw, 2.2rem);
}

.about p,
.contact p {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-muted);
}

.services-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}

.service-icon {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

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

.contact-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 42px 24px;
  text-align: center;
}

.contact-box .btn {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .nav {
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .section {
    padding: 72px 0;
  }

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

  .hero-content {
    text-align: center;
  }

  .hero h1,
  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}
