/*
 * BEIYO | COMING SOON MASTERPIECE
 * Final Version: v6 (Performance & Mobile Optimized)
 * Author: Gemini (World-Class Programmer & UI/UX Developer)
 * Description: A hyper-optimized, Apple-inspired "Coming Soon" page.
 * All animations are GPU-accelerated for a flawless, 60fps experience.
 */

/* ------------------------- */
/* VARIABLES & THEME
/* ------------------------- */
:root {
  --beiyo-gold-dark: #eab308;
  --beiyo-gold-light: #facc15;
  --beiyo-amber: #f59e0b;
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --bg-gradient-start: #fffef2;
  --bg-gradient-end: #fffef8;
  --white: #ffffff;
  --input-border: #d1d5db;
  --success: #16a34a;
  --danger: #dc2626;
  --whatsapp-green: #25D366;
  
  --font-primary: "Poppins", sans-serif;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------- */
/* GLOBAL RESET & SETUP
/* ------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-medium);
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  perspective: 1500px;
}

/* ------------------------- */
/* DECORATIVE BACKGROUND
/* ------------------------- */
#particle-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,211,77,0.7) 0%, rgba(234,179,8,0.5) 100%);
  opacity: 0;
  filter: blur(10px); /* Slightly increased blur for softer particles */
  /* ★★★ PERFORMANCE UPGRADE ★★★
     Using transform and opacity ensures animations are handled by the GPU. */
  animation: floatUp 35s infinite ease-in-out;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% { transform: translateY(110vh) scale(0.2); opacity: 0; }
  15% { opacity: 0.2; }
  50% { transform: translateY(50vh) scale(0.8); }
  85% { opacity: 0.15; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ------------------------- */
/* INTERACTIVE GLASS PANEL
/* ------------------------- */
.glass-panel {
  max-width: 700px;
  width: 95%;
  position: relative;
  /* ★★★ PERFORMANCE UPGRADE ★★★
     will-change hints to the browser to optimize for transform changes. */
  will-change: transform;
  transform-style: preserve-3d;
  /* These custom properties are now updated by JS */
  transform: rotateY(var(--mouse-x, 0deg)) rotateX(var(--mouse-y, 0deg));
  transition: transform 0.1s linear; /* Use linear for direct mouse tracking */
}

.content {
  background: rgba(255, 255, 255, 0.55);
  /* ★★★ PERFORMANCE UPGRADE ★★★
     Reduced blur from 30px to 20px. This is a very expensive property.
     A lower value gives a huge performance boost on mobile. */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 3.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Softened shadow */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Promote to its own layer for 3D transforms */
  transform: translateZ(50px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Optional: Noise layer. Can be removed for max performance on low-end devices. */
.content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.02;
}

/* ★★★ PERFORMANCE UPGRADE ★★★
   The sheen effect now uses `transform` instead of `top`/`left`. This is the
   single biggest animation improvement. It moves the element on the compositor
   thread, avoiding costly layout shifts and repaints. */
.content::after {
  content: '';
  position: absolute;
  top: 0; left: 0; /* Static position */
  width: 500px; height: 500px;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0.5;
  will-change: transform;
  /* Centering offset (-250px) is now part of the translate */
  transform: translate(calc(var(--sheen-x, -250px) - 250px), calc(var(--sheen-y, -250px) - 250px));
  /* No transition for direct 1:1 mouse tracking */
}

/* ------------------------- */
/* CONTENT & FORM (Styling remains largely the same, but simplified where possible)
/* ------------------------- */
.logo { width: 150px; margin-bottom: 3rem; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

h1 { font-size: clamp(2.8rem, 6.5vw, 4.5rem); font-weight: 800; line-height: 1.2; background: linear-gradient(45deg, var(--text-dark), var(--beiyo-amber)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-medium); max-width: 580px; line-height: 1.8; margin: 0 auto 3rem; font-weight: 300; }

.notify-form { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin: 0 auto 2.5rem; width: 100%; }
.input-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.email-icon { position: absolute; left: 1.2rem; color: #9ca3af; font-size: 1.1rem; transition: color 0.3s ease; }
.notify-form input { flex-grow: 1; padding: 1rem 1rem 1rem 3.2rem; font-size: 1.05rem; font-family: var(--font-primary); border-radius: 10px; border: 2px solid var(--input-border); background-color: var(--white); transition: all 0.3s ease; color: var(--text-dark); -webkit-appearance: none; }
.notify-form input:focus { outline: none; border-color: var(--beiyo-gold-dark); box-shadow: 0 0 0 4px #fcd34d66; }
.notify-form input:focus + .email-icon { color: var(--beiyo-gold-dark); }
.notify-form button { width: 100%; padding: 1.05rem 1.5rem; font-size: 1.05rem; font-weight: 700; border-radius: 10px; background: linear-gradient(90deg, var(--beiyo-amber), var(--beiyo-gold-dark)); color: var(--white); cursor: pointer; border: none; box-shadow: 0 8px 25px -8px var(--beiyo-amber); transition: all 0.3s ease; letter-spacing: 0.02em; }
.notify-form button:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 12px 30px -10px var(--beiyo-gold-dark); }

#form-message { margin-top: 1rem; font-weight: 600; min-height: 28px; font-size: 0.95rem; padding: 0.5rem 1rem; border-radius: 8px; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
#form-message.show { opacity: 1; transform: translateY(0); }
#form-message.success { color: var(--success); background-color: rgba(22, 163, 74, 0.1); }
#form-message.error { color: var(--danger); background-color: rgba(220, 38, 38, 0.1); }

.social-links-inline { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.3); width: 100%; }
.social-links-inline a { color: var(--text-medium); text-decoration: none; transition: transform 0.3s ease, color 0.3s ease; }
.social-links-inline .fab { font-size: 1.6rem; }
.social-links-inline a:hover { color: var(--beiyo-gold-dark); transform: translateY(-4px); }

/* ------------------------- */
/* FLOATING ACTION BUTTON
/* ------------------------- */
.whatsapp-fab { position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px; background-color: var(--whatsapp-green); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); z-index: 100; opacity: 0; animation: fab-appear 0.5s var(--ease-out-quint) 1s forwards; will-change: transform; }
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
@keyframes fab-appear { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ------------------------- */
/* RESPONSIVE DESIGN & PERFORMANCE
/* ------------------------- */
@media (min-width: 600px) {
  .notify-form { flex-direction: row; gap: 0.8rem; }
  .notify-form button { width: auto; white-space: nowrap; }
}

@media (max-width: 480px) {
  .content { padding: 2.5rem 1.5rem; border-radius: 20px; }
  .logo { width: 100px; margin-bottom: 2rem; }
  h1 { font-size: 2.2rem; }
  p { font-size: 0.95rem; margin-bottom: 2.5rem; }
  .notify-form button { font-size: 1rem; }
  .whatsapp-fab { width: 55px; height: 55px; font-size: 1.8rem; bottom: 1.5rem; right: 1.5rem; }
}
