/* ============================================================================
   ZENAMP - Stylesheet
   All styles for the Zenamp audio player landing page
   ============================================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================================
   Animations
   ============================================================================ */

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================================================
   Header Styles
   ============================================================================ */

header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e94560 0%, #f39c12 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.logo:hover {
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.logo-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    animation: apngPlay 1s steps(1) 1 paused;
}

@keyframes apngPlay {
    0% { /* First frame - APNG will handle its own frames */ }
    100% { /* Last frame */ }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e94560 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e94560, #f39c12);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #f39c12;
}

/* ============================================================================
   Main Content Layout
   ============================================================================ */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
    padding: 6rem 0;
    text-align: center;
    animation: slideInDown 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e94560, #f39c12, #e94560);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================================================
   Button Styles
   ============================================================================ */

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560, #f39c12);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #e94560;
    border: 2px solid #e94560;
}

.btn-secondary:hover {
    background: rgba(233, 69, 96, 0.1);
    transform: translateY(-2px);
}

/* ============================================================================
   Features Section
   ============================================================================ */

.features {
    padding: 5rem 0;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #e94560, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-box {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 69, 96, 0.5);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.2);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.feature-box p {
    color: #b0b0b0;
    line-height: 1.8;
}

/* ============================================================================
   Visualizations Section
   ============================================================================ */

.visualizations {
    padding: 5rem 0;
}

.vis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.vis-item {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #e0e0e0;
    position: relative;
    cursor: help;
}

.vis-item:hover {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(243, 156, 18, 0.2) 100%);
    border-color: rgba(233, 69, 96, 0.5);
    transform: scale(1.05);
}

.vis-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.95);
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(233, 69, 96, 0.4);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.vis-item:hover::after {
    opacity: 1;
}

.vis-tips {
    text-align: center;
    color: #707070;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ============================================================================
   Specifications Section
   ============================================================================ */

.specs {
    padding: 5rem 0;
}

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

.spec-box {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    transition: all 0.3s ease;
}

.spec-box:hover {
    border-color: rgba(233, 69, 96, 0.5);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.15);
}

.spec-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.spec-box ul {
    list-style: none;
    padding: 0;
}

.spec-box li {
    padding: 0.5rem 0;
    color: #b0b0b0;
    border-bottom: 1px solid rgba(233, 69, 96, 0.1);
}

.spec-box li:last-child {
    border-bottom: none;
}

.format-title {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.formats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.format-badge {
    background: linear-gradient(135deg, #e94560, #f39c12);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================================================
   Download Section
   ============================================================================ */

.download-text {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin: 2rem 0;
}

.build-instruction {
    color: #707070;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.build-instruction code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* ============================================================================
   Reveal Animation for Scroll
   ============================================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   Footer Styles
   ============================================================================ */

footer {
    background: rgba(15, 52, 96, 0.5);
    border-top: 1px solid rgba(233, 69, 96, 0.2);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h4 {
    color: #f39c12;
    font-size: 1.1rem;
}

.footer-section p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f39c12;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(233, 69, 96, 0.2);
    color: #707070;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #f39c12;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        gap: 1rem;
    }

    nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    main {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .features,
    .specs,
    .visualizations {
        padding: 3rem 0;
    }

    .vis-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .vis-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-box,
    .spec-box {
        padding: 1.5rem;
    }

    .build-instruction code {
        display: block;
        overflow-x: auto;
        padding: 0.75rem;
    }
}
