/* Mobile First Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-color: #fff;
}

.background-layer.active {
    opacity: 0.2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #333;
    padding: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

footer {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    padding: 0.3rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    p {
        font-size: 1.2rem;
    }

    footer a {
        font-size: 1rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .content {
        padding: 40px;
    }

    h1 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    p {
        font-size: 1.5rem;
    }

    .footer-links {
        gap: 2.5rem;
    }
}

/* Touch Device Optimization */
@media (hover: hover) and (pointer: fine) {
    footer a:hover {
        text-decoration: underline;
    }
}