/* y2k/retro-futuristic theme with lavender and dark colors */
:root {
    --lavender: #c8a2c8;
    --dark-purple: #483d8b;
    --black: #121212;
    --cyber-blue: #00b4d8;
    --neon-pink: #ff00ff;
    --gray: #333333;
}

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

body {
    font-family: 'VT323', monospace;
    background-color: var(--black);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* header styles */
header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

h1.glitch {
    font-family: 'Press Start 2P', cursive;
    color: var(--lavender);
    font-size: 3rem;
    letter-spacing: 0.2rem;
    text-shadow: 
        2px 2px 0 var(--cyber-blue),
        -2px -2px 0 var(--neon-pink);
    position: relative;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--cyber-blue), 0 0 10px var(--cyber-blue);
    }
    to {
        text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--lavender);
    letter-spacing: 2px;
}

/* main content styles */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.upload-area {
    border: 3px dashed var(--lavender);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    background-color: rgba(72, 61, 139, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><rect x="8" y="8" width="4" height="4" fill="%23c8a2c8" opacity="0.1" /><rect x="16" y="8" width="4" height="4" fill="%23c8a2c8" opacity="0.1" /><rect x="24" y="8" width="4" height="4" fill="%23c8a2c8" opacity="0.1" /><rect x="8" y="16" width="4" height="4" fill="%2300b4d8" opacity="0.1" /><rect x="16" y="16" width="4" height="4" fill="%2300b4d8" opacity="0.1" /><rect x="24" y="16" width="4" height="4" fill="%2300b4d8" opacity="0.1" /><rect x="8" y="24" width="4" height="4" fill="%23c8a2c8" opacity="0.1" /><rect x="16" y="24" width="4" height="4" fill="%23c8a2c8" opacity="0.1" /><rect x="24" y="24" width="4" height="4" fill="%23c8a2c8" opacity="0.1" /></svg>');
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.upload-area:hover {
    background-color: rgba(72, 61, 139, 0.5);
    transform: scale(1.02);
}

.upload-area p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.custom-button {
    display: inline-block;
    background-color: var(--lavender);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.custom-button:hover {
    background-color: var(--dark-purple);
    color: white;
    border-color: var(--lavender);
}

.preview-section {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.preview-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 3px solid var(--lavender);
}

#remove-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(72, 61, 139, 0.8);
    color: var(--lavender);
    border: 1px solid var(--lavender);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#remove-button:hover {
    background-color: var(--dark-purple);
    box-shadow: 0 0 8px var(--lavender);
}

.feedback-section {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.glow-button {
    background: linear-gradient(45deg, var(--dark-purple), var(--lavender));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    align-self: center;
    box-shadow: 0 0 10px var(--lavender);
}

.glow-button:disabled {
    opacity: 0.8;
    cursor: wait;
    background: linear-gradient(45deg, #555, #777);
    position: relative;
}

.glow-button:disabled::after {
    content: '';
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 30" width="24" height="30"><path d="M12 0 L18 5 L18 13 L12 18 L6 13 L6 5 Z" fill="none" stroke="%23c8a2c8" stroke-width="1" /><path d="M12 30 L18 25 L18 17 L12 12 L6 17 L6 25 Z" fill="none" stroke="%23c8a2c8" stroke-width="1" /><path d="M12 18 L12 12" stroke="%23c8a2c8" stroke-width="1" stroke-dasharray="2,1" /><path d="M9 26 L9 21 L15 16 L15 9" fill="none" stroke="%23ff00ff" stroke-width="1" /><circle cx="9" cy="28" r="1" fill="%23ff00ff" /><circle cx="15" cy="7" r="1" fill="%23ff00ff" /></svg>');
    background-repeat: no-repeat;
    animation: pour 1.5s ease-in-out infinite;
}

@keyframes pour {
    0% { 
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 30" width="24" height="30"><path d="M12 0 L18 5 L18 13 L12 18 L6 13 L6 5 Z" fill="%23c8a2c8" fill-opacity="0.8" stroke="%23c8a2c8" stroke-width="1" /><path d="M12 30 L18 25 L18 17 L12 12 L6 17 L6 25 Z" fill="none" stroke="%23c8a2c8" stroke-width="1" /><circle cx="15" cy="7" r="1" fill="%23ff00ff" /></svg>');
    }
    50% { 
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 30" width="24" height="30"><path d="M12 0 L18 5 L18 13 L12 18 L6 13 L6 5 Z" fill="none" stroke="%23c8a2c8" stroke-width="1" /><path d="M12 30 L18 25 L18 17 L12 12 L6 17 L6 25 Z" fill="%23c8a2c8" fill-opacity="0.4" stroke="%23c8a2c8" stroke-width="1" /><circle cx="12" cy="15" r="1" fill="%23ff00ff" /></svg>');
    }
    100% { 
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 30" width="24" height="30"><path d="M12 0 L18 5 L18 13 L12 18 L6 13 L6 5 Z" fill="none" stroke="%23c8a2c8" stroke-width="1" /><path d="M12 30 L18 25 L18 17 L12 12 L6 17 L6 25 Z" fill="%23c8a2c8" fill-opacity="0.8" stroke="%23c8a2c8" stroke-width="1" /><circle cx="9" cy="23" r="1" fill="%23ff00ff" /></svg>');
    }
}

@keyframes pulsate {
    from {
        box-shadow: 0 0 10px var(--lavender);
    }
    to {
        box-shadow: 0 0 20px var(--neon-pink);
    }
}

.glow-button:hover {
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-3px);
}

.result-section {
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
}

.result-card {
    background-color: rgba(72, 61, 139, 0.3);
    border: 2px solid var(--lavender);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(200, 162, 200, 0.3);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M0 0 L40 0 L40 40 L0 40 Z" stroke="%23483d8b" stroke-width="1" fill="none" opacity="0.1"/><path d="M10 10 L30 10" stroke="%23c8a2c8" stroke-width="1" opacity="0.1"/><path d="M10 20 L30 20" stroke="%23c8a2c8" stroke-width="1" opacity="0.1"/><path d="M10 30 L30 30" stroke="%23c8a2c8" stroke-width="1" opacity="0.1"/><path d="M5 0 L5 40" stroke="%23ff00ff" stroke-width="1" opacity="0.08"/><path d="M35 0 L35 40" stroke="%23ff00ff" stroke-width="1" opacity="0.08"/></svg>');
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.result-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neon-pink);
}

#roast-text {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* footer styles */
footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 1rem;
    color: var(--lavender);
    opacity: 0.7;
}

footer .about-link {
    margin-top: 0.8rem;
    font-size: 1.2rem;
}

footer a {
    background: linear-gradient(45deg, var(--dark-purple), var(--lavender));
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 30px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px var(--lavender);
    display: inline-block;
}

footer a:hover {
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-3px);
}
/* Error message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(25, 25, 35, 0.95);
    border: 2px solid var(--neon-pink);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    z-index: 100;
    text-align: center;
    max-width: 90%;
    width: 320px;
    animation: glitchIn 0.3s forwards;
}

.error-message h3 {
    color: var(--neon-pink);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.error-message p {
    color: var(--lavender);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.error-message .close-button {
    background: linear-gradient(45deg, var(--dark-purple), var(--lavender));
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.error-message .close-button:hover {
    box-shadow: 0 0 10px var(--neon-pink);
    transform: translateY(-2px);
}

.error-message::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--neon-pink), transparent);
    opacity: 0.5;
}

.error-message::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--neon-pink), transparent);
    opacity: 0.5;
}

@keyframes glitchIn {
    0% {
        clip-path: inset(0 100% 0 0);
        transform: translate(-50%, -50%) scale(0.9);
    }
    30% {
        clip-path: inset(0 70% 0 0);
    }
    50% {
        clip-path: inset(0 40% 0 0);
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes glitchOut {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%) scale(1);
    }
    30% {
        clip-path: inset(0 0 0 30%);
    }
    60% {
        clip-path: inset(0 0 0 60%);
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        clip-path: inset(0 0 0 100%);
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.error-out {
    animation: glitchOut 0.3s forwards;
}

/* utility classes */
.hidden {
    display: none;
}

