:root {
  --max-width: 1200px;
  --accent: #0e76bd;
  --body: #ccc2b8;
  --accent-600: #0b66a3;
  --muted: #6b7280;
  --bg: #f6f9fc;
  --card: #ffffff;
  --cards: #39352a;
  --cards-content: #fff;
  --cards-content-left: #e0dcca;
  --radius: 12px;
  --seconed-change: #3d332a;
  --new-color: #a38e7d;
}
* {
  box-sizing: border-box;
}
html,
body {
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--body);
  color: #0b1220;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 10000;
  background: var(--seconed-change);
  color: #fdefd8;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(11, 18, 32, 0.04);
}
.blur-active {
  overflow: hidden;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-links a:hover {
  background: rgba(14, 118, 189, 0.06);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;

  /* لحالة الإخفاء */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* لما يتفعل */
.overlay.active {
  opacity: 1;
  visibility: visible;
}

#overlay.active {
  display: block;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-links.open {
  right: 0;
}

.hamburger {
  display: none;
  color: #fff;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 99999999999999999;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 4px 0;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1),
.hamburger.active span:nth-child(3) {
  background: #fff;
}

.hamburger.active span:nth-child(2) {
  background: #fff;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding-top: 70px;
  margin-top: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 19, 40, 0.25),
    rgba(6, 19, 40, 0.5)
  );
  mix-blend-mode: multiply;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 20px;
}
.hero-title {
  font-size: 24px;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
  font-weight: 450;
  color: #fdefd8;
}

.hero-main-title {
  color: #fdefd8;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  margin: 0 0 20px;
  max-width: 740px;
  font-size: 15px;
  color: #fdefd8;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary {
  background: var(--seconed-change);
  color: var(--body);
  box-shadow: 0 8px 24px rgba(14, 118, 189, 0.12);
}
.btn-primary-submit {
  background: var(--new-color);
  color: var(--cards);
  box-shadow: 0 8px 24px rgba(14, 118, 189, 0.12);
}

.btn-primary-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(11, 18, 32, 0.15);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(11, 18, 32, 0.15);
  transition: all 0.3s ease;
}
.hero {
  background-position: center;
  background-size: cover;
  padding: 120px 20px;
}

.hero-content {
  width: 100%;
  text-align: center;
}
@media (max-width: 768px) {
  .hero {
    background-position: center;
    background-size: cover;
    padding: 120px 20px;
  }

  .hero-content {
    width: 100%;
    text-align: center;
  }
}

/* ABOUT */
.section {
  padding: 48px 0;
}
.bg-light {
  background: transparent;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.about-text h1 {
  margin-top: 0;
}
.about-text p {
  line-height: 1.6;
  font-size: 22px;
}
.features {
  padding-left: 16px;
  color: var(--muted);
}
.about-media img {
  width: 500px;
  height: 489px;

  display: block;
  border-radius: 20px;
}
@media (max-width: 600px) {
  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
  }

  .about-media img {
    width: 100%;
    background-size: cover;
    height: 453px;
    display: block;
    border-radius: 37px;
    /* margin: 0 auto; */
  }

  .about-text h1 {
    font-size: 1.4rem;
  }

  .about-text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* VALUES SECTION */
#values {
  padding: 80px 0;
}

.section-title.white,
.section-sub.white {
  color: #111;
}

.values-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background-color: var(--seconed-change);
  border-left: 5px solid var(--cards-content-left);
  padding: 18px 22px;
  border-radius: 10px;
  transition: 0.3s ease;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.07);
}

.value-card:hover {
  transform: translateY(-6px);
  border-left-color: var(--cards-content);
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.11);
}

.value-card .icon i {
  font-size: 32px;
  color: var(--body);
}

