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

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --hover-bg: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    min-height: 100vh;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Dark overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 600px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Card Effect */
.glass-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease-out;
}

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

/* Title and Subtitle */
.title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Link Item */
.link-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.link-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

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

/* Special Spotify Links with Glow Effect - Mobile-Friendly Version */
.link-item.spotify-special {
    position: relative;
    border: 2px solid rgba(29, 185, 84, 0.4);
    background: rgba(29, 185, 84, 0.08);
    will-change: border-color, box-shadow;
}

/* Desktop-only advanced effects */
@media (min-width: 769px) and (hover: hover) {
    .link-item.spotify-special {
        animation: pulseGlow 3s ease-in-out infinite;
    }
    
    .link-item.spotify-special::before {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 18px;
        background: linear-gradient(90deg, 
            rgba(29, 185, 84, 0) 0%,
            rgba(29, 185, 84, 0.5) 50%,
            rgba(29, 185, 84, 0) 100%);
        background-size: 200% 100%;
        animation: shimmer 3s linear infinite;
        opacity: 0.6;
        pointer-events: none;
        z-index: -1;
    }
    
    .link-item.spotify-special:hover::before {
        opacity: 1;
    }
}

/* Mobile-friendly sparkles - simpler implementation */
.sparkles {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    overflow: hidden;
}

/* Only show sparkles on desktop */
@media (min-width: 769px) and (hover: hover) {
    .sparkle {
        position: absolute;
        width: 3px;
        height: 3px;
        background: #1ed760;
        border-radius: 50%;
        box-shadow: 0 0 4px #1ed760;
        animation: sparkleFloat 3s ease-in-out infinite;
        opacity: 0;
        will-change: transform, opacity;
    }
}

/* Mobile: Hide sparkles to prevent artifacts */
@media (max-width: 768px), (hover: none) {
    .sparkle {
        display: none;
    }
    
    /* Simple pulsing border for mobile */
    .link-item.spotify-special {
        animation: mobilePulse 2s ease-in-out infinite;
    }
}

/* Simplified animations */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                    0 0 15px rgba(29, 185, 84, 0.3);
        border-color: rgba(29, 185, 84, 0.4);
    }
    50% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                    0 0 25px rgba(29, 185, 84, 0.5);
        border-color: rgba(29, 185, 84, 0.7);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes mobilePulse {
    0%, 100% {
        border-color: rgba(29, 185, 84, 0.4);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        border-color: rgba(29, 185, 84, 0.7);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                    0 0 15px rgba(29, 185, 84, 0.4);
    }
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(var(--tx, 0)) scale(1);
    }
}

/* Icon Wrapper */
.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.icon-wrapper.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.icon-wrapper.instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
}

.icon-wrapper.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.icon-wrapper.spotify {
    background: linear-gradient(135deg, #1DB954 0%, #1AA34A 100%);
}

.icon-wrapper.website {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-wrapper.apple {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.icon-wrapper.tiktok {
    background: linear-gradient(135deg, #000000 0%, #EE1D52 50%, #69C9D0 100%);
}

/* Link Text */
.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.link-url {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Link Arrow */
.link-arrow {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

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

/* Contact Bar */
.contact-bar {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--text-primary);
}

.contact-item i {
    font-size: 1rem;
}

.separator {
    color: var(--text-secondary);
    user-select: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .link-item {
        padding: 1rem 1.25rem;
    }

    .icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-url {
        font-size: 0.8rem;
    }

    .contact-content {
        font-size: 0.85rem;
    }

    .contact-bar {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 0.75rem;
    }

    .glass-card {
        padding: 1.5rem 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .link-item {
        padding: 0.875rem 1rem;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 0.75rem;
    }

    .link-title {
        font-size: 0.95rem;
    }

    .link-url {
        font-size: 0.75rem;
    }

    .contact-content {
        gap: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .contact-item span {
        display: none;
    }

    .contact-item i {
        font-size: 1.1rem;
    }

    .separator {
        display: none;
    }
}

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

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .glass-card,
    .contact-bar {
        background: white;
        border: 1px solid #ccc;
    }

    .link-item {
        page-break-inside: avoid;
    }
}
