/**
 * Sickle Safe - Custom Styles
 * Cinematic Luxury Health Platform
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    background-color: #F5F5F0;
    color: #2C2C2C;
    overflow-x: hidden;
}

/* Selection styling */
::selection {
    background-color: #8B0000;
    color: white;
}

/* ==========================================================================
   Noise Overlay - Architectural texture
   ========================================================================== */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnPjxmaWx0ZXIgaWQ9J25vaXNlJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC42JyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI25vaXNlKScgb3BhY2l0eT0nMC4wNScvPjwvc3ZnPg==");
    opacity: 0.4;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F0;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ccc #F5F5F0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.clip-center {
    clip-path: inset(0 50% 0 50%);
}

.line-accent {
    height: 1px;
    background-color: #8B0000;
    width: 0%;
}

.text-outline {
    -webkit-text-stroke: 1px rgba(44, 44, 44, 0.2);
    color: transparent;
}

/* GSAP Utility Classes */
.will-change-transform {
    will-change: transform;
}

.blur-in {
    filter: blur(10px);
    opacity: 0;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1A1A1A;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.menu-overlay a {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    color: #F5F5F0;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.menu-overlay.active a {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay a:hover {
    color: #8B0000;
}

/* Staggered animation delays for menu items */
.menu-overlay a:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay a:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay a:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay a:nth-child(4) { transition-delay: 0.25s; }
.menu-overlay a:nth-child(5) { transition-delay: 0.3s; }
.menu-overlay a:nth-child(6) { transition-delay: 0.35s; }

.menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #F5F5F0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    font-family: "Inter", sans-serif;
}

.menu-close:hover {
    color: #8B0000;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d1d5db;
    outline: none;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #8B0000;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -0.5rem;
    font-size: 0.625rem;
    color: #8B0000;
}

/* Form validation states */
.form-group.error input {
    border-color: #dc2626;
}

.form-group .error-message {
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    font-size: 0.625rem;
    color: #dc2626;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.error .error-message {
    opacity: 1;
}

.form-group.success input {
    border-color: #16a34a;
}

/* Submit button states */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn .btn-text {
    transition: transform 0.3s ease;
}

.submit-btn .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.submit-btn.loading .btn-text {
    transform: translateY(200%);
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

/* Success message */
.form-success {
    text-align: center;
    padding: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}

.form-success.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Skip Link - Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #8B0000;
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Focus Styles - Accessibility
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #8B0000;
    outline-offset: 2px;
}

/* ==========================================================================
   Reduced Motion - Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .noise-overlay {
        display: none;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .menu-overlay a {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .noise-overlay,
    .menu-overlay,
    nav {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==========================================================================
   Image Loading States & Skeleton Screens
   ========================================================================== */

/* Image wrapper for loading states */
.img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #E5E5E0;
}

/* Skeleton shimmer animation */
.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: skeleton-shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Image loading state */
.img-loading {
    position: relative;
}

.img-loading img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.img-loading.loaded img {
    opacity: 1;
}

.img-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        #E5E5E0 0%,
        #D5D5D0 50%,
        #E5E5E0 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    z-index: 0;
}

.img-loading.loaded::before {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Blur-up effect for progressive loading */
.blur-load {
    position: relative;
    overflow: hidden;
}

.blur-load img {
    filter: blur(0);
    transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}

.blur-load img.loading {
    filter: blur(20px);
    opacity: 0.6;
}

/* Placeholder pulse for dark backgrounds */
.img-placeholder-dark {
    background: linear-gradient(
        135deg,
        #2A2A2A 0%,
        #3A3A3A 50%,
        #2A2A2A 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

/* Loading spinner overlay */
.img-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.img-loading.loaded .img-spinner {
    opacity: 0;
    pointer-events: none;
}

.img-spinner::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 0, 0, 0.2);
    border-top-color: #8B0000;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Hero image specific loading */
#hero-shutter .img-loading::before {
    background: linear-gradient(
        135deg,
        #1A1A1A 0%,
        #2A2A2A 50%,
        #1A1A1A 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

/* Services section dark skeleton */
#services-wrapper .img-loading::before {
    background: linear-gradient(
        135deg,
        #1A1A1A 0%,
        #2A2A2A 50%,
        #1A1A1A 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

/* Reduced motion - disable skeleton animations */
@media (prefers-reduced-motion: reduce) {
    .skeleton::before,
    .img-loading::before {
        animation: none;
    }

    .img-spinner::after {
        animation: none;
        border-top-color: #8B0000;
        border-color: #8B0000;
    }

    .img-loading img {
        transition: none;
        opacity: 1;
    }
}

/* ==========================================================================
   Brand Statements - Pinned Scroll Section
   ========================================================================== */

#statements {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1A1A1A;
    overflow: hidden;
}

.statements-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.statement {
    position: absolute;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.9);
    will-change: transform, opacity, filter;
}

.statement-text {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #F5F5F0;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.statement-text .accent {
    color: #8B0000;
}

.statement-stat {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 300;
    color: #8B0000;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.statement-label {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #9CA3AF;
}

.statement-final {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-style: italic;
    color: #F5F5F0;
}

/* ==========================================================================
   How It Works - Pinned Scroll Section
   ========================================================================== */

.hiw-pin-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}

.hiw-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 2rem;
    position: relative;
    min-height: 400px;
}

