/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --secondary-color: #00d4ff;
    --accent-color: #ff0080;
    --cyber-blue: #0066ff;
    --cyber-purple: #8b5cf6;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --border-color: #333333;
    --border-glow: #00ff88;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.8);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.9), 0 2px 4px -2px rgb(0 0 0 / 0.8);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.9), 0 4px 6px -4px rgb(0 0 0 / 0.8);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.9), 0 8px 10px -6px rgb(0 0 0 / 0.8);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--cyber-blue));
    --gradient-bg: #000000;
}

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

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.profile-image {
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 255, 136, 0.5);
}

.name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 300px;
    margin: 0 auto;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    margin-bottom: 0.5rem;
}

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

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.link-card[data-category="ctf"]:hover {
    border-color: #ff0080;
    box-shadow: 0 15px 25px -5px rgb(255 0 128 / 0.4), 0 8px 10px -6px rgb(255 0 128 / 0.3), 0 0 30px rgba(255, 0, 128, 0.3);
}

.link-card[data-category="professional"]:hover {
    border-color: #00d4ff;
    box-shadow: 0 15px 25px -5px rgb(0 212 255 / 0.4), 0 8px 10px -6px rgb(0 212 255 / 0.3), 0 0 30px rgba(0, 212, 255, 0.3);
}

.link-card[data-category="code"]:hover {
    border-color: #00ff88;
    box-shadow: 0 15px 25px -5px rgb(0 255 136 / 0.4), 0 8px 10px -6px rgb(0 255 136 / 0.3), 0 0 30px rgba(0, 255, 136, 0.3);
}

.link-card[data-category="contact"]:hover {
    border-color: #ff6b35;
    box-shadow: 0 15px 25px -5px rgb(255 107 53 / 0.4), 0 8px 10px -6px rgb(255 107 53 / 0.3), 0 0 30px rgba(255, 107, 53, 0.3);
}

.link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.link-card[data-category="ctf"] .link-icon {
    background: linear-gradient(135deg, #ff0080, #cc0066);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

.link-card[data-category="professional"] .link-icon {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.link-card[data-category="code"] .link-icon {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: white;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.link-card[data-category="contact"] .link-icon {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

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

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.link-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.link-arrow {
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Background Animation - Removed for minimal design */

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

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(30px) rotate(240deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .link-card {
        padding: 1rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .link-content h3 {
        font-size: 1rem;
    }
    
    .link-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .profile-section {
        margin-bottom: 2rem;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .bio {
        font-size: 0.9rem;
    }
    
    .links-section {
        gap: 0.75rem;
    }
    
    .link-card {
        padding: 0.875rem;
    }
    
    .link-icon {
        width: 36px;
        height: 36px;
        margin-right: 0.75rem;
    }
}

/* Light mode override (if needed) */
@media (prefers-color-scheme: light) {
    :root {
        --text-primary: #1f2937;
        --text-secondary: #6b7280;
        --text-light: #9ca3af;
        --bg-primary: #ffffff;
        --bg-secondary: #f9fafb;
        --bg-card: #ffffff;
        --bg-card-hover: #f3f4f6;
        --border-color: #e5e7eb;
    }
    
    body {
        background: var(--bg-secondary);
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Focus styles for accessibility */
.link-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bg-animation {
        display: none;
    }
    
    .link-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
