/* Horizontally scrollable video grid */
.video-scroll-container {
  display: flex;
  flex-direction: row;
  gap: calc(1rem + 1vw);
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #1976ce #1a1a1a;
}
.video-scroll-container::-webkit-scrollbar {
  height: 10px;
}
.video-scroll-container::-webkit-scrollbar-thumb {
  background: #1976ce;
  border-radius: 8px;
}
.video-scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.portfolio-video-card {
  min-width: 300px;
  flex: 0 0 300px;
}
:root {
  --background: #0a0a0a;
  --foreground: #ffffff;
  --card: #1a1a1a;
  --card-foreground: #f1f5f9;
  --primary: #8b5cf6;
  --secondary: #6b7280;
  --muted: #4b5563;
  --muted-foreground: #9ca3af;
  --accent: #10b981;
  --border: #2d3748;
  --input: #1a1a1a;
}
html,
body {
  width: 100vw;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", sans-serif;
}

.font-heading {
  font-family: "Space Grotesk", sans-serif;
}

/* Custom animations and lighting effects */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Navbar mobile menu animation */
#mobile-menu {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
#mobile-menu.active {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

.glow-effect {
  animation: glow 3s ease-in-out infinite;
}

.float-effect {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.gradient-animate {
  background: linear-gradient(-45deg, #8b5cf6, #10b981, #3b82f6, #8b5cf6);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.lighting-gradient {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
}

.video-overlay {
  background: linear-gradient(
    45deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.nav-blur {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.8);
}

.text-gradient {
  background: linear-gradient(135deg, #8b5cf6, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reduce height of video cards in portfolio */
.portfolio-video-card {
  height: 430px; /* Adjust as needed */
  max-height: 430px;
  display: flex;
  flex-direction: column;
}
.portfolio-video-card .relative,
.portfolio-video-card video {
  height: 100%;
  max-height: 100%;
}
.portfolio-video-card video {
  object-fit: cover;
}