/* Left side - Step list */
.hiw-left {
    position: relative;
    padding-right: 4rem;
    padding-left: 2.5rem;
    flex-shrink: 0;
}

.hiw-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hiw-list li {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    color: #9CA3AF;
    transition: color 0.3s ease;
    cursor: default;
}

.hiw-list li:first-child {
    padding-top: 0;
}

.hiw-list li:last-child {
    padding-bottom: 0;
}

.hiw-list li.active {
    color: #8B0000;
}

.hiw-step-num {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hiw-step-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
}

/* Progress fill bar */
.hiw-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    background-color: #8B0000;
    transform-origin: top left;
}

/* Right side - Slides */
.hiw-right {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hiw-slide {
    position: absolute;
    width: 100%;
    max-width: 500px;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    opacity: 0;
    visibility: hidden;
}

.hiw-slide-content {
    background: #F5F5F0;
    padding: 3rem;
    border-radius: 8px;
}

.hiw-slide-icon {
    color: #8B0000;
    margin-bottom: 1.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hiw-pin-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hiw-content {
        flex-direction: column;
        padding: 2rem 1rem;
        min-height: auto;
        overflow: hidden;
    }

    .hiw-left {
        padding-left: 1.5rem;
        padding-right: 0;
        margin-bottom: 2rem;
        position: relative;
        z-index: 2;
    }

    .hiw-step-title {
        font-size: 1.25rem;
    }

    .hiw-right {
        flex-grow: 0;
        min-height: 380px;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    .hiw-slide {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        transform: none;  /* Override desktop translateY(-50%) */
        /* Let GSAP control opacity/visibility - don't override */
    }

    .hiw-slide-content {
        padding: 1rem;
    }

    .hiw-slide-icon {
        margin-bottom: 0.75rem;
        max-width: 140px;
        max-height: 140px;
        margin-left: auto;
        margin-right: auto;
    }

    .hiw-slide-icon svg {
        width: 100%;
        height: 100%;
    }

    .hiw-slide-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hiw-slide-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}


/* ==========================================================================
   Medical ID Section - 3D Effects
   ========================================================================== */

.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}


/* ==========================================================================
   How It Works - Animated SVG Icons
   ========================================================================== */

/* Step 1: Phone float + orbiting icons */
.anim-phone {
    animation: phoneFloat 3s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.anim-download {
    animation: downloadPulse 2s ease-in-out infinite;
}
@keyframes downloadPulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(5px); opacity: 0.5; }
}

.anim-orbit-1 {
    animation: orbit1 6s linear infinite;
    transform-origin: 100px 100px;
}
.anim-orbit-2 {
    animation: orbit2 6s linear infinite;
    transform-origin: 100px 100px;
}
.anim-orbit-3 {
    animation: orbit3 6s linear infinite;
    transform-origin: 100px 100px;
}
@keyframes orbit1 {
    0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}
@keyframes orbit2 {
    0% { transform: rotate(120deg) translateX(60px) rotate(-120deg); }
    100% { transform: rotate(480deg) translateX(60px) rotate(-480deg); }
}
@keyframes orbit3 {
    0% { transform: rotate(240deg) translateX(60px) rotate(-240deg); }
    100% { transform: rotate(600deg) translateX(60px) rotate(-600deg); }
}

/* Step 2: Medical ID animations */
.anim-line {
    opacity: 0;
    animation: lineAppear 2s infinite;
}
.anim-line:nth-child(1) { animation-delay: 0s; }
.anim-line:nth-child(2) { animation-delay: 0.4s; }
.anim-line:nth-child(3) { animation-delay: 0.8s; }

@keyframes lineAppear {
    0% { opacity: 0; transform: translateX(-10px); }
    20% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(5px); }
}

.anim-qr {
    animation: qrPulse 2s ease-in-out infinite;
}
@keyframes qrPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.anim-drop {
    animation: dropPulse 1.5s ease-in-out infinite;
}
@keyframes dropPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Step 3: Circle of Care animations */
.anim-center {
    animation: centerPulse 2s ease-in-out infinite;
}
@keyframes centerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.anim-connection {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawLine 2s ease-in-out infinite;
}
.anim-connection:nth-child(1) { animation-delay: 0s; }
.anim-connection:nth-child(2) { animation-delay: 0.3s; }
.anim-connection:nth-child(3) { animation-delay: 0.6s; }
.anim-connection:nth-child(4) { animation-delay: 0.9s; }

