/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    background-color: rgb(64, 29, 85);
}

body, button, p, h2 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulseGlow 6s infinite alternate;
    background: transparent; /* page background removed */
}

/* Smooth animated background */
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(0, 255, 204, 0.2);
    }
    100% {
        box-shadow: 0 0 40px rgba(0, 255, 204, 0.25);
    }
}

/* Container to center widget */
.widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* GLASS CARD */
.glass-card {
    width: 320px;
    padding: 25px;
    border-radius: 20px;

    background: rgba(0, 0, 0, 0.15); /* subtle dark glass for contrast */
    backdrop-filter: blur(18px) saturate(160%);

    border: 1px solid rgba(0, 255, 204, 0.3); /* soft glowing border */
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(0, 255, 204, 0.25) inset;

    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeIn 1s ease;
}

/* Hover floating effect */
.glass-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 28px rgba(0, 255, 204, 0.5) inset;
}

/* Fade animation for the card */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Title */
.title {
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgb(15, 49, 77), rgb(6, 213, 250));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Quote text */
.quote-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: #00ffcc;
    line-height: 1.5;
    letter-spacing: 0.3px;
    min-height: 60px;

    opacity: 0;
    animation: fadeQuote 0.8s ease forwards;
}

/* Fade animation for each new quote */
@keyframes fadeQuote {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Button Style */
.new-quote-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;

    background: rgba(0, 255, 204, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.5);
    border-radius: 14px;
    color: #00ffcc;
    font-weight: 500;
    transition: 0.3s ease, transform 0.3s ease;
}

.new-quote-btn:hover {
    background: rgba(6, 213, 250, 0.3);
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(6, 213, 250, 0.4),
                0 0 8px rgba(0, 255, 204, 0.5) inset;
}

@media (max-width: 400px) {
    .glass-card { width: 90%; padding: 20px; }
    .title { font-size: 1.4rem; }
    .quote-text { font-size: 1.05rem; }
    .new-quote-btn { padding: 9px 18px; }
}

