* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


@font-face {
    font-family: 'UniSIRWAN-Regular';
    src: url('../fonts/UniSIRWANPingRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UniSIRWAN-Bold';
    src: url('../fonts/UniSIRWANPingBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UniSIRWAN-Light';
    src: url('../fonts/UniSIRWANPingLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

body {
   font-family: 'UniSIRWAN-Bold', Arial, sans-serif;
   font-weight: bold;  /* This makes it bold */
   background: #1a2152;
   min-height: 100vh;
}


.floating-spot {
     position: absolute;
     border-radius: 50%;
     /* background: rgba(255, 255, 255, 0.6); */
     background: white;
     animation: float 15s ease-in-out infinite;
}

     /* Generate many small spots */
        .spot-1 { width: 4px; height: 4px; top: 10%; left: 5%; animation-delay: 0s; }
        .spot-2 { width: 6px; height: 6px; top: 20%; left: 15%; animation-delay: 1s; }
        .spot-3 { width: 3px; height: 3px; top: 30%; left: 25%; animation-delay: 2s; }
        .spot-4 { width: 5px; height: 5px; top: 15%; left: 35%; animation-delay: 3s; }
        .spot-5 { width: 4px; height: 4px; top: 25%; left: 45%; animation-delay: 4s; }
        .spot-6 { width: 7px; height: 7px; top: 35%; left: 55%; animation-delay: 5s; }
        .spot-7 { width: 3px; height: 3px; top: 5%; left: 65%; animation-delay: 6s; }
        .spot-8 { width: 5px; height: 5px; top: 40%; left: 75%; animation-delay: 7s; }
        .spot-9 { width: 4px; height: 4px; top: 50%; left: 85%; animation-delay: 8s; }
        .spot-10 { width: 6px; height: 6px; top: 60%; left: 95%; animation-delay: 9s; }
        .spot-11 { width: 3px; height: 3px; top: 70%; left: 90%; animation-delay: 10s; }
        .spot-12 { width: 5px; height: 5px; top: 80%; left: 80%; animation-delay: 11s; }
        .spot-13 { width: 4px; height: 4px; top: 90%; left: 70%; animation-delay: 12s; }
        .spot-14 { width: 6px; height: 6px; top: 85%; left: 60%; animation-delay: 13s; }
        .spot-15 { width: 3px; height: 3px; top: 75%; left: 50%; animation-delay: 14s; }
        .spot-16 { width: 5px; height: 5px; top: 65%; left: 40%; animation-delay: 15s; }
        .spot-17 { width: 4px; height: 4px; top: 55%; left: 30%; animation-delay: 16s; }
        .spot-18 { width: 7px; height: 7px; top: 45%; left: 20%; animation-delay: 17s; }
        .spot-19 { width: 3px; height: 3px; top: 95%; left: 10%; animation-delay: 18s; }
        .spot-20 { width: 5px; height: 5px; top: 5%; left: 95%; animation-delay: 19s; }
        .spot-21 { width: 4px; height: 4px; top: 15%; right: 10%; animation-delay: 0.5s; }
        .spot-22 { width: 6px; height: 6px; top: 25%; right: 20%; animation-delay: 1.5s; }
        .spot-23 { width: 3px; height: 3px; top: 35%; right: 30%; animation-delay: 2.5s; }
        .spot-24 { width: 5px; height: 5px; bottom: 10%; left: 15%; animation-delay: 3.5s; }
        .spot-25 { width: 4px; height: 4px; bottom: 20%; left: 25%; animation-delay: 4.5s; }
        

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.4; }
    25% { transform: translateY(-25px) translateX(15px); opacity: 0.7; }
    50% { transform: translateY(-15px) translateX(-20px); opacity: 0.3; }
    75% { transform: translateY(-30px) translateX(10px); opacity: 0.6; }
}

/* Top Bar */
.top-bar {
    background: #253b827a;
    /* background-image: linear-gradient(90deg, #1a2152, #88A2FF); */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 20px;
    box-shadow: 0 4px 20px rgba(37, 58, 130, 0.3);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-center:hover {
    transform: translateX(-50%) scale(1.05);
}

.logo-icon {
    width: 150px;
    height: 150px;
    /* background: rgba(255, 255, 255, 0.95); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 8px 20px rgba(37, 58, 130, 0.3); */
    overflow: hidden;
}

.logo-image {
    width: 250px;
    height: 250px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../fama_logo_two.png');
}

.brand-info {
    color: white;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(37, 58, 130, 0.5);
}

.brand-tagline {
    font-size: 0.75rem;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: -2px;
}

.language-section {
    /* background: rgba(255, 255, 255, 0.15); */
   background-image: linear-gradient(90deg, #464d7e, #88A2FF);
       /* background: linear-gradient(135deg, #88A2FF, #AB9DFF); */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
position: relative;
}

.language-section:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 58, 130, 0.3);
}

.flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-size: cover;
}

.flag-en {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23012169"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23fff" stroke-width="6"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23C8102E" stroke-width="4"/><path d="M30,0 L30,30 M0,15 L60,15" stroke="%23fff" stroke-width="10"/><path d="M30,0 L30,30 M0,15 L60,15" stroke="%23C8102E" stroke-width="6"/></svg>');
}

.flag-ar {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="10" fill="%23CE1126"/><rect y="10" width="60" height="10" fill="%23fff"/><rect y="20" width="60" height="10" fill="%23000"/></svg>');
}

.arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.language-section:hover .arrow {
    transform: rotate(180deg);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 5px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 58, 130, 0.4);
}

