@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Shade&family=Space+Grotesk:wght@300;400;700&display=swap');

:root {
    --neon-yellow: #fbd304;
    --neon-purple: #bc13fe;
    --neon-pink: #ff0055;
    --neon-cyan: #00f2ff;
    --neon-green: #39ff14;
    --neon-orange: #ff6b00;
    --bg-black: #050505;
    --text-white: #ffffff;
    --border-thick: 4px;
    --shadow-pop: 8px 8px 0px rgba(0, 0, 0, 1);
    --shadow-neon: 0 0 15px rgba(251, 211, 4, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #050505 0%, #1a0a2e 50%, #050505 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(251, 211, 4, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========== TICKER MARQUEE ========== */
.ticker-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--neon-yellow);
    border-top: 4px solid #000;
    overflow: hidden;
    z-index: 998;
    padding: 8px 0;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
    font-family: 'Bungee', cursive;
    font-size: 1rem;
    color: #000;
    letter-spacing: 3px;
}

.ticker-content span {
    margin: 0 60px;
}

.ticker-content .ticker-star {
    color: var(--neon-pink);
    font-size: 1.2rem;
    margin: 0 15px;
}

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

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

/* Funky Floating Background Elements */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: blob-float 20s ease-in-out infinite alternate;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(150px, -100px) scale(1.3) rotate(120deg);
    }

    66% {
        transform: translate(-100px, 150px) scale(0.9) rotate(240deg);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2) rotate(360deg);
    }
}

/* Floating Geometric Shapes */
.bg-shape {
    position: fixed;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.bg-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--neon-cyan);
    animation: float-spin 15s linear infinite;
}

.bg-square {
    width: 60px;
    height: 60px;
    border: 4px solid var(--neon-pink);
    transform: rotate(45deg);
    animation: float-spin 20s linear infinite reverse;
}

.bg-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--neon-yellow);
    animation: float-spin 18s linear infinite;
}

@keyframes float-spin {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}


/* Quirky Animations */
@keyframes wiggle {

    0%,
    100% {
        transform: rotate(10deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(-50%) rotate(0deg);
    }

    25% {
        transform: translateX(-50%) rotate(-3deg);
    }

    75% {
        transform: translateX(-50%) rotate(3deg);
    }
}

@keyframes float-gentle {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--neon-yellow));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px var(--neon-yellow));
    }
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translate(-5px, -5px);
    }

    50% {
        transform: translate(-5px, -8px);
    }
}

@keyframes tilt-wobble {

    0%,
    100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(-1deg);
    }
}

@keyframes breathe-pulse {

    0%,
    100% {
        letter-spacing: normal;
    }

    25% {
        letter-spacing: 0.15em;
    }

    50% {
        letter-spacing: normal;
    }

    75% {
        letter-spacing: -0.05em;
    }
}



/* ========== GLITCH EFFECT (hover-only, no continuous animation) ========== */
.hero h1 .glitch-wrap {
    position: relative;
    display: inline-block;
}

/* Only run glitch on hover of the hero heading — far cheaper */
.hero h1:hover .glitch-wrap::before,
.hero h1:hover .glitch-wrap::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    -webkit-text-stroke: 0;
    text-shadow: none;
    pointer-events: none;
}

.hero h1:hover .glitch-wrap::before {
    color: var(--neon-cyan);
    animation: glitch-1 0.4s steps(2) 2;
    opacity: 0.7;
}

.hero h1:hover .glitch-wrap::after {
    color: var(--neon-pink);
    animation: glitch-2 0.4s steps(2) 2;
    opacity: 0.7;
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(0 0 90% 0);
        transform: translate(-4px, 0);
    }

    50% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(4px, 0);
    }

    100% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(-4px, 0);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(4px, 0);
    }

    50% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-4px, 0);
    }

    100% {
        clip-path: inset(5% 0 85% 0);
        transform: translate(4px, 0);
    }
}

/* ========== RAINBOW SHIMMER on Section Titles ========== */
@keyframes rainbow-shimmer {
    0% {
        color: var(--neon-yellow);
        text-shadow: 5px 5px 0px var(--neon-purple);
    }

    20% {
        color: var(--neon-cyan);
        text-shadow: 5px 5px 0px var(--neon-pink);
    }

    40% {
        color: var(--neon-pink);
        text-shadow: 5px 5px 0px var(--neon-yellow);
    }

    60% {
        color: var(--neon-green);
        text-shadow: 5px 5px 0px var(--neon-cyan);
    }

    80% {
        color: var(--neon-orange);
        text-shadow: 5px 5px 0px var(--neon-purple);
    }

    100% {
        color: var(--neon-yellow);
        text-shadow: 5px 5px 0px var(--neon-purple);
    }
}

