/* ---------------------------------------------------
                SOUL Restro Café 
   --------------------------------------------------- */

:root {
  --primary-color: #0f473e; /* Deep forest green */
  --secondary-color: #d9b382; /* Warm beige-golden tone */
  --light-bg-color: #f7f3ee; /* Creamy off-white */
  --card-bg-dark: #195c51; /* Slightly lighter green for cards */
  --text-dark: #1a1a1a;
  --text-light: #f0f0f0;
  --font-family: "Poppins", sans-serif;
  --nav-height: 70px;
}

/* ----------------------------
   Global Reset & Body
---------------------------- */
body {
  font-family: var(--font-family);
  background-color: var(--secondary-color);
  color: var(--text-light);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}
.section-our-story {
  background-color: var(--light-bg-color);
  padding: 60px 30px;
  box-shadow: none;
}
i {
  color: var(--primary-color);
}

/* Top Social Bar (Desktop Only) */
.top-social-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 42px;
  background-color: #0f473e; /* Deep green */
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--secondary-color);
}

/* Centered welcome text */
.top-social-bar .welcome-text {
  color: var(--secondary-color);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  /* text-align: center; */
  margin-left: 38px;
  flex: 1;
}

/* Social icons on right */
.top-social-bar .social-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-social-bar .social-icons i {
  color: var(--secondary-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.top-social-bar .social-icons i:hover {
  color: #ffffff;
  transform: scale(1.2);
}

/* Push navbar below top bar */
.navbar.fixed-top {
  top: 42px;
}

/*  Responsive Fix for Top Bar + Navbar */
@media (max-width: 992px) {
  .top-social-bar {
    display: none !important; /* hide top bar on mobile */
  }

  /* move navbar up since top bar is hidden */
  .navbar.fixed-top {
    top: 0 !important;
  }
}

/* Desktop: keep navbar pushed below top bar */
@media (min-width: 992px) {
  .navbar.fixed-top {
    top: 42px !important; /* height of your top bar */
  }
}

/* ----------------------------
   Navbar
---------------------------- */
.navbar {
  background-color: var(--secondary-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 800;
}

.navbar-nav .nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff !important;
}

/* ----------------------------
   Navbar Visit Us Button Hover
---------------------------- */
.navbar .btn-visit {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  transition: all 0.3s ease;
}

.navbar .btn-visit:hover {
  color: #ffffff !important;
  transform: scale(1.05);
}

/* ----------------------------
   Social Icons in Mobile Navbar
---------------------------- */
.nav-social-icons {
  display: none; /* hidden by default on desktop */
}

.nav-social-icons a {
  color: var(--primary-color);
  background-color: var(--secondary-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.nav-social-icons a:hover {
  color: #ffffff;
  background-color: var(--primary-color);
}

/* Show only on mobile */
@media (max-width: 992px) {
  .nav-social-icons {
    font-size: 30px;
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
    margin-top: 15px;
    text-decoration: none;
  }
}

/* ----------------------------
   Logo Styling
---------------------------- */
.logo-placeholder {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-placeholder .logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ----------------------------
   Buttons
---------------------------- */
.btn-accent-custom,
.btn-accent {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  transition: all 0.3s ease;
}

.btn-accent-custom:hover,
.btn-accent:hover {
  background-color: #bfa075;
  transform: scale(1.05);
  color: var(--primary-color);
}

.btn-primary-custom {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary-custom:hover {
  background-color: var(--card-bg-dark);
  color: var(--text-light);
}

/* ----------------------------
   Hero Section 
---------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay behind text */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.65; /* slightly transparent for visibility */
  z-index: 1; /* sits below caption */
}

/* Text Layer */
.carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2; /* above overlay */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: var(--text-light);
}

.carousel-caption .tagline {
  color: var(--secondary-color);
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
}

.carousel-caption p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2rem;
    text-align: center;
  }
  .carousel-caption p {
    text-align: center;
  }
  .carousel-caption {
    justify-content: center;
    text-align: center;
  }
}
/* ---------------------------------------------------
   Carousel Arrows — Aligned to Screen Edges (Mobile)
--------------------------------------------------- */

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 5;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Hover effect (desktop aesthetic) */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* MOBILE VIEW  */
@media (max-width: 768px) {
  /* Round button design matching your theme */
  .carousel-control-prev,
  .carousel-control-next {
    /* background-color: var/(--secondary-color); */
    /* border-radius: 50%; */
    width: 42px;
    height: 42px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); */
  }

  /* Left arrow touches left edge */
  .carousel-control-prev {
    left: 8px !important;
    justify-content: flex-start;
  }

  /* Right arrow touches right edge */
  .carousel-control-next {
    right: 8px !important;
    justify-content: flex-end;
  }

  /* Adjust arrow icons */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    filter: invert(1);
    width: 22px;
    height: 22px;
    background-size: 60%;
  }

  /* Tap feedback */
  .carousel-control-prev:active,
  .carousel-control-next:active {
    transform: translateY(-50%) scale(0.95);
  }
}

