/* Reset + base layout */
html,
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    min-height: 100%;
    background: radial-gradient(circle at 20% 20%, #2a2a2a 0%, #000 80%) fixed;
}

/* ===== Sticky Header ===== */
.home-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    height: 72px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.header-logo {
    width: 300px;
}

/* Header title */
.header-title {
    font-size: 1.8em;
    font-weight: 900;
    padding: 15px 25px;
    border-radius: 25px;
    background: linear-gradient(90deg, rgba(253, 29, 29, 1) 0%, rgba(252, 252, 69, 1) 50%, rgba(69, 170, 252, 1) 100%);
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
}



/* Header buttons (⚙ and ✨) */
.header-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-btn-left::before {
    content: "⚙️";
    font-size: 20px;
    color: #000;
}

.header-btn-right::before {
    content: "✨";
    font-size: 20px;
    color: #000;
}

.header-btn:hover,
.header-btn:active {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Wrapper to give space top and bottom */
.home-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 16px 120px;
    box-sizing: border-box;
}

/* GRID: 4 per row on desktop */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
}

/* CARD */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card-icon {
    width: 160px;
    height: 160px;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.app-card:hover .app-card-icon {
    transform: scale(1.05);
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* TEXT */
.app-card-info {
    text-align: center;
    margin-top: 10px;
}

.app-card-info h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */

/* Tablets: 3 per row */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .app-card-icon {
        width: 140px;
        height: 140px;
    }

    .app-card-info h2 {
        font-size: 15px;
    }

    .home-wrapper {
        padding-top: 72px;
        padding-bottom: 100px;
    }
}

/* Mobile: 2 per row */
@media (max-width: 650px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .app-card-icon {
        width: 120px;
        height: 120px;
    }

    .app-card-info h2 {
        font-size: 13px;
    }

    .header-btn {
        width: 44px;
        height: 44px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    }

    .header-btn-left::before {
        font-size: 18px;
    }

    .header-btn-right::before {
        font-size: 20px;
    }

    .home-wrapper {
        padding-top: 64px;
        padding-bottom: 96px;
        padding-left: 16px;
        padding-right: 16px;
    }

.header-title {
    font-size: 1em;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

}