.section-title {
    font-family: 'Bungee', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 5px 5px 0px var(--neon-purple);
    transform: skewX(-5deg);
    transition: all 0.3s ease;
    cursor: default;
    animation: rainbow-shimmer 6s ease-in-out infinite;
}

/* ========== STAMP BADGE ========== */
@keyframes stamp-in {
    0% {
        transform: rotate(10deg) scale(3);
        opacity: 0;
    }

    60% {
        transform: rotate(10deg) scale(0.9);
        opacity: 1;
    }

    80% {
        transform: rotate(10deg) scale(1.05);
    }

    100% {
        transform: rotate(10deg) scale(1);
        opacity: 1;
    }
}

.blog-card.visible .blog-badge {
    animation: stamp-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, wiggle 2s 0.5s ease-in-out infinite;
}

/* ========== CARD SLIDE-UP REVEAL ========== */
@keyframes card-reveal {
    from {
        opacity: 0;
        transform: translateY(60px) rotate(var(--card-tilt, -2deg));
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--card-tilt, -2deg));
    }
}

.blog-card.visible,
.short-sticker.visible {
    animation: card-reveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ========== ZAP EMOJI BURST on btn click ========== */
.zap-burst {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 10000;
    animation: zap-fly 0.8s ease-out forwards;
    user-select: none;
}

@keyframes zap-fly {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0.5) rotate(360deg) translateY(-80px);
        opacity: 0;
    }
}

/* ========== FOOTER NEON GLOW PULSE ========== */
@keyframes footer-neon {

    0%,
    100% {
        border-top-color: var(--neon-yellow);
        box-shadow: 0 -5px 30px var(--neon-yellow);
    }

    33% {
        border-top-color: var(--neon-cyan);
        box-shadow: 0 -5px 30px var(--neon-cyan);
    }

    66% {
        border-top-color: var(--neon-pink);
        box-shadow: 0 -5px 30px var(--neon-pink);
    }
}

footer {
    padding: 100px 5% 140px;
    border-top: var(--border-thick) solid var(--neon-yellow);
    text-align: center;
    background: #000;
    animation: footer-neon 4s ease-in-out infinite;
}

/* ========== Header ========== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-black);
    padding: 15px 30px;
    border: var(--border-thick) solid var(--neon-yellow);
    box-shadow: 10px 10px 0px #000, 10px 10px 0px 2px var(--neon-purple);
}

.logo-img {
    height: 50px;
    filter: drop-shadow(3px 3px 0px var(--neon-purple));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-link:hover .logo-img {
    animation: shake 0.5s ease-in-out;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    font-family: 'Bungee', cursive;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: all 0.2s;
}

nav a:hover {
    background: var(--neon-yellow);
    color: #000;
    transform: skew(-10deg);
}

/* Hero - Ultra Bold */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    border-bottom: var(--border-thick) dashed var(--neon-purple);
}

.hero h1 {
    font-family: 'Bungee', cursive;
    font-size: clamp(3rem, 12vw, 9rem);
    line-height: 0.85;
    color: var(--neon-yellow);
    -webkit-text-stroke: 2px #fff;
    text-shadow: 8px 8px 0px var(--neon-purple), 16px 16px 0px var(--neon-pink);
    margin-bottom: 20px;
    transform: rotate(-2deg);
    animation: breathe-pulse 4s ease-in-out infinite;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 700;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    transform: rotate(1deg);
    margin-top: 30px;
}

/* Sections */
.container {
    padding: 100px 5%;
}

.section-head {
    margin-bottom: 60px;
    display: flex;
    align-items: baseline;
    /* Align to font baseline */
    gap: 20px;
    width: 100%;
}

.section-head div {
    margin-bottom: 12px;
    /* Visual centering with Bungee font */
}



