/* Modern CSS for AI Concert Visuals - 2025 Edition */

:root {
  /* Core color palette */
  --primary: #00E5FF;
  --primary-dark: #00B8D4;
  --primary-light: #84FFFF;
  --accent: #FF1744;
  --background-dark: #121212;
  --background-lighter: #1e1e1e;
  --background-card: #262626;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-tertiary: #b0b0b0;
  --text-accent: var(--primary);
  --border-light: rgba(255, 255, 255, 0.12);
  
  /* Shadows and effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), #3d5afe);
  --gradient-dark: linear-gradient(135deg, #121212, #000000);
  --gradient-card: linear-gradient(145deg, var(--background-card), #1e1e1e);
  
  /* Component sizes */
  --navbar-height: 5rem;
  --content-max-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
}

/* Base styles */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  background-color: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-dark);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

/* Text selection */
::selection {
  background-color: var(--primary);
  color: #000000;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-tertiary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--primary-light);
}

a:not(.btn):not(.navbar-brand):not(.nav-link):after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-light);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

a:not(.btn):not(.navbar-brand):not(.nav-link):hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Navigation */
.navbar {
  background-color: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  height: var(--navbar-height);
}

.navbar.scrolled {
  background-color: rgba(7, 7, 15, 0.95);
  box-shadow: var(--shadow-md);
  height: calc(var(--navbar-height) * 0.8);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text-primary) !important;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  padding: 0.5rem 0;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  margin: 0 0.75rem;
  padding: 0.5rem 0.25rem !important;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover:after,
.nav-link.active:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: all var(--transition-fast);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  background-color: var(--background-lighter);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  animation: fadeIn 0.3s ease-out;
}

.dropdown-item {
  color: var(--text-tertiary) !important;
  padding: 0.5rem 1.5rem;
  transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--primary) !important;
}

/* Hero Section */
.hero-section-modern {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#threejs-canvas-modern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content-modern {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 1s ease-out;
  transition: all var(--transition-medium);
}

.hero-content-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 229, 255, 0.2);
}

.hero-content-modern h1 {
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  margin-bottom: 1.5rem;
}

.hero-content-modern p.lead {
  font-size: 1.35rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: translateY(100%);
  transition: transform var(--transition-fast);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-primary-modern {
  background: var(--gradient-primary);
  color: #000;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary-modern:hover,
.btn-primary-modern:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
  color: #000;
}

.btn-primary-modern:active {
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-outline-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #000;
  border-color: var(--primary);
}

.btn-outline-light:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Content Sections */
.content-section-modern {
  padding: 6rem 0;
  position: relative;
}

.content-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.content-section-modern h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.content-section-modern h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--primary);
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.2;
  margin: 5rem auto;
  width: 60%;
  border-radius: 1px;
}

/* Cards */
.feature-card-modern {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  transition: all var(--transition-medium);
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
  z-index: -1;
}

.feature-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 10px 25px rgba(0, 229, 255, 0.2);
  border-color: var(--primary-dark);
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.feature-card-modern h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.feature-card-modern p {
  color: var(--text-tertiary);
  margin-bottom: 1.75rem;
}

/* Footer */
.footer-modern {
  background-color: #0a0a0a;
  color: var(--text-tertiary);
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  position: relative;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.footer-modern p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-modern a {
  color: var(--primary);
  transition: all var(--transition-fast);
}

.footer-modern a:hover {
  color: var(--primary-light);
}

/* Page Header */
.page-header-modern {
  background: var(--gradient-dark);
  padding: 10rem 0 6rem; /* Increased padding to account for fixed navbar */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2300e5ff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header-modern h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
}

.page-header-modern p.lead {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Content styling */
.content-card {
  background-color: var(--background-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-tertiary);
}

ul li, ol li {
  margin-bottom: 0.75rem;
}

blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: var(--text-secondary);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Animation classes */
.fade-in { animation: fadeIn 1s ease-out; }
.fade-in-up { animation: fadeInUp 1s ease-out; }
.fade-in-left { animation: fadeInLeft 1s ease-out; }
.fade-in-right { animation: fadeInRight 1s ease-out; }
.pulse { animation: pulse A2s infinite; }

/* Delay classes */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Responsive adjustments */
@media (max-width: 1200px) {
  :root {
    --navbar-height: 4.5rem;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-content-modern {
    max-width: 700px;
  }
}

@media (max-width: 992px) {
  :root {
    --navbar-height: 4rem;
  }
  
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  
  .hero-content-modern h1 {
    font-size: 2.5rem;
  }
  
  .hero-content-modern p.lead {
    font-size: 1.15rem;
  }
  
  .content-section-modern {
    padding: 4rem 0;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .dropdown-menu {
    border: none;
    background-color: transparent;
    box-shadow: none;
  }
  
  .dropdown-item {
    color: var(--text-secondary) !important;
  }
  
  .dropdown-item:hover {
    background-color: transparent;
    color: var(--primary) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 3.5rem;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .hero-section-modern {
    padding: 0 1rem;
    min-height: 600px;
  }
  
  .hero-content-modern {
    padding: 2rem 1.5rem;
  }
  
  .hero-content-modern h1 {
    font-size: 2rem;
  }
  
  .hero-content-modern p.lead {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .btn-primary-modern {
    font-size: 1rem;
  }
  
  .content-section-modern {
    padding: 3rem 0;
  }
  
  .page-header-modern {
    padding: 6rem 0 3rem;
  }
  
  .page-header-modern h1 {
    font-size: 2rem;
  }
  
  .feature-card-modern {
    padding: 1.75rem;
  }
  
  .section-divider {
    margin: 3rem auto;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero-content-modern h1 {
    font-size: 1.75rem;
  }
  
  .content-section-modern h2 {
    margin-bottom: 2rem;
  }
}