/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sophisticated color palette based on color theory */
    --primary-color: #2c2c2c;          /* Deep charcoal */
    --secondary-color: #6b6b6b;        /* Medium gray */
    --accent-color: #d4af37;           /* Elegant gold */
    --text-primary: #ffffff;           /* Pure white */
    --text-secondary: #e8e8e8;         /* Off-white */
    --text-muted: #b0b0b0;             /* Light gray */
    --background-overlay: rgba(44, 44, 44, 0.95); /* Dark overlay */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    background-attachment: fixed;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.profile-image {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0 auto 24px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.1),
        0 20px 40px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image img:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 0 6px rgba(212, 175, 55, 0.2),
        0 25px 50px var(--shadow-color);
}

.name {
    font-size: 2.6em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 15px rgba(212, 175, 55, 0.9),
        0 0 30px rgba(212, 175, 55, 0.7),
        0 0 45px rgba(212, 175, 55, 0.5),
        0 2px 12px rgba(0, 0, 0, 0.9);
    background: linear-gradient(45deg, #ffffff, #d4af37, #ffffff, #d4af37);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: woahEffect 3s ease-in-out infinite, colorShift 4s ease-in-out infinite;
    position: relative;
}

.name::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(212, 175, 55, 0.03) 30%, transparent 80%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

.slogan {
    font-size: 0.95em;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 320px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Social links */
.social-links {
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--background-overlay);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 16px 28px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: rgba(44, 44, 44, 0.98);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
}

/* Buttons container */
.buttons-container {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Link buttons */
.link-button {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 16px;
    padding: 20px 24px;
    font-weight: 500;
    font-size: 1.05em;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    background: var(--background-overlay);
}

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

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

.link-button:hover {
    background: rgba(44, 44, 44, 0.98);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.button-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.button-text {
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Individual button variations with subtle differences */
.link-button:nth-child(1) {
    border-color: rgba(212, 175, 55, 0.3);
}

.link-button:nth-child(1):hover {
    border-color: rgba(212, 175, 55, 0.8);
}

.link-button:nth-child(2) {
    border-color: rgba(212, 175, 55, 0.2);
}

.link-button:nth-child(2):hover {
    border-color: rgba(212, 175, 55, 0.6);
}

.link-button:nth-child(3) {
    border-color: rgba(255, 255, 255, 0.15);
}

.link-button:nth-child(3):hover {
    border-color: var(--accent-color);
}

.link-button:nth-child(4) {
    border-color: rgba(255, 255, 255, 0.1);
}

.link-button:nth-child(4):hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    margin-top: 64px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85em;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    opacity: 0.8;
}

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

@keyframes woahEffect {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    }
    25% {
        transform: scale(1.02) rotate(0.5deg);
        filter: brightness(1.1) drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
    }
    50% {
        transform: scale(1.05) rotate(0deg);
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
    }
    75% {
        transform: scale(1.02) rotate(-0.5deg);
        filter: brightness(1.1) drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
    }
}

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

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

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 32px 20px;
    }
    
    .name {
        font-size: 2.2em;
    }
    
    .slogan {
        font-size: 0.9em;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .link-button {
        padding: 18px 20px;
        font-size: 1em;
    }
    
    .button-content {
        gap: 14px;
    }
    
    .button-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-link {
        padding: 14px 24px;
        font-size: 0.9em;
    }
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Subtle pulse animation for profile image */
@keyframes subtlePulse {
    0% {
        box-shadow: 
            0 0 0 4px rgba(212, 175, 55, 0.1),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 6px rgba(212, 175, 55, 0.15),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 0 4px rgba(212, 175, 55, 0.1),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

.profile-image img {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(44, 44, 44, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.8);
}

/* Focus states for accessibility */
.link-button:focus,
.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --border-color: rgba(255, 255, 255, 0.3);
        --background-overlay: rgba(44, 44, 44, 0.99);
    }
}

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