/* ================= FONTS ================= */

/* DINOT */
@font-face{
  font-family:'DINOT';
  src:url('/assets/fonts/dinot-regular.woff') format('woff');
  font-weight:400;
}

@font-face{
  font-family:'DINOT';
  src:url('/assets/fonts/dinot-medium.woff') format('woff');
  font-weight:500;
}

/* AVENIR */
@font-face{
  font-family:'AVENIR';
  src:url('/assets/fonts/avenirltstd-roman.woff') format('woff');
  font-weight:400;
}

@font-face{
  font-family:'AVENIR';
  src:url('/assets/fonts/avenirltstd-black.woff') format('woff');
  font-weight:700;
}

/* HELVETICA ARABIC */
@font-face{
  font-family:'HELVETICA-AR';
  src:url('/assets/fonts/helveticaneue-arabic-55-roman.woff') format('woff');
  font-weight:400;
}

@font-face{
  font-family:'HELVETICA-AR';
  src:url('/assets/fonts/helveticaneue-arabic-75-bold.woff') format('woff');
  font-weight:700;
}

/* ================= FONTS ================= */

/* DINOT */
@font-face{
  font-family:'DINOT';
  src:url('/assets/fonts/dinot-regular.woff') format('woff');
  font-weight:400;
}

@font-face{
  font-family:'DINOT';
  src:url('/assets/fonts/dinot-medium.woff') format('woff');
  font-weight:500;
}

/* AVENIR */
@font-face{
  font-family:'AVENIR';
  src:url('/assets/fonts/avenirltstd-roman.woff') format('woff');
  font-weight:400;
}

@font-face{
  font-family:'AVENIR';
  src:url('/assets/fonts/avenirltstd-black.woff') format('woff');
  font-weight:700;
}

/* HELVETICA ARABIC */
@font-face{
  font-family:'HELVETICA-AR';
  src:url('/assets/fonts/helveticaneue-arabic-55-roman.woff') format('woff');
  font-weight:400;
}

@font-face{
  font-family:'HELVETICA-AR';
  src:url('/assets/fonts/helveticaneue-arabic-75-bold.woff') format('woff');
  font-weight:700;
}

/* ================= BASE ================= */
:root{
  --bg:#0a0a0a;
  --text:#f5f5f5;
  --muted:rgba(255,255,255,.65);
  --line:rgba(255,255,255,.08);
  --container:1400px;
  --radius:22px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:'DINOT', system-ui, sans-serif;
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea,
select{
  font:inherit;
}

main .container{
  width:100%;
  padding-left:40px;
  padding-right:40px;
  margin-inline:auto;
}

.container{
  width:min(var(--container), calc(100% - 48px));
  margin-inline:auto;
}

/* ================= LOADING ================= */
#loading{
  position:fixed;
  inset:0;
  background:#000;
  z-index:9999;
}

/* ================= HEADER ================= */
.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:64px;
  background:rgba(0,0,0,.98);
  backdrop-filter:blur(8px);
  border-bottom:0px solid rgba(255,255,255,.04);
  z-index:1010;
}

.header__inner{
  position:relative;
  display:flex;
  align-items:center;
  height:64px;
  padding:0 30px;
  z-index:9999;
}


/* Logo */
.logo{
  display:flex;
  align-items:center;
  z-index:1005;
}

.logo img{
  height:26px;
  width:auto;
  display:block;
  transform:scale(1);
  transition:transform .35s cubic-bezier(.4,0,.2,1);
}

.header.menu-open .logo img{
  transform:scale(1.12);
}

/* Desktop nav */
.nav--desktop{
  display:flex;
  gap:30px;
  margin:0 auto;
}

.nav--desktop a{
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:500;
  transition:
    color .35s ease,
    transform .40s ease,
    letter-spacing .45s ease;
}

.nav--desktop a:hover{
  color:var(--text);
  transform:scale(1.08);
  letter-spacing:2.6px;
}

/* Language */
.lang{
  position:relative;
  display:flex;
  align-items:center;
  opacity:1;
  transition:opacity .25s ease;
}

.header.menu-open .lang{
  opacity:0;
  pointer-events:none;
}

.lang__check{
  display:none;
}

