/* Inter (Regular) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}

/* Orbitron (Bold) */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/orbitron-v35-latin-700.woff2') format('woff2');
}

/* Orbitron (Black/Extra Bold) - Optional if you have the file */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    /* If you don't have the 900 file, point this to the 700 file as a fallback */
    src: url('fonts/orbitron-v35-latin-700.woff2') format('woff2'); 
}

:root {
    --bg-dark: #050510;
    --primary: #00f2ff; /* Neon Cyan */
    --secondary: #bd00ff; /* Neon Purple */
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 1s ease-out;
}

.brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #fff 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.tagline {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

/* 3D Glass Card */
.app-card {
    text-decoration: none;
    color: inherit;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

/* Hover Glow */
.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(0, 242, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.app-card:hover::before { opacity: 1; }

.card-content { transform: translateZ(20px); }

/* Icon Styling */
.icon-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 20px;
    box-shadow: 0 0 20px var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.app-card:hover .glow { opacity: 0.6; }

/* Text */
h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.category {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
}

.desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Button */
.btn-action {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
    border: 1px solid transparent;
}

.btn-action i { font-size: 1.2rem; }

.app-card:hover .btn-action {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 80px;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .brand { font-size: 2.5rem; }
    .app-grid { grid-template-columns: 1fr; }
}