/* ============================================================
   THE LANGUAGE - Nandgram, Ghaziabad
   Complete Stylesheet
   ============================================================ */

/* --- CSS Variables ----------------------------------------- */
:root {
  --navy-50: #e8eaf6;
  --navy-100: #c5cae9;
  --navy-200: #9fa8da;
  --navy-300: #7986cb;
  --navy-400: #5c6bc0;
  --navy-500: #3f51b5;
  --navy-600: #303f9f;
  --navy-700: #283593;
  --navy-800: #1a237e;
  --navy-900: #0d1442;
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --navy: #1a237e;
  --navy-dark: #0d1442;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --white-bg: #ffffff;
  --grey-bg: #f1f5f9;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background: var(--white-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* --- Typography --------------------------------------------- */
.font-display {
  font-family: 'Playfair Display', serif;
}

/* --- Scroll Animations ------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Navbar ------------------------------------------------- */
.nav-shrink {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
  box-shadow: 0 2px 20px rgba(26, 35, 126, 0.12) !important;
}

/* --- Cards -------------------------------------------------- */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15) !important;
}

/* --- Buttons ------------------------------------------------ */
.btn-glow {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}
.btn-glow:hover {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.btn-primary-navy {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: #fff;
}
.btn-primary-navy:hover {
  background: linear-gradient(135deg, #283593, #303f9f);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* --- WhatsApp Pulse ---------------------------------------- */
.whatsapp-float {
  animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  70% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Chatbot Float ----------------------------------------- */
.chatbot-float {
  animation: chatbotBounce 3s infinite;
}
@keyframes chatbotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Hero Gradient ----------------------------------------- */
.hero-gradient {
  background: linear-gradient(135deg, #0d1442 0%, #1a237e 40%, #283593 70%, #1a237e 100%);
}

/* --- Gold Gradient ----------------------------------------- */
.gold-gradient {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.gold-text {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.star-glow {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

/* --- Flip Cards -------------------------------------------- */
.flip-card {
  height: 360px;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 35, 126, 0.1);
}
.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1a237e, #283593);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* --- Section Backgrounds ----------------------------------- */
.section-white { background: var(--white-bg); }
.section-grey  { background: var(--grey-bg); }
.section-navy  {
  background: linear-gradient(135deg, #0d1442, #1a237e, #283593);
}

/* --- Stats Section ----------------------------------------- */
.stats-section {
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(245, 158, 11, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

/* --- Utilities ---------------------------------------------- */
.underline-gold {
  position: relative;
  display: inline-block;
}
.underline-gold::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 2px;
}

.pattern-dots {
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Mobile Bottom Bar ------------------------------------- */
.mobile-bottom-bar {
  display: none;
}

/* --- Mobile Nav -------------------------------------------- */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--white-bg);
  z-index: 999;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.mobile-nav-menu.open {
  left: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Image Fallback ---------------------------------------- */
.img-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a237e, #283593);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-fallback i {
  color: var(--gold-500);
}

/* --- Gallery Auto Scroll ----------------------------------- */
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-scroll {
  animation: scrollLeft 40s linear infinite;
}
.animate-scroll:hover {
  animation-play-state: paused;
}

/* --- Hamburger Lines --------------------------------------- */
.hamburger-line {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Tooltip ------------------------------------------------ */
.tooltip-group:hover .tooltip-text {
  opacity: 1;
}
.tooltip-text {
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* --- Form Focus -------------------------------------------- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #f8fafc;
  color: var(--navy-800);
  transition: border-color 0.2s;
  outline: none;
}
.form-input::placeholder {
  color: #94a3b8;
}
.form-input:focus {
  border-color: var(--gold);
}

/* --- Media Queries ----------------------------------------- */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--white-bg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .mobile-bottom-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    text-decoration: none;
  }
  /* Make sure content isn't hidden behind bottom bar */
  body {
    padding-bottom: 70px;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
}

/* --- No-Drag for images ------------------------------------ */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* --- Focus visible ----------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