/* About page styles */
.about-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 1rem 0;
}

.about-card {
    background-color: rgba(72, 61, 139, 0.3);
    border: 2px solid var(--lavender);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 0 20px rgba(200, 162, 200, 0.2);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><path d="M0 0 L50 0 L50 50 L0 50 Z" stroke="%23483d8b" stroke-width="1" fill="none" opacity="0.1"/><path d="M25 0 L25 50" stroke="%23c8a2c8" stroke-width="1" opacity="0.08"/><path d="M0 25 L50 25" stroke="%23c8a2c8" stroke-width="1" opacity="0.08"/><circle cx="25" cy="25" r="10" stroke="%23ff00ff" stroke-width="1" fill="none" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(200, 162, 200, 0.3);
    padding-bottom: 1.5rem;
}

.pixel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-color: rgba(0, 180, 216, 0.2);
    border: 2px solid var(--lavender);
    margin-right: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pixel-avatar-inner {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><rect x="16" y="16" width="32" height="32" fill="%23c8a2c8" opacity="0.5"/><rect x="24" y="24" width="16" height="16" fill="%23483d8b" opacity="0.7"/><rect x="28" y="20" width="8" height="4" fill="%23ff00ff" opacity="0.7"/><rect x="20" y="28" width="4" height="8" fill="%23483d8b" opacity="0.8"/><rect x="40" y="28" width="4" height="8" fill="%23483d8b" opacity="0.8"/></svg>');
    background-position: center;
    background-size: cover;
    position: relative;
}

