/* =========================================================
   SK XPRES HOMEPAGE MOTION
   Separate motion styles - existing homepage styles preserved
========================================================= */

/* Hero text entrance animation */
.hero-content .hero-badge {
    animation: skxHeroFadeUp 0.7s ease both;
    animation-delay: 0.1s;
}

.hero-content h1 {
    animation: skxHeroFadeUp 0.8s ease both;
    animation-delay: 0.25s;
}

.hero-content > p {
    animation: skxHeroFadeUp 0.8s ease both;
    animation-delay: 0.4s;
}

.hero-content .hero-buttons {
    animation: skxHeroFadeUp 0.8s ease both;
    animation-delay: 0.55s;
}

.hero-image {
    animation: skxHeroImageIn 1s ease both;
    animation-delay: 0.2s;
}

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

@keyframes skxHeroImageIn {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Hero and offer video/image sizing */
.hero-image img,
.hero-image video,
.offer-image img,
.offer-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image video,
.offer-image video {
    border-radius: inherit;
}

/* Continuous right-to-left category movement */
.category-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.category-marquee-track {
    display: flex;
    width: max-content;
    align-items: stretch;
    animation: skxCategoryScroll 35s linear infinite;
    will-change: transform;
}

.category-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 24px;
    padding-right: 24px;
}

.category-marquee-group .category-card {
    flex: 0 0 auto;
    min-width: 220px;
}

.category-marquee:hover .category-marquee-track {
    animation-play-state: paused;
}

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

/* Responsive category cards */
@media (max-width: 768px) {
    .category-marquee-track {
        animation-duration: 28s;
    }

    .category-marquee-group {
        gap: 14px;
        padding-right: 14px;
    }

    .category-marquee-group .category-card {
        min-width: 165px;
    }
}

/* Respect reduced-motion accessibility preference */
@media (prefers-reduced-motion: reduce) {
    .hero-content .hero-badge,
    .hero-content h1,
    .hero-content > p,
    .hero-content .hero-buttons,
    .hero-image {
        animation: none !important;
    }

    .category-marquee {
        overflow-x: auto;
    }

    .category-marquee-track {
        animation: none !important;
        transform: none !important;
    }
}
/* =====================================================
   SK XPRES - PREMIUM HERO TEXT SEQUENCE
   ===================================================== */

.hero-content {
    animation: none !important;
}