.lang__btn{
  width:40px;
  height:40px;
  border-radius:999px;
  border:5px solid var(--line);
  background:#0a0a0a;
  display:grid;
  place-items:center;
  font-size:10px;
  color:var(--muted);
  cursor:pointer;
  font-family:'DINOT', system-ui, sans-serif;
  font-weight:500;
}

.lang__menu{
  position:absolute;
  top:44px;
  right:0;
  display:grid;
  gap:6px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px) scale(.95);
  transition:
    opacity .25s ease,
    transform .28s ease,
    visibility .28s ease;
  z-index:1001;
}

.lang__item{
  width:40px;
  height:40px;
  border-radius:999px;
  border:5px solid var(--line);
  display:grid;
  place-items:center;
  font-size:10px;
  color:var(--muted);
  background:#0a0a0a;
  font-family:'DINOT', system-ui, sans-serif;
  font-weight:500;
  opacity:0;
  transform:translateY(-6px);
  transition:
    opacity .25s ease,
    transform .28s ease,
    color .2s ease,
    border-color .2s ease;
}

.lang__item:hover{
  color:var(--text);
  border-color:rgba(255,255,255,.15);
}

.lang__check:checked ~ .lang__menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.lang__check:checked ~ .lang__menu .lang__item{
  opacity:1;
  transform:translateY(0);
}

.lang__check:checked ~ .lang__menu .lang__item:nth-child(1){
  transition-delay:.05s;
}

.lang__check:checked ~ .lang__menu .lang__item:nth-child(2){
  transition-delay:.10s;
}

/* Burger */
.burger{
  all:unset;
  width:48px;
  height:48px;
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  cursor:pointer;
}

/* Bars */
.burger .bar{
  width:20px;
  height:2px;
  background:#f5f5f5;
  border-radius:2px;
  transform-origin:center;
  transition:transform .25s ease;
  z-index:1005;
}

/* Default */
.burger .bar--top{
  transform:translateY(-4px);
}

.burger .bar--bottom{
  transform:translateY(4px);
}

/* Step 1 */
.burger.is-open .bar--top{
  transform:translateY(1px);
}

.burger.is-open .bar--bottom{
  transform:translateY(-1px);
}

/* Step 2 */
.burger.is-rotate .bar--top{
  transform:translateY(1px) rotate(45deg);
  transition:transform .35s ease;
}

.burger.is-rotate .bar--bottom{
  transform:translateY(-1px) rotate(-45deg);
  transition:transform .35s ease;
}

/* Mobile nav */
.nav--mobile{
  position:fixed;
  top:64px;
  left:0;
  width:100%;
  height:calc(100vh - 64px);

  background:rgba(0,0,0,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.05);

  transform:translateY(-100%);
  opacity:0;
  pointer-events:none;

  transition:
    transform .6s cubic-bezier(.2,.8,.2,1),
    opacity .3s ease;

  z-index:900;
  overflow-y:auto;
}
.nav--mobile.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
    transform:translateY(0); /* 🔥 كيهبط */
    z-index:900;

}

.nav--mobile__inner{
  padding:18px 24px 26px;
  display:flex;
  flex-direction:column;
  gap:18px;
  z-index:900;
}


.nav--mobile a{
  margin-top:25px;
  font-size:15px;
  letter-spacing:2px;
  line-height:1.6;
  text-transform:uppercase;
  color:rgb(235, 235, 235);

  opacity:0;
  transform:translateY(-18px);

  transition:
    opacity .55s ease,
    transform .45s ease,
    color .25s ease;
    z-index:900;
}
.nav--mobile.is-open a{
  opacity:1;
  transform:translateY(0);
  z-index:900;
}

.nav--mobile a:hover{
  color:var(--text);
}

.nav--mobile.is-open a:nth-child(1){ transition-delay:.10s; }
.nav--mobile.is-open a:nth-child(2){ transition-delay:.20s; }
.nav--mobile.is-open a:nth-child(3){ transition-delay:.30s; }
.nav--mobile.is-open a:nth-child(4){ transition-delay:.40s; }
.nav--mobile.is-open a:nth-child(5){ transition-delay:.50s; }
.nav--mobile.is-open a:nth-child(6){ transition-delay:.60s; }

/* ================= HERO ================= */

