/* Vice City homepage theme (GTA VI inspired). Scoped to body.vc-theme. */

:root {
    --vc-pink: #ff3d9a;
    --vc-hot: #ff6a3d;
    --vc-gold: #ffc65c;
    --vc-violet: #6a1fb5;
    --vc-night: #0b0614;
    --vc-ease: cubic-bezier(.22, 1, .36, 1);
}

body.vc-theme {
    background: var(--vc-night);
}

/* Retheme existing cyan/magenta accents on the homepage only */
.vc-theme .neon-text {
    color: var(--vc-pink);
    text-shadow: 0 0 12px rgba(255, 61, 154, .55), 0 0 28px rgba(255, 106, 61, .3);
}
.vc-theme .neon-text-gradient {
    background: linear-gradient(135deg, var(--vc-pink) 0%, var(--vc-hot) 55%, var(--vc-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(255, 61, 154, .35));
}
.vc-theme .text-cyan-glow { color: var(--vc-pink); }
.vc-theme .text-purple-glow { color: var(--vc-gold); }
.vc-theme .bg-cyan-glow { background-color: var(--vc-pink); }
.vc-theme .bg-purple-glow { background-color: var(--vc-violet); }
.vc-theme .btn-primary-large {
    border-color: var(--vc-pink);
    background: linear-gradient(135deg, rgba(255, 61, 154, .25), rgba(255, 106, 61, .25));
}
.vc-theme .btn-primary-large::before {
    background: linear-gradient(90deg, transparent, rgba(255, 198, 92, .45), transparent);
}
.vc-theme .btn-primary-large:hover {
    background: linear-gradient(135deg, rgba(255, 61, 154, .4), rgba(255, 106, 61, .4));
    box-shadow: 0 0 30px rgba(255, 61, 154, .6), 0 0 60px rgba(255, 106, 61, .35);
}

/* Scroll progress bar */
.vc-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 100;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--vc-pink), var(--vc-hot), var(--vc-gold));
    box-shadow: 0 0 12px rgba(255, 61, 154, .8);
    pointer-events: none;
}

/* ===========================
   Hero
   =========================== */
.vc-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: linear-gradient(180deg, #12042a 0%, #3a0b66 28%, #a3157a 52%, #ff4f6d 72%, #ff9a4a 88%, #ffc65c 100%);
}

.vc-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

