/* ========================================
   Bi' Trim — Coming Soon Page
   Cinematic Post-Production Theme
   ======================================== */

:root {
    --primary: #e8a838;
    --primary-glow: rgba(232, 168, 56, 0.4);
    --accent: #ff6b35;
    --accent-secondary: #a855f7;
    --bg-dark: #0a0a0f;
    --bg-mid: #121218;
    --text-primary: #f0ece4;
    --text-secondary: rgba(240, 236, 228, 0.6);
    --text-muted: rgba(240, 236, 228, 0.35);
    --border: rgba(232, 168, 56, 0.15);
    --glass: rgba(10, 10, 15, 0.65);
    --glass-border: rgba(232, 168, 56, 0.1);
}

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

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

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Background Layers
   ======================================== */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.bg-image {
    position: absolute;
    inset: 0;
    background: url('bg.png') center center / cover no-repeat;
    filter: brightness(0.35) saturate(0.8);
    animation: bgPanSlow 30s ease-in-out infinite alternate;
}

@keyframes bgPanSlow {
    0% { transform: scale(1.05) translate(0, 0); }
    50% { transform: scale(1.1) translate(-1%, -0.5%); }
    100% { transform: scale(1.05) translate(0.5%, 0.5%); }
}

.bg-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 168, 56, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.7) 50%, rgba(10,10,15,0.95) 100%);
    pointer-events: none;
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    animation: scanlineScroll 8s linear infinite;
}

@keyframes scanlineScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ========================================
   Film Strip Decorations
   ======================================== */
.film-strip {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px 0;
    opacity: 0.12;
}

.film-strip-left {
    left: 8px;
    border-right: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
}

.film-strip-right {
    right: 8px;
    border-right: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
}

.film-hole {
    width: 14px;
    height: 10px;
    margin: 0 auto;
    border: 1.5px solid var(--primary);
    border-radius: 2px;
    animation: filmScroll 4s linear infinite;
}

@keyframes filmScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

/* ========================================
   Particles Canvas
   ======================================== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   Main Container
   ======================================== */
.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
}

/* ========================================
   Top Bar (REC + Timecode)
   ======================================== */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.rec-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: recBlink 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.rec-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #ef4444;
}

.timecode {
    font-family: 'Bebas Neue', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-shadow: 0 0 10px rgba(232, 168, 56, 0.2);
}

/* ========================================
   Center Content
   ======================================== */
.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Title with Glitch Effect */
.glitch-wrapper {
    position: relative;
}

.title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 12px;
    line-height: 1;
    color: var(--text-primary);
    text-shadow:
        0 0 40px var(--primary-glow),
        0 0 80px rgba(232, 168, 56, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleReveal 1.5s ease-out forwards;
    position: relative;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        letter-spacing: 30px;
    }
    60% {
        opacity: 1;
        letter-spacing: 8px;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 12px;
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.glitch::before {
    color: var(--accent);
    animation: glitchLeft 3s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    opacity: 0.6;
}

.glitch::after {
    color: var(--accent-secondary);
    animation: glitchRight 3s ease-in-out infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    opacity: 0.6;
}

@keyframes glitchLeft {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, -1px); }
    94% { transform: translate(2px, 1px); }
    96% { transform: translate(-1px, 0); }
    98% { transform: translate(1px, -1px); }
}

@keyframes glitchRight {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(3px, 1px); }
    93% { transform: translate(-2px, -1px); }
    95% { transform: translate(1px, 0); }
    97% { transform: translate(-1px, 1px); }
}

/* Subtitle Line */
.subtitle-line {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.line-decoration {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    letter-spacing: 5px;
    color: var(--primary);
    text-transform: uppercase;
}

/* Description Block */
.description-block {
    max-width: 550px;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    display: inline;
}

.cursor {
    display: inline;
    font-weight: 200;
    color: var(--primary);
    animation: cursorBlink 0.8s step-end infinite;
    font-size: 1.1rem;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 1s ease-out 1.2s backwards;
    position: relative;
}

.pulse-ring {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    position: relative;
    z-index: 1;
}

.status-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--primary);
}

/* ========================================
   Countdown Section
   ======================================== */
.countdown-section {
    animation: fadeInUp 1s ease-out 1.5s backwards;
}

.countdown-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    padding: 12px 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease;
}

.countdown-item:hover {
    border-color: rgba(232, 168, 56, 0.3);
}

.countdown-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--primary-glow);
    line-height: 1;
}

