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

:root {
    /* Colors */
    --color-primary: #007AFF;
    --color-primary-dark: #0051D5;
    --color-secondary: #5856D6;
    --color-accent: #FF9500;
    --color-text: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-background: #FFFFFF;
    --color-surface: #F5F5F7;
    --color-border: #D2D2D7;
    --color-hover: #F5F5F7;
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* Dark mode disabled - always use light theme */
/* @media (prefers-color-scheme: dark) {
    :root {
        --color-text: #F5F5F7;
        --color-text-secondary: #A1A1A6;
        --color-background: #000000;
        --color-surface: #1D1D1F;
        --color-border: #2D2D2F;
        --color-hover: #2D2D2F;
    }
} */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-system);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ========================================
   Common Navigation Header
   ======================================== */
.common-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-base);
}

.common-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 var(--spacing-sm);
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.header-logo:hover {
    color: var(--color-primary);
}

.header-logo .highlight {
    color: var(--color-primary);
}

.header-nav {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.header-nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--color-primary);
}

.header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.header-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.header-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .header-hamburger {
        display: flex;
    }
    
    .header-nav {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-background);
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .header-nav.active {
        left: 0;
    }
}

/* Body padding for fixed header */
body.has-header {
    padding-top: 70px;
}

/* Audioscrobbler Header - Red Theme */
.audioscrobbler-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-bottom: 1px solid rgba(220, 38, 38, 1);
}

