/* ============================================================
   Premium Visual Effects — Light Theme
   ============================================================ */

/* ---------- Chrome / Metallic Text ---------- */
.text-chrome {
  background: linear-gradient(90deg, #AA8C2C, #D4AF37, #F3E5AB, #D4AF37, #AA8C2C);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-chrome--animated {
  animation: shimmer-text 4s ease-in-out infinite;
}

@keyframes shimmer-text {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ---------- Outline Text ---------- */
.text-outline {
  -webkit-text-stroke: 1.5px var(--color-accent);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-outline--large {
  -webkit-text-stroke: 2px var(--color-accent);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(6rem, 15vw, 14rem);
  line-height: 1;
  opacity: 0.1;
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.5s var(--ease-out);
}

.glass-card:hover {
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 40px rgba(30, 64, 175, 0.08);
}

/* ---------- Glow Card (cursor-tracking glow) ---------- */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

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

/* ---------- 3D Tilt Card ---------- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.tilt-card > * {
  position: relative;
  z-index: 2;
}

/* ---------- Floating Particles ---------- */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  background: var(--color-accent-light);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float var(--duration, 8s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  10% {
    opacity: var(--max-opacity, 0.15);
    transform: scale(1);
  }
  50% {
    transform: translate(var(--dx, 30px), var(--dy, -50px)) scale(1);
  }
  90% {
    opacity: var(--max-opacity, 0.15);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx, 30px) * -0.5), calc(var(--dy, -50px) * 1.8)) scale(0);
  }
}

/* ---------- Pulse Glow ---------- */
.glow-pulse {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(30, 64, 175, 0.15);
  }
  50% {
    box-shadow: 0 0 28px rgba(30, 64, 175, 0.35);
  }
}

/* ---------- Line Draw Animation ---------- */
.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.line-draw.is-visible {
  animation: draw-line 2s ease-out forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* ---------- Reveal Animations ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Gradient Mesh Background ---------- */
.gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(30, 64, 175, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(30, 64, 175, 0.02) 0%, transparent 60%);
  animation: mesh-shift 45s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% {
    background:
      radial-gradient(ellipse 60% 50% at 20% 30%, rgba(30, 64, 175, 0.04) 0%, transparent 70%),
      radial-gradient(ellipse 40% 60% at 80% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 50% 50%, rgba(30, 64, 175, 0.02) 0%, transparent 60%);
  }
  100% {
    background:
      radial-gradient(ellipse 50% 60% at 70% 40%, rgba(30, 64, 175, 0.05) 0%, transparent 70%),
      radial-gradient(ellipse 60% 40% at 30% 60%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
      radial-gradient(ellipse 40% 50% at 60% 30%, rgba(30, 64, 175, 0.03) 0%, transparent 60%);
  }
}

/* ---------- Noise Texture Overlay ---------- */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Diamond Separator ---------- */
.diamond-sep {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  transform: rotate(45deg);
  margin: 0 1rem;
  opacity: 0.3;
  flex-shrink: 0;
}

/* ---------- Mobile Performance ---------- */
@media (max-width: 768px) {
  .particles-container { display: none; }
  .gradient-mesh { animation: none; }
}

/* ---------- Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .particle { display: none; }
  .gradient-mesh { animation: none; }
}
