/* ===== Base ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-dark: #050505;
    --bg-overlay: rgba(0, 0, 0, 0.55);
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent: #2890f1;
    --border-subtle: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
    --radius-soft: 18px;
    --transition-med: 260ms ease-out;
    --max-width: 960px;
    --blur-amount: 10px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    color: var(--text-main);
    background: var(--bg-dark) url("assets/background.jpg") no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* ===== Overlay ===== */

.overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.1), var(--bg-overlay));
    backdrop-filter: blur(var(--blur-amount));
    z-index: 0;
}

/* ===== Layout ===== */

.center-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

/* ===== Hero ===== */

.hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 26px;
    border-radius: var(--radius-soft);
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.pfp {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    filter: grayscale(20%);
    transition: 0.3s ease;
}

.pfp:hover {
    transform: translateY(-3px);
    filter: grayscale(0%);
}

/* ===== NEW 3D SOCIAL BUTTONS ===== */

.social-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    flex-wrap: nowrap;
}

.parent {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.child {
  width: 120px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.68, 0.85, 0.265, 1.85);
  border-radius: 8px;
  margin: 0 5px;
  text-decoration: none;

  box-shadow:
    inset 1px 1px 2px #fff,
    0 0 5px #4442;
}

.child:hover {
  background-color: white;
  transform: perspective(180px) rotateX(60deg) translateY(2px);
}

.child-1:hover { box-shadow: 0px 10px 20px #53fc18; }
.child-2:hover { box-shadow: 0px 10px 20px #ff0050; }
.child-3:hover { box-shadow: 0px 10px 20px #5865F2; }
.child-4:hover { box-shadow: 0px 10px 20px #ff0000; }
.child-5:hover { box-shadow: 0px 10px 20px #000; }
.child-6:hover { box-shadow: 0px 10px 20px #d62976; }

.button {
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  background-color: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition-duration: 0.5s;
}

.button img {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.child:hover .button {
    color: #000;
}

.child:hover > .button {
  transform: translate3d(0px, 20px, 30px) perspective(80px) rotateX(-60deg)
    translateY(2px) translateZ(10px);
}

/* ===== Footer ===== */

.footer {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

/* ===== Animations ===== */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 520ms var(--transition-med) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile (ORIGINAL) ===== */

@media (max-width: 600px) {
    .child {
        width: 48%;
        height: 70px;
    }
}

/* LIVE STATUS BADGE */
.live-status {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: 0.25s ease;
}

.live-status .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: gray;
    transition: 0.25s ease;
}

.live-status.online {
    border-color: rgba(0,255,0,0.4);
    box-shadow: 0 0 12px rgba(0,255,0,0.4);
}

.live-status.online .dot {
    background: #00ff00;
}

.live-status.offline {
    border-color: rgba(255,0,0,0.4);
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
}

.live-status.offline .dot {
    background: #ff0000;
}

/* ============================
   GLOBAL FLOATING BUTTER PARTICLES (OLD DOM VERSION)
   ============================ */

.global-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd86b;
    border-radius: 50%;
    opacity: 0.7;
    transform: translateZ(0);
    animation: particleFloat 5s linear forwards;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) scale(1);
        opacity: 0.7;
    }
    to {
        transform: translateY(-10vh) scale(1.3);
        opacity: 0;
    }
}

/* ============================
   CUSTOM YELLOW CURSOR DOT (OLD DOM VERSION)
   ============================ */

body {
    cursor: none !important;
}

#cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd86b;
    pointer-events: none;
    z-index: 9999;
    transform: translateZ(0);
}

/* ============================
   ANIME ACCENT BANNER STYLE
   ============================ */

.anime-banner {
    position: relative;
    overflow: hidden;
    padding: 32px 26px;
    border-radius: 18px;
    background: rgba(5,5,5,0.85);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.accent-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* ============================
   BUTTER AURA GLOW
   ============================ */

.butter-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffd86b 0%, rgba(255,216,107,0) 70%);
    top: 20%;
    left: 10%;
    filter: blur(40px);
    opacity: 0.45;
    animation: butterPulse 5s ease-in-out infinite alternate;
}

@keyframes butterPulse {
    from { transform: scale(1); opacity: 0.35; }
    to   { transform: scale(1.15); opacity: 0.55; }
}

/* ============================
   ANIME BUTTER DRIP ACCENTS
   ============================ */

.butter-drip {
    position: absolute;
    width: 90px;
    height: 140px;
    background: #ffd86b;
    border-radius: 40px;
    filter: blur(18px);
    opacity: 0.28;
    animation: dripFloat 4s ease-in-out infinite alternate;
}

.drip-1 {
    top: 10%;
    right: 18%;
    transform: rotate(12deg);
    animation-delay: 0.8s;
}

.drip-2 {
    bottom: 12%;
    left: 30%;
    transform: rotate(-8deg);
    animation-delay: 1.6s;
}

@keyframes dripFloat {
    from { transform: translateY(0px) scale(1); }
    to   { transform: translateY(12px) scale(1.05); }
}

/* ============================
   PFP FLOAT + TEXT GLOW
   ============================ */

.anime-pfp .pfp {
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 25px rgba(255,255,255,0.25);
    animation: pfpFloat 2.5s ease-in-out infinite alternate;
}

@keyframes pfpFloat {
    from { transform: translateY(0px); }
    to   { transform: translateY(-6px); }
}

.anime-text {
    position: relative;
    z-index: 2;
}

.anime-text h1 {
    font-size: 2.4rem;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255,255,255,0.35);
}

.anime-text .tagline {
    margin-top: -6px;
    opacity: 0.85;
    text-shadow: 0 0 8px rgba(255,255,255,0.25);
}

/* ============================
   SOFT VIGNETTE AROUND BANNER
   ============================ */

.anime-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.35) 100%
    );
    z-index: 1;
}

/* ============================
   CANVAS FOR PARTICLES + CURSOR
   ============================ */

#fx-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    display: block;
}

#cursor-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: block;
}

main, header, .anime-banner, .child, button {
    position: relative;
    z-index: 5;
}

/* ============================
   MOBILE FIXES (ADDED)
   ============================ */

@media (max-width: 600px) {

    .center-wrap {
        padding: 24px 14px 24px;
        gap: 28px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }

    .pfp {
        width: 110px;
        height: 110px;
    }

    .anime-text h1 {
        font-size: 1.8rem;
    }

    .anime-text .tagline {
        font-size: 0.9rem;
    }

    .social-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .child {
        width: 44%;
        height: 70px;
        margin: 0;
    }

    .butter-glow {
        width: 180px;
        height: 180px;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
    }

    .butter-drip {
        width: 60px;
        height: 90px;
    }
}