.countdown-unit {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.countdown-separator {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--primary);
    animation: separatorPulse 1s ease-in-out infinite;
    margin-bottom: 18px;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========================================
   Notify Section
   ======================================== */
.notify-section {
    animation: fadeInUp 1s ease-out 1.8s backwards;
}

.notify-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.notify-form {
    position: relative;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(232, 168, 56, 0.1);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 220px;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    padding: 14px 22px;
    cursor: pointer;
    color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 0 50px 50px 0;
}

.input-wrapper button:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}

.btn-icon {
    display: flex;
    align-items: center;
}

.form-success {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #4ade80;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

.form-success.visible {
    opacity: 1;
}

/* ========================================
   Bottom Bar
   ======================================== */
.bottom-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.15);
}

.tech-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.tech-info span {
    font-family: 'Bebas Neue', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   Audio Bars (Decorative)
   ======================================== */
.audio-bars {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    z-index: 5;
    padding: 0 20%;
    pointer-events: none;
}

.audio-bars .bar {
    flex: 1;
    max-width: 4px;
    background: linear-gradient(to top, var(--primary), var(--accent-secondary));
    border-radius: 2px 2px 0 0;
    opacity: 0.25;
    animation: audioBar 1.2s ease-in-out infinite;
}

.audio-bars .bar:nth-child(1) { animation-delay: 0s; height: 30%; }
.audio-bars .bar:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.audio-bars .bar:nth-child(3) { animation-delay: 0.2s; height: 40%; }
.audio-bars .bar:nth-child(4) { animation-delay: 0.05s; height: 80%; }
.audio-bars .bar:nth-child(5) { animation-delay: 0.15s; height: 50%; }
.audio-bars .bar:nth-child(6) { animation-delay: 0.25s; height: 70%; }
.audio-bars .bar:nth-child(7) { animation-delay: 0.3s; height: 35%; }
.audio-bars .bar:nth-child(8) { animation-delay: 0.07s; height: 90%; }
.audio-bars .bar:nth-child(9) { animation-delay: 0.18s; height: 45%; }
.audio-bars .bar:nth-child(10) { animation-delay: 0.12s; height: 65%; }
.audio-bars .bar:nth-child(11) { animation-delay: 0.22s; height: 55%; }
.audio-bars .bar:nth-child(12) { animation-delay: 0.08s; height: 75%; }
.audio-bars .bar:nth-child(13) { animation-delay: 0.28s; height: 40%; }
.audio-bars .bar:nth-child(14) { animation-delay: 0.03s; height: 85%; }
.audio-bars .bar:nth-child(15) { animation-delay: 0.14s; height: 50%; }
.audio-bars .bar:nth-child(16) { animation-delay: 0.2s; height: 60%; }
.audio-bars .bar:nth-child(17) { animation-delay: 0.06s; height: 70%; }
.audio-bars .bar:nth-child(18) { animation-delay: 0.16s; height: 45%; }
.audio-bars .bar:nth-child(19) { animation-delay: 0.24s; height: 55%; }
.audio-bars .bar:nth-child(20) { animation-delay: 0.11s; height: 35%; }

@keyframes audioBar {
    0%, 100% { transform: scaleY(0.3); }
    25% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
    75% { transform: scaleY(0.8); }
}

/* ========================================
   Fade In Up Animation
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .film-strip {
        display: none;
    }

    .main-container {
        padding: 20px 20px;
    }

    .title {
        letter-spacing: 6px;
    }

    .subtitle {
        letter-spacing: 3px;
        font-size: 0.65rem;
    }

    .line-decoration {
        width: 25px;
    }

    .countdown {
        gap: 4px;
    }

    .countdown-item {
        min-width: 55px;
        padding: 10px 6px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .input-wrapper {
        flex-direction: column;
        border-radius: 14px;
    }

    .input-wrapper input {
        min-width: auto;
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .input-wrapper button {
        width: 100%;
        justify-content: center;
        border-radius: 0 0 14px 14px;
        padding: 12px;
    }

    .bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .tech-info {
        gap: 8px;
    }

    .tech-info span {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .audio-bars {
        padding: 0 10%;
    }

    .status-text {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 400px) {
    .countdown-item {
        min-width: 48px;
    }

    .countdown-number {
        font-size: 1.3rem;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }

    .subtitle-line {
        gap: 8px;
    }

    .line-decoration {
        width: 15px;
    }
}
