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

:root {
    --primary: #ffffff;
    --secondary: #000000;
    --accent: #6366f1;
    --accent-light: #8b5cf6;
    --accent-dark: #4f46e5;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-display);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Background Effects */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.7) 0%, transparent 70%);
    bottom: 20%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(90deg) scale(1.1); }
    50% { transform: translateY(0) rotate(180deg) scale(0.9); }
    75% { transform: translateY(-10px) rotate(270deg) scale(1.05); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

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

/* Main Container */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    z-index: 10;
}

.content {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Photo */
.photo-container {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.placeholder-text {
    font-size: 0.75rem;
    line-height: 1.3;
}

.placeholder-text small {
    opacity: 0.6;
    font-size: 0.65rem;
}

.photo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    transition: var(--transition);
}

.photo-container:hover .photo-glow {
    opacity: 0.6;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Name */
.name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.name-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* Subtitle */
.subtitle {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.subtitle-highlight {
    color: #ffffff;
    font-weight: 600;
}

.subtitle-tech {
    display: block;
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.link:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.125rem;
}

.link-url {
    font-size: 1.1rem;
    font-weight: 500;
}

.link-arrow {
    font-size: 1.25rem;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.link:hover .link-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        max-width: 95%;
    }
    
    .content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .photo {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .link {
        padding: 0.875rem 1.25rem;
        max-width: 280px;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .photo {
        width: 80px;
        height: 80px;
    }
    
    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .subtitle-tech {
        font-size: 0.9rem;
    }
    
    .link {
        padding: 0.75rem 1rem;
        max-width: 260px;
    }
    
    .link-content {
        font-size: 0.9rem;
    }
    
    .link-title {
        font-size: 0.8rem;
    }
    
    .link-url {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}