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

body {
  background: #000;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =====================
   Header
===================== */
.header {
  position: sticky;
  top: 0;
  background: #000;
  z-index: 1000;
  border-bottom: 1px solid #222;
  padding-top: calc(24px + env(safe-area-inset-top));

}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;

}

.logo span {
  color: #FFD400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
}

.nav .btn {
  background: #FFD400;
  color: #000;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
}

/* =====================
   Hero
===================== */
.hero {
  padding: 140px 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 35px;
  opacity: 0.8;
  font-size: 18px;
}

.hero .btn {
  background: #FFD400;
  color: #000;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 4px;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-home {
  background-image: url("../assets/images/hero-home.jpg");
}

.hero-about {
  background-image: url("../assets/images/hero-about.jpg");
}

.hero-case {
  background-image: url("../assets/images/hero-case.jpg");
}

.hero-blog {
  background-image: url("../assets/images/hero-blog.jpg");
}

.hero-contact {
  background-image: url("../assets/images/hero-contact.jpg");
}

.hero-services {
  background-image: url("../assets/images/hero-services.jpg");
}

.hero-branding {
  background-image: url("../assets/images/hero-branding.jpg");
}

.hero-marketing {
  background-image: url("../assets/images/hero-marketing.jpg");
}

.hero-social {
  background-image: url("../assets/images/hero-social.jpg");
}

.hero-content {
  background-image: url("../assets/images/hero-content.jpg");
}

.hero-web {
  background-image: url("../assets/images/hero-web.jpg");
}

.hero-strategy {
  background-image: url("../assets/images/hero-strategy.jpg");
}

/* =====================
   Sections
===================== */
.section {
  padding: 100px 0;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 50px;
  text-align: center;
}

.section.dark {
  background: #111;
}

/* =====================
   Grid & Cards
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: #0e0e0e;
  border: 1px solid #222;
  padding: 40px 30px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #FFD400;
  
text-decoration: none;
  color: #fff;
  display: block;

}


.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  text-decoration: none;
}


/* =====================
   Learn More Button
===================== */
.learn-more-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid #FFD400;
  color: #FFD400;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background: #FFD400;
  color: #000;
}

.learn-more-btn::after {
  content: " →";
  transition: transform 0.3s ease;
}

.learn-more-btn:hover::after {
  transform: translateX(4px);
}




/* =====================
   Services Icons
===================== */
.service-card i {
  font-size: 30px;
  color: #FFD400;
  margin-bottom: 20px;
  display: inline-block;
}

/* =====================
   Why Us List
===================== */
.list {
  max-width: 700px;
  margin: auto;
  list-style: none;
}

.list li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.list li::before {
  content: "•";
  color: #FFD400;
  position: absolute;
  left: 0;
}

/* =====================
   CTA
===================== */
.cta {
  background: #FFD400;
  color: #000;
  text-align: center;
  padding: 90px 0;
}

.cta h2 {
  font-size: 34px;
}

.cta p {
  margin: 15px 0 30px;
  font-size: 18px;
}

.dark-btn {
  background: #000;
  color: #FFD400;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
}

/* =====================
   Footer
===================== */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #222;
  font-size: 14px;
  opacity: 0.7;
}

/* =====================
   Contact Form
===================== */

.contact-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #0e0e0e;
  border: 1px solid #222;
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 4px;
  transition: border 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFD400;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-btn {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   Scroll Animations
===================== */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.show {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.scale-in.show {
  opacity: 1;
  transform: scale(1);
}

.card:hover {
  transform: translateY(-12px) scale(1.01);
}

.platforms-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.platforms-grid img {
  height: 42px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.platforms-grid img:hover {
  opacity: 1;
  transform: translateY(-6px);
}


.service-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-image img {
  width: 100%;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .service-explain {
    grid-template-columns: 1fr;
  }
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.clients-grid img {
  width: 100%;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clients-grid img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== Client Popup ===== */

.client-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 999;

  /* المهم */
  overflow-y: auto;
  padding: 80px 0;
  
    opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

}



.client-popup.show {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  max-width: 1100px;
  width: 90%;
  background: transparent;
  margin-top: 40px;

}

.client-popup.show .popup-content {
  transform: translateY(0) scale(1);
}

.close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
}

.close:hover {
  opacity: 1;
}

.popup-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.popup-gallery img {
  width: 100%;
  border-radius: 8px;
}

.popup-gallery img:hover {
  transform: scale(1.03);
}

/* ===== Header Base ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: bold;
}
.logo span {
  color: #FFD400;
}

/* Nav Desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

/* Contact Button */
.contact-btn {
  background: #FFD400;
  color: #000 !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
}

/* Burger */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}


@media (max-width: 768px) {

  /* Hide desktop nav */
  .nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #000;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 20px;
  }

  .menu-toggle {
    display: block;
  }
}


/* =====================
   Why Digit Hub
===================== */

.why-digithub {
  background: #000;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.why-card {
  background: #0e0e0e;
  border: 1px solid #222;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: #FFD400;
}

.why-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.why-card h4 {
  color: #fff;
  margin-bottom: 12px;
}

.why-card p {
  color: #aaa;
  font-size: 15px;
  line-height: 1.6;
}

html, body {
  height: auto !important;
  min-height: 0 !important;
}

body {
  margin-bottom: 0 !important;
}

footer {
  margin-top: 0 !important;
}


