:root {
    /* Defense-inspired color palette - dark, sophisticated, tactical */
    --primary-bg: #0a0e14;
    --secondary-bg: #131820;
    --card-bg: rgba(20, 26, 35, 0.7);
    --card-border: rgba(45, 212, 191, 0.2);
    --accent-primary: #2dd4bf; /* Cyan - tactical displays */
    --accent-secondary: #3b82f6; /* Blue - authoritative */
    --accent-tertiary: #8b5cf6; /* Purple - premium */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(45, 212, 191, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(45, 212, 191, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    z-index: 1;
    pointer-events: none;
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px;
    min-height: 100vh;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Profile header */
.profile-header {
    text-align: center;
    margin-bottom: 48px;
}

.avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

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

.avatar {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--accent-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(45, 212, 191, 0.4);
    object-fit: cover;
    display: block;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.profile-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.01em;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 24px;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    color: var(--primary-bg);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(45, 212, 191, 0.3);
}

/* Links container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

/* Link cards */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 32px rgba(45, 212, 191, 0.2);
}

.link-icon {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-bg);
    transition: all 0.3s ease;
}

/* Custom image icons */
.link-icon .custom-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Invert white Redcon1 logo to black */
.link-icon .redcon1-icon {
    filter: brightness(0) saturate(100%);
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-content {
    flex: 1;
    position: relative;
}

.link-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.link-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.link-arrow {
    position: relative;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--card-border);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo i {
    font-size: 28px;
    color: var(--accent-primary);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive design */
@media (max-width: 640px) {
    .container {
        padding: 40px 20px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-title {
        font-size: 16px;
    }
    
    .profile-bio {
        font-size: 14px;
    }
    
    .link-card {
        padding: 16px 20px;
    }
    
    .link-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }
    
    .link-title {
        font-size: 16px;
    }
    
    .link-description {
        font-size: 13px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-moz-selection {
    background: var(--accent-primary);
    color: var(--primary-bg);
}
