/* Root variables */
:root{
  --bg:#153530;
  --text:#e4e4e4;
  --accent:#08AF9B;
  --secondary-accent:#153530;
  --glass:rgba(255,255,255,.05);
}
body.light-mode{
  --bg:black; --text:white; --accent:#08AF9B; --secondary-accent:#dbeafe; --glass:rgba(0,0,0,.04);
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;background:var(--bg);color:var(--text);margin:0;transition:background .4s,color .4s}
body.nav-open{overflow:hidden}
h1,h2{font-family:ui-serif,Georgia,serif}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Stars background */
.stars{position:fixed;inset:0;background:url('https://www.transparenttextures.com/patterns/stardust.png') repeat;animation:moveStars 100s linear infinite;z-index:-1;opacity:.85}
@keyframes moveStars{0%{transform:translate(0,0)}100%{transform:translate(-500px,-250px)}}

/* Header */
.header{display:flex;align-items:center;gap:1rem;padding:1rem 2rem;position:relative;z-index:999}
.header.sticky{position:sticky;top:0;background:linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0));backdrop-filter:saturate(140%) blur(6px)}
.logo{margin:0}
.logo img{display:block;filter:drop-shadow(0 6px 18px rgba(8,175,155,.25))}
.nav a,.sidebar a{ text-decoration:none;color:var(--accent); font-weight:600;font-size:1rem;padding:.5rem 1rem;border-radius:.7rem;transition:.25s}
.nav a:hover,.sidebar a:hover{color:#fff;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.nav a.active{background:var(--accent);color:#fff}
.sidebar{display:flex;gap:1rem;transition:all .4s ease-in-out}

/* Theme toggle + hamburger */
.header-controls{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:.75rem;
}
.language-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  letter-spacing:.04em;
  padding:.55rem .95rem;
  border-radius:999px;
  border:1.5px solid rgba(109,211,255,.45);
  background:rgba(8,175,155,.15);
  color:white;
  cursor:pointer;
  transition:background .25s,border-color .25s,color .25s,transform .25s;
  text-transform:uppercase;
  font-size:.85rem;
}
.language-toggle:hover{transform:translateY(-1px);background:rgba(8,175,155,.25);border-color:rgba(109,211,255,.75)}
body.light-mode .language-toggle{background:rgba(14,165,233,.12);color:white;border-color:rgba(14,165,233,.4)}
body.light-mode .language-toggle:hover{background:rgba(14,165,233,.22);border-color:rgba(14,165,233,.55)}
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  background:var(--accent);
  color:#052923;
  border:none;
  border-radius:999px;
  padding:.55rem 1rem;
  cursor:pointer;
  box-shadow:0 0 12px var(--accent);
  transition:background .25s, color .25s, transform .25s;
  font-size:1rem;
  font-weight:600;
}
.theme-toggle:hover{transform:translateY(-1px);background:#0cd6be;color:#031a15}
.theme-toggle svg{width:1.25rem;height:1.25rem;display:block;fill:currentColor}
.theme-icon{display:inline-flex}
.theme-icon--moon{display:none}
body.light-mode .theme-icon--sun{display:none}
body.light-mode .theme-icon--moon{display:inline-flex}
.theme-toggle__label{letter-spacing:.02em}
body.light-mode .theme-toggle{
  background:var(--accent);
  color:#0b1f28;
  box-shadow:0 0 12px rgba(14,165,233,.25);
}
body.light-mode .theme-toggle:hover{
  background:#38bdf8;
  color:#071a22;
}
@media (max-width: 640px){
  .theme-toggle{
    padding:.55rem .75rem;
    gap:.35rem;
  }
  .theme-toggle__label{display:none}
  .language-toggle{
    padding:.5rem .7rem;
    font-size:.8rem;
  }
}
.hamburger{display:none;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:.4rem;border-radius:.8rem;border:1.5px solid rgba(8,175,155,.35);background:rgba(8,175,155,.08);cursor:pointer;transition:background .25s,border-color .25s,box-shadow .25s}
.hamburger:hover{background:rgba(8,175,155,.14);border-color:rgba(8,175,155,.55);box-shadow:0 0 14px rgba(8,175,155,.25)}
.hamburger:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.hamburger .bar{width:26px;height:2px;border-radius:999px;background:var(--accent);transition:transform .35s ease,opacity .35s ease}
.hamburger.is-active .bar:nth-of-type(1){transform:translateY(8px) rotate(45deg)}
.hamburger.is-active .bar:nth-of-type(2){opacity:0}
.hamburger.is-active .bar:nth-of-type(3){transform:translateY(-8px) rotate(-45deg)}
body.light-mode .hamburger{background:rgba(14,165,233,.12);border-color:rgba(14,165,233,.35)}
body.light-mode .hamburger:hover{border-color:rgba(14,165,233,.55);background:rgba(14,165,233,.22);box-shadow:0 0 14px rgba(14,165,233,.2)}
body.light-mode .hamburger .bar{background:#047857}

/* Hero */
.hero-section{
  height:100vh;display:grid;place-items:center;text-align:center;position:relative;overflow:hidden;
  background:url('https://images.unsplash.com/photo-1613642457119-3eb3dcf5b328?auto=format&fit=crop&w=2100&q=80') center/cover no-repeat;
}
.hero-section::before{
  content:'AQLIAH'; position:absolute; inset:auto 0 10% 0; text-align:center;
  font-size:min(18vw,10rem); opacity:.06; color:var(--accent); pointer-events:none; font-weight:800; letter-spacing:.15em;
}
.hero-content{background:rgba(0,0,0,.45);padding:2.5rem;border-radius:1.6rem;position:relative;z-index:1;box-shadow:0 10px 40px rgba(0,0,0,.35)}
.hero-title{font-size:clamp(2rem,5vw,3rem);color:#fff;margin:0 0 .5rem}
.hero-subtitle{color:#d1d5db;margin:0 0 1.2rem}
.hero-cta{display:flex;gap:.8rem;justify-content:center}
.btn{display:inline-block;padding:.8rem 1.1rem;border-radius:.9rem;font-weight:700;text-decoration:none;transition:.25s}
.btn-primary{background:var(--accent);color:#002b25}
.btn-primary:hover{transform:translateY(-2px)}
.btn-ghost{border:1.5px solid var(--accent);color:var(--accent)}
.btn-ghost:hover{background:var(--accent);color:#002b25}
.w-full{width:100%}

/* Generic section */
.section{padding:4rem 1.5rem;max-width:1100px;margin:auto}
.section-title{font-size:clamp(1.6rem,3.3vw,2.2rem);color:var(--accent);text-align:center;margin-bottom:2rem}

/* About points */
.about-points{margin:1rem 0 0 1rem; padding-left:1rem; line-height:1.6}
.about-points li{margin:.25rem 0}
.about-points .placeholder{opacity:.7;font-style:italic}

.two-column{
  display:flex;
  align-items:flex-start;
  gap:2.75rem;
  margin-top:2rem;
}
.two-column > .reveal,
.two-column > .about-gallery{
  flex:1;
  min-width:0;
}

/* About gallery */
.about-gallery{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:160px;
  align-items:stretch;
}
.about-gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:1rem;
  box-shadow:0 12px 32px rgba(0,0,0,.28);
  transition:transform .35s ease, box-shadow .35s ease;
}
.about-gallery img:hover{
  transform:translateY(-6px) scale(1.01);
  box-shadow:0 20px 40px rgba(8,175,155,.35);
}
.about-gallery img:nth-child(1){grid-column:span 2; grid-row:span 2}
.about-gallery img:nth-child(3){grid-row:span 2}
.about-gallery img:nth-child(4){grid-column:span 2}
.about-gallery img:nth-child(6){grid-column:span 3; grid-row:span 1}
body.light-mode .about-gallery img{box-shadow:0 12px 28px rgba(14,165,233,.18)}
body.light-mode .about-gallery img:hover{box-shadow:0 20px 36px rgba(14,165,233,.32)}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem}
.card{background:var(--glass);padding:1.3rem;border-radius:1rem;text-align:left;border:1px solid rgba(51,51,51,.2);transition:.3s}
.card:hover{transform:translateY(-6px);box-shadow:0 0 20px #6dd3ff,0 0 40px var(--secondary-accent)}
.card-actions{margin-top:.9rem}
.card-title{margin:0 0 .6rem;color:#fff;font-size:1.35rem;font-weight:700}
.card-description{margin:0;color:var(--text);line-height:1.6;opacity:.9}
body.light-mode .card-title{color:#fff}
body.light-mode .card-description{color:#fff;opacity:.78}

/* CTA section */
.cta-section{text-align:center;position:relative}
.cta-lead{max-width:620px;margin:0 auto 2.5rem;font-size:1.05rem;line-height:1.7;color:var(--text);opacity:.9}
.cta-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;align-items:stretch}
.cta-card{
  position:relative;
  overflow:hidden;
  padding:2.5rem 2rem;
  border-radius:1.3rem;
  background:linear-gradient(135deg, rgba(8,175,155,.18), rgba(14,165,233,.14));
  border:1px solid rgba(109,211,255,.35);
  box-shadow:0 25px 55px rgba(5,18,16,.45);
  text-align:left;
  backdrop-filter:blur(14px);
}
.cta-card::before{
  content:'';
  position:absolute;
  inset:-120px -40px auto auto;
  width:220px;height:220px;
  background:radial-gradient(circle at center, rgba(109,211,255,.45), rgba(109,211,255,.05));
  opacity:.8;
  transform:rotate(25deg);
  pointer-events:none;
}
.cta-card__badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background:rgba(255,255,255,.08);
  color:#d6fdf7;
  font-weight:600;
  font-size:.85rem;
  padding:.45rem .8rem;
  border-radius:999px;
  letter-spacing:.02em;
  backdrop-filter:blur(8px);
}
.cta-card__title{margin:1.2rem 0 .75rem;font-size:1.6rem;color:#fff}
.cta-card__body{margin:0;color:var(--text);line-height:1.7;opacity:.92}
.cta-actions{margin-top:1.8rem;display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}
.cta-note{font-size:.9rem;color:var(--text);opacity:.75}
body.light-mode .cta-lead{opacity:.78}
body.light-mode .cta-card{
  background:linear-gradient(135deg, rgba(14,165,233,.18), rgba(8,175,155,.12));
  border:1px solid rgba(14,165,233,.3);
  box-shadow:0 22px 42px rgba(15,23,42,.14);
}
body.light-mode .cta-card::before{
  background:radial-gradient(circle at center, rgba(14,165,233,.45), rgba(14,165,233,0));
  opacity:.5;
}
body.light-mode .cta-card__badge{
  background:rgba(255,255,255,.9);
  color:#03614f;
}
body.light-mode .cta-card__title{color:#ffffff}
body.light-mode .cta-card__body{color:#ffffff;opacity:.85}
body.light-mode .cta-note{color:#ffffff;opacity:.6}
@media (max-width: 768px){
  .cta-section{padding-top:3.5rem;padding-bottom:3.5rem}
  .cta-card{padding:2rem 1.6rem;text-align:center}
  .cta-card__badge{margin:auto}
  .cta-actions{justify-content:center}
}
@media (max-width: 540px){
  .cta-lead{font-size:1rem;margin-bottom:2rem}
  .about-gallery{
    grid-template-columns:1fr;
    grid-auto-rows:220px;
  }
  .about-gallery img:nth-child(1),
  .about-gallery img:nth-child(4),
  .about-gallery img:nth-child(6){grid-column:span 1}
}

/* Blog carousel */
.carousel-wrap{position:relative}
.carousel{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px, 1fr);
  gap:1rem;overflow-x:auto;padding:.25rem;scroll-snap-type:x mandatory;
  scrollbar-width:none; /* Firefox: hide */
}
.carousel::-webkit-scrollbar{display:none} /* WebKit: hide */
.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}
.blog-card{
  scroll-snap-align:center;background:var(--glass);border:1px solid rgba(51,51,51,.2);
  border-radius:1rem;overflow:hidden;display:flex;flex-direction:column;min-height:100%;
  transition:transform .25s,box-shadow .25s;
}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 10px 30px rgba(0,0,0,.25)}
.blog-card img{width:100%;height:160px;object-fit:cover}
.blog-content{padding:1rem}
.blog-content h3{margin:.2rem 0 .4rem;font-size:1.05rem}
.blog-content p{opacity:.85;margin:0 0 .8rem}
.read-more{color:var(--accent);font-weight:700;text-decoration:none}
.blog-card .muted{display:inline-block;margin-top:.75rem;font-size:.85rem;opacity:.6}
.blog-card.placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:100%;}
.blog-card.placeholder .blog-placeholder-image{width:100%;height:160px;background:linear-gradient(135deg, rgba(8,175,155,.35), rgba(14,165,233,.25));}
.blog-card.placeholder .blog-content{padding:1.5rem;}
.blog-card.placeholder .read-more{pointer-events:none;cursor:default;}

.carousel-btn{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:42px;border:none;border-radius:999px;cursor:pointer;
  background:rgba(0,0,0,.45);color:#fff;font-size:1.4rem;display:grid;place-items:center;box-shadow:0 10px 20px rgba(0,0,0,.35);
}
.carousel-btn:hover{background:rgba(0,0,0,.65)}
.carousel-btn.prev{left:-.5rem}
.carousel-btn.next{right:-.5rem}

/* Video showcase */
.video-section .video-hero{position:relative;border-radius:1.2rem;overflow:hidden;box-shadow:0 15px 40px rgba(0,0,0,.4)}
.video-player{display:block;width:100%;object-fit:cover;background:#000}
.video-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));pointer-events:none}
.video-caption{position:absolute;left:1rem;bottom:1rem;color:#fff;font-weight:700;text-shadow:0 2px 12px rgba(0,0,0,.6);pointer-events:none}
.video-sound-toggle{
  position:absolute;
  bottom:1.25rem;
  right:1.25rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:.55rem;
  width:48px;
  height:48px;
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(6px);
  color:#fff;
  cursor:pointer;
  transition:background .25s,border-color .25s,transform .25s;
  z-index:2;
}
.video-sound-toggle:hover{background:rgba(0,0,0,.6);border-color:rgba(255,255,255,.55);transform:translateY(-1px)}
.video-sound-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.video-sound-toggle svg{width:22px;height:22px;display:block;fill:currentColor}
.video-sound-toggle .icon-sound-muted{opacity:0}
.video-sound-toggle .icon-sound-wave{opacity:1}
.video-sound-toggle[aria-pressed="true"] .icon-sound-muted{opacity:0}
.video-sound-toggle[aria-pressed="true"] .icon-sound-wave{opacity:1}
.video-sound-toggle[aria-pressed="false"] .icon-sound-muted{opacity:1}
.video-sound-toggle[aria-pressed="false"] .icon-sound-wave{opacity:0}
body[dir="rtl"] .video-sound-toggle{right:auto;left:1.25rem}

/* Modal video */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:1001}
.modal.show{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.75)}
.modal-body{position:relative;width:min(1000px,92vw);aspect-ratio:16/9;background:#000;border-radius:1rem;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.modal-body iframe,.modal-body video{width:100%;height:100%;display:block;border:0}
.modal-close{position:absolute;top:.6rem;right:.6rem;border:none;width:42px;height:42px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;cursor:pointer}

/* Forms (contact + work) */
.contact-form,.job-form{max-width:620px;margin:auto;display:flex;flex-direction:column;gap:1rem}
.contact-form label,.job-form label{font-weight:700;margin-bottom:.25rem}
.contact-form input,.contact-form textarea,
.job-form input,.job-form textarea,.job-form select{
  padding:1rem;background:var(--glass);border:1px solid #444;color:#fff;border-radius:.8rem
}
.contact-form textarea,.job-form textarea{min-height:140px;resize:vertical}
.job-form .grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column}
.form-hint{opacity:.8;font-size:.9rem;text-align:center}
.contact-form button{padding:1rem;background:var(--accent);border:none;border-radius:.8rem;color:#002b25;font-weight:800;cursor:pointer;transition:.25s}
.contact-form button:hover{filter:brightness(1.05)}
.contact-form button.loading{opacity:.7;cursor:not-allowed}

/* Footer */
.footer{padding:2rem;text-align:center;color:#aaa;background:linear-gradient(to top,#2d5750,transparent)}

/* Reveal animation */
.reveal{opacity:0;transform:translateY(40px);transition:all 1s ease}
.reveal.active{opacity:1;transform:translateY(0)}

/* Progress bar */
#progressBar{position:fixed;top:0;left:0;height:5px;background:var(--accent);width:0%;z-index:1000;transition:width .25s ease}

/* Particles */
#particles-js{position:absolute;width:100%;height:100%;z-index:0}

/* Mobile */
@media (max-width: 900px){
  .carousel-btn.prev{left:.25rem}
  .carousel-btn.next{right:.25rem}
}
@media (max-width: 768px){
  .two-column{flex-direction:column;gap:2rem}
  .about-gallery{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-rows:160px;
  }
  .about-gallery img:nth-child(1),
  .about-gallery img:nth-child(4),
  .about-gallery img:nth-child(6){grid-column:span 2}
  .about-gallery img:nth-child(3){grid-row:span 1}
  .header{justify-content:space-between}
  .sidebar{
    position:fixed;top:0;left:-100%;flex-direction:column;width:240px;height:100vh;background:#08AF9B;
    backdrop-filter:blur(10px);padding-top:5rem;align-items:flex-start;padding-left:2rem;box-shadow:2px 0 20px rgba(0,0,0,.5);z-index:900
  }
  .sidebar a{margin:1rem 0;font-size:1.15rem;color:#fff}
  .sidebar.show{left:0}
  .hamburger{display:inline-flex}
  .job-form .grid{grid-template-columns:1fr} /* Stack fields on mobile */
  body[dir="rtl"] .sidebar{
    left:auto;
    right:-100%;
    padding-left:0;
    padding-right:2rem;
    align-items:flex-end;
    box-shadow:-2px 0 20px rgba(0,0,0,.5);
  }
  body[dir="rtl"] .sidebar.show{right:0}
  body[dir="rtl"] .sidebar a{text-align:right}
}

/* Accessibility */
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}


/* Visitors Counter */
.visitors-counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  background: var(--glass);
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.visitors-counter p {
  margin: .5rem 0 0;
  font-size: 1.1rem;
  color: var(--text);
}

/* Partners Section */
.partners-logos {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.partners-logos img {
  height: 60px;
  filter: grayscale(100%) brightness(0.8);
  transition: .3s;
}
.partners-logos img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

/* Interviews Section */
.interviews-card{
  max-width:480px;margin:0 auto;background:var(--glass);border:1px solid rgba(255,255,255,.12);
  border-radius:1.3rem;padding:2.5rem 2rem;text-align:center;box-shadow:0 20px 45px rgba(0,0,0,.35);
}
.interviews-count{
  font-size:clamp(3rem,8vw,4.5rem);font-weight:800;color:var(--accent);margin-bottom:.5rem;
  text-shadow:0 8px 25px rgba(14,165,233,.4);
}
.interviews-subtitle{
  margin:0;font-size:1.05rem;line-height:1.5;color:var(--text);opacity:.85;
}

/* Blog detail */
.blog-detail-section{max-width:900px;margin:auto;padding-top:2rem}
.back-link{display:inline-flex;align-items:center;gap:.35rem;color:var(--accent);text-decoration:none;font-weight:600;margin-bottom:1.5rem}
.back-link::before{content:"\2190";font-size:1.1rem}
.back-link:hover{color:#fff}
.blog-detail-hero{position:relative;border-radius:1.4rem;overflow:hidden;margin-bottom:2rem;box-shadow:0 20px 50px rgba(0,0,0,.35);min-height:260px;background:linear-gradient(135deg, rgba(8,175,155,.35), rgba(14,165,233,.25));display:flex;align-items:center;justify-content:center}
.blog-detail-image{width:100%;height:100%;object-fit:cover;display:block}
.blog-detail-meta{position:absolute;inset:auto 1.25rem 1.25rem 1.25rem;background:rgba(0,0,0,.55);padding:.65rem 1rem;border-radius:.9rem;color:#fff;font-weight:600;font-size:.95rem;box-shadow:0 10px 25px rgba(0,0,0,.35)}
.blog-detail-content header{margin-bottom:1.5rem}
.blog-detail-content h1{margin:0 0 .75rem;font-size:clamp(2rem,4vw,2.6rem);color:#fff}
.blog-detail-summary{margin:0;font-size:1.1rem;color:var(--text);opacity:.8; word-wrap: break-word;}
.blog-detail-body{line-height:1.7;color:var(--text);display:grid;gap:1rem;}
.blog-detail-body p{margin:0; word-wrap: break-word;}
.blog-detail-body img{max-width:100%;border-radius:1rem;box-shadow:0 20px 40px rgba(0,0,0,.3)}
@media (max-width:768px){
  .blog-detail-section{padding:3rem 1.25rem}
  .blog-detail-meta{font-size:.85rem}
}

#navBlog {
  position: relative;
  color: white; /* لون النص */
  animation: blinkGlow 1.5s infinite;
}

/* تأثير الوميض */
@keyframes blinkGlow {
  0%, 100% {
    text-shadow: 0 0 40px #08AF9B, 0 0 25px #08AF9B;
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 30px #08AF9B;
    opacity: 0.5;
  }
}
