/* ==========================================================================
   OG SIGNAL THEME — Animations & Micro-Interactions
   Premium scroll reveals, hover states, visual polish
   ========================================================================== */

/* ---- Scroll Reveal Base ---- */
.tl-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tl-reveal.tl-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from left */
.tl-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tl-reveal-left.tl-revealed { opacity: 1; transform: translateX(0); }

/* Reveal from right */
.tl-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tl-reveal-right.tl-revealed { opacity: 1; transform: translateX(0); }

/* Scale reveal */
.tl-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tl-reveal-scale.tl-revealed { opacity: 1; transform: scale(1); }

/* Stagger children */
.tl-stagger-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tl-stagger-item.tl-revealed { opacity: 1; transform: translateY(0); }

/* Hidden state for filter transitions */
.tl-hidden { display: none !important; }


/* ==========================================================================
   SECTION TRANSITIONS — Sections come alive as they enter viewport
   ========================================================================== */

.et_pb_section {
    transition: opacity 0.1s ease;
}

/* Decorative accent lines on sections */
.tl-section-light::before,
.tl-section-dark::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--tl-accent);
    margin: 0 auto var(--tl-space-xl);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-section-light.tl-section-visible::before,
.tl-section-dark.tl-section-visible::before {
    opacity: 1;
    transform: scaleX(1);
}


/* ==========================================================================
   HERO SECTION — Premium entrance animations
   ========================================================================== */

.tl-section-gradient .et_pb_text {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.tl-section-gradient .et_pb_image {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    animation: heroSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideIn {
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Hero image float animation */
.tl-section-gradient .et_pb_image .et_pb_image_wrap {
    animation: heroFloat 6s ease-in-out infinite 1.6s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}


/* ==========================================================================
   BLURB / CARD HOVER EFFECTS — POV cards, feature cards
   ========================================================================== */

.et_pb_blurb {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--tl-radius-lg);
    position: relative;
    overflow: hidden;
}

.et_pb_blurb:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Accent bar that slides in on hover */
.et_pb_blurb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--tl-warm), var(--tl-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.et_pb_blurb:hover::after {
    transform: scaleX(1);
}

/* Blurb icon pulse on hover */
.et_pb_blurb:hover .et_pb_main_blurb_image .et-pb-icon {
    animation: iconPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}


/* ==========================================================================
   TESTIMONIAL HOVER
   ========================================================================== */

.et_pb_testimonial {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--tl-radius-lg) !important;
    overflow: hidden;
    border: 1px solid transparent !important;
}

.et_pb_testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--tl-accent) !important;
}


/* ==========================================================================
   BUTTON EFFECTS — Premium interactions
   ========================================================================== */

.et_pb_button {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Shimmer sweep on hover */
.et_pb_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.et_pb_button:hover::before {
    left: 100%;
}

.et_pb_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(125, 1, 0, 0.3) !important;
}

/* Ghost button hover fill */
.et_pb_button[style*="background: transparent"]:hover,
.et_pb_button[style*="background:transparent"]:hover,
.et_pb_button[style*="rgba(0,0,0,0)"]:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Hero HTML button links (inside et_pb_text as <a> tags) */
.tl-section-gradient .et_pb_text a[href] {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
    overflow: hidden;
}

.tl-section-gradient .et_pb_text a[href]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    filter: brightness(1.1);
}

/* Shimmer on hero accent button */
.tl-section-gradient .et_pb_text a[href][style*="background: #7D0100"],
.tl-section-gradient .et_pb_text a[href][style*="background:#7D0100"] {
    position: relative;
    overflow: hidden;
}

.tl-section-gradient .et_pb_text a[href][style*="background: #7D0100"]::before,
.tl-section-gradient .et_pb_text a[href][style*="background:#7D0100"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: inherit;
}

.tl-section-gradient .et_pb_text a[href][style*="background: #7D0100"]:hover::before,
.tl-section-gradient .et_pb_text a[href][style*="background:#7D0100"]:hover::before {
    left: 100%;
}


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

.tl-counter {
    font-family: var(--tl-font-heading);
    font-size: var(--tl-text-5xl);
    font-weight: var(--tl-weight-black);
    color: var(--tl-accent);
    line-height: 1;
    text-shadow: 0 0 40px rgba(125, 1, 0, 0.25);
}

.tl-stat {
    text-align: center;
    padding: var(--tl-space-xl);
    position: relative;
}

