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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -3;
}

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

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 15%;
    animation: float 25s ease-in-out infinite reverse;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation: float 30s ease-in-out infinite;
}

.circle-4 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation: float 18s ease-in-out infinite reverse;
}

.container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    z-index: 10;
    position: relative;
}

.quote-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    animation: slideInUp 1s ease-out;
    margin-bottom: 2rem;
}

.quote-decoration-top,
.quote-decoration-bottom {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    position: relative;
    animation: shimmer 3s ease-in-out infinite;
}

.ornament::before,
.ornament::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    top: -3px;
}

.ornament::before {
    left: -10px;
}

.ornament::after {
    right: -10px;
}

.quote-content {
    position: relative;
    margin: 2rem 0;
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(102, 126, 234, 0.3);
    position: absolute;
    line-height: 1;
    pointer-events: none;
}

.quote-mark.opening {
    top: -2rem;
    left: -1rem;
    animation: fadeInLeft 1s ease-out 0.5s both;
}

.quote-mark.closing {
    bottom: -4rem;
    right: -1rem;
    animation: fadeInRight 1s ease-out 0.7s both;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.4;
    color: #2d3748;
    font-weight: 400;
    font-style: italic;
    margin: 0;
    padding: 0 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
    transition: opacity 0.3s ease;
}

.author-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 1rem;
}

.author-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #718096, transparent);
    animation: expandLine 1s ease-out 0.9s both;
}

.quote-author {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.5px;
    animation: fadeIn 1s ease-out 1.1s both;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: slideInUp 1s ease-out 0.5s both;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.sparkle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: sparkle 4s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.sparkle-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 2s;
}

.sparkle-4 {
    bottom: 35%;
    right: 15%;
    animation-delay: 3s;
}

.sparkle-5 {
    top: 60%;
    left: 50%;
    animation-delay: 1.5s;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 40px;
        opacity: 1;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .quote-wrapper {
        padding: 3rem 2rem;
        border-radius: 20px;
    }

    .quote-text {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .quote-mark {
        font-size: 4rem;
    }

    .quote-mark.opening {
        top: -1rem;
        left: -0.5rem;
    }

    .quote-mark.closing {
        bottom: -3rem;
        right: -0.5rem;
    }

    .quote-author {
        font-size: 1.1rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 200px;
        justify-content: center;
    }

    .floating-circle {
        opacity: 0.5;
    }

    .circle-1 {
        width: 120px;
        height: 120px;
    }

    .circle-2 {
        width: 100px;
        height: 100px;
    }

    .circle-3 {
        width: 80px;
        height: 80px;
    }

    .circle-4 {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .quote-wrapper {
        padding: 2.5rem 1.5rem;
    }

    .quote-text {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .quote-mark {
        font-size: 3rem;
    }

    .quote-author {
        font-size: 1rem;
    }

    .author-line {
        width: 30px;
    }

    .ornament {
        width: 40px;
    }

    .sparkle {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .quote-wrapper {
        padding: 2rem 1rem;
    }

    .quote-text {
        font-size: 1.3rem;
    }

    .quote-mark.opening {
        left: 0;
    }

    .quote-mark.closing {
        right: 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .quote-wrapper {
        background: rgba(26, 32, 44, 0.95);
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .quote-text {
        color: #e2e8f0;
    }

    .quote-author {
        color: #cbd5e0;
    }

    .btn-secondary {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
        border: 1px solid rgba(102, 126, 234, 0.3);
    }

    .btn-secondary:hover {
        background: rgba(45, 55, 72, 1);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .quote-wrapper {
        background: rgba(255, 255, 255, 1);
        border: 2px solid #000;
    }

    .quote-text {
        color: #000;
    }

    .quote-author {
        color: #000;
    }

    .quote-mark {
        color: rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background-gradient {
        animation: none;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .floating-circle {
        animation: none;
    }

    .sparkle {
        display: none;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .background-gradient,
    .floating-elements,
    .sparkles,
    .action-buttons {
        display: none;
    }

    .quote-wrapper {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .quote-text {
        color: black;
    }

    .quote-author {
        color: black;
    }
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Loading state */
.quote-text.loading,
.quote-author.loading {
    opacity: 0.5;
    animation: pulse 1s ease-in-out infinite;
}

/* Hover effects for quote wrapper */
.quote-wrapper:hover {
    transform: translateY(-2px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Custom scrollbar for overflow content */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}




/*
 * Styles for the promotional banner
 */
.promo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(30, 35, 60, 0.85), rgba(50, 35, 70, 0.85));
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(102, 126, 234, 0.25);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.7rem;
    transition: transform 0.3s ease-in-out;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.promo-content a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3em 0.8em;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.promo-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.close-promo-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: color 0.2s ease;
}

.close-promo-btn:hover {
    color: #fff;
}
