/* 
 * JoulMedia Custom Styles
 */

:root {
    --primary: #0A192F;
    --accent: #2563EB;
    --secondary: #F59E0B;
    --dark-bg: #0F172A;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
}

/* RTL Specifics */
[dir="rtl"] {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Navbar Base Style */
nav {
    top: 0;
    left: 0;
    width: 100%;
}

/* Navbar Scroll Effect (Floating Style) */
nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    top: 10px !important;
    padding: 0.55rem 1.6rem !important;
    width: 90% !important;
    max-width: 1280px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 2rem;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #1D4ED8 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    filter: brightness(1.1);
}

/* Counter Animation */
.counter-value {
    display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1D4ED8;
}

/* FAQ Accordion */
.faq-header {
    cursor: pointer;
    transition: color 0.3s;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