.value-card h3 {
  color: var(--body);
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.value-card p {
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
  .value-card {
    flex-direction: column;
    text-align: center;
  }
  .logo-icon img {
    height: 30px;
    padding-left: 6px;
  }
  .about-media img {
    padding-right: 15px;
  }
}

/* PROJECTS */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  background: var(--seconed-change);
  color: var(--body);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-info {
  padding: 14px;
}
@media (max-width: 700px) {
  .project-gallery {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .project-card {
    width: 100% !important;
    max-width: 100%;
    margin: 0;
  }
}
/* PROJECTS Hover Animation */

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 14px 36px rgba(11, 18, 32, 0.15);
}

/* Image Scaling Effect */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

/* SERVICES SECTION */
#services {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

/* Grid System */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Card Style */
.service-card {
  background: var(--seconed-change);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-list {
  margin: 0 20px 20px;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--body);
}

.service-list li {
  margin-bottom: 6px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image Half Top */
.service-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 18px 20px 10px;
  color: var(--body);
}

.service-card p {
  margin: 0 20px 20px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* CONTACT */

.form-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.form-card {
  background: var(--seconed-change);
  color: var(--cards-content);
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.04);
}
.form-card .form-card-header {
  color: var(--body);
}
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e6eef8;
  margin-bottom: 12px;
  font-size: 14px;
  background-color: var(--body);
}
.form-card button {
  border: 0;
  cursor: pointer;
}
.contact-info {
  background: transparent;
}
.contact-info .specific {
  color: var(--cards);
  padding-left: 5px;
}
.contact-info .specific:hover {
  color: var(--new-color);
}
.map iframe {
  width: 100%;
  height: 100px;
  border: 0;
  border-radius: 10px;
}
.contact-info .map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 10px;
}
.socials a {
  display: inline-block;
  margin-right: 10px;
  text-decoration: none;
}

/* FOOTER */
.footer {
  padding: 22px 0;
  background: var(--seconed-change);
  color: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer a {
  color: inherit;
  text-decoration: none;
  margin-left: 8px;
}
.footer-right .socials a:hover {
  transform: scale(1.2);
  color: var(--body);
}
.footer-left .specific {
  color: #847d73;
}

@media (max-width: 600px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
  }

  .footer-left {
    width: 100%;
  }

  .footer-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-left p {
    white-space: nowrap;
    margin: 0;
  }

  .socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .socials a i {
    font-size: 20px;
  }
}

/* SCROLL TO TOP */

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  font-size: 22px;
  padding: 0;
  width: 38px;
  height: 40px;
  margin-right: 10px;
  border-radius: 25%;
  border: none;
  background: var(--new-color);
  color: var(--cards);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 118, 189, 0.12);
  z-index: 1000;
}
#scrollToTopBtn:hover {
  transform: scale(1.11);
  box-shadow: 0 14px 36px rgba(11, 18, 32, 0.15);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  #scrollToTopBtn {
    right: 18px;
    bottom: 18px;
    display: none;
  }
}
/* RESPONSIVE */
@media (max-width: 1000px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .form-wrap {
    grid-template-columns: 1fr;
  }
}

/* NAV MOBILE */

/* small helpers */
.sr-only {
  position: absolute;
  left: -9999px;
}

/* animation: subtle parallax / fade-in for hero text */
.hero-content {
  animation: heroIn 0.9s ease both;
  transform-origin: left;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* focus styles */

/* Mobile Menu Slide */

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    height: 560px;
    width: 260px;
    background: var(--seconed-change);
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding-top: 90px;
    text-align: left;
    gap: 26px;
    transition: 0.35s ease-in-out;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
  }

  .nav-links li {
    width: 100%;
    display: block;
    padding: 14px 22px;
    font-size: 18px;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 0;
  }

  .nav-links a {
    font-size: 18px;
    padding: 10px 20px;
  }
  .nav-links a:hover {
    background: var(--new-color);
    color: #fff;
    padding-left: 22px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--seconed-change);
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
    z-index: 9997;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fdefd8;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s ease-in-out;
  }

  /* Animation to X */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Show only on mobile */
  @media (max-width: 700px) {
    .hamburger {
      display: block;
    }
  }
}
@media (max-width: 700px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}