/* Funky Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Desktop: 4 cards per row */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Tablet: 2-3 cards per row */
@media (min-width: 768px) and (max-width: 1023px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #111;
    border: var(--border-thick) solid #fff;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Alternate Tilt for Funkiness */
.blog-card:nth-child(even) {
    transform: rotate(2deg);
}

.blog-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.blog-card:hover {
    transform: rotate(0deg) scale(1.05) translateY(-20px) !important;
    border-color: var(--neon-yellow);
    box-shadow: 15px 15px 0px var(--neon-purple);
    z-index: 10;
}

.blog-image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    /* Standard YouTube Thumbnail Ratio */
    overflow: hidden;
    border: var(--border-thick) solid #000;
    background: #000;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

/* Desktop: Hover effect */
@media (hover: hover) and (pointer: fine) {
    .blog-card:hover .blog-image {
        filter: grayscale(0%) contrast(1);
    }
}

/* Mobile: Show in color by default, or use active state */
@media (hover: none) and (pointer: coarse) {
    .blog-image {
        filter: grayscale(0%) contrast(1);
    }

    .blog-card:active .blog-image {
        filter: grayscale(0%) contrast(1.1);
    }
}

.blog-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--neon-pink);
    color: #fff;
    font-family: 'Bungee', cursive;
    padding: 10px 20px;
    transform: rotate(10deg);
    font-size: 0.8rem;
    border: 3px solid #000;
    z-index: 2;
    animation: wiggle 2s ease-in-out infinite;
}

.blog-content {
    padding: 20px 10px;
}

.blog-title {
    font-family: 'Bungee', cursive;
    font-size: 1.2rem;
    /* Reduced size for better fit */
    margin-bottom: 12px;
    color: var(--neon-yellow);
}

.blog-desc {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.btn-funky {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: 'Bungee', cursive;
    border: var(--border-thick) solid #000;
    transition: all 0.2s;
}

.btn-funky:hover {
    background: var(--neon-cyan);
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0px #000;
    animation: bounce-subtle 0.6s ease-in-out infinite;
}

/* Shorts - Sticker Style */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    justify-content: center;
    width: 100%;
}

.short-sticker {
    background: #111;
    border: var(--border-thick) solid var(--neon-cyan);
    padding: 15px;
    border-radius: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.short-sticker:hover {
    transform: scale(1.05) rotate(-3deg);
    background: #1a1a1a;
    box-shadow: 10px 10px 0px var(--neon-cyan);
    z-index: 5;
}

.short-img-wrap {
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    border: 3px solid #000;
    margin-bottom: 15px;
}

.short-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-sticker h4 {
    font-family: 'Bungee', cursive;
    margin-bottom: 10px;
    font-size: 0.75rem;
    /* Compact size */
    color: #fff;
    line-height: 1.2;
}

.short-sticker .btn-funky {
    margin-top: auto;
    /* Push button to bottom */
    align-self: flex-start;
}

/* Footer */

.footer-logo {
    height: 100px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px var(--neon-yellow));
    animation: float-gentle 3s ease-in-out infinite;
}

.social-funky {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-funky a {
    font-family: 'Bungee', cursive;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-funky a:hover {
    color: var(--neon-pink);
    transform: scale(1.3) rotate(15deg);
    animation: pulse-glow 0.8s ease-in-out infinite;
}

/* Custom Cursor */
body:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="24" font-size="24">🔥</text></svg>'), auto;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    transition: transform 0.3s ease;
}

.menu-toggle:active {
    transform: rotate(180deg);
}

.menu-toggle span {
    width: 30px;
    height: 4px;
    background: var(--neon-yellow);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0px var(--neon-purple);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #111;
        border-left: var(--border-thick) solid var(--neon-yellow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 100px 30px 30px;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        border-bottom: 2px solid var(--neon-purple);
        padding: 0;
    }

    nav a {
        display: block;
        padding: 20px 10px;
        font-size: 1.2rem;
        border-left: 5px solid transparent;
        transition: all 0.3s;
    }

    nav a:hover {
        background: var(--neon-yellow);
        color: #000;
        transform: translateX(10px);
        border-left-color: var(--neon-purple);
    }

    .mobile-overlay {
        display: block;
    }

    header {
        padding: 15px 5%;
    }

    .logo-img {
        height: 40px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.page-btn {
    font-family: 'Bungee', cursive;
    padding: 12px 20px;
    background: #111;
    color: var(--text-white);
    border: var(--border-thick) solid var(--neon-cyan);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    min-width: 50px;
}

.page-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0px var(--neon-purple);
}

.page-btn.active {
    background: var(--neon-yellow);
    color: #000;
    border-color: var(--neon-purple);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-yellow);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .pagination {
        gap: 10px;
        margin-top: 50px;
    }

    .page-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        min-width: 40px;
    }
}

/* Active nav link style */
nav a.active {
    background: var(--neon-yellow);
    color: #000;
    transform: skew(-10deg);
}