/* ========================================
   STORM — Beats by Storm
   Lightning-themed beat producer website
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #12121f;
    --purple-light: #a78bfa;
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --blue: #3b82f6;
    --blue-dark: #1e40af;
    --cyan: #06b6d4;
    --lightning: #c4b5fd;
    --lightning-bright: #e0d4ff;
    --text-primary: #f1f0f5;
    --text-secondary: #9994b8;
    --text-muted: #5e5880;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --border: rgba(124, 58, 237, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--purple-dark) var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   CANVAS LAYERS
   ======================================== */

#lightning-canvas,
#visualizer-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#visualizer-canvas {
    z-index: 1;
    opacity: 0.5;
}

.rain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(168, 139, 250, 0.3));
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 15, 0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95), transparent);
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-bolt {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--purple));
    animation: bolt-flicker 4s infinite;
}

@keyframes bolt-flicker {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px var(--purple)); }
    50% { opacity: 0.8; filter: drop-shadow(0 0 4px var(--purple)); }
    52% { opacity: 1; filter: drop-shadow(0 0 15px var(--lightning-bright)); }
    54% { opacity: 0.9; filter: drop-shadow(0 0 6px var(--purple)); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    transition: width 0.3s;
    border-radius: 1px;
    box-shadow: 0 0 8px var(--purple);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle-top {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-in-up 0.8s 0.2s forwards;
}

.hero-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-in-up 0.8s 0.4s forwards;
}

.title-line {
    display: block;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.title-line:first-child {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
}

.title-accent {
    font-size: clamp(4rem, 12vw, 9rem);
    background: linear-gradient(135deg, var(--lightning-bright), var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.storm-glow {
    position: relative;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
    animation: storm-pulse 4s ease-in-out infinite;
}

@keyframes storm-pulse {
    0%, 100% { filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.4)); }
    50% { filter: drop-shadow(0 0 50px rgba(124, 58, 237, 0.7)) drop-shadow(0 0 80px rgba(167, 139, 250, 0.3)); }
}

.hero-socials {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fade-in-up 0.8s 0.6s forwards;
}

.hero-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.hero-social-link:hover {
    color: var(--text-primary);
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    animation: fade-in-up 0.8s 1.2s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
}

.stat-suffix {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple-light);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--blue-dark));
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 0.9em;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    position: relative;
    z-index: 10;
    padding: 6rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, var(--text-primary), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    margin: 0 auto 1rem;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--purple);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ========================================
   BEATS GRID
   ======================================== */

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

/* Sort Buttons */

.beats-sort {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.sort-btn {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn:hover {
    color: var(--text-secondary);
    border-color: rgba(124, 58, 237, 0.4);
}

.sort-btn.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--purple);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

/* Beat Cards (YouTube Embeds) */

.beats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.beat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s;
}

.beat-card:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.beat-info {
    padding: 1rem 1.2rem 1.2rem;
}

.beat-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beat-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    display: flex;
    gap: 0.8rem;
}

.beat-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Loading Skeletons */

.video-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-secondary), rgba(124, 58, 237, 0.06), var(--bg-secondary));
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--bg-secondary), rgba(124, 58, 237, 0.06), var(--bg-secondary));
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 8rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--purple);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    transition: width 0.4s;
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line,
.form-group select:focus ~ .input-line {
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1.1rem;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.contact-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px var(--purple));
}

.contact-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    position: relative;
    z-index: 10;
    padding: 2rem 3rem;
    border-top: 1px solid var(--border);
    text-align: center;
    padding-bottom: 5rem;
}

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

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-domain {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

/* ========================================
   SCREEN FLASH EFFECT
   ======================================== */

.screen-flash {
    position: fixed;
    inset: 0;
    background: rgba(196, 181, 253, 0.06);
    pointer-events: none;
    z-index: 500;
    animation: flash 0.15s ease-out forwards;
}

@keyframes flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s, transform 0.7s;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.6rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}
