/* ==========================================================================
   DHWAJ MEDIA - Premium 3D Animation & Visual Production Studio
   Design System: Vivid Neon Pink (#ff2a85 / #f43f5e) & Magenta Violet
   High Video Visibility & 100% Mobile Fluid Responsiveness
   ========================================================================== */

:root {
  --primary: #f43f5e;
  --primary-pink: #ff2a85;
  --primary-glow: rgba(244, 63, 94, 0.55);
  --primary-light: #fb7185;
  --accent-magenta: #ec4899;
  --accent-purple: #d946ef;
  --dark-bg: #07040a;
  --dark-card: rgba(18, 10, 24, 0.78);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(244, 63, 94, 0.45);
  --text-muted: #cbd5e1;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dark-bg);
  color: #f8fafc;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--dark-bg);
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #07040a;
}
::-webkit-scrollbar-thumb {
  background: #2e1028;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Video Background Full Bleed (High Visibility on Desktop & Mobile) */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-video-wrapper iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.35);
  pointer-events: none;
  opacity: 0.95;
  filter: contrast(106%) saturate(120%) brightness(1.05);
}

/* On small mobile screens, ensure iframe stays centered and covers */
@media (max-width: 768px) {
  .hero-video-wrapper iframe {
    transform: translate(-50%, -50%) scale(1.6);
  }
}

/* Hero Vignette (Lighter to make the Video Much More Visible) */
.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 45%, rgba(10, 4, 14, 0.65) 0%, rgba(10, 4, 14, 0.35) 50%, rgba(10, 4, 14, 0.15) 100%),
              linear-gradient(to top, #07040a 0%, rgba(7, 4, 10, 0.5) 25%, transparent 65%, rgba(7, 4, 10, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Hero Typography */
.hero-tag {
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #fb7185;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  word-break: break-word;
}

.hero-accent {
  background: linear-gradient(135deg, #ff2a85 0%, #f43f5e 40%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 50px rgba(244, 63, 94, 0.65);
}

/* Glassmorphism Components */
.glass-panel {
  background: rgba(18, 10, 24, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.65);
}

.glass-nav {
  background: rgba(7, 4, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-partner {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  min-width: 160px;
  height: 72px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .glass-card-partner {
    padding: 12px 28px;
    min-width: 190px;
    height: 80px;
  }
}

.glass-card-partner:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(244, 63, 94, 0.7);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.3);
}

.glass-card-partner img {
  max-height: 42px;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(1) drop-shadow(0 2px 5px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .glass-card-partner img {
    max-height: 48px;
    max-width: 140px;
  }
}

/* Marquee Continuous Infinite Animation */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ff2a85 0%, #f43f5e 45%, #c026d3 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.6);
  background: linear-gradient(135deg, #ff4095 0%, #fb7185 45%, #d946ef 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(244, 63, 94, 0.55);
  transform: translateY(-2px);
}

/* Touch Friendly Sizing on Mobile */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.4rem;
    font-size: 0.875rem;
  }
}

/* Glow Card */
.glow-card {
  position: relative;
  background: rgba(18, 10, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 20px 45px -15px rgba(244, 63, 94, 0.25);
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.15), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 6, 0.94);
  backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #07040a;
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Pulse Animation */
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse-border 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-border {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.75);
  }
  70% {
    transform: scale(1.3);
    box-shadow: 0 0 0 20px rgba(244, 63, 94, 0);
  }
  100% {
    transform: scale(1.35);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.badge-pink {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

/* Workflow step connector */
.workflow-connector {
  position: relative;
}
@media (min-width: 1024px) {
  .workflow-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, rgba(244, 63, 94, 0.6), rgba(217, 70, 239, 0.1));
    z-index: 10;
  }
  .workflow-connector:last-child::after {
    display: none;
  }
}

/* Contact for Services CTA Section Card */
.contact-services-banner {
  background: radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.22) 0%, transparent 45%),
              rgba(18, 10, 24, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px -15px rgba(244, 63, 94, 0.2);
}

/* Prevent auto-zoom on iOS inputs */
input, textarea, select {
  font-size: 16px !important;
}
@media (min-width: 768px) {
  input, textarea, select {
    font-size: 14px !important;
  }
}
