/* ==========================================
   Additional Styles & Fixes
   Author: AI Web Development Assistant
   ========================================== */

/* ==========================================
   Global Fixes
   ========================================== */

/* Custom Cursor Styles */
.custom-cursor-active {
  cursor: none;
}

.advanced-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: #ff6b6b;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease;
  transform: translate(-50%, -50%);
}

.advanced-cursor.magnetic {
  transform: translate(-50%, -50%) scale(1.5);
}

.advanced-cursor.clickable {
  transform: translate(-50%, -50%) scale(1.2);
}

.cursor-stalker {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

/* ==========================================
   Notification Styles
   ========================================== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10000;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.error {
  background: #f44336;
}

.notification.warning {
  background: #ff9800;
}

.notification.info {
  background: #2196f3;
}

/* ==========================================
   Form Styles
   ========================================== */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-control:focus + .form-focus {
  transform: scaleX(1);
}

.form-focus {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.form-group.focused .form-control {
  border-color: #ff6b6b;
}

.form-group.error .form-control {
  border-color: #f44336;
}

.form-group.valid .form-control {
  border-color: #4caf50;
}

/* ==========================================
   Kit Card Styles
   ========================================== */
.kit-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.kit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.kit-card.popular {
  border: 2px solid #ff6b6b;
}

.kit-card.special {
  border: 2px solid #4ecdc4;
}

.kit-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b, #ff8a80);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.kit-badge.special-badge {
  background: linear-gradient(135deg, #4ecdc4, #26a69a);
}

.kit-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.kit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kit-card:hover .kit-image {
  transform: scale(1.1);
}

.kit-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kit-card:hover .kit-image-overlay {
  opacity: 1;
}

.kit-image-overlay i {
  font-size: 3rem;
  color: white;
  animation: bounce 2s infinite;
}

.kit-content {
  padding: 25px;
}

.kit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.kit-price {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.kit-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.kit-features li {
  padding: 8px 0;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
}

.kit-features li i {
  color: #4caf50;
  margin-right: 10px;
  margin-top: 2px;
  font-size: 0.8rem;
}

.kit-actions {
  text-align: center;
}

/* ==========================================
   Gallery Item Styles
   ========================================== */
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item-image-container {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.gallery-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-image {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(78, 205, 196, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-content {
  transform: translateY(0);
}

.gallery-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.gallery-item-description {
  opacity: 0.9;
  font-size: 0.9rem;
}

.gallery-view-btn {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.gallery-view-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b6b, #ff8a80);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* ==========================================
   Ripple Animation
// ========================================== */
@keyframes ripple-advanced {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ==========================================
   Advanced Hover Effects
   ========================================== */
.hover-glow-effect {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(10px);
}

.shine-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  opacity: 0;
}

.pulse-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 107, 107, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
  opacity: 0;
}

/* ==========================================
   Particle System
   ========================================== */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ff6b6b;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 20s linear infinite;
}

.particle:nth-child(2n) {
  background: #4ecdc4;
}

.particle:nth-child(3n) {
  background: #ffe66d;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* ==========================================
   Magnetic Cursor Styles
   ========================================== */
.js-tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.js-tilt-glare-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  width: 100%;
  height: 100%;
  transform: rotate(180deg) translate(-50%, -50%);
  transform-origin: 0% 0%;
  opacity: 0;
}

/* ==========================================
   Responsive Design Fixes
   ========================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .advanced-cursor,
  .cursor-stalker {
    display: none;
  }
  
  .custom-cursor-active {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .btn-3d {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .notification {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* ==========================================
   Performance Optimizations
   ========================================== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.backface-hidden {
  backface-visibility: hidden;
}

.transform-3d {
  transform-style: preserve-3d;
}

/* ==========================================
   Accessibility Improvements
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .particle {
    animation: none;
  }
  
  .gallery-item:hover,
  .kit-card:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-3d {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Focus visible support */
:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
  .navbar,
  .back-to-top,
  .notification,
  .advanced-cursor,
  .cursor-stalker {
    display: none !important;
  }
  
  .hero-section,
  .gallery-section,
  .kits-section,
  .about-section,
  .contact-section {
    page-break-inside: avoid;
  }
}