:root {
    --primary: #111dcb;
    --secondary: #0adce4;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #333;
    --bg-gradient: linear-gradient(135deg, #979ce0 10%, #0f71e2 55%, #d4a711 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed; 
    background-size: cover; 
    color: var(--text);
    line-height: 1.8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
}

img {
    display: block;
    margin: 0 auto;
}

.page-title {
    margin: 0;
    color: var(--primary);
    font-size: 2.5rem;
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.page-title:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    transform: scale(1.1);
}

.page-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background: var(--secondary);
    margin: 0.5rem auto 0;
    border-radius: 3px;
}

h3 {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: black;
    font-size: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8); 
    border-radius: 5px;
}

a {
    text-decoration: none;
    background: none;
}

a:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

footer {
    background: var(--dark);
    color: white;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        text-align: center;
    }
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    h3 {
        font-size: 0.9rem; 
        padding: 0.3rem;
    }

    body {
        background-attachment: scroll; 
    }
}
