/* -------------------------
   Direction Control
-------------------------- */

body {
    margin: 0;
    padding: 0;
    display: flexbox;
    background-color: transparent;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

.dir-ltr {
    direction: ltr;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* -------------------------
   Page Sections Transition
-------------------------- */
.section-content {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* -------------------------
   Glass Components
-------------------------- */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* -------------------------
   Navbar Buttons
-------------------------- */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    position: relative;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-btn .active-bar {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background-color: #0ea5e9;
}

.nav-btn.active i { color: #0ea5e9; }
.nav-btn.active span { color: #0f172a; }
.nav-btn.active .active-bar { opacity: 1; }

/* -------------------------
   About Paragraph Border
-------------------------- */
.about-paragraph {
  position: relative;
  padding-inline-start: 1.25rem;
}

html[dir="rtl"] .about-paragraph {
  border-right: 3px solid #0ea5e9;
}

html[dir="ltr"] .about-paragraph {
  border-left: 3px solid #0ea5e9;
}

/* -------------------------
   Mobile Menu Animation
-------------------------- */
#mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* -------------------------
   Animations
-------------------------- */
@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;
    opacity: 0; 
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }

/* Reveal Animation (scroll) */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}