@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0c0e12;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --warehouse-color: #ff9d00;
    --ftth-color: #00f2ff;
    --extrawork-color: #a855f7;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1f2b 0%, #0c0e12 100%);
}

.container {
    max-width: 1000px;
    width: 90%;
    text-align: center;
    padding: 2rem 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #00f2ff, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    filter: drop-shadow(0 2px 20px rgba(0, 242, 255, 0.2));
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}

.card {
    position: relative;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

.card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.card:hover h2 {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.card:hover .card-bg {
    transform: scale(1.1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 14, 18, 0.95) 0%, rgba(12, 14, 18, 0.4) 50%, transparent 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    text-align: left;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.warehouse-card .card-icon {
    background: var(--warehouse-color);
    color: #000;
}

.ftth-card .card-icon {
    background: var(--ftth-color);
    color: #000;
}

.extrawork-card .card-icon {
    background: var(--extrawork-color);
    color: #fff;
}

.card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 1), 0 0 5px rgba(0, 0, 0, 0.5);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.warehouse-card:hover .glow {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(255, 157, 0, 0.1) 0%, transparent 70%);
}

.ftth-card:hover .glow {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
}

.extrawork-card:hover .glow {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

footer {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }
}