.about-title h2 {
    font-size: 1.8rem;
    color: var(--lavender);
    margin-bottom: 0.3rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--cyber-blue);
    opacity: 0.8;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.connect-text {
    font-size: 1.1rem;
    color: var(--lavender);
    text-align: center;
    margin-top: 2.5rem;
}

.highlight {
    color: var(--neon-pink);
    font-weight: bold;
    position: relative;
}

.highlight::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--neon-pink), transparent);
}

.tech-stack {
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--neon-pink);
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.tech-stack h3 {
    color: var(--lavender);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: normal;
}

.tech-stack ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    gap: 1rem;
    padding-left: 0.5rem;
}

.tech-stack li {
    background-color: rgba(72, 61, 139, 0.5);
    color: var(--lavender);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    position: relative;
}

.tech-stack li::before {
    content: "▹";
    color: var(--neon-pink);
    margin-right: 5px;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.nav-button, .social-button {
    background: linear-gradient(45deg, var(--dark-purple), var(--lavender));
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(200, 162, 200, 0.3);
    position: relative;
    overflow: hidden;
}

.social-button {
    background: linear-gradient(45deg, #0077b5, #00a0dc);
}

.nav-button:hover, .social-button:hover {
    box-shadow: 0 0 15px var(--neon-pink);
    transform: translateY(-3px);
}

.social-button:hover {
    box-shadow: 0 0 15px #00a0dc;
}

.nav-button::before, .social-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.nav-button:hover::before, .social-button:hover::before {
    left: 100%;
}

/* responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1.glitch {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .custom-button {
        padding: 0.6rem 1.2rem;
    }
    
    .glow-button {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .result-card h2 {
        font-size: 1.3rem;
    }
    
    #roast-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    h1.glitch {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .upload-area p {
        font-size: 1rem;
    }
    
    .custom-button {
        font-size: 1rem;
    }
    
    .result-card h2 {
        font-size: 1.2rem;
    }
    
    #roast-text {
        font-size: 1rem;
    }
    
    footer {
        font-size: 0.8rem;
    }
    
    /* About page responsive styles */
    .about-card {
        padding: 1rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .tech-stack h3 {
        font-size: 1.1rem;
    }
    
    .tech-stack li {
        font-size: 0.8rem;
        padding: 0.2rem 0.8rem;
    }
    
    .nav-button, .social-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .about-header {
        flex-direction: column;
        text-align: center;
    }
    
    .pixel-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .about-title h2 {
        font-size: 1.5rem;
    }
}