.tl-stat-label {
    font-size: var(--tl-text-sm);
    font-weight: var(--tl-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--tl-tracking-wide);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--tl-space-sm);
}

/* Stat hover glow */
.tl-stat:hover .tl-counter {
    text-shadow: 0 0 60px rgba(125, 1, 0, 0.4);
    transition: text-shadow 0.4s ease;
}


/* ==========================================================================
   IMAGE EFFECTS
   ========================================================================== */

.et_pb_image .et_pb_image_wrap {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.et_pb_image:hover .et_pb_image_wrap {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Blog/portfolio image zoom on hover */
.et_pb_portfolio_item .et_portfolio_image img,
.et_pb_blog_grid .et_pb_post .entry-featured-image-url img,
.og-media-card .og-media-card-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.et_pb_portfolio_item:hover .et_portfolio_image img,
.et_pb_blog_grid .et_pb_post:hover .entry-featured-image-url img,
.og-media-card:hover .og-media-card-image img {
    transform: scale(1.08);
}

/* Blog post hover */
.et_pb_blog_grid .et_pb_post {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--tl-radius-lg);
    overflow: hidden;
}

.et_pb_blog_grid .et_pb_post:hover {
    transform: translateY(-6px);
    box-shadow: var(--tl-shadow-xl);
}


/* ==========================================================================
   LINK / TEXT EFFECTS
   ========================================================================== */

/* Animated underline for inline text links only (not button-styled links) */
.et_pb_text p > a:not(.et_pb_button):not(.tl-cta-button) {
    position: relative;
    text-decoration: none;
}

.et_pb_text p > a:not(.et_pb_button):not(.tl-cta-button)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tl-accent);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.et_pb_text p > a:not(.et_pb_button):not(.tl-cta-button):hover::after {
    width: 100%;
}

/* Kill underline on any link styled as a button (inline-block with border-radius) */
.et_pb_text div a,
.tl-section-gradient a {
    text-decoration: none !important;
}
.et_pb_text div a::after,
.tl-section-gradient .et_pb_text a::after {
    display: none !important;
}


/* ==========================================================================
   OVERLINE ANIMATION — The "WHO I AM" / "WHAT I STAND FOR" labels
   ========================================================================== */

.tl-overline {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Subtle slide-in from left */
.tl-revealed .tl-overline,
.tl-section-visible .tl-overline {
    animation: overlineSlide 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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


/* ==========================================================================
   GRADIENT TEXT EFFECT
   ========================================================================== */

.tl-gradient-text {
    background: linear-gradient(135deg, var(--tl-accent) 0%, var(--tl-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ==========================================================================
   QUOTE BLOCK ANIMATION
   ========================================================================== */

.tl-quote {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.tl-quote.tl-revealed,
.tl-section-visible .tl-quote {
    opacity: 1;
    transform: translateX(0);
}

/* Quote mark animation */
.tl-revealed .tl-quote-mark {
    animation: quoteFadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

@keyframes quoteFadeIn {
    to { opacity: 0.25; }
}


/* ==========================================================================
   CTA BLOCK ANIMATION
   ========================================================================== */

.tl-cta {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-cta.tl-revealed {
    opacity: 1;
    transform: scale(1);
}


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

/* Active nav item indicator dot */
#top-menu li.current-menu-item a::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tl-accent);
    margin: 4px auto 0;
}


/* ==========================================================================
   DARK SECTION TEXT GLOW
   ========================================================================== */

.tl-section-dark h2,
.tl-section-gradient h1 {
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

.tl-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tl-warm), var(--tl-accent));
    z-index: 99999;
    transition: width 0.1s linear;
    pointer-events: none;
}


/* ==========================================================================
   PULSE FOR LIVE INDICATORS
   ========================================================================== */

@keyframes tl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.tl-pulse { animation: tl-pulse 2s ease-in-out infinite; }


/* ==========================================================================
   REDUCED MOTION — Respect user preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .tl-reveal,
    .tl-reveal-left,
    .tl-reveal-right,
    .tl-reveal-scale,
    .tl-stagger-item,
    .tl-quote,
    .tl-cta,
    .tl-section-gradient .et_pb_text,
    .tl-section-gradient .et_pb_image {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .et_pb_blurb::after,
    .tl-section-light::before,
    .tl-section-dark::before {
        display: none !important;
    }

    .tl-section-gradient .et_pb_image .et_pb_image_wrap {
        animation: none !important;
    }
}
