:root {
  --primary: #18B7B0;
  --dark-bg: #1E2230;
  --secondary: #161A24;
  --accent: #E6E6E6;
  --white: #FFFFFF;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Poppins", sans-serif;
  background: var(--dark-bg);
  color: var(--accent);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  right: 16px;
  background: var(--primary);
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 9999;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  margin: 0 0 10px;
  color: var(--white);
}

.section-header p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(230, 230, 230, 0.8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(30, 34, 48, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 230, 230, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--white);
}

.logo-mark {
  font-size: 1.2rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.1rem;
}

.logo-ar {
  font-size: 0.95rem;
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--accent);
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(24, 183, 176, 0.3), transparent 50%),
              radial-gradient(circle at 80% 10%, rgba(24, 183, 176, 0.2), transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(230, 230, 230, 0.1), transparent 50%);
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 180px;
  height: 180px;
  background: rgba(24, 183, 176, 0.3);
  top: 10%;
  right: 8%;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: rgba(230, 230, 230, 0.2);
  bottom: 20%;
  left: 10%;
  animation-delay: 1.5s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: rgba(24, 183, 176, 0.4);
  bottom: 10%;
  right: 30%;
  animation-delay: 2.2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  color: var(--white);
  margin: 0 0 14px;
}

.typing {
  color: var(--primary);
  border-left: 2px solid var(--primary);
  padding-left: 8px;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: rgba(230, 230, 230, 0.85);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 12px 30px rgba(24, 183, 176, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(24, 183, 176, 0.1);
  transform: translateY(-3px);
}

.hero-card {
  background: var(--secondary);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.metric-value {
  color: var(--primary);
  font-size: 1.3rem;
}

.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  background: var(--secondary);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.1);
}

.why-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.counters {
  display: grid;
  gap: 18px;
}

.counter-card {
  background: var(--secondary);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.counter {
  font-size: 2rem;
  color: var(--primary);
  display: block;
  font-weight: 800;
}

.why-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-points li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(230, 230, 230, 0.1);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  background: var(--secondary);
  color: var(--accent);
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portfolio-item img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 26, 36, 0.8);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.contact-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--secondary);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(230, 230, 230, 0.08);
  color: var(--white);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.error {
  color: #ffb4b4;
  font-size: 0.85rem;
  min-height: 18px;
}

.form-success {
  color: var(--primary);
  min-height: 20px;
}

.footer {
  background: var(--secondary);
  padding: 30px 0;
  border-top: 1px solid rgba(230, 230, 230, 0.1);
}

.footer-content {
  display: grid;
  gap: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-copy {
  color: rgba(230, 230, 230, 0.6);
  margin: 0;
}

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 4%;
    right: 4%;
    background: var(--secondary);
    flex-direction: column;
    padding: 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 100px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    order: -1;
  }
}