.hero-content > * {
    opacity: 0;
    animation: skx-hero-reveal 0.85s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-content > :nth-child(1) {
    animation-delay: 0.15s;
}

.hero-content > :nth-child(2) {
    animation-delay: 0.75s;
}

.hero-content > :nth-child(3) {
    animation-delay: 1.35s;
}

.hero-content > :nth-child(4) {
    animation-delay: 1.95s;
}

.hero-content h1 span {
    display: inline-block;
    opacity: 0;
    animation: skx-hero-reveal 0.85s cubic-bezier(.2,.7,.2,1) 1.15s forwards;
}

@keyframes skx-hero-reveal {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* =====================================================
   CATEGORY MARQUEE - CONTROLLED CARD SIZE
   ===================================================== */

.category-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.category-marquee-track {
    display: flex;
    width: max-content;
    max-width: none;
}

.category-marquee-group {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    gap: 18px;
}

.category-marquee-group .category-card {
    flex: 0 0 190px;
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    box-sizing: border-box;
}

.category-marquee-group .category-image {
    height: 125px;
    overflow: hidden;
}

.category-marquee-group .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-marquee-group .category-info {
    padding: 12px;
}

.category-marquee-group .category-info h3 {
    font-size: 15px;
    line-height: 1.4;
}

/* Tablet */
@media (max-width: 768px) {
    .category-marquee-group {
        gap: 14px;
    }

    .category-marquee-group .category-card {
        flex-basis: 165px;
        width: 165px;
        min-width: 165px;
        max-width: 165px;
    }

    .category-marquee-group .category-image {
        height: 110px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .category-marquee-group {
        gap: 12px;
    }

    .category-marquee-group .category-card {
        flex-basis: 145px;
        width: 145px;
        min-width: 145px;
        max-width: 145px;
    }

    .category-marquee-group .category-image {
        height: 95px;
    }

    .category-marquee-group .category-info {
        padding: 9px;
    }

    .category-marquee-group .category-info h3 {
        font-size: 13px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .hero-content h1 span {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}


/* =====================================================
   SK XPRES - CONTINUOUS PREMIUM HERO TEXT ANIMATION
   ===================================================== */

.hero-content > * {
    opacity: 0;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
}

/* Badge */
.hero-content > :nth-child(1) {
    animation-name: skx-badge-loop;
}

/* Heading */
.hero-content > :nth-child(2) {
    animation-name: skx-heading-loop;
}

/* Description */
.hero-content > :nth-child(3) {
    animation-name: skx-description-loop;
}

/* Buttons */
.hero-content > :nth-child(4) {
    animation-name: skx-buttons-loop;
}

/* Prevent old nested span animation from interfering */
.hero-content h1 span {
    opacity: 1;
    animation: none !important;
}

@keyframes skx-badge-loop {
    0%, 2% {
        opacity: 0;
        transform: translateY(18px);
    }
    8%, 88% {
        opacity: 1;
        transform: translateY(0);
    }
    95%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes skx-heading-loop {
    0%, 9% {
        opacity: 0;
        transform: translateY(18px);
    }
    15%, 88% {
        opacity: 1;
        transform: translateY(0);
    }
    95%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes skx-description-loop {
    0%, 17% {
        opacity: 0;
        transform: translateY(18px);
    }
    23%, 88% {
        opacity: 1;
        transform: translateY(0);
    }
    95%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes skx-buttons-loop {
    0%, 25% {
        opacity: 0;
        transform: translateY(18px);
    }
    31%, 88% {
        opacity: 1;
        transform: translateY(0);
    }
    95%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* =====================================================
   CATEGORY CARDS - SMALLER PREMIUM SIZE
   ===================================================== */

.category-marquee-group .category-card {
    flex: 0 0 155px;
    width: 155px;
    min-width: 155px;
    max-width: 155px;
}

.category-marquee-group .category-image {
    height: 100px;
}

.category-marquee-group .category-info {
    padding: 10px;
}

.category-marquee-group .category-info h3 {
    font-size: 14px;
}

/* Tablet */
@media (max-width: 768px) {
    .category-marquee-group .category-card {
        flex-basis: 140px;
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }

    .category-marquee-group .category-image {
        height: 90px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .category-marquee-group .category-card {
        flex-basis: 125px;
        width: 125px;
        min-width: 125px;
        max-width: 125px;
    }

    .category-marquee-group .category-image {
        height: 82px;
    }

    .category-marquee-group .category-info {
        padding: 8px;
    }

    .category-marquee-group .category-info h3 {
        font-size: 12px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-content > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Emergency fix: Keep all hero content visible */
.hero-content > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

.hero-content h1,
.hero-content h1 span {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}


/* =====================================================
   SK XPRES - TRUE REPEATING HERO TYPEWRITER
   ===================================================== */

.hero-content > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

.hero-content h1 {
    opacity: 1 !important;
    animation: none !important;
}

.hero-content h1 .hero-typewriter-line {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

.hero-content h1 .hero-typewriter-line-one {
    color: inherit;
}

.hero-typewriter-description {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    min-height: 3em;
}

.hero-typewriter-line.is-typing::after,
.hero-typewriter-description.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.9em;
    margin-left: 3px;
    vertical-align: -0.08em;
    background: currentColor;
    animation: skx-typing-cursor 0.75s steps(2, start) infinite;
}

@keyframes skx-typing-cursor {
    to {
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-typewriter-line.is-typing::after,
    .hero-typewriter-description.is-typing::after {
        animation: none;
    }
}


/* =====================================================
   SK XPRES - COMPLETE HERO TEXT GROUP ROTATION
   ===================================================== */

.hero-typewriter-group {
    width: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    backface-visibility: visible;
}

.hero-typewriter-group.is-rotating {
    animation: skx-text-group-rotation 1.6s cubic-bezier(.45,0,.25,1) both;
}

@keyframes skx-text-group-rotation {
    0% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
        opacity: 1;
    }
    45% {
        transform: perspective(1000px) rotateY(180deg) scale(.94);
        opacity: .75;
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) scale(1);
        opacity: 1;
    }
}

.hero-typewriter-group .hero-typewriter-heading {
    margin-top: 0;
}

.hero-typewriter-group .hero-typewriter-description {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-typewriter-group.is-rotating {
        animation: none !important;
    }
}


/* SK XPRES: Reliable repeating text rotation */
.hero-typewriter-group.is-rotating {
    animation: skx-text-group-rotation 1.6s cubic-bezier(.45,0,.25,1) both !important;
}


/* =====================================================
   SK XPRES - SIGNATURE PREMIUM HERO MOTION
   ===================================================== */

/* Stable text group */
.hero-typewriter-group {
    position: relative;
    width: 100%;
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    perspective: 1200px;
    will-change: transform, opacity, filter;
}

/* Premium subtle 3D motion */
.hero-typewriter-group.is-rotating {
    animation: skx-text-group-rotation 1.6s
        cubic-bezier(.22, .75, .25, 1) both !important;
}

@keyframes skx-text-group-rotation {
    0% {
        transform: perspective(1200px)
            rotateX(0deg) rotateY(0deg)
            translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    35% {
        transform: perspective(1200px)
            rotateX(7deg) rotateY(-3deg)
            translateY(-5px) scale(.985);
        opacity: .88;
        filter: blur(.4px);
    }

    65% {
        transform: perspective(1200px)
            rotateX(-3deg) rotateY(2deg)
            translateY(2px) scale(.995);
        opacity: .96;
        filter: blur(0);
    }

    100% {
        transform: perspective(1200px)
            rotateX(0deg) rotateY(0deg)
            translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* Refined heading typography */
.hero-typewriter-group .hero-typewriter-heading {
    letter-spacing: -0.035em;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: normal;
}

/* Smooth description appearance */
.hero-typewriter-group .hero-typewriter-description {
    line-height: 1.75;
    letter-spacing: .005em;
    min-height: 3.5em;
}

/* Elegant typing cursor */
.hero-typewriter-line.is-typing::after,
.hero-typewriter-description.is-typing::after {
    width: 2px;
    height: .88em;
    margin-left: 4px;
    border-radius: 2px;
    opacity: .9;
    animation: skx-premium-cursor .85s ease-in-out infinite;
}

@keyframes skx-premium-cursor {
    0%, 100% {
        opacity: .95;
    }
    50% {
        opacity: .15;
    }
}

/* Avoid unnecessary movement on small screens */
@media (max-width: 768px) {
    .hero-typewriter-group {
        perspective: 900px;
    }

    .hero-typewriter-group.is-rotating {
        animation-duration: 1.45s !important;
    }

    @keyframes skx-text-group-rotation {
        0% {
            transform: perspective(900px) rotateX(0deg) translateY(0);
            opacity: 1;
        }
        40% {
            transform: perspective(900px) rotateX(5deg) translateY(-3px);
            opacity: .9;
        }
        100% {
            transform: perspective(900px) rotateX(0deg) translateY(0);
            opacity: 1;
        }
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-typewriter-group,
    .hero-typewriter-group.is-rotating {
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }

    .hero-typewriter-line.is-typing::after,
    .hero-typewriter-description.is-typing::after {
        animation: none !important;
    }
}