.audioscrobbler-header.scrolled {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.audioscrobbler-header .header-logo {
    color: white;
}

.audioscrobbler-header .header-logo:hover {
    color: rgba(255, 255, 255, 0.9);
}

.audioscrobbler-header .header-logo .highlight {
    color: rgba(255, 255, 255, 0.8);
}

.audioscrobbler-header .header-nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.audioscrobbler-header .header-nav-link:hover,
.audioscrobbler-header .header-nav-link.active {
    color: white;
}

.audioscrobbler-header .header-nav-link.active::after {
    background: white;
}

.audioscrobbler-header .header-hamburger span {
    background: white;
}

@media (max-width: 768px) {
    .audioscrobbler-header .header-nav {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        border-bottom: 1px solid rgba(220, 38, 38, 1);
    }
}

/* MusicRPC Header - Dark Theme */
.musicrpc-header {
    background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    background-color: #2F2D35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.musicrpc-header.scrolled {
    background-color: #2F2D35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.musicrpc-header .header-logo {
    color: #F9F8FD;
}

.musicrpc-header .header-logo:hover {
    color: rgba(249, 248, 253, 0.9);
}

.musicrpc-header .header-logo .highlight {
    color: rgba(249, 248, 253, 0.8);
}

.musicrpc-header .header-nav-link {
    color: rgba(249, 248, 253, 0.8);
}

.musicrpc-header .header-nav-link:hover,
.musicrpc-header .header-nav-link.active {
    color: #F9F8FD;
}

.musicrpc-header .header-nav-link.active::after {
    background: #F9F8FD;
}

.musicrpc-header .header-hamburger span {
    background: #F9F8FD;
}

@media (max-width: 768px) {
    .musicrpc-header .header-nav {
        background-color: #2F2D35;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* EyeAway Header - Green/Cream Theme */
.eyeaway-header {
    background: linear-gradient(135deg, #638682 0%, #F1DEBD 100%);
    border-bottom: 1px solid rgba(99, 134, 130, 1);
}

.eyeaway-header.scrolled {
    background: linear-gradient(135deg, #638682 0%, #F1DEBD 100%);
    box-shadow: 0 2px 8px rgba(99, 134, 130, 0.3);
}

.eyeaway-header .header-logo {
    color: white;
}

.eyeaway-header .header-logo:hover {
    color: rgba(255, 255, 255, 0.9);
}

.eyeaway-header .header-logo .highlight {
    color: rgba(255, 255, 255, 0.8);
}

.eyeaway-header .header-nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.eyeaway-header .header-nav-link:hover,
.eyeaway-header .header-nav-link.active {
    color: white;
}

.eyeaway-header .header-nav-link.active::after {
    background: white;
}

.eyeaway-header .header-hamburger span {
    background: white;
}

@media (max-width: 768px) {
    .eyeaway-header .header-nav {
        background: linear-gradient(135deg, #638682 0%, #F1DEBD 100%);
        border-bottom: 1px solid rgba(99, 134, 130, 1);
    }
}

/* Paleta Header - Dark Gray Theme */
.paleta-header {
    background-color: #1C1C1E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.paleta-header.scrolled {
    background-color: #1C1C1E;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.paleta-header .header-logo {
    color: #FFFFFF;
}

.paleta-header .header-logo:hover {
    color: rgba(255, 255, 255, 0.9);
}

.paleta-header .header-logo .highlight {
    color: rgba(255, 255, 255, 0.8);
}

.paleta-header .header-nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.paleta-header .header-nav-link:hover,
.paleta-header .header-nav-link.active {
    color: #FFFFFF;
}

.paleta-header .header-nav-link.active::after {
    background: #FFFFFF;
}

.paleta-header .header-hamburger span {
    background: #FFFFFF;
}

@media (max-width: 768px) {
    .paleta-header .header-nav {
        background-color: #1C1C1E;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Transfigurator Header - Light Blue Theme */
.transfigurator-header {
    background: linear-gradient(135deg, #AACCEE 0%, #BBCCEE 50%, #DDDDEE 100%);
    border-bottom: 1px solid rgba(170, 204, 238, 0.3);
}

.transfigurator-header.scrolled {
    background: linear-gradient(135deg, #AACCEE 0%, #BBCCEE 50%, #DDDDEE 100%);
    box-shadow: 0 2px 8px rgba(170, 204, 238, 0.3);
}

.transfigurator-header .header-logo {
    color: #1D1D1F;
}

.transfigurator-header .header-logo:hover {
    color: rgba(29, 29, 31, 0.8);
}

.transfigurator-header .header-logo .highlight {
    color: rgba(29, 29, 31, 0.9);
}

.transfigurator-header .header-nav-link {
    color: rgba(29, 29, 31, 0.8);
}

.transfigurator-header .header-nav-link:hover,
.transfigurator-header .header-nav-link.active {
    color: #1D1D1F;
}

.transfigurator-header .header-nav-link.active::after {
    background: #1D1D1F;
}

.transfigurator-header .header-hamburger span {
    background: #1D1D1F;
}

@media (max-width: 768px) {
    .transfigurator-header .header-nav {
        background: linear-gradient(135deg, #AACCEE 0%, #BBCCEE 50%, #DDDDEE 100%);
        border-bottom: 1px solid rgba(170, 204, 238, 0.3);
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract gradient shapes */
.gradient-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0.4;
    animation: morph 15s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(225deg, var(--color-secondary), var(--color-primary));
    bottom: 15%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    top: 50%;
    left: 5%;
    animation-delay: 10s;
    opacity: 0.3;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
        transform: rotate(270deg);
    }
}

/* Floating lines */
.floating-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 8s ease-in-out infinite;
}

.line-1 {
    animation-delay: 0s;
}

.line-2 {
    animation-delay: 2s;
}

.line-3 {
    animation-delay: 4s;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.memoji-container {
    position: relative;
    width: 220px;
    height: 220px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.1);
}

.memoji {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.memoji-placeholder {
    width: 100%;
    height: 100%;
    display: none;
}

.memoji-placeholder.active {
    display: block;
}

.memoji-placeholder svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(var(--shadow-md));
}

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

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: var(--spacing-md);
}

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

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0.05;
    animation: pulse 20s ease-in-out infinite;
}

.bg-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.bg-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* ========================================
   Applications Section
   ======================================== */
.applications {
    padding: 60px 0;
    background: var(--color-surface);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

.app-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    object-fit: contain;
    background: var(--color-surface);
    padding: 8px;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.app-name a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.app-name a:hover {
    color: var(--color-primary);
}

.app-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
    align-items: center;
}

.app-store-badge {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-image {
    width: 160px;
    height: auto;
    display: block;
}

.app-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.app-link:hover {
    color: var(--color-primary-dark);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 60px 0;
    background: var(--color-background);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Contact Email Link */
.contact-email {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    transition: all var(--transition-base);
}

.email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.email-link svg {
    flex-shrink: 0;
}

.email-link span {
    word-break: break-all;
}


/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* ========================================
   Utility Classes
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   Responsive Typography
   ======================================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-visual {
        max-width: 350px;
        height: 350px;
    }
    
    .memoji-container {
        width: 180px;
        height: 180px;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-3 {
        width: 120px;
        height: 120px;
    }
    
    .gradient-shape {
        opacity: 0.25;
    }
    
    .floating-lines {
        opacity: 0.7;
    }
    
    .app-icon {
        width: 56px;
        height: 56px;
    }
    
    .email-link {
        font-size: 1.125rem;
        padding: var(--spacing-sm) var(--spacing-md);
        flex-wrap: wrap;
        text-align: center;
    }
    
    .email-link span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .app-store-image {
        width: 140px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .animated-background,
    .app-store-badge {
        display: none;
    }
}