@keyframes drawLine {
    0% { stroke-dashoffset: 50; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -50; opacity: 0.3; }
}

.anim-member {
    opacity: 0;
    animation: memberPop 2.5s infinite;
}
.anim-member:nth-child(1) { animation-delay: 0.2s; }
.anim-member:nth-child(2) { animation-delay: 0.5s; }
.anim-member:nth-child(3) { animation-delay: 0.8s; }
.anim-member:nth-child(4) { animation-delay: 1.1s; }

@keyframes memberPop {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1.1); }
    30% { transform: scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.anim-ripple {
    animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
    0% { r: 20; opacity: 0.8; }
    100% { r: 70; opacity: 0; }
}

/* Step 4: Shield animations */
.anim-shield {
    animation: shieldGlow 2s ease-in-out infinite;
}
@keyframes shieldGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(139, 0, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.6)); }
}

.anim-heartline {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: heartLine 2s linear infinite;
}
@keyframes heartLine {
    0% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; }
}

.anim-check {
    opacity: 0;
    animation: checkPop 3s infinite;
}
.anim-check:nth-child(1) { animation-delay: 0.5s; }
.anim-check:nth-child(2) { animation-delay: 1.2s; }
.anim-check:nth-child(3) { animation-delay: 1.9s; }

@keyframes checkPop {
    0% { opacity: 0; transform: scale(0); }
    15% { opacity: 1; transform: scale(1.3); }
    25% { transform: scale(1); }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.anim-bell {
    animation: bellRing 2s ease-in-out infinite;
    transform-origin: center top;
}
@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(5deg); }
    40% { transform: rotate(0deg); }
}

/* Medical ID Phone Animation Keyframes */
@keyframes idCardSlide {
    0% { transform: translateY(15px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes idProfilePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes idDataFill {
    0% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

@keyframes idQrAppear {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes idBloodPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes idStatusPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes idScreenGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(139, 0, 0, 0.2)); }
    50% { filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.4)); }
}

/* Medical ID Animation Classes */
.anim-id-card {
    animation: idCardSlide 1s ease-out forwards;
}

.anim-id-profile {
    animation: idProfilePulse 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.anim-id-data-1 {
    animation: idDataFill 0.8s ease-out forwards;
    animation-delay: 0.3s;
    transform: scaleX(0);
}

.anim-id-data-2 {
    animation: idDataFill 0.8s ease-out forwards;
    animation-delay: 0.5s;
    transform: scaleX(0);
}

.anim-id-data-3 {
    animation: idDataFill 0.8s ease-out forwards;
    animation-delay: 0.7s;
    transform: scaleX(0);
}

.anim-id-qr {
    animation: idQrAppear 0.6s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.anim-id-blood {
    animation: idBloodPulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

.anim-id-status {
    animation: idStatusPop 0.5s ease-out forwards;
    animation-delay: 1.2s;
    transform: scale(0);
}

.anim-id-phone {
    animation: idScreenGlow 3s ease-in-out infinite;
}

/* ==========================================================================
   Problem Page - Scroll Journey Styles
   ========================================================================== */

/* Hero section initial states */
.problem-badge,
.problem-title,
.problem-subtitle,
.scroll-indicator {
    opacity: 0;
    transform: translateY(20px);
}

/* Chapter header initial states */
.chapter-badge,
.chapter-title,
.chapter-subtitle {
    opacity: 0;
    transform: translateY(15px);
}

/* Journey step initial states */
.journey-step {
    opacity: 0;
    transform: translateY(20px);
}

/* Journey dot styles */
.journey-dot {
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
}

.journey-dot.filled {
    background-color: #8B0000 !important;
}

/* Stat card styles */
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Stat number animation placeholder */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Funding callout */
.funding-callout {
    opacity: 0;
    transform: translateY(20px);
}

/* Solution CTA */
.solution-cta {
    opacity: 0;
    transform: translateY(20px);
}

/* Scroll indicator bounce animation */
.scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Problem page responsive adjustments */
@media (max-width: 768px) {
    .journey-chapter {
        margin-bottom: 6rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

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

    .stat-suffix {
        font-size: 1.5rem;
    }

    .funding-callout {
        padding: 1.5rem;
    }

    .funding-callout p.font-serif {
        font-size: 1.25rem;
    }
}

/* Journey line glow effect on mobile */
@media (max-width: 768px) {
    #journey-line-fill {
        box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
    }
}

/* Ensure proper stacking on the problem page */
#problem-journey {
    isolation: isolate;
}

/* Problem hero background gradient overlay */
#problem-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 26, 0.8) 100%);
    pointer-events: none;
}
