/* ================= CINEMATIC SCROLLBAR ================= */

/* Chrome / Edge / Safari */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22a006, #0f5a02);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(34, 160, 6, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2ed60a, #22a006);
}

/* Firefox */

* {
  scrollbar-width: thin;
  scrollbar-color: #22a006 #050505;
}
:root {
  --black: #0a0a0a;
  --white: #fff;
  --green: #22a006;
  --muted: #9a9a9a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100%;
  cursor:
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMicgaGVpZ2h0PSczMicgdmlld0JveD0nMCAwIDMyIDMyJz48cGF0aCBmaWxsPScjMjJBMDA2JyBkPSdNNCAyIEw0IDI2IEwxMCAyMCBMMTQgMzAgTDE4IDI4IEwxNCAxOCBMMjIgMTggWicvPjwvc3ZnPg==")
      4 4,
    auto;
}

/* ================= HEADER ================= */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  padding: 0 10%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgb(2, 46, 11), transparent);
}

.logo img {
  height: 80px;
}

/* NAV */

.main-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
}

/* ===== MENU UNDERLINE ===== */

.main-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 14px;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Active page */

.main-nav a.active::after {
  width: 100%;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.3));
}
/* ================= DROPDOWN ================= */

.dropdown {
  position: relative;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.dropdown-content {
  position: absolute;
  top: 140%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  min-width: 260px;
  padding: 12px 0;
  display: none;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.dropdown-content a {
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* ACTIVE LINK */

.main-nav a.active {
  color: #fff;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.3));
}

.dropdown-content a.active {
  background: rgba(255, 255, 255, 0.12);
}

.dropbtn.active .arrow {
  transform: rotate(180deg);
}

/* ================= SOCIAL ICONS ================= */

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  color: var(--muted);
  font-size: 18px;
  transition: 0.3s;
}

.socials a:hover {
  color: var(--green);
  transform: translateY(-2px);
}

/* ================= MOBILE QUICK ================= */

.mobile-quick {
  display: none;
  gap: 18px;
  justify-self: center;
}

.mobile-quick a {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

/* الخط تحت الرابط */

.mobile-quick a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.mobile-quick a:hover {
  color: #fff;
}

.mobile-quick a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .main-header {
    grid-template-columns: auto 1fr auto auto;
    column-gap: 10px;
    height: 80px;
    padding: 0 6%;
  }

  .logo img {
    height: 70px;
  }

  .mobile-quick {
    display: flex;
  }

  .mobile-quick {
    display: flex;
  }
}

/* ================= HERO ================= */

.service-hero {
  height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 10% 120px;
  background-image: url("imgs/ai.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  opacity: 0;
  transform: translateY(80px);
}

.service-kicker {
  display: block;
  color: var(--green);
  margin-bottom: 18px;
  letter-spacing: 3px;
  font-size: 0.8rem;
  opacity: 0;
}

.service-hero h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 500;
  opacity: 0;
}

.service-hero p {
  color: var(--muted);
  margin-top: 26px;
  max-width: 720px;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0;
}

/* ================= SECTIONS ================= */

section {
  padding: 120px 10%;
  opacity: 0;
  transform: translateY(50px);
}

.service-hero {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  section:not(.service-hero) {
    opacity: 1 !important;
    transform: none !important;
  }

  /* .video-card has its own opacity:0 + GSAP ScrollTrigger reveal,
     separate from the section-level one above. On mobile that trigger
     wasn't reliably firing, leaving the AI Visual Work videos invisible
     even after the section itself was forced visible - same safety net,
     applied to the cards themselves. */
  .video-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 28px;
}

p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 900px;
}

/* ================= APPROACH ================= */

.service-approach ul {
  list-style: none;
}

.service-approach li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 18px;
  color: var(--muted);
}

.service-approach li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* ================= EXAMPLES ================= */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.example-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050505;
  perspective: 1200px;
}

.example-card img,
.example-card iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: 0.3s;
  will-change: transform;
  border: 0;
  display: block;
}

.example-card span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 1px;
}

.divider {
  width: 120px;
  height: 2px;
  background: var(--green);
  margin: 26px 0 46px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}

.video-card {
  opacity: 0;
  transform: translateY(80px) scale(0.96);
  filter: blur(14px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: 0.8s ease;
}

.video-thumb:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 65%);
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(34, 160, 6, 0.45);
}

.play::before {
  content: "";
  border-left: 18px solid var(--green);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-frame {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 5;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  margin-top: 18px;
}

.video-info h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.video-info span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================= VIEW MORE (matches index.html's work-more / view-more) ================= */

.work-more {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.view-more {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #22a006;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.view-more:hover {
  background: #22a006;
  color: black;
}

/* hamburger icon + mobile drawer + dropdown styles live in mobile-nav.css */

/* ================= MOBILE SOCIALS ================= */

.mobile-socials {
  display: none;
  margin-top: 40px;
  gap: 20px;
  font-size: 22px;
}

.mobile-socials a {
  color: #9a9a9a;
  transition: 0.3s;
}

.mobile-socials a:hover {
  color: #22a006;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .mobile-socials {
    display: flex;
  }

  .socials {
    display: none;
  }
}

/* ================= LETS CREATE CTA ================= */
.lets-create {
  padding: 140px 10%;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(34, 160, 6, 0.08),
    transparent 60%
  );
}

.lets-create h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 42px;
  color: #fff;
}

.lets-create-btn {
  background: transparent;
  border: 1px solid #22a006;
  color: #22a006;
  padding: 18px 54px;
  font-size: 0.85rem;
  letter-spacing: 3px;
  cursor: pointer;
  transition: 0.4s ease;
}

.lets-create-btn:hover {
  background: #22a006;
  color: #000;
  box-shadow: 0 0 28px rgba(34, 160, 6, 0.45);
  transform: translateY(-2px);
}
