/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root {
  --primary: #4d7cff;
  --secondary: #7c3aed;
  --dark-bg: #0a0520;
  --card-bg: rgba(15,10,35,0.95);
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  background: #0a0520;
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default; /* Change to default to ensure visibility */
}

/* Hide default cursor only when custom cursor is active */
body.custom-cursor-active {
  cursor: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10001;
  transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(2);
  background: rgba(77, 124, 255, 0.1);
}

/* ============================================
   MOUSE TRAIL
   ============================================ */
.trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
  animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
  to {
    transform: scale(0);
    opacity: 0;
  }
}

/* ============================================
   THREE.JS CANVAS
   ============================================ */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

/* ============================================
   ANIMATED GRADIENT BACKGROUND
   ============================================ */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(77, 124, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(67, 56, 202, 0.2) 0%, transparent 50%),
    conic-gradient(from 180deg at 50% 50%, 
      rgba(77, 124, 255, 0.15) 0deg,
      rgba(124, 58, 237, 0.15) 120deg,
      rgba(67, 56, 202, 0.15) 240deg,
      rgba(77, 124, 255, 0.15) 360deg);
  animation: gradientMove 25s ease infinite;
  z-index: 1;
}

@keyframes gradientMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, -5%) rotate(120deg); }
  66% { transform: translate(-5%, 5%) rotate(240deg); }
}

/* ============================================
   FLOATING ORBS
   ============================================ */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  animation: float 18s infinite ease-in-out;
  z-index: 1;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(77, 124, 255, 0.5), transparent);
  top: -120px;
  right: -120px;
  animation: float 18s infinite ease-in-out, morph 12s infinite ease-in-out;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent);
  bottom: -120px;
  left: -120px;
  animation-delay: -7s;
  animation: float 18s infinite ease-in-out reverse, morph 15s infinite ease-in-out;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.4), transparent);
  top: 50%;
  left: 50%;
  animation-delay: -12s;
  animation: float 20s infinite ease-in-out, morph 18s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -60px) scale(1.15); }
  66% { transform: translate(-60px, 60px) scale(0.85); }
}

@keyframes morph {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  25% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  50% { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
  75% { border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; }
}

/* ============================================
   PARALLAX SHAPES
   ============================================ */
.parallax-layer {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.parallax-shape {
  position: absolute;
  opacity: 0.1;
  filter: blur(2px);
}

.shape-1 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 10%;
  animation: floatShape 15s infinite ease-in-out;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(225deg, var(--secondary), var(--primary));
  border-radius: 50%;
  top: 70%;
  right: 15%;
  animation: floatShape 18s infinite ease-in-out reverse;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background: linear-gradient(315deg, var(--primary), var(--secondary));
  border-radius: 20%;
  bottom: 20%;
  left: 20%;
  animation: floatShape 20s infinite ease-in-out;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, -50px) rotate(180deg); }
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.5;
}

/* ============================================
   CONTAINER & CARD
   ============================================ */
.container {
  position: relative;
  z-index: 10;
  max-width: 700px;
  width: 90%;
  padding: 20px;
  perspective: 1500px;
}

.card {
  background: rgba(15, 10, 35, 0.7);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 36px;
  padding: 60px 50px;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 40px rgba(77, 124, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
  animation: slideUpCard 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
  transform: translateY(-5px) rotateX(0deg);
  box-shadow: 
    0 50px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 15px 50px rgba(77, 124, 255, 0.25);
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(77, 124, 255, 0.08) 40%,
    rgba(124, 58, 237, 0.08) 50%,
    rgba(77, 124, 255, 0.08) 60%,
    transparent 70%);
  animation: shimmer 10s infinite linear;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, 
    rgba(77, 124, 255, 0.1) 0%,
    rgba(124, 58, 237, 0.1) 50%,
    rgba(77, 124, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.card:hover::after {
  opacity: 1;
}

@keyframes shimmer {
  0% { transform: translate(-100%, -100%) rotate(45deg); }
  100% { transform: translate(100%, 100%) rotate(45deg); }
}

@keyframes slideUpCard {
  to { 
    opacity: 1; 
    transform: translateY(0) rotateX(0deg); 
  }
}

/* ============================================
   DEPTH LAYERS
   ============================================ */
.depth-layer-1 {
  transform: translateZ(20px);
}

.depth-layer-2 {
  transform: translateZ(40px);
}

.depth-layer-3 {
  transform: translateZ(60px);
}

/* ============================================
   LOGO SECTION
   ============================================ */
.logo-section {
  margin-bottom: 40px;
  transform: translateZ(60px);
}

.logo-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  position: relative;
  animation: floatLogo 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateZ(0deg); }
  25% { transform: translateY(-20px) rotateY(5deg) rotateZ(2deg); }
  50% { transform: translateY(-10px) rotateY(-5deg) rotateZ(-2deg); }
  75% { transform: translateY(-20px) rotateY(5deg) rotateZ(2deg); }
}