.vc-stars {
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent 60%),
        radial-gradient(1px 1px at 28% 8%, #fff, transparent 60%),
        radial-gradient(1.5px 1.5px at 46% 22%, #ffd9ec, transparent 60%),
        radial-gradient(1px 1px at 63% 10%, #fff, transparent 60%),
        radial-gradient(1.5px 1.5px at 78% 26%, #fff, transparent 60%),
        radial-gradient(1px 1px at 90% 14%, #ffd9ec, transparent 60%),
        radial-gradient(1px 1px at 6% 36%, #fff, transparent 60%),
        radial-gradient(1px 1px at 55% 40%, #fff, transparent 60%);
    -webkit-mask-image: linear-gradient(#000 0%, transparent 55%);
    mask-image: linear-gradient(#000 0%, transparent 55%);
    animation: vc-twinkle 4s ease-in-out infinite alternate;
}

.vc-sun-wrap {
    position: absolute;
    left: 50%;
    bottom: 22%;
    width: min(46vw, 460px);
    aspect-ratio: 1;
    margin-left: calc(min(46vw, 460px) / -2);
    pointer-events: none;
    will-change: transform;
}
.vc-sun {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe08a 0%, #ff9a4a 40%, #ff3d9a 100%);
    box-shadow: 0 0 120px 30px rgba(255, 106, 61, .45), 0 0 260px 80px rgba(255, 61, 154, .3);
    -webkit-mask-image: linear-gradient(#000, #000), repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 22px);
    mask-image: linear-gradient(#000, #000), repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 22px);
    -webkit-mask-size: 100% 50%, 100% 50%;
    mask-size: 100% 50%, 100% 50%;
    -webkit-mask-position: top, bottom;
    mask-position: top, bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: vc-sun-rise 2.2s var(--vc-ease) both, vc-sun-pulse 6s ease-in-out 2.2s infinite alternate;
}

.vc-skyline,
.vc-palm {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    will-change: transform;
}
.vc-skyline {
    left: 0;
    width: 100%;
    height: 34%;
    bottom: 20%;
}
.vc-palm {
    height: 78%;
    aspect-ratio: 1 / 2;
    bottom: 12%;
}
.vc-palm svg,
.vc-sway {
    display: block;
    width: 100%;
    height: 100%;
}
.vc-palm-left { left: -3%; }
.vc-palm-right { right: -3%; }

.vc-sway {
    transform-origin: 50% 100%;
    animation: vc-sway 7s ease-in-out infinite alternate;
}
.vc-palm-right .vc-sway { animation-delay: -3.5s; }

.vc-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 24%;
    overflow: hidden;
    perspective: 800px;
    perspective-origin: 50% 0;
    background: linear-gradient(180deg, #2a0640 0%, #12031f 100%);
    border-top: 2px solid rgba(255, 106, 61, .8);
    box-shadow: 0 -4px 40px rgba(255, 61, 154, .55);
}
.vc-floor-grid {
    position: absolute;
    left: -50%;
    width: 200%;
    top: 0;
    height: 240%;
    transform-origin: 50% 0;
    background-image:
        linear-gradient(rgba(255, 61, 154, .75) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 61, 154, .75) 2px, transparent 2px);
    background-size: 80px 80px;
    animation: vc-grid 2.4s linear infinite;
}

/* Bottom fade into the next section */
.vc-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14%;
    z-index: 1;
    background: linear-gradient(180deg, transparent, var(--vc-night));
    pointer-events: none;
}

.vc-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 9rem;
    text-align: center;
    will-change: transform, opacity;
}

.vc-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 92, .6);
    background: rgba(11, 6, 20, .55);
    backdrop-filter: blur(6px);
    font-family: 'Orbitron', sans-serif;
    font-size: .75rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--vc-gold);
    text-decoration: none;
    transition: background .3s, box-shadow .3s;
}
.vc-badge:hover {
    background: rgba(255, 61, 154, .25);
    box-shadow: 0 0 24px rgba(255, 61, 154, .5);
}
.vc-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--vc-pink);
    box-shadow: 0 0 10px var(--vc-pink);
    animation: vc-blink 1.4s ease-in-out infinite;
}

.vc-title {
    margin: 1.4rem 0 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.02em;
    text-transform: uppercase;
    font-size: clamp(2.6rem, 9.5vw, 8rem);
    color: #fff;
    text-shadow: 0 6px 40px rgba(11, 6, 20, .55);
}
.vc-title .vc-line { display: block; overflow: hidden; padding-bottom: .08em; }
.vc-title .vc-word {
    display: inline-block;
    animation: vc-rise 1.1s var(--vc-ease) both;
    animation-delay: calc(.15s + var(--i, 0) * .12s);
}
.vc-grad {
    background: linear-gradient(180deg, #fff3c4 0%, var(--vc-gold) 35%, var(--vc-hot) 70%, var(--vc-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 30px rgba(255, 61, 154, .5));
}
.vc-outline {
    -webkit-text-stroke: 2px #fff;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.vc-sub {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 2px 16px rgba(11, 6, 20, .7);
}

.vc-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.vc-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 34rem;
    margin: 2.5rem auto 0;
}
.vc-stat {
    padding: .9rem .5rem;
    border-radius: .9rem;
    background: rgba(11, 6, 20, .5);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
}
.vc-stat-num {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 61, 154, .7);
}
.vc-stat-label {
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vc-gold);
}

