/**
 * Soundscapes Template Styles
 * Simple, clean CSS without frameworks
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000 url('../video/sheep-poster.jpg') center/cover no-repeat; /* Poster as fallback */
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 0;
}

.hero-section.video-loaded::after {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video Background */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover; /* Always fill viewport, no black bars */
    object-position: center center; /* Centre the video content */
}

/* Video Overlay - removed for cleaner look */
.video-overlay {
    display: none;
}

/* Content */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.music-icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1); /* Makes SVG white */
}

/* Typography */
.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7),
                 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.tagline {
    font-size: 1.5rem;
    color: #ddd6fe;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7),
                 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Audio Player */
.audio-player {
    margin: 2rem auto 3rem;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.audio-player audio {
    width: 100%;
    border-radius: 1rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #5b21b6;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.btn:active {
    transform: scale(0.98);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: translateY(0);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon-purple {
    background: rgba(168, 85, 247, 0.2);
}

.feature-icon-purple svg {
    color: #ddd6fe;
}

.feature-icon-blue {
    background: rgba(59, 130, 246, 0.2);
}

.feature-icon-blue svg {
    color: #bfdbfe;
}

.feature-icon-pink {
    background: rgba(236, 72, 153, 0.2);
}

.feature-icon-pink svg {
    color: #fbcfe8;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #ddd6fe;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #ddd6fe;
    font-size: 0.875rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.footer p {
    margin: 0.25rem 0;
}

.audio-attribution {
    font-size: 0.75rem;
    opacity: 0.8;
}

.audio-attribution a {
    color: #ddd6fe;
    text-decoration: underline;
}

.audio-attribution a:hover {
    color: #fff;
}

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

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

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

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
    }

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