/* Custom styles for Hypecrews website */

/* Button hover effects */
.btn-hover {
  transition: all 0.3s ease;
}

.btn-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Service card animations */
.service-card {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Team member hover effect */
.team-member img {
  transition: transform 0.5s ease;
}

.team-member:hover img {
  transform: scale(1.05);
}

/* Contact info card hover */
.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

/* Back to top button */
#backToTop {
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #4f46e5;
  transform: translateY(-3px);
}

/* Form input focus effects */
.form-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation for elements when they come into view */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }
.service-card:nth-child(7) { transition-delay: 0.7s; }
.service-card:nth-child(8) { transition-delay: 0.8s; }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* Modern Navbar Styles */
.navbar-scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #6366f1;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

/* Dropdown menu enhancements */
.dropdown-menu {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(10px);
  transition: all 0.3s ease, transform 0.3s ease;
  animation: dropdownFadeIn 0.3s ease forwards;
}

.group:hover .dropdown-menu {
  transform: translateY(0);
}

.dropdown-item {
  transition: all 0.3s ease;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.dropdown-item:hover::before {
  left: 100%;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  padding-left: 28px;
}

.dropdown-item i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.dropdown-item:hover i {
  transform: scale(1.2);
  color: #8b5cf6;
}

.dropdown-item span {
  transition: all 0.3s ease;
}

.dropdown-item:hover span {
  transform: translateX(5px);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Services button hover effect */
nav .group button {
  position: relative;
  overflow: hidden;
}

nav .group button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

nav .group button:hover::before {
  left: 100%;
}

nav .group button:hover {
  background: rgba(30, 41, 59, 0.5);
}

/* Icon container hover effect */
.service-card .w-16:hover {
  background-color: #6366f1 !important;
  transform: scale(1.1);
}

.service-card .w-16:hover i {
  color: white !important;
}

/* Learn more link animation */
.service-card a {
  transition: all 0.3s ease;
}

.service-card:hover a {
  transform: translateX(2px);
}

/* Modern section animations */
#about .animate-on-scroll,
#contact .animate-on-scroll {
  transition-delay: 0.2s;
}

#about .animate-on-scroll:nth-child(2),
#contact .animate-on-scroll:nth-child(2) {
  transition-delay: 0.4s;
}

/* Contact form input enhancements */
input, textarea, select {
  transition: all 0.3s ease;
  background-color: #1e293b;
  border-color: #334155;
}

input:focus, textarea:focus, select:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Social media icon hover effects */
.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Contact info hover effects */
.contact-info-item:hover {
  background-color: #1e293b;
  transform: translateY(-3px);
}

/* Hero section enhancements */
#home {
  position: relative;
  overflow: hidden;
}

/* Floating animation for hero elements */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

/* Glowing effect for hero buttons */
.glowing-button {
  position: relative;
  overflow: hidden;
}

.glowing-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.glowing-button:hover::before {
  left: 100%;
}

/* Hero stats animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Dropdown animation */
@keyframes dropdownFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Hero image hover effect */
.hero-image-container:hover .hero-image {
  transform: scale(1.03);
}

/* Dark theme adjustments */
.dark-theme {
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
}

/* Background gradients for dark theme */
.bg-gradient-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Border colors for dark theme */
.border-dark {
  border-color: #334155;
}

/* Text colors for dark theme */
.text-gray-400 {
  color: #94a3b8;
}

.text-gray-300 {
  color: #cbd5e1;
}

/* Form elements for dark theme */
.form-input-dark {
  background-color: #1e293b;
  border-color: #334155;
  color: #ffffff;
}

.form-input-dark:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Service detail card enhancements */
.service-detail-card {
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Audition form enhancements */
.file-upload-label {
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.youtube-link-input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Mobile menu enhancements */
#mobile-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #334155;
}

#mobile-menu-dropdown a {
  display: block;
  transition: all 0.2s ease;
}

#mobile-menu-dropdown a:hover {
  padding-left: 1.5rem;
}

#mobile-services-menu a {
  padding-left: 2rem;
}

#mobile-services-menu a:hover {
  padding-left: 2.5rem;
}

/* Client slider */
.animate-slide {
  display: flex;
  padding: 1rem;
  cursor: grab;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.animate-slide::-webkit-scrollbar {
  display: none;
}

.animate-slide:active {
  cursor: grabbing;
}

/* Cursor Highlight Effect */
.cursor-highlight {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 0, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
    opacity: 0;
}

.cursor-highlight.visible {
    opacity: 1;
}
