/* =============================================
   CUSTOM CURSOR
   ============================================= */
@media (pointer: fine) and (min-width: 769px) {
    body.custom-cursor-ready,
    body.custom-cursor-ready * {
        cursor: none !important;
    }
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #FFB800;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 10px #FFB800, 0 0 20px rgba(255, 184, 0, 0.5);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 184, 0, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.cursor-dot.cursor-hover {
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow: 0 0 15px #FFB800;
}

.cursor-ring.cursor-hover {
    width: 54px;
    height: 54px;
    border-color: rgba(255, 184, 0, 0.9);
    background: rgba(255, 184, 0, 0.06);
}

.cursor-trail {
    position: fixed;
    width: 5px;
    height: 5px;
    background: #FFB800;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99997;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-hidden.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-hidden {
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Stagger for showcase items */
.showcase-item:nth-child(2) {
    transition-delay: 0.1s !important;
}

.showcase-item:nth-child(3) {
    transition-delay: 0.2s !important;
}

.showcase-item:nth-child(4) {
    transition-delay: 0.3s !important;
}

@media (max-width: 768px) {
    .showcase-item:nth-child(2) {
        transition-delay: 0.08s !important;
    }

    .showcase-item:nth-child(3) {
        transition-delay: 0.16s !important;
    }

    .showcase-item:nth-child(4) {
        transition-delay: 0.24s !important;
    }
}

/* Stagger for service cards */
.service-card:nth-child(2) {
    transition-delay: 0.1s !important;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s !important;
}

.service-card:nth-child(4) {
    transition-delay: 0.3s !important;
}

@media (max-width: 768px) {
    .service-card:nth-child(2) {
        transition-delay: 0.08s !important;
    }

    .service-card:nth-child(3) {
        transition-delay: 0.16s !important;
    }

    .service-card:nth-child(4) {
        transition-delay: 0.24s !important;
    }
}

/* Stagger for process steps */
.process-step:nth-child(2) {
    transition-delay: 0.1s !important;
}

.process-step:nth-child(3) {
    transition-delay: 0.2s !important;
}

.process-step:nth-child(4) {
    transition-delay: 0.3s !important;
}

@media (max-width: 768px) {
    .process-step:nth-child(2) {
        transition-delay: 0.08s !important;
    }

    .process-step:nth-child(3) {
        transition-delay: 0.16s !important;
    }

    .process-step:nth-child(4) {
        transition-delay: 0.24s !important;
    }
}

/* =============================================
   ABOUT BADGE
   ============================================= */
.about-badge {
    display: inline-block;
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.25);
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

/* =============================================
   SERVICE CARDS — 3D tilt base
   ============================================= */
.service-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* =============================================
   INTRO LOGO — start hidden for JS
   ============================================= */
#intro-logo {
    opacity: 0;
    transform: scale(0.8);
}

/* =============================================
   SECTION TITLE — accent underline animation
   ============================================= */
.section-title .text-accent {
    position: relative;
    display: inline-block;
}

.section-title .text-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.6s ease 0.3s;
}

.in-view .section-title .text-accent::after,
.section-title.in-view .text-accent::after {
    width: 100%;
}

/* =============================================
   PROCESS — subtitle spacing
   ============================================= */
.process .section-subtitle {
    margin-bottom: 4rem;
}

/* =============================================
   MOBILE — disable cursor
   ============================================= */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    #custom-cursor,
    .cursor-trail {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hidden {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #custom-cursor,
    .cursor-trail {
        display: none !important;
    }
}