/* ----------------------------
   Section Headings
---------------------------- */
.section-heading {
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.bg-primary-dark {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.bg-secondary-light {
  background-color: var(--light-bg-color);
  color: var(--text-dark);
}

.bg-secondary-light .section-heading {
  color: var(--primary-color);
}

.bg-secondary-light p,
.bg-secondary-light .lead {
  color: var(--text-dark) !important;
}

/* ----------------------------
   Cards & Menus
---------------------------- */
.card-dark {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.card-dark h5 {
  color: var(--secondary-color);
}

.card-dark p {
  color: #dcdcdc !important;
}

.item-price {
  color: var(--secondary-color);
  font-weight: 700;
}

/* ----------------------------
   Gallery
---------------------------- */
.gallery-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.gallery-image img {
  transition: transform 0.5s ease;
}

.gallery-image img:hover {
  transform: scale(1.05);
}

/* ----------------------------
   Map Section
---------------------------- */
.map-wrapper {
  position: relative;
  width: 100%;
  min-height: 400px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* FOOTER SECTION */
.footer {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.footer-heading {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-text {
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.6;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-link:hover {
  color: #ffffff !important;
}

.social-icon i {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-icon:hover i {
  color: #ffffff;
}

.copyright {
  color: #ffffff;
  font-size: 0.9rem;
  margin-top: 30px;
}

/* CONTACT CARD LINKS FIX */
.bg-card-dark-custom a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

.bg-card-dark-custom a:hover {
  color: var(--primary-color) !important;
}

/* ----------------------------
   WhatsApp Floating Button
---------------------------- */
.whatsapp-fab {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #25d366;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 999;
  transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.whatsapp-fab svg {
  fill: white;
  width: 24px;
  height: 24px;
}

/* ----------------------------
   Utilities
---------------------------- */
.btn-square {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tagline {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----------------------------
   Gallery Hero Section Fix
---------------------------- */
.gallery-hero {
  height: 70vh;
  min-height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-top: 120px; /* pushes content below fixed navbar */
}

.gallery-hero .hero-overlay {
  background-color: var(--primary-color);
  opacity: 0.75;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gallery-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.gallery-hero .tagline {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color); /* secondary color for heading */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.gallery-hero .hero-subtext {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

/* Responsive Text Adjustments */
@media (max-width: 768px) {
  .gallery-hero {
    padding-top: 100px; /* slightly smaller on mobile */
  }
  .gallery-hero .tagline {
    font-size: 1.5rem;
  }
  .gallery-hero .hero-subtext {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ----------------------------
   Gallery Hero Section
---------------------------- */
.gallery-hero {
  height: 70vh;
  min-height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-top: 120px; /* pushes content below fixed navbar */
}

.gallery-hero .hero-overlay {
  background-color: var(--primary-color);
  opacity: 0.75;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gallery-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.gallery-hero .tagline {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.gallery-hero .hero-subtext {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

/* Responsive Text Adjustments */
@media (max-width: 768px) {
  .gallery-hero {
    padding-top: 100px;
  }
  .gallery-hero .tagline {
    font-size: 1.5rem;
  }
  .gallery-hero .hero-subtext {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ----------------------------
   Gallery Section (Fixed 300x300)
---------------------------- */
.gallery-container {
  padding: 3rem 0;
}

.gallery-image {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  width: 300px; /* fixed width */
  height: 300px; /* fixed height */
  margin: 0 auto; /* centers in column */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image styling - fixed size */
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ ensures consistent look without distortion */
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

/* Hover zoom effect */
.gallery-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Column spacing */
.gallery-container .col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

/* Hide SECOND gallery on mobile */
@media (max-width: 768px) {
  .second-gallery {
    display: none !important;
  }
}

/* Responsive Spacing */
@media (max-width: 992px) {
  .gallery-container {
    padding: 2rem 0;
  }
  .gallery-image {
    width: 300px;
    height: 300px;
  }
}

/* /* Philosophy Section Icon Styling */
/* .philosophy-icon {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.15);
  padding: 18px;
  border-radius: 30%;
  transition: all 0.3s ease-in-out;
}

.philosophy-icon:hover {
  
  transform: scale(1.1);
  background: var(--primary-color);
  color: var(--secondary-color);
} */

/* Philosophy Section Icon Styling */
.philosophy-icon {
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.philosophy-icon:hover {
  transform: scale(1.15) rotate(5deg);
  color: var(--secondary-color);
}

/* ----------------------------
   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 slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ----------------------------
   Enhanced Card Animations
---------------------------- */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

.card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img {
  transform: scale(1.1);
}

/* Philosophy cards */
.philosophy-block .card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-block .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(15, 71, 62, 0.2) !important;
}

/* ----------------------------
   Enhanced Button Animations
---------------------------- */
.btn-primary-custom,
.btn-visit,
.carousel-btn,
.carousel-btn-2 {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom::before,
.btn-visit::before,
.carousel-btn::before,
.carousel-btn-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary-custom:hover::before,
.btn-visit:hover::before,
.carousel-btn:hover::before,
.carousel-btn-2:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary-custom:hover,
.btn-visit:hover,
.carousel-btn:hover,
.carousel-btn-2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom:active,
.btn-visit:active,
.carousel-btn:active,
.carousel-btn-2:active {
  transform: translateY(0);
}

/* ----------------------------
   Navbar Scroll Effects
---------------------------- */
.navbar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background-color: rgba(217, 179, 130, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand {
  transform: scale(0.95);
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.5rem 1rem;
}

/* ----------------------------
   Parallax Effect
---------------------------- */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (prefers-reduced-motion: reduce) {
  .parallax {
    background-attachment: scroll;
  }
}

/* ----------------------------
   Gallery Lightbox
---------------------------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: scaleIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* ----------------------------
   Scroll to Top Button
---------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 20px;
}

.scroll-to-top.show {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--card-bg-dark);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

/* ----------------------------
   Loading Animation
---------------------------- */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* ----------------------------
   Enhanced Image Effects
---------------------------- */
img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

img.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy-load.loaded {
  opacity: 1;
}

/* ----------------------------
   Section Animations
---------------------------- */
section {
  position: relative;
  overflow: hidden;
}

/* Fade in sections on scroll */
section:not(.hero-section) {
  animation: fadeIn 0.8s ease-out;
}

/* ----------------------------
   Enhanced Footer Animations
---------------------------- */
.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  animation: slideInRight 1s ease;
}

.social-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ----------------------------
   Text Animations
---------------------------- */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animated.slideInRight {
  animation-name: slideInRight;
}

.animated.fadeInUp {
  animation-name: fadeInUp;
}

.animated.fadeIn {
  animation-name: fadeIn;
}

/* ----------------------------
   Carousel Enhancements
---------------------------- */
.carousel-item {
  position: relative;
}

.carousel-caption {
  animation: fadeInUp 1s ease-out;
}

.carousel-item.active .carousel-caption {
  animation-delay: 0.3s;
}

/* ----------------------------
   Card Image Overlay Effect
---------------------------- */
.card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-img-overlay {
  opacity: 1;
}

/* ----------------------------
   Smooth Transitions for All Interactive Elements
---------------------------- */
a,
button,
.card,
.gallery-image,
.navbar-nav .nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------
   Reduced Motion Support
---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
