/* ==========================================================================
   FLASHART PREMIUM LAYER — css/premium.css
   Agency-grade enhancements: cursor, noise, progress, effects, polish
   ========================================================================== */



/* ─── 1. SCROLL PROGRESS BAR ─────────────────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    z-index: 9999;
    transition: width 0.08s linear;
    transform-origin: left;
}

/* ─── 2. CUSTOM CURSOR ───────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {

    *,
    *:hover {
        cursor: none !important;
    }

    #cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1.5px solid rgba(255, 255, 255, 0.8);
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
            height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
            background-color 0.25s ease,
            border-color 0.25s ease,
            opacity 0.25s ease;
        will-change: transform;
        mix-blend-mode: difference;
    }

    #cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #fff;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        will-change: transform;
        transition: transform 0.08s linear, opacity 0.2s ease;
        mix-blend-mode: difference;
    }

    /* Hover state on interactive elements */
    body.cursor-hover #cursor-ring {
        width: 64px;
        height: 64px;
        background: rgba(28, 118, 188, 0.08);
        border-color: rgba(28, 118, 188, 0.35);
    }

    body.cursor-hover #cursor-dot {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }

    /* CTA hover — orange accent */
    body.cursor-cta #cursor-ring {
        width: 72px;
        height: 72px;
        background: rgba(247, 143, 71, 0.12);
        border-color: rgba(247, 143, 71, 0.5);
    }

    body.cursor-cta #cursor-dot {
        background: var(--primary-orange);
        transform: translate(-50%, -50%) scale(1.6);
    }

    /* Click state */
    body.cursor-click #cursor-ring {
        width: 30px;
        height: 30px;
        background: rgba(28, 118, 188, 0.15);
    }
}

/* ─── 3. LIQUID GLASS BACKGROUND ORBS & TEXTURE ────────────────────────── */
.premium-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

/* Texture 1: Soft Dot Grid for Premium Tech Vibe */
.premium-orbs::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
}

/* Texture 2: Subtle Noise overlay to kill banding and cheap flat look */
.premium-orbs::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 2;
}

.premium-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: floatOrb 25s infinite ease-in-out alternate;
    will-change: transform;
    z-index: 0;
}

.premium-orbs .orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--primary-blue-glow);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.premium-orbs .orb-2 {
    width: 40vw;
    height: 40vw;
    background: var(--primary-orange-glow);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 5vh) scale(1.1); }
    66% { transform: translate(-5vw, 15vh) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ─────────────────────────────────────────────────────────────────
   4. HERO TITLE - Text clip / gradient logic removed for compatibility
───────────────────────────────────────────────────────────────── */
.hero-title {
    /* Color handled by home.css (#000000) */
}

/* ─── 5. SECTION SEPARATOR LINES ─────────────────────────────────────────── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 118, 188, 0.18), transparent);
    margin: 0;
}

/* ─── 6. FLOATING HEADER GLOW ────────────────────────────────────────────── */
.header--scrolled .header-content {
    box-shadow:
        0 8px 24px rgba(11, 18, 32, 0.1),
        0 0 0 1px rgba(28, 118, 188, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* ─── 7. NAV ACTIVE STATE ─────────────────────────────────────────────────── */
.nav-item.active {
    color: var(--primary-blue);
}

/* ─── 8. PROJECT CARD — PREMIUM HOVER LIFT ───────────────────────────────── */
.project-card {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 32px 80px rgba(11, 18, 32, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Project card featured spans full width on desktop */
.project-card--featured {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.project-card--wide {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
}

@media (max-width: 640px) {
    .project-card--featured,
    .project-card--wide {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }
}

/* ─── 9. SERVICE SLIDER — ACTIVE INDICATOR ───────────────────────────────── */
.slider-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(13, 21, 37, 0.2);
    border-radius: 999px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.dot.active {
    width: 32px;
    height: 10px;
    background: var(--primary-orange);
    border-radius: 999px;
}

/* ─── 10. REVIEW CARD — QUOTE MARK ───────────────────────────────────────── */
.review-card {
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: "\201C";
    position: absolute;
    top: -0.5rem;
    right: 1.5rem;
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: 1;
    color: rgba(247, 143, 71, 0.12);
    pointer-events: none;
    user-select: none;
}

/* ─── 11. CLIENT LOGO — GRAYSCALE + COLOR ON HOVER ──────────────────────── */
.client-logo-box img {
    filter: grayscale(40%) opacity(0.75);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.client-logo-box:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

/* ─── 12. CTA SECTION — ANIMATED GRADIENT BORDER ────────────────────────── */
.cta-layout {
    position: relative;
}

.cta-layout::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 37px;
    background: linear-gradient(135deg, rgba(28, 118, 188, 0.6), rgba(247, 143, 71, 0.4), rgba(28, 118, 188, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-layout:hover::before {
    opacity: 1;
}

/* ─── 13. EYEBROW — MICRO DOT INDICATOR ──────────────────────────────────── */
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-orange);
    flex-shrink: 0;
}

/* ─── 14. HERO SIDECARD — PREMIUM BORDER SHIMMER ────────────────────────── */
.hero-sidecard {
    position: relative;
}

.hero-sidecard::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 29px;
    background: linear-gradient(135deg, rgba(247, 143, 71, 0.35), rgba(28, 118, 188, 0.25), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* ─── 15. BTN-CONTACT — SHIMMER ON HOVER ─────────────────────────────────── */
.btn-contact {
    position: relative;
    overflow: hidden;
}

.btn-contact::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-contact:hover::after {
    left: 150%;
}

/* ─── 16. HERO TOPLINE ────────────────────────────────────────────────────── */
.hero-topline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-index {
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--primary-orange);
    opacity: 0.9;
}

.hero-manifest {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    max-width: 65ch;
    font-style: italic;
}

/* ─── 17. INFO SECTION — ACCENT LINE ─────────────────────────────────────── */
.info-title::after {
    display: none; /* no pseudo underline, let the text breathe */
}

/* ─── 18. PAGE LOAD POLISH (no transform — avoids stacking context issues) ── */
html {
    scroll-behavior: smooth;
}


/* ─── 19. FOOTER — GRADIENT GLOW TOP BORDER ──────────────────────────────── */
.footer {
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 118, 188, 0.4), rgba(247, 143, 71, 0.3), transparent);
}

/* ─── 20. SOCIAL ICON — IMPROVED HOVER ───────────────────────────────────── */
.social-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(247, 143, 71, 0.35);
    background-color: var(--primary-orange);
}

/* ─── 21. REDUCED MOTION OVERRIDES ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #cursor-ring,
    #cursor-dot,
    body::before,
    #scroll-progress {
        display: none;
    }
}

/* ─── 22. SELECTION COLOR ────────────────────────────────────────────────── */
::selection {
    background: rgba(28, 118, 188, 0.22);
    color: var(--text-black);
}

/* ─── 23. SCROLLBAR PREMIUM ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-orange));
    border-radius: 999px;
}

/* ─── 24. HERO PROOFBAR — badges visible ─────────────────────────────────── */
/* Layout handled by home.css — no overrides needed here */



/* ─── 25. STAGGER GRID — PREMIUM ENTRANCE ────────────────────────────────── */
.stagger-grid > * {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
}

/* ─── 26. FOCUS RING CUSTOM ──────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ─── 27. ACCESSIBILITY: REDUCED MOTION ──────────────────────────────────── */
@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;
    }
    
    .tp_reveal_anim, .title-anim {
        opacity: 1 !important;
        transform: none !important;
    }
}
