/* Enhanced Animations and Modern UI Elements for Summer Vibes Flip Flops */

/* Smooth Page Transitions */
body {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Enhanced Header Effects */
.header-container {
  transition: all var(--duration) var(--ease);
}

.logo {
  position: relative;
  overflow: hidden;
}

.logo img {
  transition: transform var(--duration) var(--ease);
}

.logo:hover img {
  transform: scale(1.05);
}

/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

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

.btn:active {
  transform: scale(0.97);
}

/* Card Enhancements */
.card {
  transition: all var(--duration) var(--ease);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Product Option Cards Animation */
.option-card {
  transition: all var(--duration) var(--ease);
  transform-origin: center;
  overflow: hidden;
}

.option-card:hover {
  transform: translateY(-4px);
  z-index: 2;
}

.option-card img {
  transition: all 0.5s ease;
}

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

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.option-card:hover::before {
  opacity: 1;
}

.option-card.selected {
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,107,.15);
}

/* Strap Color Options Enhancements */
.color-option {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.color-option.selected {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--dark), 0 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Preview Container Styles */
.preview-container, .strap-preview-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-flop-shape, .flip-flop-design, .flip-flop-strap, .flip-flop-strap-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-flop-shape, .flip-flop-strap-shape {
    z-index: 20;
}

.flip-flop-design, .flip-flop-strap {
    z-index: 10;
}

/* Preview Controls */
.preview-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.control-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

/* Make sure images maintain proportion */
.flip-flop-shape img, .flip-flop-design img, .flip-flop-strap img, .flip-flop-strap-shape img {
    max-width: 100%;
    max-height: 100%;
}

/* Removing old design-mask styles that used webkit-mask */
.design-mask {
    /* These properties are no longer needed since we're using layered images */
    background-size: cover;
    background-position: center;
    position: absolute;
    width: 60%;
    height: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Hero Section Enhancement */
.hero {
  position: relative;
  overflow: hidden;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

/* Wizard Progress Enhancement */
.wizard-progress {
  margin: 3rem 0;
}

.step {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.step.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

.step.completed {
  transform: scale(1.1);
}

/* Progress bar */
.wizard-progress::before {
  transition: all 0.8s ease;
  background: linear-gradient(to right, var(--secondary), var(--primary));
}

/* Cart Item Enhancements */
.cart-item {
  transition: all 0.3s ease;
  border-left: 0 solid var(--primary);
}

.cart-item:hover {
  border-left-width: 5px;
  transform: translateX(5px);
}

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

.quantity-btn:hover {
  background-color: var(--secondary);
  color: var(--dark);
  transform: scale(1.1);
}

/* Testimonial Enhancements */
.testimonial {
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rating {
  display: inline-block;
}

.rating i {
  transition: all 0.3s ease;
  transform: scale(1);
}

.testimonial:hover .rating i {
  color: #f59e0b;
}

/* Footer Enhancements */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.social-icons a {
  transition: all var(--duration) var(--ease);
}

/* Newsletter Form Enhancement */
.newsletter-form input {
  transition: all var(--duration) var(--ease);
}

.newsletter-form input:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

/* CTA Section Enhancement */
.cta-section {
  position: relative;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.cta-section:hover {
  box-shadow: var(--shadow-lg);
}

/* Checkout Form Enhancements */
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,107,.1);
}

.payment-method {
  transition: all 0.4s ease;
}

.payment-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.payment-method.selected {
  box-shadow: 0 0 0 3px rgba(255,107,107,.15);
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .card {
    transform: none !important;
  }
  
  .option-card:hover {
    transform: translateY(-5px);
  }
  
  .hero::before {
    opacity: 0.8;
  }
}

/* Loading Animation for Transitions */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading.active {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Floating Elements in Hero Section */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.floating-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Interactive Product Showcase */
.interactive-showcase {
  position: relative;
  margin: 2rem 0;
  padding: 2rem 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.showcase-item {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  animation: fadeSlide 0.5s ease-in-out;
}

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

.showcase-item.active {
  display: grid;
}

.showcase-item img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
}

.showcase-item:hover img {
  transform: scale(1.05) rotate(2deg);
}

.showcase-details {
  padding: 1rem;
}

.showcase-details h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.showcase-details p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.showcase-details .price {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.showcase-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.showcase-arrow {
  background-color: var(--secondary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.showcase-arrow:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.showcase-arrow:active {
  transform: translateY(0);
}

.showcase-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: var(--secondary);
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .showcase-item {
    grid-template-columns: 1fr;
  }
  
  .showcase-details {
    text-align: center;
  }
}

/* Additional effects for various sections */
.fa-beat {
  animation: beat 0.8s ease infinite;
}

@keyframes beat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
}

/* Animated CTA buttons */
.btn-large {
  position: relative;
  overflow: hidden;
}

.btn-large::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 1s ease-out;
}

.btn-large:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Hero Slider Styles */
.hero-slider-container {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.5s;
}

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

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
  font-size: 1rem;
  padding: .85rem 2.25rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: all var(--duration) var(--ease);
}

.hero-content .btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,107,.35);
}

/* Video Slide */
.video-slide video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Slider Navigation */
.hero-slider-nav {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.slider-arrow {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  margin: 0 15px;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

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

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Floating Elements (positioned relative to hero slider) */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Media Queries for Hero Slider */
@media (max-width: 768px) {
  .hero-slider-container {
    height: 70vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .hero-slider-container {
    height: 60vh;
  }
  
  .hero-content h1 {
    font-size: 1.7rem;
  }
  
  .hero-content .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* Realistic Flip Flop Preview Mockup with SVG */
.flip-flop-mockup {
  position: relative;
  height: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  overflow: hidden;
}

.flip-flop-shape {
  position: relative;
  width: 60%;
  height: auto;
  max-height: 250px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flip-flop-shape img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.flip-flop-design {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.design-mask {
  width: 60%;
  height: auto;
  max-height: 250px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  mix-blend-mode: multiply;
  z-index: 1;
  aspect-ratio: 1/1;
}

/* Flip Flop Shadow */
.flip-flop-shadow {
  position: absolute;
  bottom: -10px;
  width: 60%;
  height: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  filter: blur(5px);
  z-index: 1;
}

/* Preview Container Enhancements */
.preview-container {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

/* Strap Visualization */
.flip-flop-strap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.strap-element {
  position: absolute;
  top: 30%;
  width: 60%;
  height: 25px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
}

/* SVG Color transitions */
.flip-flop-shape svg path {
  transition: fill 0.3s ease;
}

/* Preview Controls */
.preview-controls {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.preview-controls button {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-controls button:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
}

.preview-info {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #6c757d;
}

.preview-hint {
  display: block;
  font-style: italic;
  margin-top: 5px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .flip-flop-mockup {
    height: 300px;
  }
  
  .flip-flop-shape, .design-mask {
    width: 80%;
    max-height: 200px;
  }
  
  .strap-element {
    width: 80%;
    height: 20px;
  }
  
  .flip-flop-shadow {
    width: 80%;
    height: 8px;
  }
}

/* 3D Rotation Animation */
@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.flip-flop-rotation {
    animation: rotate3d 3s linear infinite;
    transform-style: preserve-3d;
}

/* Pause animation on hover */
.flip-flop-rotation:hover {
    animation-play-state: paused;
} 