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

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(217, 70, 107, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(217, 70, 107, 0.2);
  }
}

/* HERO ANIMATIONS */
.hero-text-reveal {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image-reveal {
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* FADE IN UP FOR SECTIONS */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* SERVICE CARD ANIMATIONS */
.service-card {
  animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

/* GALLERY ITEM ANIMATIONS */
.gallery-item {
  animation: fadeInUp 0.6s ease-out both;
  position: relative;
}

/* SMOOTH LINK UNDERLINE */
a {
  text-decoration: none;
}

a:not(.no-underline) {
  position: relative;
}

/* HOVER EFFECTS ON LINKS */
section a[href="#contact"],
section a[href="#services"],
section a[href="#about"] {
  position: relative;
  display: inline-block;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #d94670;
  border-radius: 10px;
}

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

/* GRAIN OVERLAY (subtle) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* SELECTION COLOR */
::selection {
  background: #d94670;
  color: white;
}

/* RESPONSIVE TYPE SCALE */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* SMOOTH TRANSITIONS */
* {
  transition-property: color, background-color, border-color, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

button, a {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: 0.2s;
}

button:active, a:active {
  transform: scale(0.98);
}

/* UTILITY: text decoration line-through on hover */
.line-through-on-hover:hover {
  text-decoration: line-through;
}

/* ROUNDED CORNERS for imgs */
img {
  border-radius: inherit;
}

