.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}
:lang(en) .vertical-text {
    transform: rotate(0deg);
}

.dir-ltr { direction: ltr; }


body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;

    background-color: transparent;
}


::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #c40000; }
::-webkit-scrollbar-track { background: #121212; }



.section-content {
    display: none; /* Hidden by default */
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-content.active {
    display: block; /* Visible in flow */
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Active Nav State */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    position: relative;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.nav-btn .active-bar {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 999px;
}
.nav-btn.active i { color: #c40000; }
.nav-btn.active span { color: #fff; }
.nav-btn.active .active-bar { opacity: 1; }


.about-paragraph {
  position: relative;
  padding-inline-start: 1.25rem; /* مسافة ذكية حسب الاتجاه */
}

html[dir="rtl"] .about-paragraph {
  border-right: 2px solid rgba(196, 0, 0, 0.3);
}

html[dir="ltr"] .about-paragraph {
  border-left: 2px solid rgba(196, 0, 0, 0.3);
}

.brand-card {
  width: 140px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: all 0.3s ease;
}

.brand-card img {
  max-width: 85%;
  max-height: 55%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
}
 
/* Hover Effect */
.brand-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Mobile Menu */
#mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Animation Utility */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}


@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 20s linear infinite;
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

.dir-ltr {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .rtl-icon {
  transform: scaleX(-1);
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}
