/* ═══════════════════════════════════════════════════
   DigiNova — Experimental Luxury Stylesheet v2
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    --brand: #0064D2;
    --brand-light: #3B8DE8;
    --brand-dark: #003C8F;
    --brand-glow: rgba(0, 100, 210, 0.35);
    --purple: #8B5CF6;
    --cyan: #22D3EE;
    --bg: #050508;
    --bg-alt: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    background: var(--bg);
    color: #fff;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

/* Mobile: normal cursor */
@media (hover: none),
(pointer: coarse) {
    body {
        cursor: auto;
    }

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

::selection {
    background: var(--brand);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
    border-radius: 10px;
}

/* ── Loader ── */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loader .logo-loader {
    width: 130px;
    height: 130px;
    object-fit: contain;
    opacity: 0.6;
    animation: pulse-loader 1.5s ease-in-out infinite;
}

@keyframes pulse-loader {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.loader-progress {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 2px;
    transition: width 0.2s ease;
}

/* ── Custom Cursor ── */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s,
        background 0.3s;
    mix-blend-mode: difference;
    will-change: transform;
}

#custom-cursor.is-hover {
    width: 56px;
    height: 56px;
    border-color: var(--brand-light);
    background: rgba(59, 141, 232, 0.08);
}

/* ── WebGL Canvas ── */
#webgl-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* ── Hero ── */
.hero-section {
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 0%, rgba(5, 5, 8, 0.5) 65%, rgba(5, 5, 8, 0.85) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    text-shadow: 0 0 120px rgba(0, 100, 210, 0.15), 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-sub {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* ── Noise ── */
.noise {
    position: fixed;
    inset: 0;
    background-image: url('/assets/images/noise.svg');
    background-repeat: repeat;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9998;
}

/* ── Glass ── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-nav {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Typography ── */
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, #3B8DE8 0%, #0064D2 40%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-subtle {
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Label ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-bottom: 28px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--brand);
}

/* ── Magnetic Button ── */
.mag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: none;
    backdrop-filter: blur(8px);
}

.mag-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.mag-btn:hover::after {
    opacity: 1;
}

.mag-btn:hover {
    border-color: var(--brand);
    box-shadow: 0 0 40px -10px var(--brand-glow);
    transform: translateY(-2px);
}

.mag-btn span,
.mag-btn i {
    position: relative;
    z-index: 1;
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
    transform-origin: center bottom;
}

/* ── Divider ── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* ── Bento ── */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    perspective: 1200px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.bento-card:hover {
    border-color: rgba(0, 100, 210, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px -15px rgba(0, 100, 210, 0.08),
        0 0 30px -10px rgba(0, 100, 210, 0.05);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
            rgba(0, 100, 210, 0.06) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.bento-card:hover::before {
    opacity: 1;
}



.bento-wide {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .bento {
        grid-template-columns: 1fr;
    }
}

/* ── Glow Dot ── */
.glow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--brand);
    box-shadow: 0 0 16px 4px var(--brand-glow);
    animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 12px 3px var(--brand-glow);
    }

    50% {
        box-shadow: 0 0 22px 6px var(--brand-glow);
    }
}

/* ── WhatsApp Float ── */
.wp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: none;
}

.wp-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 36px rgba(37, 211, 102, 0.5);
}

.wp-float i {
    font-size: 26px;
    color: #fff;
}

/* ── Scroll Indicator ── */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
}

.scroll-hint .bar {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    animation: scroll-bob 2.5s ease-in-out infinite;
}

@keyframes scroll-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ── Counter ── */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ── Portfolio Card ── */
.port-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s ease;
    will-change: transform, opacity;
}

.port-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
    opacity: 0.65;
}

.port-card:hover img {
    transform: scale(1.06);
    opacity: 1;
}

.port-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.port-card .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
}

.port-card .arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
}

.port-card:hover .arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ── Marquee ── */
.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 35s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

.marquee-track span {
    font-size: clamp(5rem, 12vw, 14rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.015);
    margin: 0 32px;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Partner Marquee ── */
.partner-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partner-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: partner-scroll 30s linear infinite;
}

.partner-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    margin: 0 40px;
    opacity: 0.25;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.partner-logo-item:hover {
    opacity: 0.7;
    filter: grayscale(0);
}

.partner-logo-item img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

@keyframes partner-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

/* ── Alpine ── */
[x-cloak] {
    display: none !important;
}

/* ── Line Clamp ── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}