:root {
    --font-main: 'Cairo', 'Inter', sans-serif;
    --font-title: 'IBM Plex Sans Arabic', sans-serif;
    --font-body-en: 'Inter', sans-serif;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #020617;
}

body {
    font-family: var(--font-main);
    color: #f8fafc;
    line-height: 1.8;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
.stat-number,
.offer-price {
    font-family: var(--font-title);
    letter-spacing: -0.02em;
}

.btn-primary-brand {
    font-family: var(--font-title);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.hero-headline-glow {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 35px rgba(59, 130, 246, 0.2);
}

.gradient-blue-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Scroll indicator bounce */
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

.scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
}

.glow-bg {
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.12) 0%, rgba(2, 6, 23, 0) 75%);
}

/* Hero cinematic glow */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.7);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
}

.offer-card-premium {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.2) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.gsap-reveal {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

::selection {
    background: #3b82f6;
    color: #fff;
}

@keyframes pulse-ring-red {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-ring-blue {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-red {
    position: relative;
}
.pulse-red::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgb(239, 68, 68);
    animation: pulse-ring-red 2s infinite;
    z-index: -1;
}

.pulse-blue {
    position: relative;
}
.pulse-blue::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgb(59, 130, 246);
    animation: pulse-ring-blue 2s infinite;
    z-index: -1;
}

/* LCP Hero Animations (Native CSS instead of GSAP) */
@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4 {
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.3s; }
.hero-anim-3 { animation-delay: 0.5s; }
.hero-anim-4 { animation-delay: 0.7s; }

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Blog Specific Styles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Global Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.8); /* slate-950 */
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.5) 0%, rgba(37, 99, 235, 0.8) 100%); /* blue-500 to blue-600 */
    border-radius: 8px;
    border: 2px solid rgba(2, 6, 23, 0.8); /* Adds padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.8) 0%, rgba(29, 78, 216, 1) 100%); /* brighter on hover */
}

/* Modal Scrollbar Fallback */
#blog-modal-scroll::-webkit-scrollbar {
    width: 8px;
}

/* Logo Ticker Specific Styles */
@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-logo-scroll {
    display: flex;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}

/* WordPress Pagination Styles */
.navigation.pagination {
    margin-top: 2rem;
}
.navigation.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8; /* slate-400 */
    background: rgba(15, 23, 42, 0.5); /* slate-900/50 */
    border: 1px solid rgba(255, 255, 255, 0.05); /* white/5 */
    transition: all 0.3s ease;
}
.page-numbers:hover:not(.current) {
    background: rgba(30, 41, 59, 0.8); /* slate-800 */
    color: #ffffff;
}
.page-numbers.current {
    background: #2563eb; /* blue-600 */
    color: #ffffff;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}
.page-numbers.dots {
    background: transparent;
    border-color: transparent;
}
