/* Custom styles for UltraFlex TV Website */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Custom Variables */
:root {
  --primary-blue: #00d4ff;
  --primary-green: #00ff88;
  --dark-bg: #0a0e27;
  --darker-bg: #050714;
  --card-bg: #141b2d;
  --text-light: #e0e7ff;
  --text-gray: #94a3b8;
}

/* Light Mode Variables */
[data-theme="light"] {
  --dark-bg: #f8fafc;
  --darker-bg: #f1f5f9;
  --card-bg: #ffffff;
  --text-light: #1e293b;
  --text-gray: #64748b;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Header Styles */
header {
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 39, 0.9);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

[data-theme="light"] header {
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Neon Glow Effects */
.neon-blue {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3),
              0 0 40px rgba(0, 212, 255, 0.2),
              0 0 60px rgba(0, 212, 255, 0.1);
}

.neon-green {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3),
              0 0 40px rgba(0, 255, 136, 0.2),
              0 0 60px rgba(0, 255, 136, 0.1);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--dark-bg);
}

/* Card Styles */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* Hero Section */
.hero-bg {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
  transition: all 0.3s ease;
}

[data-theme="light"] .hero-bg {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.15));
}

/* Section Spacing */
section {
  padding: 5rem 0;
}

/* Form Styles */
input, textarea {
  background: var(--card-bg);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--text-light);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

/* Mobile Menu */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Testimonial Slider */
.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Animated Gradient Background */
@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 3s ease-in-out infinite;
  animation-delay: 1s;
}

/* Slow Bounce Animation */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* Slow Spin Animation */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Movie Carousel Auto-scroll */
.movie-carousel {
  animation: scroll-horizontal 30s linear infinite;
  width: fit-content;
}

.movie-carousel:hover {
  animation-play-state: paused;
}

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

/* Movie Card Hover Effect */
.movie-carousel .card {
  position: relative;
  overflow: hidden;
}

.movie-carousel .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.movie-carousel .card:hover::before {
  opacity: 1;
}

.movie-carousel .card:hover .play-overlay {
  opacity: 1;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.movie-carousel .card:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
  width: 24px;
  height: 24px;
  color: white;
  margin-left: 3px;
}

/* Letter by Letter Animation */
.letter-animation {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterFadeIn 0.5s ease forwards;
}

@keyframes letterFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(90deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--card-bg);
  border: 2px solid var(--primary-blue);
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 2px;
}

.theme-toggle:hover {
  border-color: var(--primary-green);
}

.theme-toggle-slider {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-blue);
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .theme-toggle-slider {
  transform: translateX(24px);
  background: var(--primary-green);
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  transition: opacity 0.3s ease;
}

.theme-toggle-icon.sun {
  opacity: 0;
}

.theme-toggle-icon.moon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon.sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon.moon {
  opacity: 0;
}

/* Footer Light Mode */
[data-theme="light"] footer {
  background: var(--darker-bg);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Utility Classes for Theme Support */
.theme-bg {
  background-color: var(--dark-bg);
}

.theme-bg-darker {
  background-color: var(--darker-bg);
}

.theme-bg-card {
  background-color: var(--card-bg);
}

.theme-text {
  color: var(--text-light);
}

.theme-text-gray {
  color: var(--text-gray);
}

.theme-text-muted {
  color: var(--text-gray);
}

/* Header background with theme support */
.theme-header-bg {
  background: rgba(10, 14, 39, 0.9);
}

[data-theme="light"] .theme-header-bg {
  background: rgba(248, 250, 252, 0.9);
}

/* Mobile menu background */
.theme-mobile-menu-bg {
  background: var(--dark-bg);
}

/* Sections with darker background */
.theme-section-dark {
  background-color: var(--darker-bg);
}

/* Links with theme support */
.theme-link {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.theme-link:hover {
  color: var(--primary-blue);
}

.theme-link-active {
  color: var(--primary-blue);
}

/* Text colors with theme support */
.theme-text-primary {
  color: var(--text-light);
}

.theme-text-secondary {
  color: var(--text-gray);
}

/* Border colors */
.theme-border {
  border-color: rgba(0, 212, 255, 0.1);
}

[data-theme="light"] .theme-border {
  border-color: rgba(0, 212, 255, 0.2);
}

/* Button text color for light mode */
[data-theme="light"] .btn-primary {
  color: #0a0e27;
}

/* Card hover effect for light mode */
[data-theme="light"] .card:hover {
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

/* Headings in light mode */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: var(--text-light);
}

/* Mobile menu text in light mode */
[data-theme="light"] .mobile-menu span {
  color: var(--text-light);
}

/* Button secondary in light mode */
[data-theme="light"] .btn-secondary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

[data-theme="light"] .btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--card-bg);
}

/* Input and textarea in light mode */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--card-bg);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-light);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Carousel Animation */
.carousel-track {
    will-change: transform;
}

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

/* WhatsApp Button Animation */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Language Selector */
#language-selector,
#language-selector-mobile {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

#language-selector:focus,
#language-selector-mobile:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

#language-selector option,
#language-selector-mobile option {
    background: var(--card-bg);
    color: var(--text-light);
}

