:root {
    --brand-blue: #0066ff;
    --brand-yellow: #f8df1c;
    --brand-green: #00cc88;
    --neon-blue-glow: rgba(0, 102, 255, 0.3);
    --neon-green-glow: rgba(0, 204, 136, 0.2);
    --card-bg: rgba(10, 10, 10, 0.8);
    --card-border: rgba(255, 255, 255, 0.03);
}

body {
    background-color: #000;
    cursor: none;
    /* Hide default cursor */
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-height: 800px) {

    body,
    main {
        height: 100vh;
        overflow: hidden;
    }
}

.logo-glow {
    filter: drop-shadow(0 0 15px rgba(0, 102, 255, 0.4));
    animation: logoFloat 4s infinite ease-in-out;
    max-height: 25vh;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.neon-text {
    position: relative;
    color: var(--brand-green);
    text-shadow:
        0 0 5px var(--neon-green-glow),
        0 0 10px var(--neon-blue-glow);
    animation: neonPulse 3s infinite ease-in-out, neonFlicker 5s infinite;
}

.neon-text::before,
.neon-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.neon-text::before {
    left: 2px;
    text-shadow: -2px 0 #00ffaa;
    clip: rect(44px, 9999px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.neon-text::after {
    left: -2px;
    text-shadow: -2px 0 #00ffaa, 2px 2px #00ffaa;
    clip: rect(44px, 9999px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 71px, 0);
    }

    10% {
        clip: rect(29px, 9999px, 83px, 0);
    }

    15% {
        clip: rect(16px, 9999px, 91px, 0);
    }

    20% {
        clip: rect(2px, 9999px, 23px, 0);
    }

    25% {
        clip: rect(89px, 9999px, 100px, 0);
    }

    30% {
        clip: rect(12px, 9999px, 45px, 0);
    }

    35% {
        clip: rect(60px, 9999px, 70px, 0);
    }

    40% {
        clip: rect(33px, 9999px, 55px, 0);
    }

    45% {
        clip: rect(78px, 9999px, 88px, 0);
    }

    50% {
        clip: rect(5px, 9999px, 15px, 0);
    }

    55% {
        clip: rect(90px, 9999px, 100px, 0);
    }

    60% {
        clip: rect(22px, 9999px, 32px, 0);
    }

    65% {
        clip: rect(48px, 9999px, 58px, 0);
    }

    70% {
        clip: rect(75px, 9999px, 85px, 0);
    }

    75% {
        clip: rect(10px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(63px, 9999px, 73px, 0);
    }

    85% {
        clip: rect(38px, 9999px, 48px, 0);
    }

    90% {
        clip: rect(82px, 9999px, 92px, 0);
    }

    95% {
        clip: rect(15px, 9999px, 25px, 0);
    }

    100% {
        clip: rect(67px, 9999px, 62px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(20px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(40px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(0px, 9999px, 10px, 0);
    }
}

@keyframes neonPulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow:
            0 0 5px var(--neon-green-glow),
            0 0 10px var(--neon-green-glow);
    }

    50% {
        transform: scale(1.01);
        text-shadow:
            0 0 8px var(--neon-green-glow),
            0 0 15px var(--neon-green-glow);
    }
}

@keyframes neonFlicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0.85;
    }
}

.social-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .social-card {
        aspect-ratio: 1/1;
        max-width: 140px;
    }
}

.card-inner {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@media (min-width: 768px) {
    .card-inner {
        flex-direction: column;
        justify-content: center;
        border-radius: 32px;
        gap: 0.75rem;
        padding: 1rem 0.5rem;
    }
}

.social-card:hover .card-inner {
    background: rgba(30, 30, 30, 0.9);
    border-color: var(--neon-green);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 170, 0.2);
}

.icon-box {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .icon-box {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

.social-card:hover .icon-box {
    background: var(--brand-blue);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-blue-glow);
}

/* Background Particles Mockup */
#particle-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 170, 0.05) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 170, 0.05) 0%, transparent 10%);
    filter: blur(50px);
}

/* Brand Text & Footer */
.brand-text {
    background: linear-gradient(90deg,
            #0066FF 0%,
            #00ffaa 50%,
            #f8df1c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.3));
    display: inline-block;
}

.brand-footer {
    position: relative;
    padding: 10px 0;
}

.brand-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0066FF, #00ffaa, #f8df1c);
    border-radius: 2px;
    opacity: 0.5;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    z-index: 9999;
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(0, 255, 170, 0.4);
    border-radius: 50%;
    z-index: 9998;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        height 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.3s,
        background-color 0.3s;
}

/* Mouse Spotlight */
#mouse-spotlight {
    background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%),
            rgba(0, 255, 170, 0.06),
            transparent 60%);
}

.social-card {
    cursor: none;
}

/* Center the last card if odd number in 2-column grid on mobile */
@media (max-width: 767px) {
    .social-card:last-child:nth-child(odd) {
        grid-column: span 2;
        max-width: 50%;
    }
}

@media (max-width: 1024px) {

    .cursor-dot,
    .cursor-outline,
    #mouse-spotlight {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}