:root {
    /* Color Palette */
    --color-background: #0D0D10;
    --color-surface: #1a1d24;
    --color-surface-light: #2c2f3a;
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-cyan: #22d3ee;
    --color-fuchsia: #d946ef;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-cyan), var(--color-fuchsia));
    --gradient-glow: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(217, 70, 239, 0.3));
    
    /* Spacing & Borders */
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.25rem;
    --max-width: 1200px;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-background);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Ornament */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><g fill-opacity="0.04"><circle fill="%2322d3ee" cx="400" cy="400" r="600"/><circle fill="%231a1d24" cx="400" cy="400" r="500"/><circle fill="%230D0D10" cx="400" cy="400" r="300"/></g></svg>');
    background-size: cover;
    z-index: -1;
    opacity: 0.4;
}


/* Typography Helpers */
.luxxel-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-center { text-align: center; }

/* Layout Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

/* Header & Footer */
.main-header {
    padding: 1.5rem 0;
    width: 100%;
}

.main-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.legal-links a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Hero Styles */
.hero-logo {
    display: block;
    width: clamp(8rem, 15vw, 12rem);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 4rem auto 1rem auto;
    filter: drop-shadow(0 0 30px rgba(217, 70, 239, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Card Styles */
.portal-card {
    background-color: var(--color-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-apps {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

.card-gaming {
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.1);
}

.card-apps:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(34, 211, 238, 0.3);
}

.card-gaming:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(217, 70, 239, 0.3);
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
    filter: blur(40px);
}

.portal-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portal-card:hover::before {
    opacity: 0.15;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 2.5rem;
    color: var(--color-cyan);
    transition: var(--transition-base);
}

.portal-card:hover .card-icon-wrapper {
    background-color: var(--color-surface-light);
    color: var(--color-fuchsia);
    transform: scale(1.1);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 900;
}

.card-description {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 280px;
}

.card-action {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-action::after {
    content: '→';
    transition: var(--transition-base);
}

.portal-card:hover .card-action::after {
    transform: translateX(5px);
}

/* Initial Visibility State for Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}
