/* Main website styles */
:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #12121a;
  --color-text: #f0f0f0;
  --color-text-muted: #a0a0a0;
  --color-primary: #00e5c6; /* Vibrant teal */
  --color-secondary: #6b46c1;
  --color-accent: #00e5ff;
  --color-border: #2a2a3a;
  --color-card: #16161e;
  --color-navbar: #282828; /* Dark Gray */
  --color-footer: #282828; /* Matching navbar */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
  --radius: 8px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
  /* Smoother background with subtle gradients instead of noise */
  background: linear-gradient(120deg, #0a0a0f 0%, #12121a 100%);
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top right, rgba(0, 229, 198, 0.03), transparent 50%),
              radial-gradient(circle at bottom left, rgba(107, 70, 193, 0.03), transparent 50%);
  z-index: -1;
  pointer-events: none;
  transform: rotate(-10deg);
  animation: subtleShift 30s infinite alternate ease-in-out;
}

@keyframes subtleShift {
  0% {
    transform: rotate(-10deg) translate(0, 0);
  }
  100% {
    transform: rotate(-8deg) translate(2%, 2%);
  }
}

/* Navbar and Footer */
header .navbar {
  background-color: var(--color-navbar);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

footer {
  background-color: var(--color-footer);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  line-height: 1.2;
}

.text-primary {
  color: var(--color-primary) !important;
}

.bg-dark {
  background-color: var(--color-bg-alt) !important;
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--color-text);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip: rect(0, 0, 0, 0);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--color-primary);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--color-accent);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(36px, 9999px, 9px, 0); }
  20% { clip: rect(54px, 9999px, 71px, 0); }
  40% { clip: rect(75px, 9999px, 95px, 0); }
  60% { clip: rect(32px, 9999px, 100px, 0); }
  80% { clip: rect(65px, 9999px, 91px, 0); }
  100% { clip: rect(39px, 9999px, 49px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(93px, 9999px, 53px, 0); }
  20% { clip: rect(30px, 9999px, 99px, 0); }
  40% { clip: rect(66px, 9999px, 98px, 0); }
  60% { clip: rect(62px, 9999px, 33px, 0); }
  80% { clip: rect(10px, 9999px, 94px, 0); }
  100% { clip: rect(89px, 9999px, 16px, 0); }
}

.accent {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 8rem 0 0rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top right, rgba(0, 229, 198, 0.07), transparent 70%),
              radial-gradient(circle at bottom left, rgba(107, 70, 193, 0.07), transparent 70%);
  z-index: -1;
  transform: rotate(-5deg);
}

.hero-content {
  max-width: 700px;
  margin-bottom: 3rem;
}

.lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.hero-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  transform: perspective(1000px) rotateY(-5deg);
}

.hero-image-container:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
  filter: contrast(1.1) brightness(1.1);
}

.hero-image-container:hover .hero-image {
  transform: scale(1.05);
}

.hero-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 229, 198, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image-container:hover::after {
  opacity: 1;
}

/* Waveform Container */
.waveform-container {
  position: relative;
  height: 100px;
  width: 100%;
  margin-top: 2rem;
  overflow: hidden;
}

.waveform {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--gradient-primary);
  color: white;
}

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

.btn-outline-accent:hover {
  color: white;
  background-color: var(--color-primary);
}

/* Feature Cards */
.feature-card {
  background-color: var(--color-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

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

.feature-title {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--color-text-muted);
}

/* Section Titles */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
}

/* Video Cards */
.video-card {
  background-color: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

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

.video-thumbnail {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  transition: transform 0.5s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail:hover .play-overlay {
  opacity: 1;
}

.play-button {
  color: white;
  font-size: 4rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.video-thumbnail:hover .play-button {
  transform: scale(1.2);
}

.video-info {
  padding: 1.5rem;
}

.video-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.video-details {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: var(--color-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--color-border);
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 229, 198, 0.1);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.author-name {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Video Modal */
.video-modal .modal-content {
  background-color: transparent;
  border: none;
}

/* Section Background Highlights */
.py-5:nth-child(even) {
  position: relative;
  overflow: hidden;
}

.py-5:nth-child(even)::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 229, 198, 0.07), transparent 70%);
  top: 10%;
  right: -50px;
  border-radius: 50%;
  z-index: -1;
}

.py-5:nth-child(odd) {
  position: relative;
  overflow: hidden;
}

.py-5:nth-child(odd)::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(107, 70, 193, 0.07), transparent 70%);
  bottom: 10%;
  left: -50px;
  border-radius: 50%;
  z-index: -1;
}

/* Artists grid */
.artist-card {
  cursor: pointer;
}

.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

/* Placements page */
.video-thumbnail {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

/* Team section */
.team-member-img img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Contact page */
.contact-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  width: 40px;
  text-align: center;
}

/* Image cropping */
.image-preview-container {
  position: relative;
  width: 100%;
  height: 300px;
  border: 2px dashed #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.image-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.crop-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.crop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.crop-box {
  position: absolute;
  border: 2px solid var(--color-primary);
  background-color: rgba(0, 229, 198, 0.2);
  cursor: move;
}

/* Admin panel */
.admin-sidebar {
  min-width: 250px;
  max-width: 250px;
  min-height: calc(100vh - 56px);
  background-color: var(--color-bg);
  transition: all 0.3s;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1rem;
  border-radius: 0;
}

.admin-sidebar .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

.admin-sidebar .nav-link i {
  margin-right: 0.5rem;
}

.admin-content {
  flex: 1;
  padding: 2rem;
  background-color: var(--color-bg-alt);
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .hero {
    padding: 2rem 0;
  }
  
  /* Smaller headings on mobile */
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Smaller spacing on mobile */
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* Smaller icons on mobile */
  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
  
  .play-button {
    font-size: 2rem;
  }
  
  /* Card title adjustments for smaller cards */
  .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .card-text {
    font-size: 0.875rem;
  }
  
  /* Admin sidebar adjustments */
  .admin-sidebar {
    margin-left: -250px;
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    z-index: 1000;
  }
  
  .admin-sidebar.show {
    margin-left: 0;
  }
  
  .admin-content {
    width: 100%;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  /* Even smaller headings on very small devices */
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  /* Tighter spacing */
  .g-4 {
    --bs-gutter-y: 0.75rem;
  }
  
  /* Smaller card bodies */
  .card-body {
    padding: 0.75rem;
  }
}

/* Utilities */
.hidden {
  display: none !important;
}

.d-none {
  display: none !important;
}

.strikethrough {
  text-decoration: line-through;
}

.video-thumbnail img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  color: var(--color-primary);
  background: rgba(0, 229, 198, 0.1);
  border-radius: 50%;
}

.text-accent {
  color: var(--color-primary);
}

.text-accent:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Footer links */
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

footer h5 {
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}
