/* Base styles and CSS variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000105;
    --magenta: #f4049c;
    --white: #FFFFFF;
    --gray: #B0B0B0;
    --yellow: #FFD600;
    --cyan: #00BCD4;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="%23f4049c" d="M16 8c-4 0-8 2-8 6 0 2 1 4 2 5l-2 5 6-3c1 0 2 0 2 0 4 0 8-2 8-6s-4-7-8-7z"/></svg>'), auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--magenta);
    border-radius: 5px;
}

/* Common section styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--magenta);
}

/* Base animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Error Banner */
.error-banner {
    background-color: var(--magenta);
    color: var(--white);
    text-align: center;
    padding: 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Images */
picture {
    display: block;
    width: 100%;
}

picture img {
    width: 100%;
    height: auto;
}

.about-illustration-picture {
    max-width: 500px;
    margin: 0 auto;
}

.about-illustration {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(244, 4, 156, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-illustration:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(244, 4, 156, 0.4);
}

/* Performance optimization for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* WebP support detection fallback */
.no-webp picture source[type="image/webp"] {
    display: none;
}