@font-face {
    font-family: 'CustomFont';
    src: url('../font/arbfonts-abdo-master-regular.otf') format('opentype');
}

@font-face {
    font-family: 'saudiriyalsymbol';
    src: url('../font/saudiriyalsymbol.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'IBM Plex Sans Arabic';
    background: linear-gradient(90deg, #4b484b 0%, #353235 20%, #000 50%, #353235 80%, #4b484b 100%);
    color: white;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.lang-en {
    display: none;
}

[lang="ar"] .lang-ar {
    display: block;
}

[lang="en"] .lang-ar {
    display: none;
}

.lang-ar {
    display: block;
}

[lang="ar"] .lang-en {
    display: none;
}

[lang="en"] .lang-en {
    display: block;
}

.price-usd {
    display: none;
}

[currency="sar"] .price-usd {
    display: none;
}

[currency="sar"] .price-sar {
    display: flex;
    justify-content: center;
    gap: 3px;
}

[currency="usd"] .price-usd {
    display: block;
}

[currency="usd"] .price-sar {
    display: none;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navbar */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(205, 167, 70, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    padding: 10px 0;
    z-index: 1000;
    clip-path: ellipse(100% 100% at 50% 0%);
}

    .navbar ul {
        list-style: none;
        display: flex;
        gap: 1px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .navbar a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        transition: 0.3s;
        padding: 8px 12px;
        border-radius: 6px;
    }

        .navbar a:hover {
            color: #000;
            background-color: #CDA746;
        }

.nav-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    width: 60px;
    height: auto;
    border-radius: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    display: flex;
}

    nav ul li a.active {
        font-weight: bold;
        color: gold;
    }

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

.language-switch {
    background: rgba(205, 167, 70, 0.2);
    border: 1px solid #CDA746;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .language-switch:hover {
        background: #CDA746;
        color: black;
    }

.currency-switch {
    background: rgba(205, 167, 70, 0.2);
    border: 1px solid #CDA746;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: all 0.3s ease;
    min-width: 50px;
}

    .currency-switch:hover {
        background: #CDA746;
        color: black;
    }


/* Hero */
.hero {
    position: relative;
    width: 100%;
    min-height: 99.8vh;
    height: max-content;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in oklab, #352335 50%, transparent);
}

.hero-video {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 100%;
    height: 110%;
    min-height: 99.8vh;
    object-fit: cover; /* Ensures the video fills the container */
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.6) sepia(0.9) hue-rotate(20deg) saturate(2.5) contrast(1.2);
}

video.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 91vh;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
    filter: brightness(0.7) contrast(1.2);
}

.hero-text {
    flex: 1;
    color: #fff;
    min-width: 380px;
    flex-direction: column;
}

    .hero-text h1 {
        color: #fff;
        margin-bottom: 20px;
        font-family: 'IBM Plex Sans Arabic';
        font-size: 22px;
        overflow: hidden;
        animation: typing 2s steps(20,end) 0.2s forwards;
    }

.hero-content {
    z-index: 1;
    text-align: center;
    color: white;
    position: relative;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    flex-wrap: wrap;
    flex-direction: column;
}

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }


    .hero-content p {
        font-size: 1.5rem;
    }

#typing-text::after {
    content: "|";
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.price-card {
    transition: all 0.3s ease;
    margin-top: 10px; /* Increased to accommodate larger coins */
    flex: 0 0 200px; /* أو أي عرض ثابت مناسب */
    width: 200px;
    box-sizing: border-box;
}

    .price-card:hover {
        transform: translateY(-10px);
    }

/* حركة Hover */
.floating-card:hover {
    transform: translateY(-5px);
}


/* Sections */
section {
    padding: 100px 20px 60px;
    text-align: center;
    overflow-x: auto !important;
}

/* features Cards */
.features-description {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #ccc;
    font-size: 18px;
    line-height: 1.8;
}

.features-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateZ(0px);
}

.feature-card {
    background: rgba(32, 32, 32, 0.8);
    border: 1px solid #CDA746;
    border-radius: 12px;
    padding: 20px;
    width: 200px;
    color: #CDA746;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    text-align: center;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 110px;
    align-content: center;
}

    .feature-card small {
        display: block;
        color: #ccc;
        margin-top: 5px;
        font-size: 14px;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    }

.iphone-mockup img {
    width: 250px;
    height: auto;
}

.app-image-container {
    position: relative;
    width: 300px;
    margin: 20px;
    transition: all 0.5s ease;
}

    .app-image-container img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .app-image-container:hover {
        transform: scale(1.1);
    }

.download-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: #CDA746;
    color: black;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(205, 167, 70, 0.3);
    gap: 7px;
}

    .download-button i {
        margin-right: 10px;
        font-size: 1.5rem;
    }

    .download-button:hover {
        background: #b99c28;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(205, 167, 70, 0.5);
    }


