.quote-section {
    animation: scale-in 0.8s ease-out 0.4s both;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quote-card {
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px var(--shadow-light), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.quote-text {
    font-size: clamp(1.3rem, 4vw, 2rem);
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 300;
    position: relative;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 2px 4px var(--shadow-light);
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 1.5em;
    color: var(--primary-color);
    opacity: 0.7;
    font-style: normal;
    font-weight: 400;
}

.quote-text.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    filter: blur(4px);
}

.quote-text.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

.quote-author {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-light);
    display: block;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 2rem;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 1px 2px var(--shadow-light);
}

.quote-author::before {
    content: "❖";
    color: var(--primary-color);
    margin-right: 8px;
}

.quote-author.fade-out {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
    filter: blur(2px);
}

.quote-author.fade-in {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
}

.quote-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.next-quote-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin: 0 auto;
    max-width: fit-content;
    transition: all 0.3s ease;
}

.next-quote-timer svg {
    animation: tick 2s ease-in-out infinite;
}

@keyframes tick {
    0%,
    100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
}

#countdown {
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .quote-card {
        padding: 2rem;
        border-radius: 20px;
    }

    .quote-meta {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quote-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .quote-icon {
        margin-bottom: 1rem;
    }

    .quote-text {
        margin-bottom: 1rem;
    }

    .quote-author {
        margin-bottom: 1.5rem;
    }

    .quote-meta {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
}