:root {
    --bg-color: #050b14;
    --text-main: #e0e6ed;
    --text-muted: #8b9bb4;
    --accent: #ff3c3c;
    --accent-glow: rgba(255, 60, 60, 0.5);
    --card-bg: rgba(10, 15, 25, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: rgba(255, 60, 60, 0.6);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem;
}

/* Dark Overlay & Scanlines */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(5, 11, 20, 0.8), rgba(5, 11, 20, 0.6));
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* Scanning Line Animation */
.background-effect {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--accent-glow), transparent);
    z-index: -1;
    pointer-events: none;
    animation: scan 8s linear infinite;
    opacity: 0.3;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Layout */
.container {
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.hub-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out forwards;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

h1 span {
    color: var(--accent);
    position: relative;
    text-shadow: 0 0 20px var(--accent-glow);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Cards */
.app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--card-hover-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    background: rgba(20, 25, 40, 0.6);
}

.app-card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 16px;
    background: rgba(255, 60, 60, 0.1);
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 60, 60, 0.2);
}

.app-card:hover .icon-wrapper {
    background: var(--accent);
    color: #000;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 10px 25px var(--accent-glow);
    border-color: var(--accent);
}

.app-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.app-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.card-footer svg, .card-footer i {
    transition: var(--transition);
    font-size: 1.2rem;
}

.app-card:hover .card-footer {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.app-card:hover .card-footer svg, .app-card:hover .card-footer i {
    transform: translateX(8px);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}


/* Custom Team Logos */
.team-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition);
}
.app-card:hover .team-logo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--accent-glow);
}
.header-logo {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    vertical-align: middle;
    display: inline-block;
}
.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-header h1 {
    margin: 0;
}


/* Section Headers */
.section-header {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
}
.section-header h2 {
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}