.vc-cue {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    z-index: 3;
    width: 1.6rem;
    height: 2.6rem;
    margin-left: -.8rem;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 1rem;
}
.vc-cue::after {
    content: '';
    position: absolute;
    left: 50%;
    top: .45rem;
    width: .3rem;
    height: .5rem;
    margin-left: -.15rem;
    border-radius: 2px;
    background: #fff;
    animation: vc-wheel 1.6s ease-in-out infinite;
}

/* ===========================
   Marquee ribbon
   =========================== */
.vc-ribbon {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 1rem 0;
    transform: rotate(-1.2deg) scale(1.03);
    background: linear-gradient(90deg, var(--vc-pink), var(--vc-hot), var(--vc-gold));
    box-shadow: 0 0 40px rgba(255, 61, 154, .45);
}
.vc-ribbon-track {
    display: flex;
    width: max-content;
    will-change: transform;
}
.vc-ribbon-track span {
    flex: none;
    padding: 0 1.6rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--vc-night);
    white-space: nowrap;
}

/* ===========================
   Scroll reveal (replaces AOS on the homepage)
   =========================== */
.vc-reveal {
    opacity: 0;
    transition: opacity .9s var(--vc-ease), transform 1s var(--vc-ease), filter .9s var(--vc-ease);
    transition-delay: var(--vc-delay, 0ms);
    will-change: opacity, transform;
}
.vc-reveal[data-vc="up"] { transform: translate3d(0, 56px, 0); }
.vc-reveal[data-vc="left"] { transform: translate3d(-64px, 0, 0); }
.vc-reveal[data-vc="right"] { transform: translate3d(64px, 0, 0); }
.vc-reveal[data-vc="zoom"] { transform: scale(.88); filter: blur(6px); }
.vc-reveal[data-vc="flip"] { transform: perspective(900px) rotateY(-24deg) translate3d(-30px, 0, 0); }
.vc-reveal.vc-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Section heading accent that draws in */
.vc-theme section[id] h2 { position: relative; padding-bottom: 1rem; }
.vc-theme section[id] h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 90px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--vc-pink), var(--vc-gold));
    transform: translateX(-50%) scaleX(0);
    transition: transform 1s var(--vc-ease) .25s;
}
.vc-theme .vc-in h2::after,
.vc-theme h2.vc-in::after { transform: translateX(-50%) scaleX(1); }

/* ===========================
   Keyframes
   =========================== */
@keyframes vc-rise {
    from { opacity: 0; transform: translate3d(0, 110%, 0) skewY(6deg); }
    to { opacity: 1; transform: none; }
}
@keyframes vc-sun-rise {
    from { transform: translate3d(0, 60%, 0); opacity: 0; }
    to { transform: none; opacity: 1; }
}
@keyframes vc-sun-pulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.12); }
}
@keyframes vc-grid {
    from { transform: rotateX(72deg) translate3d(0, 0, 0); }
    to { transform: rotateX(72deg) translate3d(0, 80px, 0); }
}
@keyframes vc-sway {
    from { transform: rotate(-1.4deg); }
    to { transform: rotate(1.8deg); }
}
@keyframes vc-twinkle {
    from { opacity: .55; }
    to { opacity: 1; }
}
@keyframes vc-blink {
    50% { opacity: .25; }
}
@keyframes vc-wheel {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(.9rem); }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 767px) {
    .vc-inner { padding: 6rem 1.25rem 7.5rem; }
    .vc-sub { font-size: 1.05rem; }
    .vc-sun-wrap { width: 72vw; margin-left: -36vw; bottom: 24%; }
    .vc-palm { height: 56%; }
    .vc-palm-right { display: none; }
    .vc-stat-num { font-size: 1.3rem; }
    .vc-ribbon-track span { font-size: .95rem; }
    .vc-outline { -webkit-text-stroke-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .vc-hero *,
    .vc-reveal,
    .vc-theme section[id] h2::after {
        animation: none !important;
        transition: none !important;
    }
    .vc-reveal { opacity: 1; transform: none; filter: none; }
    .vc-theme section[id] h2::after { transform: translateX(-50%) scaleX(1); }
}
