/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== FONT ====== */
@font-face {
  font-family: 'Lifta Swash Fixed';
  src: url('fonts/Liftaswashfixed-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #d97706;
  --primary-dark: #b45309;
  --primary-light: #f59e0b;
  --accent-color: #f4a261;
  --text-dark: #130c07;
  --text-medium: #363636;
  --text-light: #666;
  --bg-color: #f5f0eb;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.scrollbar {
  padding-bottom: 20px;
}
/* scrollbar width */
.scrollbar::-webkit-scrollbar {
  width: 1px;
  height: 5px;
}

/* track */
.scrollbar::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 10px;
}

/* thumb */
.scrollbar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

/* hover effect */
.scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

html,
body {
  font-family:
    'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #000;
}

a:link,
a:visited {
  text-decoration: none;
}

.container {
  max-width: 97%;
  margin: 0 auto;
  padding: 0 5px;
}

/* ================= MOBILE HEADER ================= */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  margin: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001; /* Keep z-index for the overlay */
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1f1f1f;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-header .logo {
  width: 44px;
  height: 44px;
}

.mobile-header .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 999;
  padding: 6rem 2rem 2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.75rem;
  border-radius: 8px;
  display: block;
  transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary-color);
  background: rgba(217, 119, 6, 0.1);
}

.mobile-cta-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 2rem;
  font-size: 1.1rem;
  transition: var(--transition);
}

.mobile-cta-btn:hover {
  background: var(--primary-dark);
}

/* ================= CONTACT SECTION ================= */
.contact-area {
  padding: 4rem 0;
  background: var(--text-dark);
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-col h3 {
  margin-bottom: 1rem;
  font-size: 16px;
  font-weight: 600;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #6ee7b7, #f59e0b, #ec4899, #6366f1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.icon-box img {
  width: 20px;
  height: 20px;
}

.contact-row span {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  direction: ltr;
}

.footer-logo {
  height: 40px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #6ee7b7, #f59e0b, #ec4899, #6366f1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.social-box:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.social-box:hover img {
  filter: brightness(0) invert(1);
}

.social-box img {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

/* ================= DESKTOP NAVBAR (Glassmorphism) ================= */
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .container {
    max-width: 1500px;
    padding: 0px 15px;
  }

  .mobile-header {
    display: none;
  }

  .desktop-only {
    display: flex;
  }

  .navbar {
    width: calc(100% - 48px);
    max-width: 1214px;
    height: 86px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .right-side {
    display: flex;
    align-items: center;
    gap: 48px;
  }

  .logo img {
    height: 50px;
    width: auto;
  }

  .navbar nav {
    display: flex;
    gap: 32px;
  }

  .navbar nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
  }

  .navbar nav a:hover {
    color: var(--primary-color);
  }

  .navbar nav a.active {
    color: var(--primary-color);
  }

  .navbar nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
  }

  .navbar .cta-btn {
    padding: 16px 32px;
    border-radius: 14px;
    border: 3px solid transparent;
    cursor: pointer;
    background:
      linear-gradient(#d97706, #d97706) padding-box,
      conic-gradient(#d77dee, #facb7c, #89f9e8, #9299fc, #d77dee) border-box;
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
  }

  .navbar .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
  }

  /* Desktop Contact */
  .contact-grid {
    flex-direction: row;
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-col h3 {
    text-align: right;
  }

  .contact-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
