/* 
  VisualChats 2D - Design System
  Theme: Modern, Premium, Dark-mode Chat Community
*/

:root {
  --primary-color: #9d50bb;
  --primary-glow: rgba(157, 80, 187, 0.4);
  --secondary-color: #6e48aa;
  --accent-color: #00f2fe;

  /* Dark Mode (Default) */
  --bg-dark: #0a0e17;
  --bg-card: rgba(23, 32, 48, 0.85);
  --text-main: #ffffff;
  --text-muted: #ffffff;
  --navbar-bg: rgba(30, 41, 59, 0.7);
  --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

[data-theme="light"] {
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --navbar-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .text-muted,
[data-theme="light"] .text-white,
[data-theme="light"] .opacity-75 {
  color: #475569 !important;
  opacity: 1 !important;
}

[data-theme="light"] .glass {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-section p {
  color: #334155 !important;
}

[data-theme="light"] footer p,
[data-theme="light"] footer a {
  color: #475569 !important;
}

[data-theme="light"] #theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a !important;
}

[data-theme="light"] .list-unstyled li {
  color: #334155 !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Outfit', 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism utility */
.glass {
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

#theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-main) !important;
}

#theme-toggle:hover {
  background: rgba(157, 80, 187, 0.2);
  transform: rotate(15deg);
}

[data-theme="light"] .nav-link,
[data-theme="light"] .navbar-brand {
  color: #0f172a !important;
}

[data-theme="light"] .navbar-toggler-icon {
  filter: none !important;
}

.text-muted {
  color: #ffffff !important;
  opacity: 0.95 !important;
}

/* Custom Buttons */
.btn-premium {
  background: var(--gradient-main);
  border: none;
  color: #ffffff !important;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: white;
}

/* Hero Section */
.hero-section {
  padding: 100px 0;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

/* Feature Cards */
.feature-card {
  height: 100%;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Micro-animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating[style*="animation-delay: 1.5s"] {
  animation-delay: 1.5s;
}

.floating[style*="animation-delay: 0.5s"] {
  animation-delay: 0.5s;
}

.floating[style*="animation-delay: 2s"] {
  animation-delay: 2s;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Images */
.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .gallery-img {
  transform: scale(1.05);
}