body {
  direction: rtl;
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  background: #f4f6fb;
  margin: 0;
  padding: 0;
  color: #1c2a39;
}

/* ================== الهيدر ================== */
nav {
  background: #076905;
  box-shadow: 0 1px 10px #0001;
}
.navbar-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
}
.main-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-menu li {
  margin-left: 0;
  margin-right: 12px;
}
.main-menu li a {
  color: #fff;
  text-decoration: none;
  padding: 11px 15px;
  border-radius: 7px;
  font-size: 1.09em;
  font-weight: 500;
  display: block;
  transition: background 0.16s, color 0.14s;
  white-space: nowrap;
}
.main-menu li a:hover,
.main-menu li a:focus {
  background: #22ba20;
  color: #fff;
}
.logo {
  font-size: 2em;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  margin-left: 0;
  margin-right: 26px;
  white-space: nowrap;
  display: inline-block;
  text-align: left;
}
.menu-close { display: none; }
@media (max-width: 900px) {
  .navbar-container { padding: 0 9px; }
  .logo { font-size: 1.3em; margin-right: 7px; }
  .main-menu li a { font-size: 1em; padding: 9px 7px; }
}
@media (max-width: 700px) {
  .navbar-container { height: auto; padding: 0 3px; }
  .logo { font-size: 1.15em; margin-right: 3px; }
  .main-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 78vw;
    max-width: 330px;
    height: 100vh;
    background: #076905;
    box-shadow: -6px 0 24px #0004;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 60px;
    padding-right: 22px;
    z-index: 100;
    transition: right 0.3s;
    border-radius: 0 0 0 13px;
  }
  .main-menu.open { right: 0; }
  .main-menu li { margin: 0 0 17px 0; }
  .main-menu li a {
    color: #fff;
    background: transparent;
    padding: 13px 7px;
    font-size: 1em;
    border-radius: 7px;
    width: 97%;
  }
  .main-menu li a:hover {
    background: #eafaea;
    color: #22ba20;
  }
  .menu-close {
    display: block;
    position: absolute;
    left: 22px;
    top: 13px;
    font-size: 2em;
    background: #fff;
    color: #076905;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
  }
}

/* ================== تنسيقات الموقع ================== */
section, .register-box, .login-box, .order-box {
  background: #fff;
  margin: 38px auto 25px auto;
  padding: 35px 32px 30px 32px;
  border-radius: 17px;
  box-shadow: 0 3px 28px #0e9c0055;
  max-width: 430px;
  min-width: 270px;
}

h1, h2 {
  color: #076905;
  margin-top: 0;
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  letter-spacing: 0.5px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #2e3c4a;
  font-size: 1.07em;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 10px;
  margin-bottom: 19px;
  border: 1.5px solid #cbe9d4;
  border-radius: 9px;
  font-size: 1.08em;
  background: #f8fafb;
  transition: border-color 0.17s, box-shadow 0.14s;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #22ba20;
  box-shadow: 0 1px 7px #b3ffd12c;
}

button[type="submit"] {
  background: #076905;
  color: #fff;
  border: none;
  padding: 13px 0;
  width: 100%;
  border-radius: 8px;
  font-size: 1.15em;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.14s, box-shadow 0.14s;
  box-shadow: 0 1px 8px #07690517;
}

button[type="submit"]:hover {
  background: #22ba20;
}

a {
  color: #22ba20;
  text-decoration: underline;
  transition: color 0.14s;
}
a:hover {
  color: #076905;
  text-decoration: none;
}

ul {
  padding-right: 25px;
  margin: 14px 0 0 0;
  font-size: 1.07em;
}
li {
  margin-bottom: 12px;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 21px 0 16px 0;
  background: #076905;
  color: #fff;
  font-size: 1em;
  border-radius: 0 0 15px 15px;
  margin-top: 44px;
  box-shadow: 0 -1px 12px #0001;
  letter-spacing: 0.2px;
}

.msg, #orderMessage, #contactMessage {
  text-align: center;
  padding: 9px 14px;
  margin-bottom: 19px;
  border-radius: 7px;
  font-size: 1.05em;
  font-weight: 500;
  background: #eafaea;
  color: #22ba20;
  border: 1.5px solid #c9efcb;
}

.error, .msg-error {
  background: #ffeaea !important;
  color: #e13c3c !important;
  border: 1.5px solid #ffdede !important;
}
/* ========== Portfolio Section ========== */
.portfolio-section {
    max-width: 1150px;
    margin: 35px auto 0 auto;
    padding: 0 16px;
}
.portfolio-section h1 {
    color: #076905;
    font-size: 2.2em;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 1.2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}

.portfolio-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 19px #07690516;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.19s, box-shadow 0.19s;
    border: 1.5px solid #e7f7ea;
}
.portfolio-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 9px 24px #22ba2044;
}

.portfolio-img {
    width: 180%;
    height: 180px;
    object-fit: cover;
    background: #d1ffe1;
}

.portfolio-info {
    padding: 23px 18px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h2 {
    color: #076905;
    margin: 0 0 10px 0;
    font-size: 1.17em;
    font-weight: bold;
    text-align: right;
}
.portfolio-info p {
    color: #234;
    font-size: 1em;
    margin: 0 0 16px 0;
    text-align: right;
    line-height: 1.7;
}

.portfolio-btn {
    display: inline-block;
    background: #076905;
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    align-self: flex-start;
    transition: background 0.18s;
}
.portfolio-btn:hover {
    background: #22ba20;
    color: #fff;
}

/* Responsive */

