/* ====================================
   Mobile-First Enhancements for Temple Website
   ==================================== */

/* Enhanced Mobile Touch Targets */
@media screen and (max-width: 768px) {
  /* Larger touch targets for better mobile experience */
  .nav-menu a,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    min-height: 48px; /* Minimum touch target size */
    padding: 12px 20px;
  }

  /* Mobile-optimized header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  }

  .header-content {
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Mobile logo optimization */
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo-img {
    width: 45px;
    height: 45px;
  }

  .logo-text h1 {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.2;
  }

  .logo-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
  }

  /* Enhanced mobile menu button */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
  }

  .mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Mobile navigation improvements */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-dark), #5d4e75);
    flex-direction: column;
    padding: 80px 0 2rem 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a {
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Enhanced hero section for mobile */
  .hero {
    height: 75vh;
    min-height: 550px;
    margin-top: 70px;
    position: relative;
  }

  /* Decorative Hero Ornament */
  .hero-ornament {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(240px, 85vw, 540px);
    padding: 0.75rem 1rem 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 6;
    pointer-events: none;
    font-family: "Lora", serif;
  }

  .hero-ornament .ornament-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
      circle at 50% 20%,
      rgba(255, 215, 0, 0.45),
      rgba(255, 107, 53, 0.15) 40%,
      transparent 70%
    );
    filter: blur(12px);
    opacity: 0.55;
    animation: ornamentPulse 6s ease-in-out infinite;
  }

  .hero-ornament .ornament-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    opacity: 0.25;
  }
  .hero-ornament .ornament-lines span {
    display: block;
    width: 2px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.6),
      rgba(255, 215, 0, 0)
    );
    border-radius: 2px;
    animation: lineDrift 7s linear infinite;
  }
  .hero-ornament .ornament-lines span:nth-child(2) {
    animation-delay: -2.3s;
    opacity: 0.7;
  }
  .hero-ornament .ornament-lines span:nth-child(3) {
    animation-delay: -4.1s;
    opacity: 0.5;
  }

  .ornament-core {
    position: relative;
    padding: 0.55rem 1.15rem 0.85rem;
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    border-radius: 40px;
    backdrop-filter: blur(14px) saturate(160%);
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.55),
      rgba(139, 69, 19, 0.55)
    );
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35),
      0 0 0 3px rgba(255, 255, 255, 0.06), 0 0 25px -5px rgba(255, 215, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .ornament-symbol {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6),
      0 0 30px rgba(255, 140, 0, 0.35);
    font-weight: 700;
    font-family: "Lora", serif;
    transform: translateY(2px);
    animation: omGlow 5s ease-in-out infinite;
  }

  .ornament-text {
    text-align: left;
  }
  .ornament-text p {
    margin: 0;
    line-height: 1.15;
  }
  .ornament-text .tagline-sanskrit {
    font-size: clamp(0.7rem, 2.6vw, 0.86rem);
    letter-spacing: 0.5px;
    color: rgba(255, 215, 0, 0.95);
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
  }
  .ornament-text .tagline-en {
    font-size: clamp(0.65rem, 2.5vw, 0.8rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.4px;
  }
  .ornament-text .tagline-today {
    font-size: clamp(0.58rem, 2.2vw, 0.72rem);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin-top: 2px;
  }
  .ornament-text .tagline-festival {
    font-size: clamp(0.62rem, 2.3vw, 0.78rem);
    color: #ffed8a;
    font-weight: 600;
    margin-top: 3px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
    animation: festivalGlow 4s ease-in-out infinite;
  }

  @keyframes ornamentPulse {
    0%,
    100% {
      opacity: 0.55;
      transform: scale(1);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.03);
    }
  }
  @keyframes lineDrift {
    0% {
      transform: translateY(-15%);
    }
    100% {
      transform: translateY(35%);
    }
  }
  @keyframes omGlow {
    0%,
    100% {
      filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0.5));
    }
    50% {
      filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.9));
    }
  }
  @keyframes festivalGlow {
    0%,
    100% {
      opacity: 0.85;
    }
    50% {
      opacity: 1;
    }
  }

  @media (max-width: 520px) {
    .ornament-core {
      gap: 0.65rem;
      padding: 0.5rem 0.95rem 0.7rem;
    }
    .ornament-text .tagline-sanskrit {
      letter-spacing: 0.3px;
    }
    .hero-ornament {
      padding: 0.55rem 0.75rem 0.65rem;
    }
  }

  @media (min-width: 900px) {
    .hero-ornament {
      top: 0.75rem;
    }
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .slide-content {
    padding: 3rem 2rem !important;
    background: linear-gradient(
      145deg,
      rgba(139, 69, 19, 0.95),
      rgba(93, 78, 117, 0.9),
      rgba(255, 107, 53, 0.85),
      rgba(75, 45, 85, 0.8)
    ) !important;
    border-radius: 30px !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    border: 3px solid transparent !important;
    background-clip: padding-box !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
      0 15px 35px rgba(139, 69, 19, 0.3), 0 0 50px rgba(255, 107, 53, 0.25),
      inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    transform: translateY(0) !important;
    animation: slideContentFadeIn 0.8s ease-out !important;
    position: relative !important;
    z-index: 4 !important;
    max-width: 88% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

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

  .slide-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      50deg,
      rgba(255, 215, 0, 0.2),
      transparent 25%,
      rgba(255, 107, 53, 0.15) 50%,
      transparent 75%,
      rgba(139, 69, 19, 0.1)
    );
    border-radius: 30px;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
  }

  .slide-content::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
      45deg,
      rgba(255, 215, 0, 0.8),
      rgba(255, 140, 66, 0.6),
      rgba(139, 69, 19, 0.4),
      rgba(255, 107, 53, 0.7),
      rgba(255, 215, 0, 0.8)
    );
    background-size: 300% 300%;
    border-radius: 33px;
    z-index: -1;
    animation: borderFlow 4s ease-in-out infinite;
    filter: blur(1px);
  }

  @keyframes borderFlow {
    0%,
    100% {
      background-position: 0% 50%;
      opacity: 0.8;
    }
    25% {
      background-position: 100% 50%;
      opacity: 1;
    }
    50% {
      background-position: 200% 50%;
      opacity: 0.9;
    }
    75% {
      background-position: 300% 50%;
      opacity: 1;
    }
  }

  .slide-content::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
      45deg,
      rgba(255, 215, 0, 0.4),
      rgba(255, 107, 53, 0.3),
      rgba(139, 69, 19, 0.2)
    );
    border-radius: 27px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
  }

  @keyframes borderGlow {
    0%,
    100% {
      opacity: 0.6;
      transform: scale(1);
    }
    50% {
      opacity: 1;
      transform: scale(1.02);
    }
  }

  .slide-content h2 {
    font-size: 2.8rem !important;
    line-height: 1.05 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 900 !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.4),
      0 0 40px rgba(255, 107, 53, 0.2) !important;
    color: transparent !important;
    letter-spacing: -0.8px !important;
    position: relative !important;
    z-index: 3 !important;
    background: linear-gradient(
      135deg,
      #ffffff 0%,
      #ffd700 25%,
      #ffffff 50%,
      #ffed8a 75%,
      #ffffff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
  }

  @keyframes textShimmer {
    0%,
    100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
  }

  .slide-content p {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    margin-bottom: 2.5rem !important;
    color: rgba(255, 255, 255, 0.98) !important;
    font-weight: 500 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.2) !important;
    position: relative !important;
    z-index: 3 !important;
    letter-spacing: 0.4px !important;
    opacity: 0.95;
    animation: textGlow 6s ease-in-out infinite;
  }

  @keyframes textGlow {
    0%,
    100% {
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.2);
    }
    50% {
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.35), 0 0 30px rgba(255, 107, 53, 0.15);
    }
  } /* Enhanced slide content button styling */
  .slide-content .btn-primary {
    padding: 20px 40px !important;
    font-size: 1.2rem !important;
    border-radius: 40px !important;
    min-height: 60px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    background: linear-gradient(
      135deg,
      #ff6b35,
      #ff8c42,
      #ffa500,
      #ffb84d
    ) !important;
    background-size: 200% 200% !important;
    border: 3px solid rgba(255, 215, 0, 0.6) !important;
    color: white !important;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6),
      0 5px 20px rgba(255, 140, 66, 0.4), 0 0 40px rgba(255, 107, 53, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 3 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
    transform: translateY(0) !important;
    animation: buttonPulse 3s ease-in-out infinite;
  }

  @keyframes buttonPulse {
    0%,
    100% {
      box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6),
        0 5px 20px rgba(255, 140, 66, 0.4), 0 0 40px rgba(255, 107, 53, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
      background-position: 0% 50%;
    }
    50% {
      box-shadow: 0 20px 50px rgba(255, 107, 53, 0.8),
        0 8px 25px rgba(255, 140, 66, 0.6), 0 0 50px rgba(255, 107, 53, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
      background-position: 100% 50%;
    }
  }

  .slide-content .btn-primary::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.6),
      transparent
    ) !important;
    transition: left 0.8s ease !important;
  }

  .slide-content .btn-primary:hover::before {
    left: 100% !important;
  }

  .slide-content .btn-primary:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 25px 60px rgba(255, 107, 53, 0.8),
      0 10px 30px rgba(255, 140, 66, 0.6), 0 0 60px rgba(255, 107, 53, 0.6),
      inset 0 2px 0 rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 215, 0, 0.9) !important;
    background-position: 200% 50% !important;
    animation: none !important;
  }

  .slide-content .btn-primary:active {
    transform: translateY(-2px) scale(0.98) !important;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.9),
      0 5px 20px rgba(255, 140, 66, 0.7), 0 0 45px rgba(255, 107, 53, 0.7) !important;
    transition: all 0.1s ease !important;
  }

  /* Mobile-optimized hero navigation */
  .hero-nav {
    padding: 0 1.5rem;
  }

  .hero-nav button {
    width: 50px;
    height: 50px;
    background: linear-gradient(
      135deg,
      rgba(255, 107, 53, 0.9),
      rgba(255, 140, 66, 0.9)
    );
    backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-nav button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .hero-nav button:hover {
    background: linear-gradient(
      135deg,
      rgba(255, 107, 53, 1),
      rgba(255, 140, 66, 1)
    );
    border-color: rgba(255, 215, 0, 0.5);
  }

  .hero-dots {
    bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
  }

  .dot {
    width: 12px;
    height: 12px;
    margin: 0 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
  }

  .dot.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  }

  .dot:not(.active):active {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.6);
  } /* Enhanced quick actions for mobile */
  .quick-actions {
    padding: 3rem 0;
  }

  .actions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .action-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .action-card:active {
    transform: scale(0.98);
  }

  .action-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .action-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .action-card .btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* Mobile typography improvements */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Mobile button improvements */
  .btn-primary {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 30px;
    min-height: 52px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    transition: left 0.5s ease;
  }

  .btn-primary:hover::before {
    left: 100%;
  }

  .btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6);
  }

  .btn-secondary,
  .btn-outline {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 48px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }

  .btn-secondary:active,
  .btn-outline:active {
    transform: scale(0.98);
  }

  /* Improved mobile spacing */
  .container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 2rem;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  /* Mobile footer improvements */
  .footer {
    padding: 2.5rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .social-links {
    justify-content: center;
    gap: 1.5rem;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  /* Mobile forms improvements */
  .contact-form {
    padding: 0;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    width: 100%;
    min-height: 48px;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  }

  /* Mobile loading and feedback */
  .loading {
    width: 24px;
    height: 24px;
    border-width: 3px;
  }

  /* Mobile accessibility improvements */
  .btn-primary:focus,
  .btn-secondary:focus,
  .btn-outline:focus {
    outline: 3px solid rgba(255, 107, 53, 0.4);
    outline-offset: 2px;
  }

  /* Mobile performance optimizations */
  * {
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  input,
  textarea {
    -webkit-user-select: text;
    user-select: text;
  }

  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 375px) {
  .container {
    padding: 0 12px;
  }

  .slide-content {
    padding: 1.5rem 1rem;
  }

  .slide-content h2 {
    font-size: 1.8rem;
  }

  .action-card {
    padding: 1.5rem 1rem;
  }

  .nav-menu {
    width: 100%;
    max-width: 100vw;
  }
}

/* Additional hero slider animations and effects */
.hero-slider {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.slide {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.slide.active {
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    transform: scale(1.05);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.slide img {
  transition: transform 8s ease-out;
  transform: scale(1);
  filter: brightness(0.85) contrast(1.1);
}

.slide.active img {
  transform: scale(1.08);
  filter: brightness(0.9) contrast(1.15);
}

/* Floating animation for slide content */
.slide-content {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Add subtle glow effect to headings */
.slide-content h2 {
  position: relative;
  overflow: hidden;
}

.slide-content h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.3),
    transparent
  );
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

/* Pulse effect for CTA button */
.btn-primary {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6),
      0 0 30px rgba(255, 107, 53, 0.3);
  }
  100% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  }
}

/* Enhanced slide transition animations */
@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100px);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100px);
    opacity: 0;
  }
}

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

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

