@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #ebf2fc;
  color: #333;
  margin: 0;
  padding-top: 70px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

/* Fix anchor scroll under fixed navbar */
section {
  scroll-margin-top: 80px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  width: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #950538;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: 0.3s;
}

.nav-links a:hover {
  background-color: #950538;
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #950538;
  cursor: pointer;
}

/* HEADER */
header {
  background-color: #fff;
  padding: 40px 20px;
}

.header-main {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
  flex-wrap: wrap;
}

.profile-image {
  flex: 0 0 30%;
}

.profile-image img {
  width: 100%;
  border-radius: 10px;
}

.header-text {
  flex: 1;
}

.cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background-color: #950538;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}

.cta-button:hover {
  background-color: #333;
}

/* SECTIONS */
section {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.section-white {
  background-color: #ffffff;
}

.section-blue {
  background-color: #ebf2fc;
}

.section-white,
.section-blue {
  width: 100%;
  padding: 60px 20px;
}

h2 {
  color: #950538;
  margin-bottom: 20px;
}


/* STATS */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 150px;
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.stat strong {
  font-size: 48px;
  font-weight: 700;
  color: #950538;
  line-height: 1;
}

.stat[data-count="3"] strong::after,
.stat[data-count="15"] strong::after {
  content: "+";
  font-size: 48px;
  margin-right: 2px;
}

.stat span {
  font-size: 18px;
  margin-top: 6px;
}

/* SERVICES */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card img {
  width: 300px;
  height: 300px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 8px;
}

.service-card h3 {
  margin: 10px 0 6px;
  color: #950538;
  line-height: 1.4;
}

.service-card p {
  margin: 4px 0;
  line-height: 1.5;
}

.cta-service {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 18px;
  background-color: #950538;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.cta-service:hover {
  background-color: #333;
}

/* FREE TEMPLATES */
.templates-container {
  margin-top: 30px;
  max-width: 100%;
}

.cta-template {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 18px;
  background-color: #950538;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta-template:hover {
  background-color: #333;
}



/* PORTFOLIO */
.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 250px;
}

.portfolio-card img {
  width: 100%;
  display: block;
}

.portfolio-card p {
  padding: 8px 10px;
  margin: 0;
  line-height: 1.45;
  font-size: 16px;
}


/* CONTACT */
form {
  background: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  max-width: 600px;
  margin: 30px auto;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'Cairo', sans-serif;
}

form button {
  background-color: #950538;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.contact-icons i {
  font-size: 28px;
  color: #950538;
}

form label {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

form select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'Cairo', sans-serif;
  background: #fff;
}

.phone-group {
  display: flex;
  gap: 10px;
}

.phone-group select {
  width: 40%;
}

.phone-group input {
  width: 60%;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 25px;
  background: #fff;
  margin-top: 50px;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding-top: 90px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
  }

  .nav-links.active {
    right: 0;
  }

  .header-main {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    width: 70%;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .service-card {
    width: 100%;
    max-width: 420px;
    margin: auto;
  }

  .portfolio-container,
  .stats {
    flex-direction: column;
    align-items: center;
  }

  .stat {
    width: 90%;
    min-height: auto;
    margin-bottom: 15px;
  }

  .stat strong {
    font-size: 36px;
  }

  .stat[data-count="3"] strong::after,
  .stat[data-count="15"] strong::after {
    font-size: 36px;
  }

  .stat span {
    font-size: 16px;
  }
}
/* FORCE SAME WIDTH FOR SERVICES - TEMPLATES - PORTFOLIO */
.services-container,
.templates-container,
.portfolio-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23950538' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 14px;
}