.hero{
  margin-top:110px;
  padding: 0px 40px;
}

.hero__media{
    position: relative;
  z-index: 2;
  width:100%;
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
}
.hero__bottom-bar{
    position: relative;
  z-index: 0;
  width:calc(100% - 60px);
  height:25px;
  margin:0 auto;
  background:#1E1E1E;
  border-bottom-left-radius:8px;
  border-bottom-right-radius:8px;
}
.hero__arrow{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:10px;
  margin-top:30px;
}

.hero__arrow img{
  width:20px;
  height:auto;
  display:block;
}

.hero__video{
  width:100%;
  height:620px;
  object-fit:cover;
  display:block;
}

.hero__overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:0 90px;
}

.hero__overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.6));
  z-index:0;
}

.hero__overlay > *{
  position:relative;
  z-index:1;
}

.hero__title{
  font-family:'AVENIR', sans-serif;
  font-weight:700;
  font-size:clamp(34px, 5vw, 80px);
  line-height:0.9;
  letter-spacing:-0.02em;

  display:flex;
  flex-direction:column;
  gap:0;
  max-width:900px;
}

.hero__title span{
  display:block;
}

.hero__sub{
  font-family:'DINOT', sans-serif;
  font-weight:400;

  font-size:clamp(12px, 1.2vw, 18px);
  letter-spacing:0.18em;

  text-transform:uppercase;
  color:rgba(255,255,255,.75);

  margin-top:16px;

  display:flex;
  flex-direction:column;
  gap:2px;
}

/* ================= INTRO ================= */
.intro{
  max-width:580px;
  padding:50px 40px;
  margin: auto;
  text-align:center;
}

.intro p{
  max-width:800px;
  margin:auto;
  font-size:18px;
  line-height:1.8;
  color:rgba(255,255,255,.6);
  font-family:'DINOT', system-ui, sans-serif;
  font-weight:400;
  line-height:2;
}
.home-description {
  max-width:1500px;  /* 🔥 هذا هو */
  margin:auto;      /* وسط */
  padding: 40px 40px;
}
/* ================= SERVICES ================= */
.services{
  padding:0 20px;
}

.services__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:35px;
}

.card{
  aspect-ratio:5 / 8;
  border-radius:var(--radius);
  position:relative;
  overflow:hidden;
  background: transparent;

  transform:scale(1) translateZ(0);
  -webkit-transform:scale(1) translateZ(0);
  transition:transform .4s ease;
}
.card__media{
  position:absolute;
  inset:0;

  width:100%;
  height:100%;
  object-fit:cover;

  transform:scale(1);
  transition:transform .5s ease;
}

/* hover */
.card:hover .card__media{
  transform:scale(1.2); /* 🔥 zoom حقيقي */
}
/* الصورة */
.card::before{
  content:"";
  position:absolute;
  inset:0;

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  transform:scale(1);
  transition:transform .5s ease;
  z-index:0;

  -webkit-transform:scale(1);
  will-change: transform;
}
.card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
  opacity:1;
  transition:opacity .4s ease;
  z-index:1;
}

.card:hover{
  transform:scale(1.02); /* card كامل */
}

.card:hover::before{
  transform:scale(1.2); /* 🔥 zoom image */
}

.card:hover::after{
  opacity:0;
}

.card__label{
  position:absolute;
  left:clamp(10px, 1.2vw, 20px);
  bottom:clamp(10px, 1.2vw, 20px);

  font-family:'AVENIR', sans-serif;
  font-weight:700;
  font-size:clamp(30px, 3vw, 60px);
  line-height:clamp(18px, 3vw, 60px);
  letter-spacing:-0.02em;
  color:#f5f5f5;

  max-width:80%;
  height:clamp(40px, 3.5vw, 60px);

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

  z-index:2;

  transform:translateY(0);
  opacity:1;
  filter:blur(0px);

  transition:
    transform .5s cubic-bezier(.4,0,.2,1),
    opacity .4s ease,
    filter .3s ease;
}
.card:hover .card__label{
  transform:translateY(140%); /* 🔥 كيهبط ويخرج */
  opacity:0; /* 🔥 يختافي */
  filter:blur(8px);
}
.card--branding::before{
  background-image:url('/assets/img/branding.jpg');
}