/* Loading animation for hero images */
.slide img {
  animation: imageLoad 1s ease-out;
}

@keyframes imageLoad {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile-specific hero enhancements */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    min-height: 500px;
    margin-top: 70px;
  }

  .slide-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
  }

  .slide-content h2 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .slide-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1.8rem;
  }

  .btn-primary {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  .hero-nav button {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .hero-dots {
    bottom: 1.5rem;
    padding: 0.4rem 0.8rem;
  }

  .dot {
    width: 10px;
    height: 10px;
    margin: 0 6px;
  }

  .dot.active {
    transform: scale(1.2);
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero {
    height: 65vh;
    min-height: 450px;
  }

  .slide-content {
    padding: 1.8rem 1.2rem !important;
    max-width: 95% !important;
    border-radius: 20px !important;
  }

  .slide-content h2 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
  }

  .slide-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
  }

  .slide-content .btn-primary {
    padding: 16px 28px !important;
    font-size: 1rem !important;
    min-height: 50px !important;
    width: 100% !important;
    max-width: 250px !important;
  }
}

/* Enhanced mobile slide content effects */
@media (max-width: 768px) {
  .slide-content {
    padding: 2.5rem 1.8rem !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    border: 3px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6),
      0 15px 40px rgba(139, 69, 19, 0.4), 0 0 60px rgba(255, 107, 53, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    max-width: 92% !important;
  }

  .slide-content::after {
    animation: borderFlow 3s ease-in-out infinite;
    filter: blur(0.5px);
  }

  .slide-content h2 {
    font-size: 2.4rem !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.5),
      0 0 45px rgba(255, 107, 53, 0.25) !important;
    margin-bottom: 1.3rem !important;
  }

  .slide-content p {
    font-size: 1.15rem !important;
    margin-bottom: 2.2rem !important;
  }

  .slide-content .btn-primary {
    padding: 18px 32px !important;
    font-size: 1.1rem !important;
    min-height: 54px !important;
    animation: buttonPulse 3s ease-in-out infinite;
  }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
  .slide-content {
    padding: 2rem 1.5rem !important;
    max-width: 95% !important;
    border-radius: 25px !important;
  }

  .slide-content h2 {
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1.1rem !important;
  }

  .slide-content p {
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
    line-height: 1.45 !important;
  }

  .slide-content .btn-primary {
    padding: 16px 28px !important;
    font-size: 1rem !important;
    min-height: 50px !important;
    letter-spacing: 0.6px !important;
  }
}
