/* ============================================================
   MAA VAISHNAVI ENTERPRISES — Stylesheet
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #0b0a0d;
  --bg-2: #13121a;
  --surface: #19171f;
  --surface-hi: #232030;
  --border: rgba(212, 165, 116, 0.14);
  --border-hi: rgba(212, 165, 116, 0.32);
  --fg: #f5f1ea;
  --muted: #9a9498;
  --muted-2: #5d5963;
  --accent: #d4a574;
  --accent-hi: #ecc99a;
  --accent-2: #ff7a59;
  --accent-3: #6b9d8a;
}

/* --- Base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: 'Fraunces', serif; font-optical-sizing: auto; }

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width .25s, height .25s, opacity .25s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(212, 165, 116, .45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width .35s cubic-bezier(.16,1,.3,1), height .35s cubic-bezier(.16,1,.3,1), border-color .3s, background .3s;
}
.cursor-hover .cursor-dot { width: 0; height: 0; }
.cursor-hover .cursor-ring { width: 72px; height: 72px; border-color: var(--accent); background: rgba(212,165,116,.06); }
@media (hover: none) { body { cursor: auto; } .cursor-dot, .cursor-ring { display: none; } }

/* --- Background Layers --- */
#flow-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55) 100%);
}

/* --- Glass Surface --- */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* --- Typography Utilities --- */
.hero-title {
  background: linear-gradient(180deg, #fff 0%, #f5f1ea 45%, rgba(245,241,234,.35) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-text {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.section-label::before { content: ''; width: 36px; height: 1px; background: var(--accent); }
.stat-num { font-variant-numeric: tabular-nums; }

/* --- Animations --- */
@keyframes spinSlow    { from { transform: rotate(0); }    to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(360deg); } to { transform: rotate(0); } }
@keyframes pulse       { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes float       { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee     { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollBounce{ 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } }
@keyframes pulseRing   { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }

.spin-slow     { animation: spinSlow 30s linear infinite; }
.spin-reverse  { animation: spinReverse 22s linear infinite; }
.pulse-orb     { animation: pulse 6s ease-in-out infinite; }
.float-y       { animation: float 8s ease-in-out infinite; }
.scroll-indicator { animation: scrollBounce 2.2s ease-in-out infinite; }
.marquee-track { animation: marquee 45s linear infinite; display: flex; width: max-content; }

/* --- Pulse Dot (nav CTA) --- */
.pulse-dot { position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--accent); border-radius: 50%;
  animation: pulseRing 2.4s ease-out infinite;
}

/* --- Service Cards --- */
.project-card { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.project-card:hover .project-img    { transform: scale(1.06); }
.project-card:hover .project-overlay{ opacity: 1; }
.project-card:hover .project-arrow  { transform: translate(8px,-8px); color: var(--accent); }
.project-img     { transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.project-overlay { transition: opacity .5s ease; }
.project-arrow   { transition: transform .4s cubic-bezier(.16,1,.3,1), color .4s; }

/* --- Magnetic & Tilt --- */
.magnetic { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.tilt { transform-style: preserve-3d; transition: transform .4s cubic-bezier(.16,1,.3,1); }

/* --- Process Timeline --- */
.journey-node { opacity: .35; transition: opacity .6s ease, transform .6s ease; }
.journey-node.active { opacity: 1; transform: translateX(8px); }
.journey-node.active .node-dot { background: var(--accent); box-shadow: 0 0 24px rgba(212,165,116,.6); }
.node-dot { transition: all .6s ease; }

/* --- About Quotes --- */
.quote-text { transition: opacity .6s ease, transform .6s ease; }
.quote-text.hide { opacity: 0; transform: translateY(20px); position: absolute; inset: 0; }

/* --- Button Shine --- */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .8s;
}
.btn-shine:hover::before { transform: translateX(100%); }

/* --- Form Fields --- */
.input-field {
  background: transparent; border: none;
  border-bottom: 1px solid var(--border-hi);
  padding: 14px 0; color: var(--fg);
  font-family: inherit; font-size: 16px;
  width: 100%; outline: none;
  transition: border-color .3s;
}
.input-field:focus { border-color: var(--accent); }
.input-field::placeholder { color: var(--muted-2); }

/* --- Toast --- */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface); border: 1px solid var(--border-hi);
  padding: 14px 24px; border-radius: 100px;
  color: var(--fg); font-size: 14px; z-index: 10000;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hi); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