.logo-container::before {
  content: "";
  position: absolute;
  inset: -25px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.6;
  animation: pulseHolo 4s ease-in-out infinite;
}

@keyframes pulseHolo {
  0%, 100% { 
    transform: scale(0.9); 
    opacity: 0.4;
    filter: blur(35px) hue-rotate(0deg);
  }
  50% { 
    transform: scale(1.15); 
    opacity: 0.7;
    filter: blur(40px) hue-rotate(30deg);
  }
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 40px rgba(77, 124, 255, 0.6));
  transition: filter 0.4s ease;
}

.logo-container:hover img {
  filter: drop-shadow(0 20px 50px rgba(124, 58, 237, 0.8));
}

.brand-name {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #4d7cff 0%, #7c3aed 50%, #4d7cff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlowShift 5s ease-in-out infinite;
  position: relative;
}

.brand-name:hover {
  animation: chromaticAberration 0.3s ease-in-out;
}

@keyframes textGlowShift {
  0%, 100% { 
    filter: drop-shadow(0 0 25px rgba(77, 124, 255, 0.4));
    background-position: 0% 50%;
  }
  50% { 
    filter: drop-shadow(0 0 35px rgba(124, 58, 237, 0.6));
    background-position: 100% 50%;
  }
}

@keyframes chromaticAberration {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { 
    text-shadow: 
      -2px 0 0 rgba(255, 0, 0, 0.5),
      2px 0 0 rgba(0, 255, 255, 0.5);
  }
}

/* ============================================
   CHECKMARK
   ============================================ */
.checkmark-wrapper {
  width: 110px;
  height: 110px;
  margin: 0 auto 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 25px 70px rgba(16, 185, 129, 0.5),
    0 0 0 12px rgba(16, 185, 129, 0.15);
  animation: scaleInBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.475);
  position: relative;
  transform: translateZ(80px);
}

.checkmark-wrapper::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.4);
  animation: rippleExpand 2.5s infinite;
}

.checkmark-wrapper::after {
  content: "";
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.3);
  animation: rippleExpand 2.5s infinite 0.5s;
}

@keyframes rippleExpand {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes scaleInBounce {
  0% { transform: scale(0) rotate(-180deg) translateZ(80px); }
  60% { transform: scale(1.15) rotate(10deg) translateZ(80px); }
  100% { transform: scale(1) rotate(0deg) translateZ(80px); }
}

.checkmark {
  width: 55px;
  height: 55px;
  stroke: white;
  stroke-width: 5;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 1s ease-out 0.4s forwards;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(77, 124, 255, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 45px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* ============================================
   FEEDBACK SECTION
   ============================================ */
.feedback-section {
  margin-bottom: 35px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.emoji {
  font-size: 28px;
  animation: bounce 2s ease-in-out infinite;
}

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

textarea {
  width: 100%;
  min-height: 120px;
  padding: 18px 22px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 4px rgba(77, 124, 255, 0.15),
    0 10px 30px rgba(77, 124, 255, 0.2);
  transform: translateY(-2px);
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   BUTTONS
   ============================================ */
.action-buttons {
  display: flex;
  gap: 18px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn {
  flex: 1;
  padding: 18px 36px;
  border: none;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(77, 124, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(77, 124, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.breathing {
  animation: breathe 3s ease-in-out infinite;
}

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

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
  background: rgba(77, 124, 255, 0.08);
  border: 1px solid rgba(77, 124, 255, 0.2);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 35px;
  text-align: left;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.info-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: #ffffff;
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 8px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

.footer a:hover {
  color: var(--secondary);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 20px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.notification.success {
  background: rgba(16, 185, 129, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.notification.error {
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

/* ============================================
   CONFETTI CANVAS
   ============================================ */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 6px;
  border: 2px solid rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* ============================================
   FOCUS STATES
   ============================================ */
.btn:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

/* ============================================
   EASTER EGG
   ============================================ */
.easter-egg-trigger {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  opacity: 0.05;
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.easter-egg-trigger:hover {
  opacity: 0.3;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .card { 
    padding: 45px 35px; 
    border-radius: 28px;
  }
  h1 { font-size: 40px; }
  .brand-name { font-size: 34px; }
  .logo-container { width: 160px; height: 160px; }
  .action-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
  body {
    cursor: auto;
  }
  .notification {
    right: 20px;
    left: 20px;
    top: 20px;
  }
}
