/* alki.info - San Francisco Style Link in Bio */
/* Built with cutting-edge design principles */

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

:root {
    /* Off-White Theme - Clean & Professional */
    --bg-primary: #e5e5e5;
    --bg-secondary: #f9fafb;
    --bg-glass: rgba(243, 244, 246, 0.7);
    --text-primary: #111827;
    --text-secondary: rgba(17, 24, 39, 0.7);
    --text-muted: rgba(17, 24, 39, 0.4);
    
    /* Modern Rock & Alternative Colors */
    --accent-primary: #153e80;
    --accent-secondary: #321c63;
    --accent-tertiary: #700b3e;
    --accent-warm: #f59e0b;
    --accent-cool: #10b981;
    
    /* Clean Gradients */
    --accent-gradient: linear-gradient(135deg, #113671, #1c0d3f);
    --accent-gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
    --accent-gradient-cool: linear-gradient(135deg, #10b981, #3b82f6);
    
    /* Modern Shadows & Borders */
    --border-color: rgba(59, 130, 246, 0.2);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-warm: 0 0 30px rgba(245, 158, 11, 0.15);
    
    /* Neutral & Natural Tones */
    --gray-dark: #1f2937;
    --gray-medium: #374151;
    --gray-light: #6b7280;
    --accent-bright: #60a5fa;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Theme - Modern & Clean */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-glass: rgba(243, 244, 246, 0.7);
    --text-primary: #111827;
    --text-secondary: rgba(17, 24, 39, 0.7);
    --text-muted: rgba(17, 24, 39, 0.4);
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --accent-warm: #f59e0b;
    --accent-cool: #10b981;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --accent-gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
    --accent-gradient-cool: linear-gradient(135deg, #10b981, #3b82f6);
    --border-color: rgba(59, 130, 246, 0.2);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-warm: 0 0 30px rgba(245, 158, 11, 0.15);
}

/* Base Body Styles */
body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    transition: var(--transition-smooth);
}

/* Reduce animations on mobile for Safari performance */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-name,
    .loading-text {
        animation: none !important;
    }
    
    .profile-frame {
        animation: none !important;
    }
    
    .particle,
    .gradient-orb {
        display: none !important;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

[data-theme="light"] .loading-image {
    filter: brightness(0) invert(0);
}

.loading-text {
    margin-bottom: 24px;
}

.loading-letter {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    display: inline-block;
    animation: letterBounce 1.5s ease-in-out infinite;
}

.loading-letter:nth-child(2) { animation-delay: 0.1s; }
.loading-letter:nth-child(3) { animation-delay: 0.2s; }
.loading-letter:nth-child(4) { animation-delay: 0.3s; }

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(212, 165, 116, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--accent-gradient-warm);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

/* Modern particle colors - Optimized for mobile */
#particle1 { 
    top: 20%; 
    left: 10%; 
    animation-delay: 0s; 
    background: var(--accent-primary);
}
#particle2 { 
    top: 50%; 
    left: 80%; 
    animation-delay: 3s; 
    background: var(--accent-secondary);
}
#particle3 { 
    top: 80%; 
    left: 30%; 
    animation-delay: 6s; 
    background: var(--accent-tertiary);
}

.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 20s ease-in-out infinite;
}

/* Hide heavy animations on mobile for performance */
@media (max-width: 768px) {
    .particle,
    .gradient-orb {
        display: none !important;
    }
    
    .animated-bg {
        background: none !important;
    }
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    min-height: 100vh;
    position: relative;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-text {
    order: 2;
}

.hero-visual {
    order: 1;
}

.hero-name {
    font-size: clamp(48px, 12vw, 96px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.name-letter {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameFloat 3s ease-in-out infinite;
}

.name-letter:nth-child(2) { animation-delay: 0.1s; }
.name-letter:nth-child(3) { animation-delay: 0.2s; }
.name-letter:nth-child(4) { animation-delay: 0.3s; }

.hero-tagline {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.hero-description {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
}

/* Profile 3D */
.profile-3d {
    perspective: 1000px;
    margin-bottom: 8px;
}

.profile-frame {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: profile3D 10s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--accent-gradient);
    border-radius: 24px;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Main Content */
.main-content {
    margin-bottom: 80px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 1px;
}

/* Featured Release - Rock Aesthetic */
.featured-release {
    margin-bottom: 60px;
}

.release-embed {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
}

.release-embed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient-warm);
}

.spotify-embed {
    border-radius: 12px;
}

/* Exclusive Drop - Modern & Clean */
.exclusive-drop {
    background: var(--accent-gradient);
    border-radius: 24px;
    padding: 40px 32px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.exclusive-drop::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

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

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

.exclusive-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.exclusive-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.exclusive-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.exclusive-embed {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.grouped-embed {
    border-radius: 12px;
}

.exclusive-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.feature-item i {
    font-size: 16px;
}

/* Quick Links */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

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

.link-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.platform-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.link-arrow {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

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

/* Platform-Specific Modern Colors */
.instagram-link .link-icon { 
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    border: 2px solid rgba(221, 42, 123, 0.3);
}

.spotify-link .link-icon { 
    background: #1db954;
    border: 2px solid rgba(29, 185, 84, 0.3);
}

.apple-link .link-icon { 
    background: #000000;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.grouped-link .link-icon { 
    background: var(--accent-gradient);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.label-link .link-icon { 
    background: var(--gray-dark);
    border: 2px solid rgba(31, 41, 55, 0.3);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.footer-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--accent-primary);
}

.separator {
    font-size: 12px;
    color: var(--text-muted);
}

.cookie-settings-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: inherit;
}

.cookie-settings-btn:hover {
    color: var(--accent-primary);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
}

.cookie-btn.accept {
    background: var(--accent-primary);
    color: white;
}

.cookie-btn.decline {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Animations */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes letterBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes nameFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes profile3D {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(5deg) rotateX(2deg); }
    50% { transform: rotateY(0deg) rotateX(-2deg); }
    75% { transform: rotateY(-5deg) rotateX(2deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 32px 20px;
    }
    
    .hero-content {
        gap: 24px;
    }
    
    .profile-frame {
        width: 220px;
        height: 220px;
    }
    
    .stats-container {
        gap: 24px;
    }
    
    .exclusive-drop {
        padding: 32px 24px;
    }
    
    .exclusive-features {
        gap: 12px;
    }
    
    .link-card {
        padding: 16px 20px;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }
    
    .hero-name {
        font-size: clamp(36px, 10vw, 60px);
    }
    
    .profile-frame {
        width: 180px;
        height: 180px;
    }
    
    .stats-container {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .exclusive-drop {
        padding: 24px 20px;
    }
    
    .exclusive-title {
        font-size: 24px;
    }
    
    .link-card {
        padding: 14px 16px;
    }
    
    .footer-social {
        gap: 12px;
    }
}

/* Performance Optimizations */
.loading-screen {
    will-change: opacity, visibility;
}

.custom-cursor {
    will-change: transform;
}

.link-card,
.social-link,
.theme-toggle {
    will-change: transform, box-shadow;
}

/* Print Styles */
@media print {
    .loading-screen,
    .custom-cursor,
    .animated-bg,
    .theme-toggle,
    .cookie-banner {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

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

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: var(--text-primary);
        --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.8);
    }
}
