/* ===============================================
   PIXELFOLIO INC. WEBSITE STYLES
   =============================================== */

/* ===============================================
   CSS VARIABLES & THEME
   =============================================== */
:root {
    /* Brand Colors */
    --primary-purple: #8B5CF6;
    --accent-orange: #F59E0B;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --accent-pink: #EC4899;
    --accent-red: #EF4444;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    
    /* Background Colors */
    --background: #FFFFFF;
    --background-subtle: #F9FAFB;
    
    /* App-specific gradients */
    --bulletin-gradient: linear-gradient(135deg, #1F2937, #374151);
    --globetrotter-gradient: linear-gradient(135deg, #1E40AF, #3B82F6);
    --moderation-gradient: linear-gradient(135deg, #00E676, #00C853);
    --textcraft-gradient: linear-gradient(135deg, #6A1B9A, #8E24AA);
    --vinyls-gradient: linear-gradient(135deg, #FF6B35, #C62828);
    --veil-gradient: linear-gradient(135deg, #7C4DFF, #E91E63);
    --orbit-gradient: linear-gradient(135deg, #60A5FA, #3B82F6);
}

/* ===============================================
   BASE STYLES & RESET
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent overscroll bounce on modern browsers only */
html {
    overscroll-behavior-y: contain;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(59, 130, 246, 0.05) 25%,
        rgba(16, 185, 129, 0.05) 50%,
        rgba(245, 158, 11, 0.1) 100%
    ), var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Simple background extension for overscroll */
body::before {
    content: '';
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    height: 200vh;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(59, 130, 246, 0.05) 25%,
        rgba(16, 185, 129, 0.05) 50%,
        rgba(245, 158, 11, 0.1) 100%
    ), var(--background);
    z-index: -1;
}

/* ===============================================
   LAYOUT COMPONENTS
   =============================================== */
.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.logo {
    width: 144px;
    height: 144px;
    margin: 0 auto 2rem;
    opacity: 1;
}

.logo img {
    width: 100%;
    height: 100%;
}

/* ===============================================
   TYPOGRAPHY
   =============================================== */
h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.message {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.support-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 2.5rem 0 2rem 0;
    opacity: 0.6;
}

.footer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 3rem;
}

/* ===============================================
   SOCIAL LINKS
   =============================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.social-link.mastodon {
    background: linear-gradient(135deg, var(--primary-purple), #6D28D9);
}

.social-link.bluesky {
    background: linear-gradient(135deg, var(--accent-blue), #1D4ED8);
}

.social-link.email {
    background: linear-gradient(135deg, var(--accent-orange), #D97706);
}


/* ===============================================
   HERO APPS SECTION
   =============================================== */
.hero-apps {
    width: 80%;
    max-width: 880px;
    margin: 3rem auto;
}

.hero-app {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.005);
    backdrop-filter: blur(6px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    transition: box-shadow 0.3s ease;
}

.hero-app-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1rem;
}

.hero-app-icon {
    flex-shrink: 0;
}

.hero-app-icon img {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-app-title {
    flex: 1;
    text-align: left;
}

.hero-app-content {
    text-align: left;
    margin-top: 0.5rem;
}

.hero-app-content .app-store-button {
    display: block;
    margin: 1.5rem auto 0.5rem;
    width: fit-content;
}

.hero-app-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.hero-app-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.hero-app-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===============================================
   SECONDARY APPS SECTION
   =============================================== */
.secondary-apps {
    width: 100%;
    max-width: 1100px;
    margin: 4rem 0 3rem 0;
}

.secondary-apps h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.app-card {
    background: rgba(255, 255, 255, 0.005);
    backdrop-filter: blur(6px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.app-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.app-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ===============================================
   BUTTON STYLES
   =============================================== */
.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Glass button for secondary apps */
.glass-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 6px 18px rgba(0, 0, 0, 0.12);
}

.glass-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ===============================================
   APP BUTTON GRADIENTS
   =============================================== */
/* Hero app button gradients */
.bulletin-button {
    background: var(--bulletin-gradient);
}

.globetrotter-button {
    background: var(--globetrotter-gradient);
}

/* ===============================================
   GRADIENT TEXT STYLES
   =============================================== */
/* App-specific gradient text colors with accessibility fallbacks */
.moderation-text {
    background: var(--moderation-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Accessibility fallback for unsupported browsers */
    color: #00C853;
}

.textcraft-text {
    background: var(--textcraft-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #8E24AA;
}

.vinyls-text {
    background: var(--vinyls-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #C62828;
}

.veil-text {
    background: var(--veil-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E91E63;
}

.orbit-text {
    background: var(--orbit-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #3B82F6;
}

/* Fallback for browsers without background-clip support */
@supports not (background-clip: text) {
    .moderation-text,
    .textcraft-text,
    .vinyls-text,
    .veil-text,
    .orbit-text {
        -webkit-text-fill-color: unset;
    }
}

/* ===============================================
   FOOTER STYLES
   =============================================== */
.footer-links {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.footer-text {
    margin-top: 1rem;
}

/* ===============================================
   FLOATING PIXEL ANIMATION
   =============================================== */
.pixels {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.pixel {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0.6;
    animation: float 90s linear infinite;
}

.pixel:nth-child(1) { 
    background: var(--accent-orange); 
    top: 5%; 
    left: 12%; 
}
.pixel:nth-child(2) { 
    background: var(--accent-blue); 
    top: 85%; 
    right: 8%; 
}
.pixel:nth-child(3) { 
    background: var(--accent-green); 
    top: 22%; 
    right: 25%; 
}
.pixel:nth-child(4) { 
    background: var(--accent-pink); 
    bottom: 12%; 
    left: 35%; 
}
.pixel:nth-child(5) { 
    background: var(--accent-red); 
    top: 70%; 
    left: 3%; 
}
.pixel:nth-child(6) { 
    background: var(--primary-purple); 
    top: 45%; 
    right: 2%; 
}
.pixel:nth-child(7) { 
    background: var(--accent-orange); 
    bottom: 65%; 
    right: 15%; 
}
.pixel:nth-child(8) { 
    background: var(--accent-blue); 
    top: 15%; 
    left: 65%; 
}
.pixel:nth-child(9) { 
    background: var(--accent-green); 
    bottom: 35%; 
    right: 45%; 
}
.pixel:nth-child(10) { 
    background: var(--accent-pink); 
    bottom: 5%; 
    right: 70%; 
}
.pixel:nth-child(11) { 
    background: var(--accent-blue); 
    top: 30%; 
    left: 85%; 
}
.pixel:nth-child(12) { 
    background: var(--accent-green); 
    bottom: 20%; 
    left: 8%; 
}
.pixel:nth-child(13) { 
    background: var(--primary-purple); 
    top: 60%; 
    right: 35%; 
}
.pixel:nth-child(14) { 
    background: var(--accent-orange); 
    bottom: 75%; 
    left: 55%; 
}
.pixel:nth-child(15) { 
    background: var(--accent-red); 
    top: 10%; 
    right: 60%; 
}
.pixel:nth-child(16) { 
    background: var(--accent-pink); 
    bottom: 45%; 
    left: 25%; 
}
.pixel:nth-child(17) { 
    background: var(--accent-blue); 
    top: 80%; 
    left: 75%; 
}
.pixel:nth-child(18) { 
    background: var(--accent-green); 
    top: 35%; 
    left: 40%; 
}
.pixel:nth-child(19) { 
    background: var(--primary-purple); 
    bottom: 8%; 
    right: 30%; 
}
.pixel:nth-child(20) { 
    background: var(--accent-orange); 
    top: 90%; 
    right: 12%; 
}

@keyframes float {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    100% { transform: translate(120vw, -120vh) rotate(360deg); }
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        justify-content: flex-start;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    /* Hero Apps Mobile */
    .hero-apps {
        width: 100%;
        max-width: 1100px;
        margin: 2rem auto;
    }

    .hero-app {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .hero-app-content {
        text-align: center;
    }

    .hero-app-content h2 {
        font-size: 1.8rem;
    }

    .hero-app-tagline {
        font-size: 0.9rem;
    }

    .hero-app-description {
        font-size: 1rem;
    }

    .hero-app-icon img {
        width: 100px;
        height: 100px;
        border-radius: 18px;
    }

    /* Secondary Apps Mobile */
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .app-card {
        padding: 1.25rem;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .secondary-apps h3 {
        font-size: 1.6rem;
    }

    .social-links {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
}

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

/* ===============================================
   BROWSER COMPATIBILITY
   =============================================== */
/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
    .container {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    }
}