@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif !important;
    overflow-x: hidden;
}

/* Hide Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
    /* Smooth momentum scrolling */
}

/* خلفية الهيرو */
.hero-bg {
    background-image: linear-gradient(rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.3)), url('../media/ahmadalabiad/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* أزرار السلايدر */
.slider-btn {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* نظام الحركة (Animations) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* تحسين الروابط الفرعية */
.sub-link:hover {
    padding-right: 10px;
}

/* أنيميشن Alpine.js */
[x-cloak] {
    display: none !important;
}

/* تخصيص الـ Checkbox */
.custom-checkbox:checked {
    background-color: #C5A059;
    border-color: #C5A059;
}

/* Pulsing Glow Animation */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
        border-color: rgba(197, 160, 89, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(197, 160, 89, 0.6);
        border-color: rgba(197, 160, 89, 1);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite ease-in-out;
}

/* --- تعديل شريط التمرير (Scrollbar) النافذة --- */
.modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #C5A059;
}

/* Custom Checkbox Styling */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    border-color: #C5A059;
    background-color: #fefcf8;
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 80px;
    /* Below Navbar */
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to left, #C5A059, #1a1a1a);
    z-index: 101;
    transition: width 0.1s ease;
}

/* Lightbox Styles */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 1rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #C5A059;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
    z-index: 90;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1a1a1a;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------- */
/*                           Factory Production Line                          */
/* -------------------------------------------------------------------------- */
.manufacturing-section {

    /* Category Pills */
    .category-pill {
        background: white;
        border: 1px solid rgba(197, 160, 89, 0.2);
        color: #374151;
        font-weight: 700;
        padding: 0.75rem 1.5rem;
        border-radius: 999px;
        transition: all 0.3s ease;
        cursor: default;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .category-pill:hover {
        border-color: #C5A059;
        background: #C5A059;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
    }
}