@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #061229;
  --bg-soft: #0a1936;
  --card: #0d2042;
  --card-hover: #112a52;
  --text: #f5f8ff;
  --muted: #9eacc5;
  --blue: #3d8bff;
  --blue-light: #72b0ff;
  --border: rgba(255,255,255,.09);
  --shadow: 0 25px 70px rgba(0,0,0,.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Cairo, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 35%, rgba(61,139,255,.20), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(35,93,180,.14), transparent 30%),
    var(--bg);
}

.navbar {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: auto;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 21px;
  color: white;
  background: linear-gradient(145deg, #4a9aff, #1761cf);
  box-shadow: 0 10px 35px rgba(61,139,255,.28);
}

.nav-links {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: .25s ease;
}

.nav-links a:hover {
  color: white;
}

.language-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: white;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  transition: .25s ease;
}

.language-btn:hover {
  background: rgba(61,139,255,.15);
  border-color: rgba(61,139,255,.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: auto;
  padding: 110px 30px 160px;
}

.hero-badge {
  display: inline-flex;
  border: 1px solid rgba(114,176,255,.25);
  background: rgba(61,139,255,.08);
  color: var(--blue-light);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(58px, 8vw, 105px);
  line-height: .98;
  letter-spacing: -5px;
  font-weight: 800;
}

.hero h1 span:last-child {
  color: var(--blue-light);
}

.hero-content p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  margin: 30px 0;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 15px 22px;
  border-radius: 12px;
  background: var(--blue);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 15px 40px rgba(61,139,255,.24);
  transition: .25s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: #4c96ff;
}

.hero-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .12;
}

.glow-one {
  background: #3d8bff;
  right: -100px;
  top: 100px;
}

.glow-two {
  background: #1761cf;
  left: -180px;
  bottom: -200px;
}

main {
  max-width: 1180px;
  margin: auto;
  padding: 0 30px;
}

.section {
  padding: 105px 0 20px;
}

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

.section-header > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-number {
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
}

.section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.section-header h2 {
  font-size: 44px;
  letter-spacing: -2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  gap: 25px;
  padding: 25px;
  background: linear-gradient(145deg, var(--card), rgba(9,25,52,.8));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: .3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: rgba(61,139,255,.25);
}

.project-icon {
  width: 130px;
  min-width: 130px;
  height: 130px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a1730;
  border: 1px solid rgba(255,255,255,.08);
}

.project-icon span {
  font-size: 34px;
  font-weight: 800;
  color: white;
}

.placeholder-watermark {
  background: linear-gradient(145deg, #102e5c, #07162e);
}

.placeholder-puzzle {
  background: linear-gradient(145deg, #173a68, #081a38);
}

.project-content {
  padding: 3px 0;
}

.project-type {
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.project-content h3 {
  font-size: 25px;
  margin: 7px 0 8px;
}

.project-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.project-link {
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.project-link span {
  color: var(--blue-light);
  transition: .2s ease;
}

.project-link:hover span {
  transform: translateX(4px);
}

.about-section {
  margin: 120px 0 90px;
  padding: 75px;
  display: flex;
  align-items: center;
  gap: 65px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 20%, rgba(61,139,255,.13), transparent 35%),
    var(--bg-soft);
}

.about-mark {
  min-width: 150px;
  height: 150px;
  border-radius: 38px;
  display: grid;
  place-items: center;
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(145deg, #4a9aff, #145bc3);
  box-shadow: 0 25px 60px rgba(61,139,255,.22);
}

.about-content h2 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 15px 0 22px;
}

.about-content p {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 50px max(30px, calc((100% - 1180px) / 2));
  background: #040d1e;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.footer-top p {
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #71819e;
  font-size: 12px;
}

.footer-bottom a {
  color: var(--blue-light);
}

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

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

[dir="rtl"] .project-link:hover span {
  transform: translateX(-4px);
}

[dir="rtl"] .hero-button span:last-child {
  transform: rotate(180deg);
}

[dir="rtl"] .about-section {
  text-align: right;
}

@media (max-width: 850px) {

  .navbar {
    padding: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 100px 20px 120px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 80px);
    letter-spacing: -3px;
  }

  main {
    padding: 0 20px;
  }

  .section {
    padding-top: 75px;
  }

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

  .about-section {
    padding: 40px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }

  .about-mark {
    min-width: 100px;
    width: 100px;
    height: 100px;
    border-radius: 25px;
    font-size: 48px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {

  .brand span {
    font-size: 19px;
  }

  .language-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .project-card {
    flex-direction: column;
  }

  .project-icon {
    width: 100%;
    height: 180px;
  }

  .section-header h2 {
    font-size: 36px;
  }
}

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


.brand-mark {
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-mark {
  overflow: hidden;
}

.about-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero {
  background:
    linear-gradient(90deg, rgba(6,18,41,.96) 0%, rgba(6,18,41,.78) 45%, rgba(6,18,41,.45) 100%),
    url("assets/fatu_h.jpg") center/cover no-repeat;
}

/* ===== Hassadi Image Display Fix ===== */

.hero {
  background:
    linear-gradient(
      90deg,
      rgba(6,18,41,.94) 0%,
      rgba(6,18,41,.72) 45%,
      rgba(6,18,41,.35) 100%
    ),
    url("assets/fatu_h.jpg") center center / 100% auto no-repeat;
  background-color: var(--bg);
}

.project-icon {
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: #0a1730;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.brand-mark img,
.about-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 850px) {
  .hero {
    background-size: 100% auto;
    background-position: center top;
  }
}


/* ===== Final Hero & App Icon Layout ===== */

.hero-badge {
  margin-top: 28px;
}

.project-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
}

@media (max-width: 600px) {
  .hero-badge {
    margin-top: 20px;
  }

  .project-icon {
    border-radius: 18px;
  }
}


/* ===== Hassadi FINAL IMAGE + HERO FIX ===== */

.hero .hero-badge {
  position: relative !important;
  top: 18px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.project-icon {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.project-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

