/*
Theme Name: CreatorQuill
Author: WordPress Telex
Description: A dark luxury broadcast-inspired theme for a content marketing agency. Features electric blue and neon red accents, monospace typography, scanline overlays, and cinematic animations.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: creatorquill
Tags: block-theme, full-site-editing, dark, agency, marketing
*/

/* === BROADCAST DARK CORE === */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #060608;
    overflow-x: hidden;
}

/* Scanline overlay on body */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(6,6,8,0.06) 2px,
        rgba(6,6,8,0.06) 4px
    );
}

/* === EQUAL CARDS === */

.equal-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.equal-cards .cta-bottom {
    margin-top: auto;
    justify-content: center;
}

.wp-site-blocks > footer {
    margin-block-start: 0;
}

/* === SCROLL ANIMATIONS === */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255,0,60,0.4), 0 0 20px rgba(255,0,60,0.15);
    }
    50% {
        box-shadow: 0 0 16px rgba(255,0,60,0.6), 0 0 40px rgba(255,0,60,0.3);
    }
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

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

.hero-section {
    position: relative;
    min-height: 100vh;
}

.hero-section .wp-block-cover {
    min-height: 100vh !important;
}

.hero-section .wp-block-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(6,6,8,0.12) 2px,
        rgba(6,6,8,0.12) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.hero-section .wp-block-cover__inner-container {
    z-index: 2;
    position: relative;
}

.hero-headline {
    animation: fadeSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-headline-accent {
    animation: fadeSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.hero-red-rule {
    width: 100%;
    max-width: 560px;
    height: 2px;
    background: #FF003C;
    animation: pulseGlow 3s ease-in-out infinite, revealText 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
}

.hero-meta {
    animation: fadeIn 0.8s ease 0.9s both;
}

.hero-cta-area {
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s both;
}

/* === TICKER === */

.ticker-band {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0,102,255,0.2);
    border-bottom: 1px solid rgba(0,102,255,0.2);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: tickerScroll 30s linear infinite;
    gap: 0;
}

.ticker-track span {
    padding: 0 24px;
    white-space: nowrap;
}

/* === SERVICE CARDS === */

.service-card {
    border: 1px solid rgba(0,102,255,0.12);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0066FF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    border-color: rgba(0,102,255,0.35);
    box-shadow: 0 0 30px rgba(0,102,255,0.08);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* === STAT BLOCKS === */

.stat-block {
    position: relative;
    text-align: center;
}

.stat-block::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #0066FF;
    margin: 12px auto 0;
}

/* === CASE STUDY CARDS === */

.case-study-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.case-study-card figure {
    overflow: hidden;
}

.case-study-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    filter: saturate(0.3) contrast(1.2);
}

.case-study-card:hover img {
    transform: scale(1.08);
    filter: saturate(0.6) contrast(1.1);
}

/* === TESTIMONIAL === */

.testimonial-card {
    border-left: 2px solid #FF003C;
    position: relative;
}

.testimonial-card::before {
    content: '//';
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 3rem;
    color: rgba(0,102,255,0.12);
    line-height: 1;
}

/* === BUTTONS === */

.wp-block-button.broadcast-btn .wp-block-button__link {
    font-family: Impact, 'Arial Black', sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wp-block-button.broadcast-btn .wp-block-button__link:hover {
    box-shadow: 0 0 30px rgba(0,102,255,0.4);
    transform: translateY(-2px);
}

.wp-block-button.broadcast-outline .wp-block-button__link {
    font-family: 'Courier New', 'Lucida Console', monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.wp-block-button.broadcast-outline .wp-block-button__link:hover {
    color: #F0F0F2;
    border-color: #F0F0F2;
}

/* === SECTION DIVIDERS === */

.broadcast-divider {
    position: relative;
}

.broadcast-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, rgba(0,102,255,0.4) 0%, transparent 100%);
}

/* === CTA SECTION === */

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,102,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* === FOOTER === */

.broadcast-footer a {
    transition: color 0.2s ease;
}

.broadcast-footer a:hover {
    color: #0066FF !important;
}

/* === GRID CORNER MARKERS === */

.corner-marker-tl,
.corner-marker-br {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.corner-marker-tl {
    top: 24px;
    left: 24px;
    border-top: 1px solid #3A3A4A;
    border-left: 1px solid #3A3A4A;
}

.corner-marker-br {
    bottom: 24px;
    right: 24px;
    border-bottom: 1px solid #3A3A4A;
    border-right: 1px solid #3A3A4A;
}

/* === LIVE INDICATOR === */

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF003C;
    box-shadow: 0 0 8px #FF003C, 0 0 20px rgba(255,0,60,0.3);
    animation: pulseGlow 2s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* === RESPONSIVE === */

@media (max-width: 782px) {
    .hide-mobile {
        display: none !important;
    }

    .hero-section .wp-block-cover {
        min-height: 90vh !important;
    }
}