/* THE KINGS PRODUCTIONS - Premium Media Production Website */
/* Custom CSS Styles */

/* ========================================
   BASE STYLES & CUSTOM PROPERTIES
   ======================================== */

:root {
  --royal-blue: #4169E1;
  --royal-purple: #7B2D8E;
  --royal-gold: #FFD700;
  --royal-orange: #FF6B35;
  --royal-pink: #E91E8C;
  
  --gradient-primary: linear-gradient(135deg, var(--royal-blue), var(--royal-purple), var(--royal-pink));
  --gradient-secondary: linear-gradient(135deg, var(--royal-purple), var(--royal-pink));
  --gradient-accent: linear-gradient(135deg, var(--royal-orange), var(--royal-gold));
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

nav {
  transition: all var(--transition-normal);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
  border-radius: 9999px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

#mobile-menu.active {
  max-height: 500px;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: white;
  color: var(--royal-purple);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all var(--transition-normal);
  border: 2px solid var(--royal-purple);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--royal-purple);
  color: white;
}

/* ========================================
   CARD STYLES
   ======================================== */

.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
}

/* ========================================
   FORM STYLES
   ======================================== */

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Custom Select Arrow */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Input Focus Animation */
input, textarea, select {
  position: relative;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--royal-purple);
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.1);
}

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

section {
  position: relative;
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 45, 142, 0.2), transparent);
}

/* ========================================
   ANIMATION CLASSES
   ======================================== */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

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

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out forwards;
}

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

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

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

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ========================================
   PORTFOLIO GALLERY STYLES
   ======================================== */

.portfolio-item {
  transition: all var(--transition-slow);
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}

.portfolio-filter.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

/* ========================================
   MODAL STYLES
   ======================================== */

#success-modal {
  transition: opacity var(--transition-normal);
}

#success-modal.show {
  display: flex !important;
  opacity: 1;
}

#success-modal-content {
  transition: all var(--transition-normal);
}

#success-modal.show #success-modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Service Modal */
#service-modal {
  transition: opacity var(--transition-normal);
}

#service-modal.show {
  display: flex !important;
  opacity: 1;
}

#service-modal-content {
  transition: all var(--transition-normal);
}

#service-modal.show #service-modal-content {
  transform: scale(1);
  opacity: 1;
}

/* ========================================
   SCROLL EFFECTS
   ======================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   GRADIENT TEXT
   ======================================== */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--royal-blue), var(--royal-purple));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--royal-purple), var(--royal-pink));
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(123, 45, 142, 0.2);
  border-top-color: var(--royal-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   TOOLTIP STYLES
   ======================================== */

.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: #1f2937;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  margin-bottom: 0.5rem;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   NOTIFICATION TOAST
   ======================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 100;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }
  
  .text-responsive {
    font-size: clamp(1.5rem, 5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .container-responsive {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus visible outline */
*:focus-visible {
  outline: 2px solid var(--royal-purple);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  nav,
  footer,
  #success-modal,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ========================================
   HOVER EFFECT UTILITIES
   ======================================== */

.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hover-glow {
  transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(123, 45, 142, 0.3);
}

.hover-scale {
  transition: transform var(--transition-normal);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ========================================
   BACKGROUND PATTERNS
   ======================================== */

.bg-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(123, 45, 142, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
}

.bg-grid {
  background-image: 
    linear-gradient(rgba(123, 45, 142, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 45, 142, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ========================================
   SERVICE DETAIL MODAL
   ======================================== */

.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.service-modal-overlay.active {
  display: flex;
}

.service-modal-content {
  background: white;
  border-radius: 1.5rem;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9);
  opacity: 0;
  transition: all var(--transition-normal);
}

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

/* ========================================
   COUNTERS & STATS ANIMATION
   ======================================== */

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ========================================
   PREMIUM ACCENT LINES
   ======================================== */

.accent-line {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 9999px;
}

.accent-line-center {
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   ICON CONTAINER STYLES
   ======================================== */

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  transition: all var(--transition-normal);
}

.icon-container:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   TESTIMONIAL CARD STYLES
   ======================================== */

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 80px;
  font-family: 'Playfair Display', serif;
  color: rgba(123, 45, 142, 0.1);
  line-height: 1;
}

/* ========================================
   FOOTER LINK ANIMATION
   ======================================== */

footer a {
  transition: all var(--transition-fast);
}

footer a:hover {
  color: var(--royal-purple);
}

/* ========================================
   COPY EMAIL BUTTON ANIMATION
   ======================================== */

#copy-email-btn {
  position: relative;
}

#copy-email-btn.copied::after {
  content: 'Copied!';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  background: white;
  color: #10b981;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}
