/* ===========================================
   VIDYEXD Certificate Verification Portal
   Premium Luxury UI
=========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset */

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

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Poppins', sans-serif;

    background: #050816;

    color: #fff;

    overflow-x: hidden;

}

/* Scrollbar */

::-webkit-scrollbar {

    width: 8px;

}

::-webkit-scrollbar-track {

    background: #090d18;

}

::-webkit-scrollbar-thumb {

    background: linear-gradient(#FFD700, #d4af37);

    border-radius: 50px;

}

/* Background */

.background {

    position: fixed;

    inset: 0;

    overflow: hidden;

    z-index: -2;

    background:

        radial-gradient(circle at top left, #1d4ed8 0%, transparent 30%),

        radial-gradient(circle at bottom right, #FFD70033 0%, transparent 30%),

        #050816;

}

/* Floating Lights */

.background span {

    position: absolute;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    filter: blur(120px);

    opacity: .30;

}

.background span:nth-child(1) {

    background: #2563eb;

    top: -100px;

    left: -100px;

}

.background span:nth-child(2) {

    background: #FFD700;

    right: -100px;

    top: 120px;

}

.background span:nth-child(3) {

    background: #00d4ff;

    bottom: -120px;

    left: 25%;

}

.background span:nth-child(4) {

    background: #ffb703;

    bottom: 80px;

    right: 15%;

}

.background span:nth-child(5) {

    background: #3b82f6;

    top: 45%;

    left: 45%;

}

/* Loader */

#loader {

    position: fixed;

    inset: 0;

    background: #050816;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-direction: column;

    z-index: 9999;

}

.loader-circle {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    border: 5px solid rgba(255, 255, 255, .15);

    border-top: 5px solid gold;

    animation: spin 1s linear infinite;

}

#loader h2 {

    margin-top: 20px;

    letter-spacing: 8px;

    color: #FFD700;

}

/* Navbar */

nav {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    padding: 20px 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    backdrop-filter: blur(15px);

    background: rgba(255, 255, 255, .05);

    border-bottom: 1px solid rgba(255, 255, 255, .08);

    z-index: 999;

}

.logo {

    display: flex;

    align-items: center;

    gap: 10px;

}

.logo i {

    color: #FFD700;

    font-size: 28px;

}

.logo h2 {

    font-size: 28px;

    font-weight: 700;

    letter-spacing: 2px;

}

.home-btn {

    color: white;

    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, .15);

    padding: 12px 28px;

    border-radius: 50px;

    transition: .4s;

}

.home-btn:hover {

    background: #FFD700;

    color: #000;

}

/* Hero */

.hero {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 120px 8%;

}

.hero-content {

    width: 100%;

    max-width: 900px;

    text-align: center;

}

.hero h4 {

    color: #FFD700;

    margin-bottom: 20px;

    font-size: 18px;

}

.hero h1 {

    font-size: 68px;

    line-height: 1.1;

    margin-bottom: 20px;

}

.hero h1 span {

    background: linear-gradient(90deg, #FFD700, #fff);

    -webkit-background-clip: text;

    color: transparent;

}

.hero p {

    color: #bdbdbd;

    line-height: 1.8;

    font-size: 18px;

    max-width: 700px;

    margin: auto;

}

/* Search Box */

.search-box {

    margin-top: 50px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

}

.search-box input {

    width: 500px;

    max-width: 100%;

    padding: 18px 25px;

    border: none;

    outline: none;

    border-radius: 60px;

    background: rgba(255, 255, 255, .08);

    backdrop-filter: blur(15px);

    color: white;

    font-size: 16px;

    border: 1px solid rgba(255, 255, 255, .10);

}

.search-box input::placeholder {

    color: #aaa;

}

.search-box button {

    padding: 18px 35px;

    border: none;

    border-radius: 60px;

    background: linear-gradient(90deg, #FFD700, #f8c100);

    color: #000;

    cursor: pointer;

    font-weight: 700;

    transition: .35s;

}

.search-box button:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 40px rgba(255, 215, 0, .30);

}
/* Result Box Styles */
.result-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.result-box i {
    font-size: 60px;
    margin-bottom: 20px;
}

.student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    margin-bottom: 20px;
}

.result-box.valid i {
    color: #28a745;
    text-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.result-box.valid h2 {
    color: #28a745;
    margin-bottom: 30px;
}

.result-box.invalid i {
    color: #dc3545;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.result-box.invalid h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.details {
    text-align: left;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span {
    color: #aaa;
}

.detail-item strong {
    color: #fff;
    text-align: right;
}

/* Missing Stats & Features Styles */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.feature i {
    color: #FFD700;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 8%;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats .card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    min-width: 250px;
    flex: 1;
}

.stats .card h2 {
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 30px 8%;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h3 {
    color: #FFD700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 15px 5%;
    }
    .logo h2 {
        font-size: 22px;
    }
    .logo i, .logo img {
        font-size: 22px;
        height: 28px;
    }
    .home-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    .hero {
        padding: 100px 5%;
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero p {
        font-size: 15px;
    }
    .search-box input {
        width: 100%;
    }
    .search-box button {
        width: 100%;
    }
    .features {
        gap: 15px;
    }
    .stats {
        padding: 50px 5%;
    }
    .stats .card {
        min-width: 100%;
    }
    .result-box {
        padding: 25px;
    }
    .result-box i {
        font-size: 45px;
    }
    .result-box h2 {
        font-size: 20px;
    }
    .detail-item {
        flex-direction: column;
        text-align: center;
    }
    .detail-item strong {
        text-align: center;
        margin-top: 5px;
    }
}
