/* ===== VARIABLES ===== */
:root {
  --font: 'Poppins', sans-serif;
  --bg: #f8f8f8;
  --text: #111;
  --glass: rgba(255,255,255,0.3);
  --glass-ivory: rgba(250,250,250,0.6);
  --border: rgba(255,255,255,0.5);
  --shadow: rgba(0,0,0,0.1);
  --accent: #111;
  --accent-light: #333;
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 5rem;
  --section-spacing: 6rem;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: auto; object-fit: cover; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.star-track {
  width: 100px;
  height: 100px;
  position: relative;
}

.star {
  position: absolute;
  font-size: 4rem;
  color: var(--accent);
  transform-origin: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, font-size;
  z-index: 1;
  animation: pulse 1.5s infinite alternate;
}

.loader-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 2;
}

.five, .star-text, .studios {
  will-change: transform, opacity;
}

.star-text {
  color: gold;
  animation: shine 2s infinite;
}

.final-explosion {
  position: absolute;
  font-size: 200vh;
  color: gold;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.1);
  z-index: 10;
  pointer-events: none;
  animation: explode 1.5s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); }
  100% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes shine {
  0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  50% { text-shadow: 0 0 20px gold; }
  100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
}

@keyframes explode {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all var(--transition);
  will-change: transform, background;
}
header.scrolled {
  background: var(--glass-ivory);
  height: calc(var(--header-h) - 0.5rem);
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #111, #444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
nav {
  display: flex;
  gap: 2rem;
}
nav a {
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--transition);
}
nav a:hover {
  color: var(--accent);
}
nav a:hover::after {
  width: 100%;
}

/* Mobile menu button (hidden by default) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 4rem;
  min-height: calc(100vh - var(--header-h));
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  animation: pulse 15s infinite alternate;
}
@keyframes pulse {
  0% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
  100% { transform: translate(-10%, -10%); }
}

.hero-left {
  flex: 1; 
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}
.hero-left h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(90deg, #111, #444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-left p {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.7);
  max-width: 80%;
}
.hero-video {
  flex: 1; 
  max-width: 600px;
  display: flex;
  justify-content: center;
  border-radius: 24px;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.video-card {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px var(--shadow);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-video:hover .video-card {
  transform: rotateY(0) rotateX(0);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}
.video-card video {
  width: 100%;
  display: block;
}

/* Buttons */
.shop-btn {
  position: relative;
  align-self: flex-start;
  padding: 1rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.shop-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: 0.6s;
}
.shop-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}
.shop-btn:hover::before {
  left: 100%;
}

/* ===== SECTIONS ===== */
section {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-spacing) 2rem;
  position: relative;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 3px;
}

/* ===== GRID CARDS ===== */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  perspective: 1500px;
  position: relative;
  height: 400px;
}
.card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--transition);
}
.card:hover .card-inner {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute; 
  inset: 0;
  background: var(--glass-ivory);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 15px 35px var(--shadow);
  backface-visibility: hidden;
  display: flex; 
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition);
}
.card-front img {
  height: 280px;
  object-fit: cover;
  transition: transform 1s var(--transition);
}
.card:hover .card-front img {
  transform: scale(1.05);
}
.card-front .info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-front h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.card-front p {
  font-size: 1rem;
  color: rgba(0,0,0,0.7);
  flex: 1;
}
.card-back {
  transform: rotateY(180deg);
  padding: 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--glass-ivory), rgba(250,250,250,0.8));
}
.card-back h4 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.3rem;
}
.card-back .price-container {
  height: 3rem;
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
}
.price {
  position: absolute;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.price.original {
  transform: translateY(0);
  opacity: 1;
}
.price.discounted {
  transform: translateY(100%);
  opacity: 0;
  color: #e74c3c;
  text-decoration: line-through;
}
.card:hover .price.original {
  transform: translateY(-100%);
  opacity: 0;
}
.card:hover .price.discounted {
  transform: translateY(0);
  opacity: 1;
}
.card-back .purchase-btn {
  position: relative;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.card-back .purchase-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.card-back .purchase-btn i {
  transition: transform 0.3s;
}
.card-back .purchase-btn:hover i {
  transform: translateX(3px);
}
.card-back .purchase-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.card-back .purchase-btn:hover::after {
  transform: translateX(100%);
}

/* ===== FEATURED SECTION ===== */
.swiper-container {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}
.swiper {
  width: 100%;
  height: 100%;
  padding: 2rem 0;
}
.swiper-slide {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.swiper-slide:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.swiper-slide img {
  height: 400px;
  object-fit: cover;
  transition: transform 1s var(--transition);
}
.swiper-slide:hover img {
  transform: scale(1.05);
}
.swiper-slide .slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 2rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.5s var(--transition);
}
.swiper-slide:hover .slide-info {
  transform: translateY(0);
}
.swiper-slide h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.swiper-slide p {
  font-size: 0.9rem;
  opacity: 0.9;
}
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: var(--glass-ivory);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0,0,0,0.05);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

/* ===== CONTACT SECTION ===== */
#contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.contact-card {
  flex: 1 1 350px;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  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) 70%);
  z-index: -1;
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}
.contact-info h2,
.contact-form h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.contact-info p {
  margin-bottom: 2rem;
  color: rgba(0,0,0,0.7);
  font-size: 1.1rem;
}
.contact-info .socials {
  display: flex;
  gap: 1.5rem;
}
.contact-info .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  transition: all var(--transition);
  font-size: 1.2rem;
}
.contact-info .socials a:hover {
  background: rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1rem;
  transition: all var(--transition);
  background: rgba(255,255,255,0.7);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.9);
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form .submit-btn {
  position: relative;
  padding: 1rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  align-self: flex-start;
}
.contact-form .submit-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease-out;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-content i {
  font-size: 3rem;
  color: #4CAF50;
  margin-bottom: 1.5rem;
}
.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.modal-content p {
  margin-bottom: 2rem;
  color: rgba(0,0,0,0.7);
}
.modal-close-btn {
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}
.modal-close-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0,0,0,0.05);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  :root {
    --header-h: 4.5rem;
    --section-spacing: 5rem;
  }
  
  .hero {
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 2rem;
  }
  
  .hero-left {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  
  .hero-left p {
    max-width: 100%;
  }
  
  .shop-btn {
    align-self: center;
  }
  
  .hero-video {
    max-width: 100%;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .swiper-slide img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 4rem;
    --section-spacing: 4rem;
  }
  
  header {
    padding: 0 1.5rem;
  }
  
  nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .card {
    height: 380px;
  }
  
  .card-front img {
    height: 250px;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 3.5rem;
    --section-spacing: 3rem;
  }
  
  header h1 {
    font-size: 1.4rem;
  }
  
  .hero-left h2 {
    font-size: 2rem;
  }
  
  .hero-left p {
    font-size: 1rem;
  }
  
  .shop-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .card {
    height: 350px;
  }
  
  .card-front img {
    height: 220px;
  }
  
  .card-front .info {
    padding: 1rem;
  }
  
  .card-back {
    padding: 1.5rem;
  }
  
  .swiper-slide img {
    height: 300px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .contact-card {
    padding: 1.25rem;
  }
  
  .contact-info h2,
  .contact-form h2 {
    font-size: 1.5rem;
  }
  
  .socials a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-content h3 {
    font-size: 1.5rem;
  }
  
  .modal-content p {
    font-size: 0.9rem;
  }
  
  .modal-close-btn {
    padding: 0.7rem 1.5rem;
  }
}