/* --- GLOBAL IMPORTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
  --bg-dark: #0a0a0f;
  --accent: #ff2a5f;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

/* --- THE NEON GLOW (Base Light) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; 
  background: radial-gradient(
    circle 600px at var(--mouse-x, 50vw) var(--mouse-y, 50vh),
    hsla(var(--mouse-hue, 0), 100%, 65%, 0.15) 0%,
    transparent 70%
  );
  mix-blend-mode: screen; 
}

/* --- THE TEXTURE REVEAL (Advanced Flashlight Mask) --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(
    circle 350px at var(--mouse-x, 50vw) var(--mouse-y, 50vh),
    black 10%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 350px at var(--mouse-x, 50vw) var(--mouse-y, 50vh),
    black 10%,
    transparent 100%
  );
}

/* --- KINETIC LOADING ANIMATION --- */
#intro-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

.intro-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-core {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.core-dot {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
  animation: pulseCore 0.8s ease-in-out infinite alternate;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin linear infinite;
}

.ring1 { width: 100%; height: 100%; border-top: 2px solid #00ff88; border-right: 2px solid #00ff88; box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); animation-duration: 2s; }
.ring2 { width: 75%; height: 75%; border-bottom: 2px solid #00d2ff; border-left: 2px solid #00d2ff; box-shadow: 0 0 15px rgba(0, 210, 255, 0.2); animation-duration: 1.5s; animation-direction: reverse; }
.ring3 { width: 50%; height: 50%; border-top: 2px solid var(--accent); box-shadow: 0 0 15px rgba(255, 42, 95, 0.2); animation-duration: 1s; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseCore { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 1; } }

/* --- MODERN NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
}

.nav-brand { font-weight: 700; font-size: 1.5rem; letter-spacing: 2px; }
.nav-links a { color: #aaa; text-decoration: none; margin-left: 30px; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }

/* --- HERO SECTION --- */
.hero-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 15px; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; color: #888; max-width: 600px; margin: 0 auto 40px auto; }

.cta-button {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 12px 30px;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.cta-button:hover { background: white; color: black; }

/* --- GALLERY SECTION --- */
.gallery-section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  min-height: 100vh; 
}

.gallery-section h2 { font-size: 2.5rem; text-align: center; margin-bottom: 60px; }

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.art-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.art-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.06); }

/* --- IMAGE STYLING --- */
.art-card img {
  width: 100%;
  height: 300px;
  object-fit: contain; 
  border-radius: 12px;
  margin-bottom: 20px;
  background: transparent;
}

.img-placeholder {
  width: 100%;
  height: 300px;
  background: #1a1a24;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  margin-bottom: 20px;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.art-title { font-size: 1.3rem; font-weight: 500; margin: 0; }

/* --- BUTTONS --- */
.vote-controls { display: flex; gap: 10px; }

button {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: all 0.2s ease;
}

.upvote-btn:hover { background: #00ff88; color: black; border-color: #00ff88; }
.downvote-btn:hover { background: #ff2a5f; color: white; border-color: #ff2a5f; }

/* --- PARTICLES --- */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: floatAway 1s ease-out forwards;
  box-shadow: 0 0 15px currentColor;
}

@keyframes floatAway {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); }
}

/* --- INTRO CAT STYLING --- */
#intro-cat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 300px;
  height: auto;
  opacity: 0;
  z-index: 10000;
  animation: introCatFade 2s ease-out forwards;
}

@keyframes introCatFade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}