@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

:root {
    --background-gradient: radial-gradient(1200px 600px at 10% -10%, rgba(109, 74, 255, .10), transparent 60%), radial-gradient(1000px 600px at 110% 10%, rgba(34, 211, 238, .08), transparent 50%), linear-gradient(180deg, #faf7ff, #f4f1ff 45%, #efeaff);
    --heading-color: #000c21;
    --description-color: #555555;
    --description-color2: #9f9f9f;
    --dark-bg: #030713;
    --primary: #0a65ff;
    --primary-light: rgba(10, 101, 255, 0.1);
    --card-bg: #ffffff;
    --color-accent: #0a65ff;
    --color-accent-2: #6889ff;
}

*,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-gradient);
    color: var(--heading-color);
    font-family: 'Google Sans', sans-serif;
    min-height: 100vh;
}

.text-gradient {
    background: linear-gradient(270deg, #ec70ff, #5c27e3, #ff00b7, #ec70ff);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.donate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6D4AFF, #22d3ee);
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(109, 74, 255, 0.25);
    transition: all 500ms ease-in-out;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(109, 74, 255, 0.35);
    filter: brightness(1.05);
}

.donate-btn i {
    font-size: 14px;
}

.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px rgba(122, 122, 122, 0.15) solid;
    width: 100%;
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header .header-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    letter-spacing: -2px;
    display: block;
    font-weight: 700;
    background: linear-gradient(30deg, #ff00b7, #0a65ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header .nav {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.header .nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header .nav a:hover {
    color: var(--primary);
}

*>.hero {
    z-index: 2;
}

.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    padding: 120px 20px 60px 20px;
    overflow: hidden;
    text-align: center;
    background-image: url(../image/bg.webp);
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            white 100%);

    z-index: 1;
    pointer-events: none;
}

.hero .hero-content {
    position: relative;
    z-index: 3;
}

.hero .hero-content .top {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    background-color: #ffd644;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
}

.hero .hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
    max-width: 800px;
}

.hero .hero-content p {
    font-size: 18px;
    color: var(--description-color);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero .hero-content .box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero .hero-content .input-box {
    background: white;
    top: 4;
    padding: 30px;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    /* box-shadow: rgba(149, 157, 165, 0.1) 0px 8px 24px; */
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(10, 101, 255, 0.1);
    align-items: center;
    display: flex;
    position: relative;
    margin: 0 auto;
    justify-content: center;
    border-top: 2px solid var(--primary);
}

.hero .hero-content input[type=file] {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    width: 100%;
}

.hero .hero-content input::file-selector-button {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.2s ease-in-out;
}

.hero .hero-content input::file-selector-button:hover {
    background-color: transparent;
    color: var(--primary);
}

.penjelasan {
    padding: 80px 8%;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.penjelasan .jelaskan h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.penjelasan .jelaskan h2::after {
    position: absolute;
    content: '';
    width: 50px;
    height: 2px;
    bottom: -135px;
    background-color: var(--primary);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:nth-child(2) {
    border-left: 2px solid rgb(231, 231, 231);
    border-right: 2px solid rgb(231, 231, 231);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #111;
}

.feature-card p {
    font-size: 14px;
    color: var(--description-color);
    line-height: 1.6;
}

.preview-container {
    padding: 80px 8%;
    position: relative;
    display: block;
    /* background-color: white; */
}

/* .preview-container::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            white 100%);
    z-index: 4;
    pointer-events: none;
} */

.preview-title {
    text-align: center;
    margin-bottom: 40px;
}

.preview-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
}

.preview-title h2::after {
    position: absolute;
    content: '';
    width: 50px;
    height: 2px;
    bottom: -15px;
    background-color: var(--primary);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.font-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border-left: 5px solid var(--primary);
    transition: transform 0.2s ease;
}

.font-card:hover {
    transform: translateY(-2px);
}

.font-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.success,
.alert {
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    position: fixed;
    width: 80%;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 90px;
}

.alert {
    background-color: red;
}

.success {
    background-color: rgb(0, 210, 0);
}

.hide {
    animation: disappear .35s ease forwards;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes disappear {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(.9);
    }
}

/* 
.footer {
    text-align: center;
    padding: 20px;
    color: #111;
    font-size: 14px;
    background-color: #f2f2f2;
    margin-top: 40px;
} */

footer {
    background-color: var(--dark-bg);
    padding: 100px 120px 40px;
    /* border-top: 1px solid #1a2342; */
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #0d1a2d 30%, rgba(13, 26, 45, 0.655) 100%, transparent 100%), url('../image/bini.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

footer::after {
    content: "";
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100px;

    background: linear-gradient(to bottom,
            #efeaff 0%,
            rgba(239, 234, 255, .8) 30%,
            rgba(239, 234, 255, .3) 60%,
            transparent 100%);

    z-index: 1;
    pointer-events: none;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 40px;
    background: rgba(109, 74, 255, .18);
    filter: blur(35px);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid #1a2342;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-brand h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    font-family: 'Montserrat', sans-serif;
    color: var(--description-color2);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-link-item h3 {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-link-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item ul li {
    margin-bottom: 15px;
}

.footer-link-item ul li a {
    font-family: 'Montserrat', sans-serif;
    color: var(--description-color2);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-link-item ul li a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-family: 'Montserrat', sans-serif;
    color: var(--description-color);
    font-size: 14px;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--description-color);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: scale(1.1) translateY(-3px);
}

@media (max-width: 991px) {
    footer {
        padding: 80px 40px 40px 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
        flex-direction: column;
    }
}