/* ============================================
   Welcome 10th Batch - Global Styles
   ============================================ */

:root {
  --royal: #0a0a0a;
  --deep: #000000;
  --mid: #1a1a1a;
  --soft: #2a2a2a;
  --accent-gold: #c9a227;
  --accent-gold-light: #f0c84a;
  --accent-teal: #00b4d8;
  --accent-teal-light: #48e0ff;
  --feather-green: #1b6b3a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(201, 162, 39, 0.4);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --radius: 22px;
  --radius-sm: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-padding-top: 0;
  /* Prevent font size inflation on mobile */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ─── ANIMATED BG PATTERN ─── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/bg/1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

/* Dark overlay to make background darker */
.bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

/* Animated sparkle effect on top */
.bg-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(
      circle 1.5px at 20% 30%,
      rgba(201, 162, 39, 0.35) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1px at 70% 60%,
      rgba(0, 180, 216, 0.25) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 2px at 45% 80%,
      rgba(201, 162, 39, 0.2) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1px at 85% 15%,
      rgba(0, 180, 216, 0.3) 0%,
      transparent 100%
    );
  background-size: 400px 400px;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* ─── CARD STYLES ─── */
.card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.07) 100%
  );
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  padding: 36px 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 0 0.5px rgba(201, 162, 39, 0.15);
  position: relative;
  overflow: hidden;
}

/* Aurora shimmer top edge */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 162, 39, 0.6) 30%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(0, 180, 216, 0.6) 70%,
    transparent 100%
  );
  opacity: 0.7;
}

/* Subtle inner glow */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.10) 100%
  );
  border-color: rgba(201, 162, 39, 0.55);
  border-top-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 40px rgba(201, 162, 39, 0.12),
    0 0 80px rgba(201, 162, 39, 0.06);
  transform: translateY(-2px);
}

/* ─── GOLD DIVIDER ─── */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 20px 0;
}

.gold-dot-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.gold-dot-line::before,
.gold-dot-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.gold-dot-line::after {
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.gold-dot-line span {
  color: var(--accent-gold);
  font-size: 18px;
}

/* ─── BUTTONS ─── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d4a820 40%, #a07d18 100%);
  color: #0a0a0a;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  will-change: transform;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(201, 162, 39, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-gold:hover::before {
  left: 150%;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 16px 40px rgba(201, 162, 39, 0.55),
    0 4px 12px rgba(201, 162, 39, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.1);
}

.btn-gold:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  will-change: transform;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.15),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-outline:hover::before {
  left: 150%;
}

.btn-outline:hover {
  border-color: rgba(201, 162, 39, 0.7);
  border-top-color: rgba(255, 255, 255, 0.25);
  color: var(--accent-gold-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(201, 162, 39, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(201, 162, 39, 0.1);
}

.btn-outline:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

/* ─── FORM STYLES ─── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0,0,0,0.2);
}

.form-input:focus {
  border-color: rgba(201, 162, 39, 0.7);
  border-top-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 3px rgba(201, 162, 39, 0.12),
    0 0 20px rgba(201, 162, 39, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ─── GLASSY ELEMENTS ─── */
/* Navigation dots, badges, and other UI elements */
.glass-element {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Status badges */
.badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Section containers */
.section-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Stat cards with glass effect */
.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15),
              0 0 25px rgba(201, 162, 39, 0.15);
}

/* Modal/Dialog glass effect */
.modal-glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Text on glass - ensure readability */
.text-on-glass {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.text-muted-glass {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.text-gold-glass {
  color: var(--accent-gold-light);
  text-shadow: 0 2px 10px rgba(201, 162, 39, 0.4);
}

/* ─── UTILITY GLASS CLASSES ─── */
/* Use these classes instead of inline styles */
.glass-light {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(201, 162, 39, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

.glass-medium {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(201, 162, 39, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.glass-heavy {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(201, 162, 39, 0.5) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
}

/* Icon buttons with glass effect */
.icon-btn-glass {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(201, 162, 39, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.icon-btn-glass:hover {
  background: rgba(201, 162, 39, 0.15) !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.3) !important;
}

/* Stats/Info boxes */
.info-box-glass {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(201, 162, 39, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Gold gradient backgrounds with glass */
.gold-gradient-glass {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2) 0%, rgba(201, 162, 39, 0.08) 100%) !important;
  border: 1px solid rgba(201, 162, 39, 0.4) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

/* Teal gradient backgrounds with glass */
.teal-gradient-glass {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.2) 0%, rgba(0, 180, 216, 0.08) 100%) !important;
  border: 1px solid rgba(0, 180, 216, 0.4) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

/* Success/Error states with glass */
.success-glass {
  background: rgba(61, 220, 132, 0.15) !important;
  border: 1px solid rgba(61, 220, 132, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.error-glass {
  background: rgba(255, 107, 107, 0.15) !important;
  border: 1px solid rgba(255, 107, 107, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Modal/Overlay backgrounds */
.modal-overlay-glass {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ─── CUSTOM SCROLLBAR ─── */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-left: 1px solid rgba(201, 162, 39, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-gold), #a07d18);
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-gold-light), var(--accent-gold));
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent-gold);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.3);
}

/* ─── RESPONSIVE STYLES ─── */
/* Media query styles have been moved to separate files for better organization:
   - styles-tablet.css (max-width: 768px)
   - styles-mobile.css (max-width: 480px)
   - styles-mobile-small.css (max-width: 460px)
   - styles-mobile-extra-small.css (max-width: 360px)
   
   Import these files in your layout/page component.
*/

/* ─── GLASS SHIMMER ─── */
.glass-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 10;
}

@keyframes shimmerSweep {
  0%   { left: -100%; }
  100% { left: 160%; }
}

/* ─── AURORA CANVAS ─── */
#aurora-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* ─── ENHANCED NAV DOTS ─── */
.nav-dots-container {
  z-index: 200;
}

.nav-dot {
  position: relative;
}

.nav-dot.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  animation: dotRipple 1.5s ease-out infinite;
}

@keyframes dotRipple {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ─── SECTION TRANSITION LAYER ─── */
.home-section {
  will-change: transform, opacity;
}

/* ─── ENHANCED BACKGROUND ─── */
.bg-canvas {
  background-attachment: fixed;
}

/* Richer overlay with vignette */
.bg-canvas::after {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 100%);
}