.card--multimedia::before{
  background-image:url('/assets/img/multimedia.jpg');
}

.card--interior::before{
  background-image:url('/assets/img/interior.jpg');
}

.card--advertising::before{
  background-image:url('/assets/img/advertising.jpg');
}
/* ================= FOOTER ================= */
.footer{
  width:100%;
  margin-top:50px;
}

/* tiles فوق */
.footer__tile{
  position:relative;
  width:100%;
  height:150px;
  overflow:hidden;
}

/* layer فيه repetition */
.footer__tile::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("/assets/img/footer-tile.png");
  background-repeat:repeat;
  background-size:auto 120px;
  height:180px;
}

/* black rectangle full width */
.footer__inner{
  width:100%;
  background:#000;
  border-top:0px solid rgba(255,255,255,.04);
  padding:60px 0 50px;
  position:relative;
}

.footer__inner::before{
  content:"";
  position:absolute;
  left:calc((100% - var(--container)) / 2);
  bottom:0;
  width:2px;
  height:320px;
  background:#fff;
}

.footer__content{
  display:flex;
  justify-content:space-between;
  gap:60px;
  align-items:flex-end;
}

/* Left links */
.footer__links{
  position:relative;
  padding-left:30px;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.footer__links a{
  font-size:18px;
  letter-spacing:2px;
  text-transform:uppercase;
  font-family:'DINOT', system-ui, sans-serif;
  color:var(--text);
  font-weight:500;
  transition:
    color .35s ease,
    transform .40s ease,
    letter-spacing .45s ease,
    opacity .25s ease;
}

.footer__links a:hover{
  opacity:.6;
  letter-spacing:4px;
}

/* Right side */
.footer__right{
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  text-align:right;
}

/* Social icons */
.social{
  display:flex;
  justify-content:flex-end;
  gap:16px;
  margin-bottom:22px;
}

.social a{
  display:inline-flex;
}

.social img{
  width:40px;
  height:40px;
  object-fit:contain;
  opacity:1;
  transition:
    opacity .25s ease,
    transform .25s ease;
}

.social img:hover{
  opacity:.7;
  transform:scale(1.1);
}

/* Address */
.address{
  font-style:normal;
  font-size:18px;
  line-height:1.9;
  color:rgba(255,255,255,.65);
  margin-bottom:14px;
  text-align:right;
  align-self:flex-end;
}

/* Copyright */
.copy{
  text-align:right;
  align-self:flex-end;
  text-transform:uppercase;
  font-size:14px;
  color:#fff;
  letter-spacing:2px;
  margin-top:26px;
}

/* ================= RESPONSIVE ================= */
@media (max-width:1400px){
  .footer__inner::before{
    content:"";
    position:absolute;
    left:30px;
  }
  
}
@media (max-width:1020px){
.card__label{
  position:absolute;
  left:20px;
  bottom:50px;


  font-weight:700;
  font-size:65px;
  line-height:1;
  letter-spacing:-0.02em;

}

.intro p{
  max-width:800px;
  margin:auto;
  font-size:14px;
  line-height:1.8;
  color:rgba(255,255,255,.6);
  font-family:'DINOT', system-ui, sans-serif;
  font-weight:400;
  line-height:2.2;
}
.home-description {
  max-width:1500px;  /* 🔥 هذا هو */
  margin:auto;      /* وسط */
  padding: 40px 40px;
}
  .hero__arrow img{
  width:15px;
  height:auto;
  display:block;
  }
  .hero__arrow{
  margin-top:15px; /* 🔥 المسافة بين rectangle و arrow */
}
 .hero__bottom-bar{
    width:calc(100% - 50px);
    height:18px;
  }
    main .container{
    padding-left:24px;
    padding-right:24px;
  }
.container{
    padding: 0 0px;}
  .hero{
    padding-left:24px;
    padding-right:24px;
     
  }

  .header{
    height:56px;
  }

  .header__inner{
    height:56px;
    justify-content:space-between;
  }

  .nav--desktop{
    display:none;
  }

  .burger{
    display:flex;
  }

  .logo{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
  }

  .logo img{
    height:22px;
  }

.nav--mobile{
  top:56px;
  height:calc(100vh - 56px);
}

  .services__grid{
    grid-template-columns:repeat(2,1fr);
  }

  .hero__video{
    height:420px;
  }
}

@media (max-width:868px){

.card__label{
  position:absolute;
  left:20px;
  bottom:clamp(35px);


  font-weight:700;
  font-size:65px;
  line-height:1;
  letter-spacing:-0.02em;

}

  .card__label{

  font-size:50px;

}
   .card:hover{
    transform:none;
  }

  .card:hover::before{
    transform:none;
  }

  .card:hover::after{
    opacity:1;
  }

  .card:hover .card__label{
    transform:translateY(0);
    opacity:1;
    filter:blur(0);
  }



  .footer__tile{
    height:150px;
    background-size:auto 150px;
  }

  .footer__inner{
    padding:42px 0 36px;
  }

  .footer__inner::before{
    display:none;
  }

  .footer__links{
    display:none;
  }

  .footer__content{
    flex-direction:column;
    gap:30px;
    align-items:center;
    text-align:center;
  }

  .footer__right{
    align-items:center;
    text-align:center;
    width:100%;
  }

  .social{
    justify-content:center;
    margin-bottom:18px;
  }

  .social img{
    width:42px;
    height:42px;
  }

  .address{
    text-align:center;
    align-self:center;
    font-size:15px;
    line-height:1.8;
    margin-bottom:12px;
  }

  .copy{
    text-align:center;
    align-self:center;
    font-size:12px;
    letter-spacing:1.5px;
  }

 .hero__overlay{
    justify-content:flex-end; /* ينزل لتحت */
    align-items:flex-start;   /* يجي لليسار */

    padding-left:30px;
    padding-bottom:30px;
    padding-right:15px; /* اختياري باش يبقى balance */
    padding-top:0;
  }

  .hero__title{
    text-align:left;
  }

  .hero__sub{
    text-align:left;
    font-size:clamp(10px, 2vw, 14px); /* 🔥 adaptive */
    letter-spacing:0.12em;
  }

}


/* =========================
   GLOBAL LOADER
========================= */

html.is-loading,
body.is-loading {
  overflow: hidden;
}

#site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  width: min(82vw, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.site-loader__video {
  width: min(46vw, 220px);
  max-width: 220px;
  min-width: 130px;
  display: block;
  object-fit: contain;
}

