@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Oswald:wght@200..700&family=Outfit:wght@100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poly:ital@0;1&display=swap');

:root {

    /* Islamic Theme Colors - Light Mode */
    --primary-green: #16A085;
    --primary-gold: #D4AF37;
    --primary-black: #1a1a1a;
    --accent-green: #0D9488;
    --accent-gold: #F4C430;

    --primary-text-color: #1a1a1a;
    --bg-color: #F8F9FA;

    --btn-color: #ffffff;
    /* button color*/
    --btn-bg: #16A085;
    /* button bg color - Islamic Green */


    --header-link-hover: #16A085;
    --header-link-hover-bg: #16a08520;

    --input-hover-bd-color: #16A085;

    --dropdown-bg: #f8f9fa;
    --dropdown-hover-bg: #16a08515;

    --faq-h-text: #1a1a1a;
    --faq-content-text: #2d2d2d;

    --hr-color: #D4AF37;

    --footer-link: #2d2d2d;
    --footer-link-hover: #16A085;

    --header-bg: #f8f9faee;
    /* color: #312f2f; */
    --hero-gradient: #F8F9FA;
    --hero-bg-img: url("../assets/images/background/dots-dark.svg");

}

.tw-dark {
    /* Islamic Theme Colors - Dark Mode */
    --primary-green: #0D7C66;
    --primary-gold: #FFD700;
    --primary-black: #0a0a0a;
    --accent-green: #14B8A6;
    --accent-gold: #FDB813;

    --primary-text-color: #F8F9FA;
    --bg-color: #0a0a0a;

    --btn-color: #0a0a0a;
    /* button color*/
    --btn-bg: #FFD700;
    /* button bg color - Islamic Gold */

    --header-link-hover: #FFD700;
    --header-link-hover-bg: #ffd70020;

    --input-hover-bd-color: #FFD700;

    --dropdown-bg: #1a1a1a;
    --dropdown-hover-bg: #0d7c6625;

    --faq-h-text: #F8F9FA;
    --faq-content-text: #e5e5e5;

    --hr-color: #0D7C66;

    --footer-link: #d4d4d4;
    --footer-link-hover: #FFD700;

    --header-bg: #0a0a0aee;

    --hero-gradient: #0a0a0a;
    --hero-bg-img: url("../assets/images/background/dots.svg");

}


html {
    scroll-behavior: smooth;
    font-family: "Outfit", sans-serif;
}

body.modal-open {
    overflow: hidden;
}

header>.collapsible-header {
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

hr {
    border-color: var(--hr-color);
    border-style: solid;
}

.animated-collapse {
    transition: width 0.3s ease;
}


.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2;
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    /* color: var(--header-link-hover); */
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

.header-links:hover {
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.hero-section {
    background-image: var(--hero-bg-img);
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
}

.hero-bg-gradient {
    /* background: linear-gradient(180deg, var(--hero-gradient) 13%, rgba(0,0,0,0.258140756302521) 87%); */
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(0, 0, 0, 0) 87%, var(--hero-gradient) 97%);
}


.gradient-text {
    background: rgb(215, 215, 215);
    background: linear-gradient(90deg, rgba(215, 215, 215, 1) 18%, rgba(136, 136, 136, 1) 71%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.purple-bg-grad {
    background: rgb(13, 124, 102);
    background: linear-gradient(90deg, #0D7C6691 8%, #16A085ae 31%, #D4AF37bc 76%, #FFD700ca 89%);
    filter: blur(50px);
    opacity: 0.5;
}

#dashboard {
    /* Removed 3D perspective transform that caused severe tilt */
    /* Original: transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8) rotate(0deg) rotateX(70deg); */
    transform: scale(0.95) translateY(10px);
    transition: transform 0.5s ease;
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-100 {
    opacity: 100 !important;
}

.btn {
    padding: 10px 15px;
    width: max-content;
    border-radius: 10px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

/* .btn:hover{

} */

.btn:disabled {
    cursor: default;
}

.input {
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active,
.input:focus,
.input:focus-within {
    border: 1px solid var(--input-hover-bd-color) !important;
}

/* ------------------- scrollbar ------------- */
.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
    /* background: #f7f4ed; */
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}


/* ---------------- dropdown --------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
    /* background-color: #000; */
    /* border: 1px solid #ccc; */
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* -------------- carousel ------------------*/
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
}

.carousel {
    display: inline-block;
    animation: scroll 10s linear infinite;
}

.carousel-img {
    display: inline-block;
    margin: 0 20px;
}

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

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


/* ------ animated border ------- */

.animated-border {
    position: relative;
    overflow: visible;
}


.animated-border::after {
    content: '';
    position: absolute;
    top: 0px;
    left: -100%;
    width: 30%;
    height: 100%;
    border-radius: inherit;
    /* background: linear-gradient(#16A085 23%, rgba(22,160,133,0) 87%); */
    background-color: #16A085;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #16A085;
    /* transform: rotate(90deg); */
    z-index: -2;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;

}

.animated-border::before {
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide {
    0% {
        left: -100%;
        /* Start completely outside the left edge */
        right: 100%;
        /* End completely outside the right edge */
    }

    100% {
        left: 100%;
        /* Move completely outside the right edge */
        right: -100%;
        /* End completely outside the left edge */
    }
}

.footer-link {
    width: -moz-fit-content;
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--footer-link-hover);
}


/* Style for the collapsible content such as faq commonly known as: accordion */

.faq-accordion {
    background-color: inherit;
    color: var(--faq-h-text);
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: var(--faq-content-text);
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}


@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0px;
        flex-direction: column;
        opacity: 0;
        height: 0vh;
        min-height: 0vh;
        /* height: 100dvh; */
        width: 100vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: center;
        text-align: center;
        background-color: var(--header-bg);
        /* color: #373636; */
        overflow-y: auto;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0px 2px 3px 2px #9f9f9f7c;
    }

    /* .header-links{
        color: var(--he);
    } */

}

/* Interactive Bubble Mesh - REMOVED for performance */
/* Replaced with CSS-only gradient animations */

/* Premium Loading Animation - Pulsing Wave Effect */

/* Animated gradient background */
.loading-gradient-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(22, 160, 133, 0.1) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Pulsing wave dots */
.loading-wave-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A085 0%, #0D7C66 100%);
    animation: pulseWave 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(22, 160, 133, 0.5);
}

.dark .loading-wave-dot {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.loading-wave-dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-wave-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-wave-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.loading-wave-dot:nth-child(4) {
    animation-delay: 0.45s;
}

/* Pulsing wave animation with morphing */
@keyframes pulseWave {

    0%,
    100% {
        transform: scale(0.6) translateY(0);
        opacity: 0.4;
    }

    25% {
        transform: scale(1.2) translateY(-8px);
        opacity: 1;
    }

    50% {
        transform: scale(0.8) translateY(0);
        opacity: 0.6;
    }

    75% {
        transform: scale(1.1) translateY(-4px);
        opacity: 0.8;
    }
}

/* Alternative: Breathing dots (uncomment to use) */
@keyframes breathe {

    0%,
    100% {
        transform: scale(0.7);
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(22, 160, 133, 0.3);
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 20px rgba(22, 160, 133, 0.8);
    }
}

/* Alternative: Ripple effect (uncomment to use) */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(22, 160, 133, 0.7);
    }

    50% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(22, 160, 133, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(22, 160, 133, 0);
    }
}

/* Fade in animation for messages */
.tw-animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}