/* ============================================
   SJESSS — Premium Landing Page Design System
   Modern, Responsive, Bilingual (AR/EN)
   ============================================ */

/* --- Design Tokens --- */
:root {
    --primary: #0f172a;
    --primary-2: #1e293b;
    --primary-vibrant: #2b823d;
    --accent: #10b981;
    --gold: #d4af37;
    --gold-light: #f59e0b;
    --dark: #020617;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base --- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
}

html[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

h1, h2, h3, h4, .outfit {
    font-family: 'Outfit', 'Cairo', sans-serif;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
    font-family: 'Cairo', 'Outfit', sans-serif;
}

img { max-width: 100%; height: auto; }

/* --- Section Spacing --- */
.section-padding { padding: 100px 0; }

/* --- Energy Glow Effect --- */
.energy-glow { position: relative; }
.energy-glow::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    z-index: -1;
    border-radius: inherit;
    opacity: 0.3;
    animation: energy-pulse 3s infinite ease-in-out;
}

@keyframes energy-pulse {
    0%, 100% { filter: blur(2px); opacity: 0.15; }
    50% { filter: blur(6px); opacity: 0.35; }
}

/* --- Gold Shine Sweep --- */
.gold-shine { position: relative; overflow: hidden; }
.gold-shine::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
}
.gold-shine:hover::before { left: 150%; }

/* --- Floating Animation --- */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-anim { animation: float-gentle 4s ease-in-out infinite; }

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    padding: 140px 0 100px;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg,
        rgba(2, 6, 23, 0.92) 0%,
        rgba(15, 23, 42, 0.85) 40%,
        rgba(30, 58, 138, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .display-3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    font-size: 4rem;
}

/* --- Stat Pill Badge --- */
.stat-pill {
    background: rgba(43, 130, 61, 0.2);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(8px);
}

/* --- Glass Card (Hero) --- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* === BUTTONS === */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-vibrant) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(43, 130, 61, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(43, 130, 61, 0.45);
    color: white;
}

.btn-premium:hover::after { left: 100%; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #000 !important;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* === SOLUTION CARDS === */
.solution-card {
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-vibrant), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover);
}

.solution-card:hover::before { opacity: 1; }

.solution-card img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover img { transform: scale(1.1); }

/* --- Text Colors --- */
.text-primary-vibrant { color: var(--primary-vibrant) !important; }
.text-gold { color: var(--gold) !important; font-weight: 700; }
.bg-soft-blue { background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%); }
.bg-navy-premium { background: var(--primary); color: white; }

/* --- Stats Section (About) --- */
.stat-counter {
    background: linear-gradient(135deg, var(--primary-vibrant), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- Solution Icon Box --- */
.solution-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-vibrant), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* --- Portal Card in Dashboard --- */
.portal-nav-link.card {
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    text-decoration: none !important;
}
.portal-nav-link.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent) !important;
    background: rgba(212, 175, 55, 0.03) !important;
    box-shadow: var(--card-shadow-hover);
}

/* --- Stat Tile (Premium Dashboard) --- */
.stat-tile-premium {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border-left: 5px solid var(--accent);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.stat-tile-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* === NAVBAR === */
.navbar-dark .navbar-nav .nav-link {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

#mainNav {
    transition: all 0.4s ease;
}

#mainNav.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* === PARTNERS SECTION === */
.partner-logo-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    height: 100%;
}

.partner-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.partner-logo-card img {
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.partner-logo-card:hover img {
    transform: scale(1.1);
}

/* === CTA SECTION === */
.cta-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 50%, var(--primary-2) 100%);
    position: relative;
    overflow: hidden;
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(43, 130, 61, 0.1), transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(16, 185, 129, 0.08), transparent 50%);
    animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(2%, -2%); }
}

/* === CONTACT SECTION === */
.contact-info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.contact-info-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(43, 130, 61, 0.1), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--primary-vibrant);
}

/* === FOOTER === */
footer {
    background: var(--primary);
}

footer a { transition: color 0.3s ease; }
footer a:hover { color: var(--accent) !important; }

/* ==========================
   RESPONSIVE BREAKPOINTS
   ========================== */

/* Tablet */
@media (max-width: 992px) {
    .section-padding { padding: 70px 0; }
    .hero-section { background-attachment: scroll !important; }
    .hero-section .display-3 { font-size: 3rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }

    .hero-section {
        padding: 120px 0 70px;
        text-align: center;
    }

    .hero-content {
        text-align: center !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    html[dir="rtl"] .hero-content {
        text-align: center !important;
    }

    .hero-section .display-3 { font-size: 2.4rem; }
    .lead { font-size: 1.05rem !important; }

    .glass-card {
        padding: 18px;
        margin-bottom: 8px;
        border-radius: 16px;
    }

    .glass-card .fs-5 { font-size: 0.95rem !important; }
    .glass-card .fs-2 { font-size: 1.4rem !important; margin-bottom: 8px !important; }

    .navbar-brand img { max-height: 60px !important; }

    .stat-pill { font-size: 0.8rem; padding: 8px 18px; }

    .btn-premium {
        padding: 14px 28px;
        font-size: 0.95rem !important;
        width: 100%;
        margin-bottom: 12px;
    }

    .btn-outline-light {
        width: 100%;
    }

    .hero-content .row.g-4.mb-5 > div {
        margin-bottom: 10px;
    }

    .solution-card:hover {
        transform: translateY(-5px);
    }

    .display-5 { font-size: 1.8rem !important; }
    .display-4 { font-size: 2rem !important; }

    .contact-info-card { padding: 24px 16px; }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-section .display-3 { font-size: 2rem; }
    .hero-section { padding: 100px 0 50px; }
    .stat-pill { font-size: 0.75rem; }
    .section-padding { padding: 50px 0; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px;  }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary-vibrant), var(--accent)); border-radius: 4px; }

/* --- Selection --- */
::selection { background: var(--accent); color: white; }
