
:root {
  --bg: #08090b;
  --surface: #111318;
  --text: #f5f5f2;
  --muted: #92969e;
  --accent: #d7ff64;
  --border: rgba(255,255,255,.09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.ambient {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .09;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  background: var(--accent);
  top: -250px;
  left: 25%;
}

.ambient-two {
  background: #647bff;
  bottom: -250px;
  right: -150px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

/* HEADER */

.header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.header-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(255,255,255,.03);
}

.language-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .3s;
}

.language-switch button.active {
  background: var(--accent);
  color: #111;
}

/* HERO */

.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 60px 0 100px;
}

.logo {
  margin-bottom: 48px;
}

.logo img {
  width: 115px;
  height: 85px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 27px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -4px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-content > p {
  max-width: 590px;
  margin: 25px auto 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.discover {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  padding: 15px 22px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: .3s;
}

.discover:hover {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.arrow {
  font-size: 17px;
}

.hero-bottom {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: #656970;
  font-size: 9px;
  letter-spacing: 1.5px;
}

/* PROJECTS */

.projects {
  padding: 60px 0 100px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-label {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 800;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -2px;
  margin-top: 10px;
}

.section-header h2 span {
  color: var(--accent);
}

.project-count {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: .4s ease;
}

.project-card:hover {
  border-color: rgba(215,255,100,.4);
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #17191e;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 50%);
  pointer-events: none;
}

.image-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 9px;
  letter-spacing: 1px;
  display: flex;
  gap: 9px;
  align-items: center;
}

.image-number {
  position: absolute;
  bottom: 20px;
  right: 25px;
  font-size: 45px;
  font-weight: 800;
  color: rgba(255,255,255,.75);
}

.project-details {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.project-category {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
}

.project-information h3 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 10px 0;
}

.project-information p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 530px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tags span {
  border: 1px solid var(--border);
  padding: 7px 11px;
  border-radius: 30px;
  color: #b2b5bc;
  font-size: 9px;
}

.visit-button {
  background: var(--accent);
  color: #111;
  padding: 16px 21px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  transition: .3s;
}

.visit-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(215,255,100,.18);
}

.visit-button svg {
  width: 16px;
  height: 16px;
}

/* MORE PROJECTS */

.more-projects {
  margin-top: 20px;
  padding: 25px;
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 16px;
}

.plus-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #1a1d22;
  color: var(--accent);
  font-size: 23px;
  border-radius: 12px;
}

.more-projects h3 {
  font-size: 13px;
  margin-bottom: 5px;
}

.more-projects p {
  font-size: 11px;
  color: var(--muted);
}

/* FOOTER */

footer {
  border-top: 1px solid var(--border);
  padding: 27px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
}

footer strong {
  color: white;
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ARABIC */

html[dir="rtl"] body {
  font-family: "Cairo", sans-serif;
}

html[dir="rtl"] .hero h1 {
  letter-spacing: 0;
  line-height: 1.4;
}

html[dir="rtl"] .image-label {
  left: auto;
  right: 20px;
}

html[dir="rtl"] .image-number {
  right: auto;
  left: 25px;
}

html[dir="rtl"] .visit-button svg {
  transform: scaleX(-1);
}

/* RESPONSIVE */

@media (max-width: 700px) {
  .container,
  .header-inner {
    width: calc(100% - 32px);
  }

  .header-label {
    display: none;
  }

  .header-inner {
    justify-content: center;
    min-height: 65px;
  }

  .hero {
    min-height: 590px;
    padding: 45px 0 90px;
  }

  .logo {
    margin-bottom: 35px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-content > p {
    font-size: 12px;
    padding: 0 5px;
  }

  .hero-bottom {
    font-size: 7px;
    letter-spacing: .5px;
  }

  .projects {
    padding-top: 40px;
  }

  .section-header {
    align-items: start;
    gap: 10px;
  }

  .project-image {
    aspect-ratio: 4 / 3;
  }

  .project-details {
    flex-direction: column;
    align-items: stretch;
    padding: 23px;
  }

  .project-information h3 {
    font-size: 25px;
  }

  .visit-button {
    justify-content: center;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
