:root {
    /* Catppuccin Macchiato color palette */
    --base: #24273a;
    --mantle: #1e2030;
    --crust: #181926;
    --text: #cad3f5;
    --subtext: #b8c0e0;
    --surface1: #363a4f;
    --pink: #f5bde6;
    --mauve: #c6a0f6;
    --red: #ed8796;
    --maroon: #ee99a0;
    --peach: #f5a97f;
    --yellow: #eed49f;
    --green: #a6da95;
    --teal: #8bd5ca;
    --sky: #91d7e3;
    --sapphire: #7dc4e4;
    --blue: #8aadf4;
    --lavender: #b7bdf8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--base);
    color: var(--text);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.quote-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.quote-frame {
    background-color: var(--surface1);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.quote-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--pink), 
        var(--mauve), 
        var(--red), 
        var(--peach), 
        var(--yellow), 
        var(--green), 
        var(--teal), 
        var(--sky), 
        var(--sapphire), 
        var(--blue), 
        var(--lavender));
    animation: gradient-shift 15s linear infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.quote {
    font-size: 1.8rem;
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote::before {
    content: """;
    font-size: 6rem;
    font-family: Georgia, serif;
    position: absolute;
    top: -3rem;
    left: -1rem;
    color: var(--mauve);
    opacity: 0.2;
}

.quote::after {
    content: """;
    font-size: 6rem;
    font-family: Georgia, serif;
    position: absolute;
    bottom: -6rem;
    right: -1rem;
    color: var(--mauve);
    opacity: 0.2;
}

.quote p {
    position: relative;
    z-index: 1;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

.fade-out {
    animation: fadeOut 1.5s ease-out;
    opacity: 0;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .quote-frame {
        padding: 2rem;
    }
    
    .quote {
        font-size: 1.4rem;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .quote-frame {
        padding: 1.5rem;
    }
    
    .quote {
        font-size: 1.2rem;
        min-height: 120px;
    }
}