/* aiu-style.css */
html,
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    /* allow scrolling on all devices */
    overflow: auto;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

header {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.spark-border {
    position: relative;
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
}

.spark-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(128, 0, 128, 0.6);
    pointer-events: none;
    z-index: 1;
}

.spark-border::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #b19cd9 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    animation: sparkle 4s linear infinite;
}

.hero {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 4rem 2rem;
    max-width: 900px;
    /* width: 90%; */
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
}

.lead {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-button {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: #007acc;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.feature-button:hover {
    background: #005fa3;
}

.taglines {
    font-style: italic;
    color: #666;
    margin-top: 2rem;
}

.tiles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    z-index: 1;
    opacity: 0.15;
}

.tiles-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: #999;
    position: relative;
    z-index: 3;
}

/* shimmer background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #e0e0e0, #f5f5f5, #e0e0e0);
    background-size: 400% 400%;
    animation: shimmer 15s ease infinite;
    z-index: 0;
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* sparkle animation around border */
@keyframes sparkle {
    0% {
        top: 0;
        left: 0;
    }

    25% {
        top: 0;
        left: calc(100% - 12px);
    }

    50% {
        top: calc(100% - 12px);
        left: calc(100% - 12px);
    }

    75% {
        top: calc(100% - 12px);
        left: 0;
    }

    100% {
        top: 0;
        left: 0;
    }
}