
:root {
    --bg-color: #010409;
    --accent-grey: #444444;
    --glass-border: rgba(255, 255, 255, 0); 
    --glass-bg: rgba(52, 98, 104, 0.08);
    --glass-reflection: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.02) 100%);
}

/* Define custom cursor */
.custom-cursor {
  cursor: url('./assets/cursor/pointer.png'), auto !important;
}

a, button, [role="button"], .clickable {
  cursor: url('./assets/cursor/pointer.png') 0 0, auto !important;
}

/* Credit Box */
#credit-box {
  position: fixed;
  bottom: 10px;
  right: -200px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: rgb(255, 255, 255);
  font-weight: bolder;
  background-color: rgba(255, 255, 255, 0.037);
  padding: 12px 24px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  z-index: 9999;
  user-select: none;
  opacity: 0;
  transition: right 1s ease-out, opacity 1s ease-out;
}

#credit-box.visible {
  right: 10px;
  opacity: 1;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: white;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    overflow-x: hidden;
}

.gothic { font-family: 'UnifrakturMaguntia', serif; }

/* --- Click to Continue Overlay --- */
#click-to-continue {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgb(1, 4, 9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#click-to-continue.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#click-to-continue-text {
    font-family: 'UnifrakturMaguntia', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: white;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* --- Background --- */
.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, #2c2c2e 0%, #010409 100%);
}

.city-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1478720568477-152d9b164e26?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: brightness(0.12) blur(8px) saturate(0.3);
    transform: scale(1.15);
}

.scanlines {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.15;
}

/* --- Glass Card --- */
.main-card {
    width: 92%;
    max-width: 620px;
    background: var(--glass-bg);
    background-image: var(--glass-reflection);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 1);
    padding: 2.5rem;
    position: relative;
    z-index: 20;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 2rem 0;
}

@media (max-width: 640px) {
    .main-card {
        padding: 1.5rem;
        border-radius: 30px;
    }
}

.main-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Stats (Cuccli) --- */
.stats-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 30;
}

@media (max-width: 480px) {
    .stats-container {
        top: 1rem;
        right: 1rem;
    }
}

.stat-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.stat-pill svg { width: 12px; height: 12px; opacity: 0.6; }

/* --- Badges --- */
.badge {
    padding: 0.25rem 0.75rem;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    border-width: 1px;
}

.badge-php { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border-color: rgba(59,130,246,0.2); }
.badge-html { background: rgba(249, 115, 22, 0.1); color: #fb923c; border-color: rgba(249,115,22,0.2); }
.badge-css { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6,182,212,0.2); }
.badge-js { background: rgba(234, 179, 8, 0.1); color: #facc15; border-color: rgba(234,179,8,0.2); }
.badge-dev { background: rgba(34, 197, 94, 0.1); color: #4ade80; border-color: rgba(34,197,94,0.2); }

/* --- Social Grid --- */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

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

.social-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.1);
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box img { width: 100%; height: 100%; object-fit: contain; }

.label { font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.2); }
.handle { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8); }

/* --- Tooltip --- */
.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 9px;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.social-item:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Discord Header --- */
.discord-header {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.discord-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #23a55a;
    border: 3px solid #000;
    border-radius: 50%;
}

/* --- Music Player --- */
.music-player {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 1.25rem;
    position: relative;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 1rem 0 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: white;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    transition: width 0.1s linear;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 5px 12px;
    border-radius: 12px;
}

input[type=range].volume-slider {
    -webkit-appearance: none;
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    outline: none;
}

input[type=range].volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.badge-icon { width: 18px; height: 18px; }

.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.snowflake {
  position: fixed;
  top: -50px;
  color: #fff;
  font-size: 12px;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  animation: fall linear forwards;
  will-change: transform;
}

@keyframes fall {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}