/* ============================================
   RealMoAG - Modern Minimal Landing Page
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Platform Colors */
    --tiktok: #ff0050;
    --discord: #5865F2;
    --youtube: #FF0000;
    --twitch: #9146FF;
    --twitter: #ffffff;
    --instagram: #E4405F;
    --facebook: #1877F2;
    --linkedin: #0A66C2;
    --email: #3b82f6;
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--text-primary);
}

/* 3D Canvas Background */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateY(30px);
}

.profile-image-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: var(--radius-full);
    filter: blur(20px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 1;
    transition: var(--transition-slow);
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.profile-tagline {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
}

/* Profile Contact Links */
.profile-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.profile-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 450;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.profile-contact:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-contact svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.profile-contact:hover svg {
    opacity: 1;
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex: 1;
}

/* Link Card - Glassmorphism Style */
.link-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%,
        transparent 100%
    );
    opacity: 0;
    transition: var(--transition-normal);
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

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

.link-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.link-card:active {
    transform: translateY(0) scale(0.98);
}

/* Link Icon */
.link-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.link-card:hover .link-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Platform-specific icon colors on hover */
.link-card:hover .link-icon svg {
    filter: drop-shadow(0 0 8px currentColor);
}

.link-card:nth-child(1):hover .link-icon { color: var(--tiktok); }
.link-card:nth-child(2):hover .link-icon { color: var(--discord); }
.link-card:nth-child(3):hover .link-icon { color: var(--youtube); }
.link-card:nth-child(4):hover .link-icon { color: var(--twitch); }
.link-card:nth-child(5):hover .link-icon { color: var(--twitter); }
.link-card:nth-child(6):hover .link-icon { color: var(--instagram); }
.link-card:nth-child(7):hover .link-icon { color: var(--facebook); }
.link-card:nth-child(8):hover .link-icon { color: var(--linkedin); }

/* Link Content */
.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-title {
    font-size: 1rem;
    font-weight: 550;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.link-card:hover .link-title {
    color: var(--text-primary);
}

.link-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link Arrow */
.link-arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: var(--space-2xl);
    text-align: center;
    opacity: 0;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Background Gradient Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Noise Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    :root {
        font-size: 15px;
    }
    
    .container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .link-card {
        padding: var(--space-md);
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: var(--space-3xl) var(--space-xl);
    }
    
    .link-card {
        padding: var(--space-lg) var(--space-xl);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .profile-glow {
        animation: none;
    }
}

/* Dark Mode Support (already dark, but handle light mode request) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as it's the design choice */
}

/* Focus Visible for Keyboard Navigation */
.link-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    #hero-canvas,
    body::before,
    body::after {
        display: none;
    }
    
    .container {
        max-width: none;
    }
    
    .link-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

