:root {
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: white;
}

@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(30, 30, 30, 0.35);
        --glass-border: rgba(255, 255, 255, 0.1);
        --text-color: white;
    }
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background 0.6s ease, color 0.4s ease;
}

/* Sequoia wallpaper */
body {
    background: url("sequoia.jpg") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
}

/* Header */
header {
    margin-top: 60px;
    font-size: 42px;
    font-weight: 600;
}

/* Grid */
#grid {
    margin-top: 90px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 190px);
    gap: 70px;
    justify-content: center;
    width: 100%;
    max-width: 1500px;
}

/* Liquid Glass Card */
.app {
    width: 190px;
    height: 190px;
    border-radius: 46px;

    background: var(--glass-bg);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);

    border: 1px solid var(--glass-border);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: var(--text-color);

    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.4s ease;

    /* ✨ Floating shadow */
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.15);
}
}

/* Hover (kun let scale) */
.app:hover {
    transform: scale(1.08);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.35),
        0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Icon */
.icon {
    font-size: 85px;
    margin-bottom: 15px;
}

/* Label */
.label {
    font-size: 18px;
    font-weight: 500;
}
