/* 
  Custom styles to supplement Tailwind.
  Mostly for GSAP utility classes, minimal overrides, 
  and placeholder styles until real assets are added.
*/

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em; /* Match Tailwind's tracking-wide */
}

/* Base GSAP trigger classes - elements starting hidden before scroll */
.gsap-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.gsap-fade {
    opacity: 0;
}

/* Ken Burns Animation */
@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-1%, -1%);
    }
}

.ken-burns {
    animation: kenburns 15s ease-out forwards;
}

/* Slider Transitions */
.slide-fade-enter {
    opacity: 0;
}

.slide-fade-enter-active {
    transition: opacity 1s ease-in-out;
}

.slide-fade-exit {
    opacity: 1;
}

.slide-fade-exit-active {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Hero Slider Styles */
.hero-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Progress Indicators */
.slide-indicator {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    overflow: hidden;
}

.slide-indicator-progress {
    height: 100%;
    background: var(--brand-color, #a40000);
    width: 0%;
}

.active .slide-indicator-progress {
    width: 100%;
}

/* Heartbeat text pulse — the word 'transition.' beats like a heart */
@keyframes heartbeat-text {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
    10% {
        transform: scale(1.12);
        filter: brightness(1.3);
    }
    20% {
        transform: scale(1);
        filter: brightness(1);
    }
    35% {
        transform: scale(1.07);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.heartbeat-text {
    display: inline-block;
    transform-origin: center bottom;
    animation: heartbeat-text 2s ease-in-out infinite;
}

/* Ladder card fly-in initial states */
.ladder-card-left {
    opacity: 0;
    transform: translateX(-60px);
}

.ladder-card-right {
    opacity: 0;
    transform: translateX(60px);
}

/* Hero background */
.hero-bg {
    position: relative;
    background-color: #111;
    --hero-img: url('/static/images/slide-one-3916x1800.png');
    --hero-transform: scaleX(-1);
    --hero-pos: right center;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: var(--hero-pos);
    /* Focus on the right side of the un-flipped image */
    transform: var(--hero-transform);
    /* Flips the element horizontally */
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark gradient on the left, fading to transparent on the right so the human is visible */
    background: linear-gradient(to right, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.7) 50%, rgba(17, 17, 17, 0.1) 100%);
    z-index: 1;
}

/* Ensure children stay above the pseudo overlays */
.hero-bg>div {
    position: relative;
    z-index: 10;
}

/* About Page Background */
.about-bg {
    position: relative;
    background-color: #111;
    --about-img: url('/static/images/slider-two-3916x1800.png');
    --about-pos: center center;
}

.about-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--about-img);
    background-size: cover;
    background-position: var(--about-pos);
    transform: scaleX(-1);
    /* Flips the element horizontally so the human is on the right */
    z-index: 0;
}

.about-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark gradient on the left, fading to transparent on the right so the human is visible */
    background: linear-gradient(to right, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.8) 40%, rgba(17, 17, 17, 0.2) 100%);
    z-index: 1;
}

/* Ensure children stay above the pseudo overlays */
.about-bg>div {
    position: relative;
    z-index: 10;
}

/* About Page Content Background */
.content-bg {
    position: relative;
    --content-img: url('/static/images/empowering-transformation-bg.png');
}

.content-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--content-img);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* Parallax effect for exotic feel */
    z-index: 0;
}

.content-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Light transparent overlay to ensure dark text blocks stand out */
    background-color: rgba(249, 249, 249, 0.35);
    z-index: 1;
}

.content-bg>div {
    position: relative;
    z-index: 10;
}

/* Proof Page Background */
.proof-bg {
    position: relative;
    background-color: #111;
    --proof-img: url('/static/images/slider-three-3916x1800.png');
    --proof-pos: center top;
}

.proof-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--proof-img);
    background-size: cover;
    background-position: var(--proof-pos);
    transform: scaleX(-1);
    /* Flips the element horizontally so the human is on the right */
    z-index: 0;
}

.proof-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark gradient on the left, fading to transparent on the right so the human is visible */
    background: linear-gradient(to right, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.8) 40%, rgba(17, 17, 17, 0.2) 100%);
    z-index: 1;
}

/* Ensure children stay above the pseudo overlays */
.proof-bg>div {
    position: relative;
    z-index: 10;
}

/* Mobile optimizations for Backgrounds */
@media (max-width: 767px) {
    .hero-bg {
        --hero-img: url('/static/images/slider-two-3916x1800.png');
        --hero-transform: none;
        --hero-pos: center;
    }

    .hero-bg::after {
        /* On mobile, text often covers the whole screen, so we need a more uniform dark overlay starting from top left to bottom right */
        background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.85) 50%, rgba(17, 17, 17, 0.6) 100%);
    }

    .about-bg::before {
        transform: none;
        /* Keep the original orientation on mobile */
    }

    .about-bg::after {
        background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.85) 50%, rgba(17, 17, 17, 0.6) 100%);
    }

    .proof-bg::before {
        transform: none;
        /* Keep the original orientation on mobile */
    }

    .proof-bg::after {
        background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.85) 50%, rgba(17, 17, 17, 0.6) 100%);
    }
}

/* Animated gradient border utility */
.gradient-border-b {
    position: relative;
}

.gradient-border-b::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #A40000, transparent);
}