/* ═══════════════════════════════════════════════════════════
   K-NEXUS GLOBAL STYLES — Anime VR Cyberpunk Theme
   Colors: #ff69b4 (pink), #00fff7 (cyan), #a855f7 (purple)
   Dark: #0a0015, #1a1a2e
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --pink: #ff69b4;
  --cyan: #00fff7;
  --purple: #a855f7;
  --dark-bg: #0a0015;
  --dark-card: #1a1a2e;
  --dark-surface: #16213e;
  --text: #e0e0e0;
  --text-muted: #888;
  --glow-pink: 0 0 20px rgba(255,105,180,0.5);
  --glow-cyan: 0 0 20px rgba(0,255,247,0.5);
  --glow-purple: 0 0 20px rgba(168,85,247,0.5);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }

/* ── Matrix Rain Canvas ── */
#matrix-rain {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(10,0,21,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,105,180,0.2);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-logo img {
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(255,105,180,0.6));
}
.navbar-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.navbar-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0;
  position: relative;
  transition: color .2s;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width .3s;
}
.navbar-links a:hover { color: var(--pink); }
.navbar-links a:hover::after { width: 100%; }

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 28px; height: 3px;
  background: var(--pink);
  border-radius: 2px;
  transition: .3s;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: none;
  animation: glitch-shift 8s ease-in-out infinite;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── Glitch Text Animation ── */
@keyframes glitch-shift {
  0%,100% { filter: none; }
  49% { filter: none; }
  49.5% { filter: hue-rotate(90deg) saturate(2); transform: translateX(2px); }
  50% { filter: hue-rotate(-90deg); transform: translateX(-2px); }
  50.5% { filter: none; transform: translateX(0); }
}

/* ── Portal Buttons ── */
.btn-portal {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--pink);
  color: var(--pink);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .3s;
}
.btn-portal:hover {
  color: #fff;
  background: var(--pink);
  box-shadow: var(--glow-pink), inset 0 0 20px rgba(255,105,180,0.2);
  transform: translateY(-2px);
}
.btn-portal.cyan { border-color: var(--cyan); color: var(--cyan); }
.btn-portal.cyan:hover {
  background: var(--cyan); color: #000;
  box-shadow: var(--glow-cyan);
}
.btn-portal.purple { border-color: var(--purple); color: var(--purple); }
.btn-portal.purple:hover {
  background: var(--purple); color: #fff;
  box-shadow: var(--glow-purple);
}

/* ── Pulse Animation ── */
.pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 5px rgba(255,105,180,0.3); }
  50% { box-shadow: 0 0 25px rgba(255,105,180,0.7), 0 0 50px rgba(255,105,180,0.3); }
}

/* ── Section Layout ── */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ── Room Cards Grid ── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.room-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,105,180,0.15);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.room-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity .3s;
}
.room-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 8px 32px rgba(255,105,180,0.15);
}
.room-card:hover::before { opacity: 1; }

.room-card .room-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.room-card .room-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.room-card .room-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.room-card .room-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--dark-card);
  border: 1px solid rgba(0,255,247,0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all .3s;
}
.feature-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,255,247,0.1);
  transform: translateY(-3px);
}
.feature-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,105,180,0.15);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer a { color: var(--pink); }
.footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.9rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-surface);
  border: 1px solid rgba(255,105,180,0.2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
}
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,0,21,0.98);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255,105,180,0.2);
  }
  .navbar-links.open { display: flex; }
  .hamburger { display: flex; }
  .rooms-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