.site-loader__progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-loader__bar {
  width: 100%;
  height: 1px;
  background: rgba(245, 245, 245, 0.103);
  border-radius: 999px;
  overflow: hidden;
}

.site-loader__bar-fill {
  width: 0%;
  height: 100%;
  background: #f5f5f5;
  border-radius: 999px;
  transition: width 0.18s linear;
}

.site-loader__percent {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: #f5f5f5;
  opacity: 0.9;
}

@media (max-width: 750px){
    .card__label{
  position:absolute;
  left:20px;
  bottom:20px;


  font-weight:700;
  font-size:40px;
  line-height:1;
  letter-spacing:-0.02em;

}
}
@media (max-width: 600px) {
  .card__label{
  position:absolute;
  left:8%;
  bottom:30px;


  font-weight:700;
  font-size:27px;
  line-height:1;
  letter-spacing:-0.02em;

}

  .site-loader__inner {
    width: min(86vw, 320px);
    gap: 18px;
  }

  .site-loader__video {
    width: min(52vw, 170px);
    min-width: 110px;
  }

  .site-loader__percent {
    font-size: 11px;
  }
}

/* =========================
   PAGE REVEAL ANIMATIONS
========================= */

.reveal-header,
.reveal-up {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal-header {
  opacity: 0;
}

.reveal-up {
  transform: translateY(38px);
}

.reveal-header.is-visible {
  opacity: 1;
  transition: opacity 6s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal-down {
  opacity: 0;
  transform: translateY(-38px);
  will-change: opacity, transform;
}

.reveal-down.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.reveal-down-arrow {
  opacity: 0;
  transform: translateY(-30px);
  will-change: opacity, transform;
}

.reveal-down-arrow.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
/* =========================
   BG TRANSITION WITH VARIABLE
========================= */

body.page-intro {
  background: #000000 !important;
  transition: background 2s ease;
}

body.page-intro.is-done {
  background: #0a0a0a !important;
}