.language-section:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #88A2FF;
}

/* Main Content */
.main-content {
    padding: 5px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Navigation */
.categories-section {
    margin-bottom: 0px;
}

.section-header {
    padding: 0 20px;
    margin-bottom: 10px;
}

.section-title {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(37, 58, 130, 0.5);
}

.hidden {
    display: none !important;
}

/* Horizontal Recycler Container */
.categories-recycler {
    overflow-x: auto;
    padding: 10px 0;
}

.categories-recycler::-webkit-scrollbar {
    display: none;
}

/* Categories Grid */
.categories-grid {
    display: flex;
    gap: 15px;
    min-width: max-content;
    padding: 0 20px;
}

/* Category Tab Style */
.category-tab {
    /* background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center; */


    background: transparent;
            border: 2px solid transparent;
            background-image: linear-gradient(#1a2152, #1a2152), linear-gradient(to right, #88A2FF, #88A2FF);
            background-origin: border-box;
            background-clip: padding-box, border-box;
            border-radius: 16px;
            padding: 12px 20px;

            color: white;
            transition: all 0.3s ease;
            cursor: pointer;
            gap: 4px;
}

.category-tab:hover {
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #88A2FF, #AB9DFF);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Products Section */
.products-section {
    margin-bottom: 40px;
}

.products-container {
    opacity: 1;
    transition: all 0.4s ease;
}

.products-container.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Products Grid - 2 Column */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px;
}

/* Product Card */
.product-card {
    background: rgba(37, 58, 130, 0.95);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(136, 162, 255, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(136, 162, 255, 0.2) 0%, 
        rgba(171, 157, 255, 0.15) 50%,
        rgba(255, 178, 247, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card:hover {
    transform: translateY(-20px) scale(1.05) rotateX(5deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(136, 162, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(37, 58, 130, 1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: calc(100% - 16px);
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 8px 8px 0 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(136, 162, 255, 0.1) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover .product-image::before {
    transform: translateX(100%);
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, rgba(37, 58, 130, 0.6));
    pointer-events: none;
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #C0E0FF;
    margin-bottom: 2px;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.product-price::before {
    content: '';
    position: absolute;
    top: 0px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background: linear-gradient(135deg, #88A2FF, #AB9DFF);
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-title {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.product-card:hover .product-price {
    transform: scale(1.1);
}

.product-card:hover .product-price::before {
    opacity: 0.2;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(37, 58, 130, 0.98);
    border-radius: 20px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(136, 162, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-product {
    padding: 0;
}

.modal-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.modal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(136, 162, 255, 0.1) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.modal-overlay.active .modal-image::before {
    transform: translateX(100%);
    transition-delay: 0.3s;
}

.modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(37, 58, 130, 0.8));
    pointer-events: none;
}

.modal-info {
    padding: 25px;
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.modal-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #88A2FF;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar-container {
        justify-content: flex-end;
    }

    .logo-center {
        position: static;
        transform: none;
        margin-right: auto; /* Push it to the left */
    }

    .language-section {
        margin-left: auto; /* Keep it on the far right */
    }
    .brand-info {
        /* Keep existing styles */
    }
    
    .logo-center {
        left: auto;
        transform: none;
    }
    
    .logo-icon {
        width: 150px;
        height: 50px;
    }
    
    /* .logo-image {
        width: 250px;
        height: 250px;
    } */
     .logo-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
}


            .language-section {
                margin-left: auto;
                position: relative;
            }

            .language-dropdown {
                right: 0;
                left: auto;
                min-width: 120px;
            }


    .main-content {
        padding: 5px 0;
    }

    .products-grid {
        gap: 10px;
        padding: 0 15px;
    }

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .category-tab {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    /* Modal Responsive */
    .modal-content {
        max-width: 350px;
    }

    .modal-image {
        height: 200px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-price {
        font-size: 0.9rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}