/* ========================================
   VIPEN ONLINE - Y2K Avant-Garde Style
   Chrome · Metal · Gradient · Street
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0a14;
  --bg-secondary: #12121f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240,240,245,0.5);
  --text-muted: rgba(240,240,245,0.3);
  --accent-pink: #e84393;
  --accent-blue: #6c5ce7;
  --accent-cyan: #00cec9;
  --accent-chrome: linear-gradient(180deg, #ffffff 0%, #d0d0d8 25%, #ffffff 50%, #a0a0a8 75%, #d0d0d8 100%);
  --accent-gradient: linear-gradient(135deg, #e84393, #6c5ce7, #00cec9);
  --border-color: rgba(255,255,255,0.08);
  --border-hover: rgba(232,67,147,0.4);
  --glow-pink: rgba(232,67,147,0.3);
  --glow-blue: rgba(108,92,231,0.3);
  --stud-color: #3a3a4a;
  --stud-highlight: rgba(255,255,255,0.2);
}

.light-theme {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0,0,0,0.04);
  --bg-card-hover: rgba(0,0,0,0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26,26,46,0.5);
  --text-muted: rgba(26,26,46,0.3);
  --border-color: rgba(0,0,0,0.1);
  --border-hover: rgba(232,67,147,0.5);
  --glow-pink: rgba(232,67,147,0.2);
  --glow-blue: rgba(108,92,231,0.2);
  --stud-color: #c0c0c8;
  --stud-highlight: rgba(255,255,255,0.6);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-gradient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: 
    radial-gradient(ellipse at 25% 25%, rgba(232,67,147,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(108,92,231,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0,206,201,0.08) 0%, transparent 60%);
  animation: bgShift 30s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(2deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Subtle grid pattern */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* ===== CHROME TEXT ===== */
.chrome-text {
  background: var(--accent-chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  transition: background 0.5s;
}

.light-theme .navbar {
  background: rgba(245,245,250,0.85);
}

.navbar-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 6px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--accent-pink);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--glow-pink);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.page {
  padding-top: 96px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ===== SECTION ===== */
.section {
  margin-bottom: 80px;
}

.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(232,67,147,0.15);
  border: 1px solid rgba(232,67,147,0.3);
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 32px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 32px var(--glow-pink);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--glow-pink);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--glow-blue);
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  background: var(--accent-gradient);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
}

.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.card::after {
  /* Stud decoration */
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px;
  background: var(--stud-color);
  border-radius: 50%;
  box-shadow: 
    inset 0 0 0 2px var(--stud-highlight),
    0 0 4px rgba(0,0,0,0.3);
  transition: all 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  background: var(--accent-pink);
  box-shadow: 
    inset 0 0 0 2px rgba(255,255,255,0.3),
    0 0 12px var(--glow-pink);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,67,147,0.2), rgba(108,92,231,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  /* Corner studs */
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 6px; height: 6px;
  background: var(--stud-color);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--stud-highlight);
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== PROFILE ===== */
.profile-header {
  text-align: center;
  margin-bottom: 48px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.profile-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-gradient);
  z-index: -1;
}

.profile-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.profile-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.profile-bio {
  max-width: 500px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== SKILLS TAGS ===== */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.skill-tag:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  box-shadow: 0 0 15px var(--glow-pink);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.gallery-item:hover {
  border-color: var(--border-hover);
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.gallery-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

/* ===== VIDEO ===== */
.video-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.video-container:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  cursor: pointer;
  transition: all 0.3s;
}

.video-placeholder:hover {
  background: linear-gradient(135deg, rgba(232,67,147,0.1), rgba(108,92,231,0.1));
}

.video-info {
  padding: 16px 20px;
}

.video-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== CHAT / MESSAGE BOARD ===== */
.chat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.chat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.chat-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.chat-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.chat-desc {
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===== MORE LIST ===== */
.more-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.more-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-primary);
}

.more-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.more-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.more-item-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,67,147,0.1);
  border-radius: 10px;
}

.more-item-text {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
}

.more-item-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.3s;
}

.more-item:hover .more-item-arrow {
  color: var(--accent-pink);
  transform: translateX(4px);
}

/* ===== PASSCODE OVERLAY ===== */
.passcode-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,20,0.95);
  backdrop-filter: blur(30px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.light-theme .passcode-overlay {
  background: rgba(245,245,250,0.95);
}

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

.passcode-box {
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 380px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.passcode-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.passcode-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.passcode-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.passcode-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  text-align: center;
  letter-spacing: 8px;
  outline: none;
  transition: all 0.3s;
}

.light-theme .passcode-input {
  background: rgba(0,0,0,0.06);
}

.passcode-input:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 30px var(--glow-pink);
}

.passcode-input::placeholder {
  color: var(--text-muted);
}

.passcode-btn {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.passcode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow-pink);
}

.passcode-error {
  color: #ff4466;
  font-size: 12px;
  margin-top: 12px;
  display: none;
  letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 32px;
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 6px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-link { font-size: 9px; padding: 6px 10px; letter-spacing: 1px; }
  .nav-links { gap: 2px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 15px; }
  .section-title { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
  .page { padding-top: 88px; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .passcode-box { padding: 36px 24px; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
