/*-----------------------------------*\
  #ANIMATIONS AND EFFECTS
\*-----------------------------------*/

/* Text Animations for Titles - Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, .h1, 
h2, .h2, 
h3, .h3, 
.section-title {
  animation: fadeIn 1s ease-out forwards;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Staggered animation for sections */
.hero-title {
  animation-delay: 0.2s;
}
.section-title {
  animation-delay: 0.3s;
}
.hero-text {
  animation: fadeIn 1s ease-out 0.4s forwards;
  opacity: 0;
}
.section-text {
  animation: fadeIn 1s ease-out 0.5s forwards;
  opacity: 0;
}

/* Interactive Hover Effects for Headings */
.hero-title:hover,
.section-title:hover,
h1:hover, h2:hover, h3:hover {
  transform: scale(1.05);
  color: var(--orange-accent);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Smooth Transition Effects for Buttons */
.btn, .btn-primary, .btn-submit, .buttonss {
  transition: transform 0.3s ease, 
              background-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.btn:hover, .btn-primary:hover, .btn-submit:hover, .buttonss:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn:active, .btn-primary:active, .btn-submit:active, .buttonss:active {
  transform: scale(0.98);
}

/* Parallax Scrolling for Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-banner {
  transform: translateZ(0);
  transition: transform 0.5s ease;
}

/* Portfolio Cards Hover Effects */
.portfolio-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
}

/* Animations for Navbar */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.navbar-list li {
  opacity: 0;
  animation: slideInFromLeft 0.5s ease forwards;
}

.navbar-list li:nth-child(1) { animation-delay: 0.1s; }
.navbar-list li:nth-child(2) { animation-delay: 0.2s; }
.navbar-list li:nth-child(3) { animation-delay: 0.3s; }
.navbar-list li:nth-child(4) { animation-delay: 0.4s; }
.navbar-list li:nth-child(5) { animation-delay: 0.5s; }
.navbar-list li:nth-child(6) { animation-delay: 0.6s; }

.navbar-link {
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--orange-accent);
  transition: width 0.3s ease;
}

.navbar-link:hover::after {
  width: 100%;
}

/* Enhanced Footer Interactions */
.footer-link {
  position: relative;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--orange-accent);
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--orange-accent);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Gallery Carousel Animations */
.carousel-slide {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-track {
  transition: transform 0.5s ease;
}

.next-button,
.prev-button {
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.next-button:hover,
.prev-button:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
}

.indicator {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator:hover {
  transform: scale(1.2);
}

/* Fade-In on Scroll Effect */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form Animations */
.contact-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input:focus {
  border-color: var(--orange-accent);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

/* Back to Top Button Animation */
.back-to-top {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Blog Card Animations */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.blog-card .card-banner img {
  transition: transform 0.5s ease;
}

.blog-card:hover .card-banner img {
  transform: scale(1.05);
}
