/* ==============================================
   INDEX PAGE CUSTOM STYLES
   Naveen Camera Rent - Clean, Organized CSS
   ============================================== */

/* ============================================
   1. WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
  transform: scale(0.95);
}

.whatsapp-icon {
  font-size: 32px;
}

/* ============================================
   2. SEARCH BAR STYLES
   ============================================ */
.search-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-box {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(79, 0, 204, 0.1);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-input-wrapper:focus-within {
  border-color: #4F00CC;
  box-shadow: 0 4px 25px rgba(79, 0, 204, 0.2);
}

.search-icon {
  position: absolute;
  left: 20px;
  color: #4F00CC;
  font-size: 20px;
  z-index: 2;
}

.search-input {
  flex: 1;
  padding: 18px 20px 18px 55px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #333;
  font-family: inherit;
}

.search-input::placeholder {
  color: #999;
  font-size: 15px;
}

.search-btn {
  background: linear-gradient(135deg, #4F00CC 0%, #7b3ff2 100%);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: linear-gradient(135deg, #7b3ff2 0%, #4F00CC 100%);
  transform: translateX(-2px);
}

.search-btn:active {
  transform: translateX(0);
}

/* ============================================
   3. ENHANCED UI ELEMENTS
   ============================================ */
html {
  scroll-behavior: smooth;
}

.section {
  padding: 4rem 0;
}

/* Product Cards */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(79, 0, 204, 0.15);
}

.product-card .card-banner {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.product-card .card-banner img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .card-banner img {
  transform: scale(1.1);
}

.card-badge {
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(79, 0, 204, 0.3);
}

/* Buttons */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  border: none;
}

.btn-secondary {
  transition: all 0.3s ease;
}

/* Collection Cards */
.collection-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.collection-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 40px rgba(79, 0, 204, 0.2);
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  border-radius: 2px;
}

/* Filter Buttons */
.filter-btn {
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 10px 24px;
  border: 2px solid transparent;
}

.filter-btn:hover {
  background: rgba(79, 0, 204, 0.1);
  border-color: #4F00CC;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 0, 204, 0.3);
}

/* Hero Section */
.hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-text {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

/* Navbar Enhancement */
.navbar-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  transition: width 0.3s ease;
}

.navbar-link:hover::after {
  width: 100%;
}

/* Loading Animations */
.card-banner img,
.collection-card {
  animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Typography */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.5px;
}

/* Accessibility - Focus States */
a:focus,
button:focus,
input:focus {
  outline: 3px solid rgba(79, 0, 204, 0.4);
  outline-offset: 2px;
}

/* Go to Top Button */
.go-top-btn {
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  box-shadow: 0 4px 15px rgba(79, 0, 204, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.go-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 0, 204, 0.5);
}

/* ============================================
   4. MINI BLOG SECTION
   ============================================ */
.mini-blog {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  padding: 60px 0;
  margin-top: 50px;
}

.mini-blog-title {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.mini-blog-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  border-radius: 2px;
}

.mini-blog-slider {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  min-height: 300px;
}

.mini-blog-item {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding: 30px 20px;
  text-align: center;
}

.mini-blog-item.active {
  display: block;
  opacity: 1;
  animation: slideInFade 0.6s ease-out;
}

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

.blog-title {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 22px;
  line-height: 1.4;
}

.blog-excerpt {
  background: linear-gradient(45deg, #4F00CC, #280068);
  color: white;
  padding: 10px;
  border-radius: 5px;
  line-height: 1.7;
  font-size: 16px;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.slider-btn {
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(79, 0, 204, 0.3);
}

.slider-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(79, 0, 204, 0.5);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.slider-dot.active {
  background: #4F00CC;
  width: 30px;
  border-radius: 5px;
}

.slider-counter {
  color: #4F00CC;
  font-weight: 600;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}

.slider-play-pause {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #4F00CC;
  color: #4F00CC;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.slider-play-pause:hover {
  background: #4F00CC;
  color: white;
  transform: scale(1.1);
}

/* ============================================
   5. POPUP MODAL STYLES
   ============================================ */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9998;
  animation: fadeIn 0.3s ease-out;
}

.popup-overlay.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(79, 0, 204, 0.3);
  z-index: 9999;
  max-width: 450px;
  width: 90%;
  text-align: center;
  animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  border: 2px solid rgba(79, 0, 204, 0.1);
}

.popup.show {
  display: block;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup-content {
  color: #2d3748;
}

.popup h2 {
  margin: 15px 0 20px;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.popup p {
  margin: 0 0 25px;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.6;
  color: #4a5568;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  color: #a0aec0;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popup-close:hover {
  color: #4F00CC;
  background: rgba(79, 0, 204, 0.1);
  transform: rotate(90deg);
}

.diya-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
  animation: logoFloat 3s ease-in-out infinite;
}

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

.offer-code {
  background: transparent;
  padding: 0;
  border-radius: 12px;
  margin: 20px 0;
}

.offer-code button {
  background: linear-gradient(135deg, #4F00CC 0%, #280068 100%) !important;
  border: none !important;
  color: white !important;
  font-size: clamp(14px, 3.5vw, 18px) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(79, 0, 204, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.offer-code button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 0, 204, 0.6) !important;
}

.offer-code button:active {
  transform: translateY(0px);
}

.whatsapp-popup-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  border: none !important;
  color: white !important;
  font-size: clamp(14px, 3.5vw, 16px) !important;
  cursor: pointer !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 15px auto 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
  font-weight: 600 !important;
}

.whatsapp-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

.whatsapp-popup-btn:active {
  transform: translateY(0px);
}

.popup-emoji {
  font-size: 24px;
  display: inline-block;
  animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

/* ============================================
   6. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  /* Search Bar */
  .search-container {
    margin-bottom: 30px;
    padding: 0 15px;
  }
  
  .search-input-wrapper {
    border-radius: 25px;
  }
  
  .search-input {
    padding: 15px 15px 15px 45px;
    font-size: 14px;
  }
  
  .search-icon {
    left: 15px;
    font-size: 18px;
  }
  
  .search-btn {
    padding: 15px 20px;
    font-size: 14px;
  }
  
  /* General */
  .section {
    padding: 2.5rem 0;
  }
  
  .whatsapp-btn {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-icon {
    font-size: 28px;
  }
  
  .product-card:hover {
    transform: translateY(-4px);
  }
  
  .collection-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  /* Mini Blog */
  .mini-blog-slider {
    padding: 20px 15px;
  }
  
  .mini-blog-item {
    padding: 20px 15px;
  }
  
  .blog-title {
    font-size: 18px;
  }
  
  .blog-excerpt {
    font-size: 14px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .slider-controls {
    gap: 12px;
  }
  
  /* Popup */
  .popup {
    padding: 30px 20px;
    border-radius: 20px;
  }
  
  .diya-icon {
    width: 70px;
    height: 70px;
  }
  
  .popup-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .search-input-wrapper {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .search-input {
    padding: 15px;
    border-radius: 15px 15px 0 0;
  }
  
  .search-icon {
    display: none;
  }
  
  .search-btn {
    border-radius: 0 0 15px 15px;
    width: 100%;
  }
}

/* Skeleton Loading (Optional) */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #f0f0f0 4%, #e0e0e0 25%, #f0f0f0 36%);
  background-size: 1000px 100%;
}