.service-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    width: 220px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease 0s, background 0.4s ease 0s, border-color 0.4s ease 0s;
}

    .card:hover {
        animation: backgroundPulse 1.2s ease forwards;
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
        transition-delay: 0.5s;
    }

@keyframes backgroundPulse {
    0% {
        background: color-mix(in oklab, #353235 30%, transparent);
    }

    50% {
        background: color-mix(in oklab, #353235 50%, transparent);
    }

    100% {
        background: color-mix(in oklab, #353235 70%, transparent);
    }
}



/* Posts Section */
.portfolio {
    padding: 100px 20px 60px;
    text-align: center;
}

.posts-container-wrapper {
    position: relative;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
    /* Hide scrollbar if desired */
    .posts-container-wrapper::-webkit-scrollbar {
        display: none;
    }

.posts-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

html[dir="rtl"] .posts-container {
    animation: scroll-rtl 20s linear infinite;
}

html[dir="ltr"] .posts-container {
    animation: scroll-ltr 20s linear infinite;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(50%);
    }
}

@keyframes scroll-ltr {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.post-card {
    min-width: 250px;
    height: 180px;
    background-color: rgba(32, 32, 32, 0.8);
    border: 1px solid #CDA746;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .post-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }

.post-title {
    font-size: 1.2rem;
    color: #CDA746;
    margin-bottom: 10px;
}

.post-date {
    font-size: 0.9rem;
    color: #ccc;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #222;
    border: 1px solid #CDA746;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 70vw;
    color: white;
    position: relative;
    text-align: center;
}

.modal-body {
    display: flex;
    gap: 10px;
}

.modal-image {
    max-height: 50vh;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
}

.modal-desc {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

    .modal-desc::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #CDA746;
    font-size: 1.5rem;
    cursor: pointer;
}

.gradient-separator {
    width: 80%;
    height: 4px;
    margin: 4rem auto;
    background: linear-gradient(to right, #d4af37, #ffffff00, #d4af37);
    border-radius: 2px;
    opacity: 0.8;
}

.gradient-separator-vertical {
    align-self: stretch;
    width: 4px;
    height: 80%;
    background: linear-gradient(to bottom, #d4af37, #ffffff00, #d4af37);
    border-radius: 2px;
    opacity: 0.8;
}

.cta-section {
    background: linear-gradient(135deg, #4f4f4f 0%, #1c1c20 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 50px auto;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    /* توزيع ظل مميز: خفيف فوق وقوي تحت مع امتداد جانبي ناعم */
    box-shadow: 0px 10px 20px rgba(212, 175, 55, 0.3), 0px 30px 40px rgba(255, 215, 0, 0.2), 0px 60px 80px rgba(212, 175, 55, 0.15);
}


.cta-content h2 {
    font-size: 32px;
    margin: 15px 0;
    color: white;
}

.cta-content p {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.price-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.price-card-box {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    min-width: 170px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease 0s, background 0.4s ease 0s, border-color 0.4s ease 0s;
    color: #ccc;
    text-align: center;
    font-size: 14px;
    padding: 1.3rem;
    padding-top: 1.6rem;
    border-radius: 1.5rem;
    margin-top: 1.9rem;
    display: block;
}

.price-card-circle-text {
    transform: translateZ(5px);
    text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 1rem;
    margin-bottom: 0.3rem;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.price-card-circle {
    position: absolute;
    display: flex;
    width: 55px;
    height: 55px;
    left: 50%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f4f4f 0%, #1c1c20 100%);
    transform-style: preserve-3d;
    z-index: 10;
    align-items: center;
    justify-content: center;
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.price-gold {
    border: 1px solid #CDA746;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.price-silver {
    border: 1px solid #bbb;
    box-shadow: 0 0 15px rgba(191, 193, 194, 0.4);
}

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

.price-gold:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.price-silver:hover {
    box-shadow: 0 0 15px rgba(191, 193, 194, 0.7);
}
/* Footer */
footer {
    background: #111;
    padding: 40px 20px;
    text-align: center;
    position: sticky;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(205, 167, 70, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CDA746;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: #CDA746;
        color: black;
        transform: translateY(-3px);
    }

.contact-email {
    color: #CDA746;
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    gap: 10px;
}

.copyright {
    color: #ccc;
    font-size: 0.9rem;
}

a {
    text-decoration: none;
    cursor: pointer;
}

*,
::before,
::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:;
    --tw-pan-y:;
    --tw-pinch-zoom:;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:;
    --tw-gradient-via-position:;
    --tw-gradient-to-position:;
    --tw-ordinal:;
    --tw-slashed-zero:;
    --tw-numeric-figure:;
    --tw-numeric-spacing:;
    --tw-numeric-fraction:;
    --tw-ring-inset:;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:;
    --tw-brightness:;
    --tw-contrast:;
    --tw-grayscale:;
    --tw-hue-rotate:;
    --tw-invert:;
    --tw-saturate:;
    --tw-sepia:;
    --tw-drop-shadow:;
    --tw-backdrop-blur:;
    --tw-backdrop-brightness:;
    --tw-backdrop-contrast:;
    --tw-backdrop-grayscale:;
    --tw-backdrop-hue-rotate:;
    --tw-backdrop-invert:;
    --tw-backdrop-opacity:;
    --tw-backdrop-saturate:;
    --tw-backdrop-sepia:;
    --tw-contain-size:;
    --tw-contain-layout:;
    --tw-contain-paint:;
    --tw-contain-style:
}

::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:;
    --tw-pan-y:;
    --tw-pinch-zoom:;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:;
    --tw-gradient-via-position:;
    --tw-gradient-to-position:;
    --tw-ordinal:;
    --tw-slashed-zero:;
    --tw-numeric-figure:;
    --tw-numeric-spacing:;
    --tw-numeric-fraction:;
    --tw-ring-inset:;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:;
    --tw-brightness:;
    --tw-contrast:;
    --tw-grayscale:;
    --tw-hue-rotate:;
    --tw-invert:;
    --tw-saturate:;
    --tw-sepia:;
    --tw-drop-shadow:;
    --tw-backdrop-blur:;
    --tw-backdrop-brightness:;
    --tw-backdrop-contrast:;
    --tw-backdrop-grayscale:;
    --tw-backdrop-hue-rotate:;
    --tw-backdrop-invert:;
    --tw-backdrop-opacity:;
    --tw-backdrop-saturate:;
    --tw-backdrop-sepia:;
    --tw-contain-size:;
    --tw-contain-layout:;
    --tw-contain-paint:;
    --tw-contain-style:
}

/* ! tailwindcss v3.4.16 | MIT License | https://tailwindcss.com */
*,
::after,
::before {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb
}

::after,
::before {
    --tw-content: ''
}

:host,
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent
}

.container {
    padding: 100px 40px 20px 40px;
    text-align: start;
}

.title {
    font-size: 1.8rem;
    font-weight: 500;
    max-width: max-content;
}

.last-update {
    font-size: 0.9rem;
    font-weight: 200;
    color: #ccc;
}

.section {
    padding: 10px;
}

    .section p {
        font-size: 1.2rem;
        color: #ccc;
    }

    .section ul {
        padding-inline: 25px;
        font-size: 1.1rem;
        color: #ccc;
    }

.inline-title {
    font-size: 1.3rem;
    font-weight: 400;
}

.image-container {
    position: relative;
    max-width: 300px;
    margin: 20px;
    transform: translateZ(80px);
    z-index: 8;
}

.image-back {
    width: 100%;
    display: block;
    position: relative;
    clip-path: inset(0 0 2px 0); /* cut 10px from the bottom */
    padding: 8px;
    border-radius: 44px;
    z-index: 2;
}

.image-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}
/* Tablet layout */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar {
        clip-path: none;
    }

    .nav-links {
        position: absolute;
        top: 75px;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(205, 167, 70, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 15px 20px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

        .nav-links.open {
            max-height: 250px; /* Adjust as needed */
            background: linear-gradient(135deg, #4f4f4f 0%, #1c1c20 100%);
        }

        .nav-links li {
            margin-bottom: 10px;
            width: -webkit-fill-available;
        }

            .nav-links li a {
                width: -webkit-fill-available;
            }

    .hero-content {
        padding: 0;
    }

        .hero-content h1 {
            font-size: 2rem;
        }

    .price-card {
        flex: 0 0 185px;
        width: 185px;
    }

    .posts-container {
        gap: 10px;
    }

    .post-card {
        min-width: 200px;
        height: 160px;
        padding: 15px;
    }

    .post-title {
        font-size: 1rem;
    }

    .modal-body {
        flex-direction: column-reverse;
    }

    .post-date {
        font-size: 0.8rem;
    }

    .gradient-separator-vertical {
        display: none;
    }

    .modal-image {
        max-width: 80vw;
        max-height: 30vh;
    }

    .modal-desc {
        display: flex;
        align-items: flex-start;
        max-height: 40vh;
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

        .modal-desc::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

    .mobile-none {
        display: none;
    }

    .hero-text {
        min-width: 50px;
    }

    .price-card-box {
        min-width: 35px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .card {
        width: 50vw; /* previously it was fixed or too wide */
        max-width: 350px;
    }

    .social-links {
        gap: 10px;
    }
}

/* Mobile layout */
@media (max-width: 430px) {

    .hero-content h1 {
        font-size: 6vw;
    }

    .price-grid {
        gap: 3vw;
        padding: 0;
    }

    .price-card {
        flex: 0 0 42vw;
        width: 42vw;
    }

    .price-card-circle {
        width: 10vw;
        height: 10vw;
        margin-top: 2.5vw;
    }

    .price-card-circle-text {
        font-size: 4vw;
        margin-bottom: 0;
    }

    .price-card-box {
        padding: 2vw;
        padding-top: 6vw;
        font-size: 3vw;
    }

    .karat-price {
        font-size: 5vw;
    }
}
