/* ═══════════════════════════════════════════════════════════════
   DANDIYA MAHOTSAV — Premium Shared Styles
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:           #07040f;
  --bg-mid:       #0d0920;
  --bg-card:      rgba(255, 255, 255, 0.035);
  --bg-card-hover:rgba(255, 255, 255, 0.06);
  --gold:         #e8b84b;
  --gold-bright:  #ffd970;
  --gold-dim:     #a07e2a;
  --gold-glow:    rgba(232, 184, 75, 0.25);
  --orange:       #e8632e;
  --orange-glow:  rgba(232, 99, 46, 0.25);
  --red-deep:     #8b1a1a;
  --text:         #f5e8d0;
  --text-sub:     #c4a87a;
  --text-muted:   #7a6040;
  --border:       rgba(232, 184, 75, 0.18);
  --border-hover: rgba(232, 184, 75, 0.45);
  --radius:       18px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --trans:        0.3s var(--ease);
  --shadow:       0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 40px var(--gold-glow), 0 20px 60px rgba(0,0,0,0.5);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── Typography ────────────────────────────────────────────── */
.font-cinzel    { font-family: 'Cinzel', serif; }
.font-playfair  { font-family: 'Playfair Display', serif; }

.text-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, #c97a20 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white { color: #ffffff; }
.text-sub   { color: var(--text-sub); }
.text-muted { color: var(--text-muted); }

/* ─── Background System ─────────────────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 20% 20%, rgba(140, 60, 0, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(100, 20, 80, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 50%, rgba(30, 10, 60, 0.6) 0%, transparent 80%),
              var(--bg);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200, 100, 0, 0.25), transparent 70%);
  top: -100px; left: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(180, 50, 150, 0.2), transparent 70%);
  bottom: -50px; right: -50px;
  animation: orbFloat2 15s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232, 184, 75, 0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, 30px) scale(1.1); }
  66%       { transform: translate(-20px, 50px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-50px, -40px) scale(1.15); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -55%) scale(1.2); }
}

/* ─── Glass Card ────────────────────────────────────────────── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: var(--trans);
}
.glass:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: #1a0800;
  box-shadow: 0 4px 20px var(--orange-glow), 0 8px 30px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px var(--orange-glow), 0 12px 40px rgba(0,0,0,0.4);
  filter: brightness(1.1);
}
.btn-primary:active { transform: translateY(0); }

/* Shimmer effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60px;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { left: -120%; }
  100% { left: 200%; }
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--gold); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Inputs ────────────────────────────────────────────────── */
.input-wrap {
  position: relative;
  width: 100%;
}

.input-wrap .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
  transition: var(--trans);
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: var(--trans);
  outline: none;
  appearance: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.05);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.12), 0 4px 20px rgba(0,0,0,0.3);
}
.form-input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--gold);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.form-group { margin-bottom: 20px; }

select.form-input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a07e2a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
select.form-input option { background: #1a0e2e; color: var(--text); }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 4, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.divider-icon {
  color: var(--gold-dim);
  font-size: 14px;
}

/* ─── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(232, 184, 75, 0.1);
  border: 1px solid rgba(232, 184, 75, 0.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Loader ────────────────────────────────────────────────── */
.spinner {
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 12, 40, 0.95);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: #2ed573; color: #2ed573; }
.toast.error   { border-color: #ff4757; color: #ff4757; }

/* ─── Decorative Pattern ────────────────────────────────────── */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(232,184,75,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--gold-glow); }
  50%       { box-shadow: 0 0 50px var(--gold-glow), 0 0 80px rgba(232,184,75,0.1); }
}

.anim-fade-up   { animation: fadeUp   0.6s var(--ease) both; }
.anim-fade-in   { animation: fadeIn   0.5s var(--ease) both; }
.anim-scale-in  { animation: scaleIn  0.5s var(--ease) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── Responsive ────────────────────────────────────────────── */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .navbar { padding: 14px 28px; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .navbar        { padding: 12px 16px; }
  .nav-logo      { font-size: 14px; letter-spacing: 1px; }
  .btn           { padding: 11px 20px; font-size: 12px; }
  .btn-ghost     { padding: 10px 12px; }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
  .navbar        { padding: 10px 14px; }
  .nav-logo      { font-size: 13px; letter-spacing: 0.5px; }
  .nav-links     { gap: 4px; }
  .btn           { padding: 10px 16px; font-size: 11px; letter-spacing: 1px; }
  .btn-ghost     { display: none; }          /* hide secondary nav btn on tiny screens */
  .glass         { border-radius: 14px; }
  .form-input    { font-size: 14px; padding: 12px 14px 12px 42px; }
  .form-label    { font-size: 11px; }
}
