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

body {
    font-family: 'Poppins', sans-serif;
}




/* LANDING PAGE*/

.landing {
    background: url('./assets/woman-s-hand-is-holding-many-coins.jpg') no-repeat center center/cover;
    height: 100vh;
}

.overlay {
    background: linear-gradient(rgba(8, 40, 30, 0.75), rgba(4, 20, 15, 0.85));
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content {
    color: white;
    max-width: 700px;
}

.arabic {
    font-family: 'Amiri', serif;
    font-size: 26px;
    margin-bottom: 20px;
    color: #f5d76e;
}

h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.subtitle {
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: block;
    margin: 20px auto;
    padding: 12px 40px;
    background: linear-gradient(45deg, #c9a227, #f5d76e);
    color: #063a2d;
    font-weight: 600;
    font-size: medium;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 2.5px 2.5px 8px 2px rgba(250, 208, 57, 0.603);
    transition: all .3s ease;
}

.btn:hover {
    transform: translateY(-8px);
    box-shadow: 5px 5px 8px 2px rgba(250, 208, 57, 0.6);
}

/* STAR BACKGROUND  */

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
}

/* LOADER */

#pageLoader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #031f1a, #052e26);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #f5d76e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




/*  CALCULATOION PAGE */

.calculator-page {
    background: url('./assets/heap-chocolate-coins.jpg') no-repeat center center/cover;
    min-height: 100vh;
    padding: 20px 20px;
    color: white;
    position: relative;
}

.calculator-page .overlay {
    background: rgba(8, 40, 30, 0.75);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.5;
}

.container {
    height: 500px;
    max-width: 1000px;
    margin: 40px auto;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(17, 77, 58, 0.95), rgba(17, 77, 58, 0.85));
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(245, 215, 110, 0.15);
}

.form-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

input {
    padding: 10px;
    border-radius: 6px;
    border: none;
}

input:focus {
    outline: none;
    box-shadow: 0 0 10px rgb(255, 210, 47);
}

small {
    color: #f5d76e;
    font-size: 12px;
}

.liveRates {
    color: #f5d76e;
    margin-bottom: 15px;
}

.action-buttons button {
    margin: 10px 10px 20px 0;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: #f5d76e;
    color: #063a2d;
    font-weight: 600;
}

.history-item {
    background: #0d3b2e;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
}

/* MODAL  */

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

.modal-content {
    background: linear-gradient(135deg, #114d3a, #063a2d);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: white;
    box-shadow: 0 0 25px rgba(245, 215, 110, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h3 {
    color: #f5d76e;
    margin-bottom: 10px;
}

.modal-content button {
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    background: #f5d76e;
    color: #063a2d;
    font-weight: 600;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* NISAB STATUS  */

.nisab-box {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.above-nisab {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.below-nisab {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}




/* ABOUT MODAL */

.about-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    background: #f5d76e;
    color: #063a2d;
    font-size: medium;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 2.5px 2.5px 8px 2px rgba(250, 208, 57, 0.603);
    transition: all .3s ease;
}

.about-btn:hover {
    transform: translateY(-8px);
    box-shadow: 5px 5px 8px 2px rgba(250, 208, 57, 0.6);
}

.about-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.about-card {
    background: linear-gradient(135deg, #031f1a, #052e26);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 0 40px rgba(245, 215, 110, 0.25);
    animation: fadeIn 0.4s ease;
}

.about-card h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.about-card p {
    margin: 12px 0;
    line-height: 1.6;
}

.arabic-ayah {
    font-family: 'Amiri', serif;
    font-size: 24px;
    margin: 20px 0;
    color: #f5d76e;
}

.dev-credit span {
    color: #f5d76e;
    font-weight: 600;
}

.sadaqah {
    margin-top: 10px;
    font-size: 18px;
    opacity: 0.9;
}

.close-btn {
    margin-top: 25px;
    padding: 10px 30px;
    border-radius: 40px;
    border: none;
    background: #1abc9c;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(26, 188, 156, 0.5);
}




/* CAROUSEL */
.carousel {
    margin: 30px 0;
    min-height: 110px;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 22px;
    color: #f5d76e;
    margin-bottom: 10px;
}

.carousel p {
    font-size: 14px;
    opacity: 0.85;
}




/* Chrome, Edge, Safari */
.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    visibility: hidden;
}

.container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #f5d76e);
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(245, 215, 110, 0.4);
}

.container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5d76e, #d4af37);
}

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ================= MOBILE DEVICES (up to 480px) ================= */
@media (max-width: 480px) {

    h1 {
        font-size: 26px;
    }

    .arabic {
        font-size: 20px;
    }

    .arabic-text {
        font-size: 18px;
    }

    .subtitle {
        font-size: 14px;
    }

    .content {
        padding: 0 15px;
    }

    .btn,
    .about-btn {
        width: 70%;
        padding: 15px 20px;
        font-size: 16px;
    }

    .container {
        height: auto;
        max-height: 85vh;
        padding: 15px;
        margin: 20px 10px;
    }

    input {
        font-size: 14px;
    }

    .about-card {
        padding: 20px;
    }
}



/* ================= TABLET DEVICES (481px – 768px) ================= */
@media (min-width: 481px) and (max-width: 768px) {

    h1 {
        font-size: 34px;
    }

    .arabic {
        font-size: 22px;
    }

    .content {
        width: 90%;
    }

    .btn,
    .about-btn {
        padding: 10px 30px;
    }

    .container {
        height: auto;
        max-height: 85vh;
        padding: 20px;
        margin: 30px auto;
    }

    .about-card {
        padding: 30px;
    }
}



/* ================= SMALL LAPTOPS (769px – 1024px) ================= */
@media (min-width: 769px) and (max-width: 1024px) {

    h1 {
        font-size: 40px;
    }

    .container {
        height: auto;
        max-height: 85vh;
    }

    .content {
        width: 85%;
    }
}



/* ================= LARGE DESKTOPS (1025px and above) ================= */
@media (min-width: 1025px) {

    .content {
        max-width: 700px;
    }

    .container {
        max-width: 1000px;
    }
}