/* Mobile-First Responsive Landing Page CSS */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-spinner.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(220, 38, 38, 0.3);
  border-top: 3px solid #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-spinner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 300;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Main Container */
.landing-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Video Hero Section */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video Background */
.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  object-fit: cover;
  /* Optimize for mobile */
  will-change: transform;
}

/* Mobile video optimization */
@media (max-width: 768px) {
  .background-video {
    /* Reduce video quality on mobile for better performance */
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Video Fallback */
.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #dc2626 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Video Overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Texture overlay */ radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    ),
    /* Noise texture */
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.01) 2px,
        rgba(255, 255, 255, 0.01) 4px
      ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    ),
    /* Main gradient overlay - darker */
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(220, 38, 38, 0.2) 100%
      );
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 1rem;
  max-width: 100%;
  animation: fadeInUp 1.5s ease;
}

/* Brand Logo */
.brand-logo {
  margin-bottom: 2rem;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #dc2626, #ffffff, #dc2626);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGlow 3s ease-in-out infinite;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  margin: 0 auto;
  border-radius: 2px;
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes underlineGlow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1.2);
    opacity: 0.8;
  }
}

/* Social Preview */
.social-preview {
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 160px;
}

.social-link:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-2px);
  border-color: #dc2626;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #e4405f, #f56040, #ffdc80);
}

.social-handle {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Video Toggle Button */
.video-toggle {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 4;
}

.video-toggle:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .logo-text {
    font-size: 3.5rem;
  }

  .hero-content {
    padding: 2rem;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .logo-text {
    font-size: 4rem;
  }

  .social-link {
    padding: 1.2rem 2rem;
    font-size: 1.3rem;
    min-width: 180px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-text {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .background-video {
    display: none;
  }

  .video-fallback {
    display: block;
  }
}

/* Focus Styles for Accessibility */
.social-link:focus,
.video-toggle:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .video-overlay {
    background: rgba(0, 0, 0, 0.9);
  }

  .logo-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  }
}
