/* ==========================================================================
   FRIENDMIXTUNNEL - CYBERPUNK YOUTH PORTAL DESIGN SYSTEM (2026)
   ========================================================================== */

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

/* Variables */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0d0d12;
  --color-purple: #8b5cf6;
  --color-cyan: #000000; /* Changed from cyan to solid black */
  --color-pink: #ec4899;
  --color-green: #22c55e;
  --card-bg: rgba(13, 13, 18, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow-purple: rgba(139, 92, 246, 0.35);
  --border-glow-cyan: rgba(255, 255, 255, 0.15); /* Modified to white/silver reflection instead of cyan */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-dark: #64748b;
  --transition-speed: 0.3s;
  --max-width: 1400px;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-purple);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-pink);
}

/* Utility Layout Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

/* Glowing Elements */
.glow-text-purple {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}
.glow-text-cyan {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px #000000;
}
.glow-text-pink {
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-purple) 50%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sticky Neon Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  border-bottom: 1px solid var(--color-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: #ffffff;
  background: var(--color-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--color-pink);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, var(--color-pink));
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Glassmorphism Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple) 0%, #7c3aed 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #7c3aed 0%, var(--color-purple) 100%);
}

.btn-secondary {
  background: var(--color-cyan);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-pink {
  background: linear-gradient(135deg, var(--color-pink) 0%, #db2777 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.6);
}

/* Cards & UI Panels */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background var(--transition-speed) ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(139, 92, 246, 0.1);
}

.glass-card.purple-glow:hover {
  border-color: var(--color-purple);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--border-glow-purple);
}

.glass-card.cyan-glow:hover {
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--border-glow-cyan);
}

.glass-card.pink-glow:hover {
  border-color: var(--color-pink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(236, 72, 153, 0.2);
}

/* Badge Elements */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-cyan {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.badge-green {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.4) 0%, var(--bg-primary) 95%);
  z-index: 1;
}

.hero-visuals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.hero-visuals::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 2px, transparent 2px, transparent 4px);
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Equalizer Bars */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  width: fit-content;
  margin: 0 auto;
}

.equalizer-bar {
  width: 4px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.4);
  height: 10px;
  animation: equalize 1.2s infinite ease-in-out;
}

.equalizer-bar:nth-child(2) { animation-delay: 0.15s; background: var(--color-purple); border: none; }
.equalizer-bar:nth-child(3) { animation-delay: 0.3s; background: var(--color-pink); border: none; }
.equalizer-bar:nth-child(4) { animation-delay: 0.45s; background: var(--color-purple); border: none; }
.equalizer-bar:nth-child(5) { animation-delay: 0.6s; background: #000000; border: 1px solid rgba(255, 255, 255, 0.4); }

/* Standard Section Layout styling */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Showcase Cards inside Pages */
.showcase-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
}

.showcase-image-container {
  overflow: hidden;
  position: relative;
  height: 220px;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-image {
  transform: scale(1.08);
}

.showcase-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.showcase-content {
  padding: 1.5rem;
}

.showcase-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.showcase-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.showcase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

/* Contact and Forms styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
}

/* Vote & Social Interactions on Community Page */
.vote-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.vote-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.vote-btn:hover {
  color: #ffffff;
}

.vote-btn.voted-up {
  color: var(--color-green);
}

.vote-btn.voted-down {
  color: var(--color-pink);
}

/* FAQ Accordion Styling */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.15rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  transition: color var(--transition-speed) ease;
}

.faq-question:hover {
  color: var(--color-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

.faq-toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--color-pink);
}

/* Footer Section */
.footer {
  background: rgba(5, 5, 8, 0.98);
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-purple), #ffffff, var(--color-pink));
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem 0;
}

.footer-socials {
  display: none; /* Removed completely */
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

@keyframes equalize {
  0%, 100% { height: 5px; }
  50% { height: 35px; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 2rem;
    transition: left 0.4s ease-in-out;
    border-top: 1px solid var(--border-color);
  }
  .nav-links.active {
    left: 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section-padding {
    padding: 4rem 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}