/* ========================================
   SprintArt Website - Creative Enhancements
   Making it Beautiful, Friendly, Unique & Superb!
   ======================================== */

/* ========== SMOOTH SCROLLING ========== */
html {
  scroll-behavior: smooth;
}

/* ========== ENHANCED TYPOGRAPHY ========== */
body {
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient text for main headings */
h1, .hero-title {
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

/* Red theatrical text */
h1 span, .theatrical-text {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== SCROLL 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);
  }
}

/* Apply animations to sections */
section {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

/* ========== ENHANCED BUTTONS ========== */
button, .button, a[role="button"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover, .button:hover, a[role="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.3),
              0 8px 10px -6px rgba(220, 38, 38, 0.2);
}

button:active, .button:active, a[role="button"]:active {
  transform: translateY(0);
}

/* Ripple effect */
button::after, .button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::after, .button:active::after {
  width: 300px;
  height: 300px;
}

/* ========== PROJECT CARDS ENHANCEMENT ========== */
.project-card, [class*="project"], [class*="card"] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
}

.project-card:hover, [class*="project"]:hover, [class*="card"]:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2),
              0 15px 25px -5px rgba(220, 38, 38, 0.15);
}

/* Image hover effect */
.project-card img, [class*="project"] img, [class*="card"] img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img, [class*="project"]:hover img, [class*="card"]:hover img {
  transform: scale(1.1);
}

/* ========== CLIENT LOGOS ANIMATION ========== */
.client-logo, [alt*="Client logo"], [alt*="logo"] {
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.7);
}

.client-logo:hover, [alt*="Client logo"]:hover, [alt*="logo"]:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* ========== ENHANCED NAVIGATION ========== */
nav, header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

nav button, header button {
  position: relative;
  transition: all 0.3s ease;
}

nav button::before, header button::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #dc2626;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav button:hover::before, header button:hover::before {
  width: 80%;
}

/* ========== SECTION DIVIDERS ========== */
section::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  margin: 40px auto 0;
  border-radius: 2px;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}

/* ========== ENHANCED SHADOWS ========== */
.shadow, .card, .box {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.shadow:hover, .card:hover, .box:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ========== BACKGROUND ENHANCEMENTS ========== */
body {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

/* Subtle pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ========== HERO SECTION ENHANCEMENT ========== */
.hero, [class*="hero"], section:first-of-type {
  position: relative;
  overflow: hidden;
}

.hero::before, [class*="hero"]::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ========== TEXT SELECTION ========== */
::selection {
  background: #dc2626;
  color: white;
}

::-moz-selection {
  background: #dc2626;
  color: white;
}

/* ========== SMOOTH TRANSITIONS ========== */
* {
  transition-property: transform, opacity, box-shadow, background-color, color;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== LOADING ANIMATION ========== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ========== SCROLL PROGRESS INDICATOR ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ========== ENHANCED FORMS ========== */
input, textarea, select {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

input:focus, textarea:focus, select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  outline: none;
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 768px) {
  /* Reduce animation intensity on mobile */
  .project-card:hover, [class*="project"]:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  /* Simplify shadows on mobile */
  .shadow:hover, .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== FOCUS STATES ========== */
button:focus-visible, a:focus-visible {
  outline: 3px solid #dc2626;
  outline-offset: 2px;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  border-radius: 6px;
}

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

/* ========== THEATRICAL CURTAIN EFFECT ========== */
@keyframes curtainReveal {
  from {
    clip-path: inset(0 50% 0 50%);
  }
  to {
    clip-path: inset(0 0% 0 0%);
  }
}

.curtain-reveal {
  animation: curtainReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== SPOTLIGHT EFFECT ON HOVER ========== */
.spotlight {
  position: relative;
}

.spotlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight:hover::after {
  opacity: 1;
}
