/* ===== SynthNova AI Production — Netflix Style ===== */

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

::selection {
  background: rgba(229, 9, 20, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e50914;
}

/* Hero Background */
.hero-bg {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(229, 9, 20, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 163, 90, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(229, 9, 20, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
}

.hero-grid {
  background-image: 
    linear-gradient(rgba(229, 9, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 9, 20, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

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

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

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(229, 9, 20, 0.1); }
  50% { box-shadow: 0 0 40px rgba(229, 9, 20, 0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.animate-fade-in-up-delay {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.animate-fade-in-up-delay-2 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.animate-fade-in-up-delay-3 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.1s forwards;
}

.animate-scroll-dot {
  animation: scroll-dot 2s ease-in-out infinite;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

/* Particle styles */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(229, 9, 20, 0.4);
  border-radius: 50%;
  animation: float var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card hover effects */
.group:hover .card-shine {
  opacity: 1;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #e50914, #c4a35a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glowing border animation */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.3), transparent, rgba(196, 163, 90, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-border:hover::after {
  opacity: 1;
}

/* Film grain overlay */
section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Loading shimmer */
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(229, 9, 20, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-grid {
    background-size: 40px 40px;
  }
}

/* Form focus styles */
input:focus, textarea:focus {
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.1);
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Counter animation helper */
.counter-animated {
  transition: all 0.3s ease-out;
}

/* ===== CASES SECTION STYLES ===== */

/* Shake animation for wrong password */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}
.shake-animation {
  animation: shake 0.5s ease-in-out;
  border-color: #ef4444 !important;
}

/* Video card hover effects */
.case-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-card:hover {
  transform: translateY(-4px);
}
.case-card:hover .aspect-video {
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

/* Line clamp for descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video modal overlay animation */
#video-modal {
  transition: opacity 0.3s ease;
}
#video-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
#video-modal.flex {
  opacity: 1;
}

/* Video player styling */
#video-player {
  max-height: 75vh;
  background: #000;
}
#video-player::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* Filter buttons active state override */
.cases-filter.active {
  background: #9333ea !important;
  color: white !important;
  border: none !important;
}

/* Purple accent glow for cases section */
#cases::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
