@font-face {
  font-family: "MontserratCustom";
  src: url("assets/fonts/Montserrat/Montserrat-Regular.woff2") format("woff2"),
    url("assets/fonts/Montserrat/Montserrat-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MontserratCustom";
  src: url("assets/fonts/Montserrat/Montserrat-Bold.woff2") format("woff2"),
    url("assets/fonts/Montserrat/Montserrat-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NotoArabic";
  src: url("assets/fonts/Noto_Sans_Arabic/NotoSansArabic-Regular.woff2")
      format("woff2"),
    url("assets/fonts/Noto_Sans_Arabic/NotoSansArabic-Regular.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NotoArabic";
  src: url("assets/fonts/Noto_Sans_Arabic/NotoSansArabic-Bold.woff2")
      format("woff2"),
    url("assets/fonts/Noto_Sans_Arabic/NotoSansArabic-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Root variables - start */

:root {
  --accent-color: #d79921;
  --accent-color-dark: #b57614;

  --bg-color: #1d2021;
  --border-color: #3c3836;
  --muted-text: #bdae93;
  --text-color: #ebdbb2;
  --container-width: 1200px;

  --surface-color: #282828;
  --input-bg-color: #1d2021;
  --soft-bg-color: #32302f;
  --muted-strong: #d5c4a1;
  --success-soft: rgba(184, 187, 38, 0.22);

  --placeholder-color: #a89984;
  --success-color: #b8bb26;

  --theme-toggle-bg: #1d2021;
  --theme-toggle-border: #3c3836;
  --theme-toggle-color: #ebdbb2;
}

html[data-theme="light"] {
  --bg-color: #f3ddc3; /* milk-tea background */
  --border-color: #d3b894;
  --muted-text: #7c6f64;
  --text-color: #3c3836;

  --surface-color: #e9d2b8; /* cards / sections */
  --input-bg-color: #f3ddc3;
  --soft-bg-color: #e1c9aa;
  --muted-strong: #504945;
  --success-soft: rgba(184, 187, 38, 0.16);

  --accent-color: #d79921; /* warm golden */
  --accent-color-dark: #b57614;

  --theme-toggle-bg: #e9d2b8;
  --theme-toggle-border: #d3b894;
  --theme-toggle-color: #3c3836;

  --placeholder-color: #928374;
}

/* Root variables - end */

/* Reset & base - start */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "MontserratCustom", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.latin {
  font-family: "MontserratCustom", system-ui, sans-serif;
  direction: ltr;
}

body.arabic {
  font-family: "NotoArabic", system-ui, sans-serif;
  direction: rtl;
}

body.latin main {
  text-align: left;
}

body.arabic main {
  text-align: right;
}

/* Reset & base - end */

/* Page layout & sections - start */

.page-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding: 3rem 0;
}

section + section {
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

section p {
  color: var(--muted-text);
}

/* Page layout & sections - end */

/* Header & navigation - start */

header {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Logo */

.logo {
  text-decoration: none;
}

.logo-text {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-color);
}

.logo:hover .logo-text {
  color: var(--accent-color);
}

/* Navbar */

.navbar ul {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.navbar a {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
}

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

/* Language toggle */

.lang-toggle {
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
}

.lang-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Theme toggle */

.theme-toggle {
  background-color: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0.3rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-toggle-color);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle svg:last-child {
  display: none;
}

html[data-theme="light"] .theme-toggle svg:first-child {
  display: none;
}

html[data-theme="light"] .theme-toggle svg:last-child {
  display: inline-block;
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Header CTA button */

.contact-btn {
  background-color: var(--accent-color);
  border: none;
  border-radius: 999px;
  color: var(--text-color);
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: var(--accent-color-dark);
  color: var(--text-color);
}

/* Hamburger button - start */

.menu-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 22px;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  border: none;
  border-radius: 0;
  align-items: center;
  justify-content: center;
}

.menu-bar {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: var(--theme-toggle-color);
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease,
    background-color 0.25s ease, top 0.25s ease;
}

/* Closed (three lines) */
.menu-bar:nth-child(1) {
  top: 6px;
}

.menu-bar:nth-child(2) {
  top: 11px;
}

.menu-bar:nth-child(3) {
  top: 16px;
}

/* Open state (X icon) */
.menu-toggle.is-open .menu-bar:nth-child(1) {
  top: 11px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-bar:nth-child(3) {
  top: 11px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Hamburger button - end */

/* Header & navigation - end */

/* Hero - start */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, 3.5rem);
  font-weight: 700;
}

.hero p {
  color: var(--muted-text);
  font-size: 1rem;
}

.hero .contact-btn {
  margin-top: 1rem;
}

/* Hero - end */

/* Services - start */

.services {
  margin-top: 2rem;
}

.section-intro {
  max-width: 640px;
  margin-top: 0.75rem;
  color: var(--muted-text);
}

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

.service-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
}

.service-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Services - end */

/* Projects - start */

.projects {
  margin-top: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.arabic .projects-grid {
  direction: ltr;
}

body.arabic .project-card {
  direction: rtl;
  text-align: right;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.project-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-body p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Projects - end */

/* About - start */

.about {
  margin-top: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

/* About - end */

/* Contact - start */

.contact {
  margin-top: 2rem;
}

.contact-form {
  margin: 1.5rem auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.arabic .form-field label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  background-color: var(--input-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  color: var(--text-color);
  font: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--placeholder-color);
  font-size: 0.9rem;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .contact-btn {
  align-self: center;
  margin-top: 0.5rem;
}

/* Contact - end */

/* WhatsApp floating button - start */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.whatsapp-float svg {
  width: 56px;
  height: 56px;
  display: block;
}

body.arabic .whatsapp-float {
  right: auto;
  left: 1.5rem;
}

/* WhatsApp floating button - end */

/* Thank you page - start */

.thankyou-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thankyou-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.thankyou-card {
  width: 100%;
  max-width: 520px;
  background-color: var(--surface-color);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.thankyou-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background-color: var(--success-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}

.thankyou-icon span {
  font-size: 2rem;
  color: var(--success-color);
}

.thankyou-card h1 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.thankyou-text-main {
  font-size: 1rem;
  color: var(--muted-text);
  margin-bottom: 0.25rem;
}

.thankyou-text-sub {
  font-size: 0.95rem;
  color: var(--muted-strong);
  margin-bottom: 2rem;
}

.thankyou-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  background-color: var(--soft-bg-color);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.thankyou-back-btn:hover {
  background-color: var(--surface-color);
}

.thankyou-back-btn .arrow-left {
  font-size: 1.1rem;
}

/* Thank you page - end */

/* Footer - start */

footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--muted-text);
  font-size: 0.875rem;
  text-align: center;
}

/* Footer - end */

/* Responsive - start */

@media (max-width: 900px) {
  header {
    position: relative;
    padding: 1.5rem 0;
  }

  .page-container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 900;
    text-align: center;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  body.arabic .navbar ul {
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form .contact-btn {
    align-self: center;
  }

  body.nav-open .navbar {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .page-container {
    padding: 0 1.25rem;
  }

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

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

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

  .contact-row {
    flex-direction: column;
  }

  .contact-form .contact-btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }
}

/* Responsive - end */
