/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('injured-wizard.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optimize image loading */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: background-image;
}

/* Loading state for background image */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: -1;
}

.hero.loaded::after {
    opacity: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="20" cy="15" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="15" cy="22" r="0.8" fill="rgba(255,255,255,0.4)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-25px) translateY(-25px); }
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ffd700,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
    animation: lightningGlow 2s ease-in-out infinite alternate;
}

.logo::before,
.logo::after {
    content: '⚡';
    position: absolute;
    font-size: 2rem;
    color: #ffd700;
    animation: lightningBolt 1.5s ease-in-out infinite;
    text-shadow: 0 0 15px #ffd700;
}

.logo::before {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0s;
}

.logo::after {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0.75s;
}

@keyframes lightningGlow {
    0% {
        text-shadow: 
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 30px #ffd700,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow: 
            0 0 20px #ffd700,
            0 0 30px #ffd700,
            0 0 40px #ffd700,
            0 0 50px #ffd700,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

@keyframes lightningBolt {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Main content sections */
main {
    background: white;
}

section {
    padding: 80px 0;
}

.about {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.about p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
}


/* Contact section */
.contact {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: left;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-size: contain;
        min-height: 80vh;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .logo::before,
    .logo::after {
        font-size: 1.5rem;
    }
    
    .logo::before {
        left: -40px;
    }
    
    .logo::after {
        right: -40px;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact-info p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
        min-height: 70vh;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo::before,
    .logo::after {
        font-size: 1.2rem;
    }
    
    .logo::before {
        left: -30px;
    }
    
    .logo::after {
        right: -30px;
    }
    
    section {
        padding: 40px 0;
    }
}