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

:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #8b5cf6;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.3);
    --link-bg: #1f1f1f;
    --link-hover: #2a2a2a;
}

.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --accent: #8b5cf6;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --link-bg: #f9fafb;
    --link-hover: #f3f4f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--link-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover {
    background: var(--link-hover);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.theme-dark .sun-icon { display: block; }
.theme-dark .moon-icon { display: none; }
.theme-light .sun-icon { display: none; }
.theme-light .moon-icon { display: block; }

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

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

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    transition: all 0.3s ease;
}

.verified-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-primary);
}

.verified-badge svg {
    width: 16px;
    height: 16px;
    color: white;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-bio {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-location svg {
    width: 16px;
    height: 16px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.contact-btn svg {
    width: 16px;
    height: 16px;
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--link-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-item:hover {
    background: var(--link-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.link-item:active {
    transform: translateY(0);
}

.link-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

.link-icon svg {
    width: 100%;
    height: 100%;
    color: var(--text-primary);
}

.link-title {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
}

.link-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.link-arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.share-btn:hover {
    background: var(--link-bg);
    color: var(--text-primary);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 40px;
    }
    
    .profile {
        margin-top: 80px;
        margin-bottom: 60px;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .profile-name {
        font-size: 32px;
    }
    
    .profile-bio {
        font-size: 18px;
        max-width: 400px;
    }
    
    .links {
        gap: 20px;
    }
    
    .link-item {
        padding: 20px 24px;
        border-radius: 20px;
    }
    
    .link-title {
        font-size: 18px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.link-item {
    animation: fadeIn 0.6s ease forwards;
}

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

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

/* Focus styles for keyboard navigation */
.theme-toggle:focus,
.contact-btn:focus,
.link-item:focus,
.share-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}