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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --accent: #0066ff;
    --shadow: rgba(0, 0, 0, 0.08);
    --hover-bg: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
    :root {
         --bg-primary: #1e1f2a;
  --bg-secondary: #0f0f14;
  --bg-card: #181922;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --border: #2b2d3a;
  --accent: #3b82f6;
  --shadow: rgba(0, 0, 0, 0.4);
  --hover-bg: #242533;
    }
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.container {
    width: 100%;
    max-width: 680px;
    animation: fadeIn 0.6s ease;
}

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

.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.image-container {
     background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin: 0 auto;
    width: 60%;   
}

.responsive-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Maintain 16:9 aspect ratio */
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.responsive-image:hover {
    transform: scale(1.02);
}

/* Optional: Add media queries for different screen sizes */
@media screen and (max-width: 768px) {
    .image-container {
        max-width: 600px;
    }
}

@media screen and (max-width: 480px) {
    .image-container {
        max-width: 400px;
    }
} 

.image-wrapper {
    position: relative;
    display: inline-block;
}

.view-image-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-image-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}


.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 50px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 10px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal.show .close-modal {
    opacity: 1;
    transform: translateY(0);
}

/* ...existing code... */

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.verified {
    color: var(--accent);
    font-size: 1.25rem;
    animation: fadeIn 0.8s ease;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--shadow);
    border-color: var(--accent);
}

.section-divider {
    margin: 32px 0 20px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    position: relative;
    padding: 0 16px;
    background: var(--bg-primary);
    z-index: 1;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.links-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

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

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

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow);
    border-color: var(--accent);
}

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

.link-card:active {
    transform: translateY(-2px);
}

.link-icon {
    font-size: 1.4rem;
    width: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

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

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

.link-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.link-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

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

.spotify-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.spotify-embed {
    width: 100%;
    height: 352px;
    border-radius: 12px;
    border: none;
}

.footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer a {
    text-decoration: none;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .name {
        font-size: 1.5rem;
    }
    
    .link-card {
        padding: 16px 20px;
    }

    .spotify-section {
        padding: 20px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
