/* ==========================================================================
   TTVPA - Thirukovilur Taluk Video & Photographers Association
   Editorial Media-Guild Stylesheet & Realistic Visual Depth
   Reg. No: 19/2020
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-navy-darkest: #040914;
  --color-navy-dark: #071324;
  --color-navy-base: #0B192C;
  --color-navy-surface: #0F233D;
  --color-navy-card: #132A4A;
  --color-navy-light: #1E3E62;

  --color-gold-start: #FFE259;
  --color-gold-base: #F59E0B;
  --color-gold-dark: #D97706;

  --color-cyan-glow: #0EA5E9;
  --color-cyan-light: #38BDF8;

  --color-text-primary: #F8FAFC;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;

  --font-tamil: 'Noto Sans Tamil', 'Mukta Malar', sans-serif;
  --font-latin: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-family: var(--font-latin);
  background-color: var(--color-navy-darkest);
  color: var(--color-text-primary);
  max-width: 100%;
  overflow-x: clip;
}

section, header, footer, main {
  max-width: 100%;
}

[lang="ta"], body.lang-ta {
  font-family: var(--font-tamil);
  line-height: 1.65;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-dark);
}
::-webkit-scrollbar-thumb {
  background: #1E3E62;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-base);
}

/* Subtle Navy & Charcoal Background */
.bg-deep-mesh {
  background-color: var(--color-navy-darkest);
  background-image:
    radial-gradient(at 15% 0%, rgba(15, 35, 61, 0.75) 0px, transparent 55%),
    radial-gradient(at 85% 15%, rgba(245, 158, 11, 0.06) 0px, transparent 45%),
    radial-gradient(at 50% 100%, rgba(11, 25, 44, 0.8) 0px, transparent 60%);
  background-attachment: fixed;
}

/* Editorial Photo Frame & Overlays */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #071324;
}

.photo-frame img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-frame:hover img {
  transform: scale(1.04);
}

.editorial-overlay {
  background: linear-gradient(180deg, rgba(4, 9, 20, 0.15) 0%, rgba(4, 9, 20, 0.55) 55%, rgba(4, 9, 20, 0.94) 100%);
}

/* Glassmorphism Surfaces */
.glass-panel {
  background: rgba(11, 25, 44, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover {
  border-color: rgba(245, 158, 11, 0.32);
}

.glass-card-elevated {
  background: linear-gradient(145deg, rgba(15, 35, 61, 0.88) 0%, rgba(7, 19, 36, 0.95) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 45px -15px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card-elevated:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 26px 50px -12px rgba(0, 0, 0, 0.75), 0 0 24px -6px rgba(245, 158, 11, 0.18);
}

/* 3D Tilt Card Physics */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.tilt-child-3d {
  transform: translateZ(28px);
}

/* Golden Gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFE259 0%, #F59E0B 60%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 65%, #D97706 100%);
  color: #040914;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.55s;
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  color: #040914;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Official Crest Monogram Badge (Typographic / Geometric Camera Aperture) */
.ttvpa-crest-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(145deg, #0F233D, #040914);
  border: 2px solid #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   OFFICIAL DIGITAL ID CARD STYLING (Realistic PVC & Hologram Look)
   ========================================================================== */

.smart-id-card {
  width: 100%;
  max-width: 420px;
  min-height: 245px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071527 0%, #0F2643 50%, #081B30 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(245, 158, 11, 0.45);
  color: #FFFFFF;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

@media (min-width: 640px) {
  .smart-id-card {
    height: 265px;
    padding: 16px 20px;
  }
}

.smart-id-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 42%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 215, 0, 0.12) 50%,
    rgba(56, 189, 248, 0.12) 55%,
    transparent 58%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: holoSheen 7s infinite ease-in-out;
}

@keyframes holoSheen {
  0% { transform: translateY(-80px) rotate(25deg); }
  50% { transform: translateY(80px) rotate(25deg); }
  100% { transform: translateY(-80px) rotate(25deg); }
}

.hologram-seal {
  position: absolute;
  bottom: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE259 0%, #0EA5E9 55%, #D97706 100%);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  font-weight: 800;
  color: #071324;
  text-align: center;
  line-height: 1.05;
}

/* Flip card wrapper */
.flip-card-container {
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card-container.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: relative;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

@media print {
  body * {
    visibility: hidden;
  }
  #printable-id-card, #printable-id-card * {
    visibility: visible;
  }
  #printable-id-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 85.6mm;
    height: 54mm;
    margin: 0 auto;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.modal-backdrop {
  background: rgba(4, 9, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#toast-container {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 640px) {
  #toast-container {
    left: auto;
    right: 24px;
    bottom: 24px;
  }
}

.ttvpa-toast {
  background: #0B192C;
  border-left: 4px solid #F59E0B;
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  pointer-events: auto;
  animation: slideToastIn 0.3s ease-out forwards;
}

@keyframes slideToastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
