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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

header {
    padding: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.6) contrast(0.8);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    animation: pulse 9s ease-in-out infinite, shimmer 3s infinite;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #f0f0f0 20%,
        #fff 40%,
        #f0f0f0 60%,
        #fff 80%,
        #f0f0f0 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1::after {
    content: 'Starkeeper';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    animation: glow 9s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.8),
                     0 0 50px rgba(255, 255, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

@keyframes glow {
    0% {
        opacity: 0;
        filter: blur(15px);
    }
    50% {
        opacity: 0.5;
        filter: blur(25px);
    }
    100% {
        opacity: 0;
        filter: blur(15px);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: text-shadow 3s ease;
}

nav a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

main {
    padding: 3rem 0;
    text-align: center;
    background-color: #0a0a0a;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    text-align: justify;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.welcome-text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: text-shadow 0.3s ease;
}

.welcome-text a:hover,
.welcome-text a:focus {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    text-decoration-thickness: 2px;
}

.welcome-text p {
    margin-bottom: 1.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
    justify-items: center;
    align-items: start;
}

.gallery-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    background-color: #2a2a2a;
}

.caption {
    font-size: 1.15rem;
    color: #ffffff;
    background-color: rgba(26, 26, 26, 0.98);
    padding: 1.25rem;
    border-radius: 0 0 8px 8px;
    width: 100%;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.poetry-quote {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    font-style: italic;
    color: #ffffff;
    line-height: 2.2;
    text-align: center;
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.poetry-quote p {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.poetry-quote p:last-child {
    margin-bottom: 0;
}

.action-image {
    margin: 4rem auto;
    max-width: 1000px;
    padding: 0 2rem;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.action-image img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    border-radius: 8px;
    object-fit: cover;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #ffffff;
    background-color: #0a0a0a;
    width: 100%;
    margin-top: auto;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }

    .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    header {
        min-height: 150px;
        padding: 0;
        margin: 0;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        background-color: #0a0a0a;
        box-shadow: none;
    }

    .welcome-text {
        margin: 0;
        padding: 2rem;
        border-radius: 0;
        background: #0a0a0a;
        box-shadow: none;
    }

    .welcome-text p:last-child {
        margin-bottom: 0;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0;
        max-width: 100%;
    }

    .gallery-item {
        max-width: 100%;
    }

    .gallery-item img {
        border-radius: 0;
    }

    .caption {
        border-radius: 0;
    }

    .poetry-quote {
        margin: 0;
        padding: 2rem 1rem;
        line-height: 2;
        border-radius: 0;
        background: #0a0a0a;
    }

    .poetry-quote p {
        margin-bottom: 1rem;
    }

    .poetry-quote p:last-child {
        margin-bottom: 0;
    }

    .action-image {
        padding: 0;
        margin: 0;
        height: auto;
    }

    .action-image img {
        border-radius: 0;
        height: auto;
    }

    #home {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    footer {
        margin: 0;
        padding: 0.75rem;
        font-size: 0.75rem;
        opacity: 0.6;
        background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.95) 30%);
        border-top: 1px solid rgba(255, 255, 255, 0.03);
        margin-top: 0;
    }

    footer p {
        margin: 0.25rem 0;
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }

    footer a {
        font-size: 0.75rem;
        opacity: 0.9;
    }
}