/* 
  Pranamya Tutorials - Main Design System Stylesheet
  Vibrant Crimson & Radiant Gold Premium Theme
*/

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

:root {
  --primary-red: #C8102E;
  --primary-red-dark: #990000;
  --primary-red-light: #E51D38;
  --accent-gold: #FFB800;
  --accent-gold-hover: #E6A100;
  --accent-yellow: #FFD700;
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --card-shadow: 0 12px 32px -8px rgba(200, 16, 46, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --bottom-bar-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.kannada-text {
  font-family: 'Noto Serif Kannada', serif;
}

/* Glassmorphism & Header */
.nav-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 16, 46, 0.1);
}

/* Hero Carousel & Height Constraint */
.hero-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 767px) {
  .hero-container {
    max-height: 380px !important;
    height: 380px !important;
  }
}

@media (min-width: 768px) {
  .hero-container {
    min-height: 520px;
    height: calc(100vh - 120px);
    max-height: 650px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(200, 16, 46, 0.75) 60%, rgba(15, 23, 42, 0.92) 100%);
}

/* Scroll Strip at Bottom of Hero */
.hero-scroll-strip {
  background: rgba(15, 23, 42, 0.95);
  border-top: 2px solid var(--accent-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.marquee-container::-webkit-scrollbar {
  display: none;
}

.fact-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.fact-card:hover {
  background: var(--primary-red);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Horizontal Snap Scroll for Classes on Mobile */
.mobile-snap-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.mobile-snap-scroll::-webkit-scrollbar {
  display: none;
}

.snap-card-item {
  scroll-snap-align: center;
  flex: 0 0 85%;
  max-width: 340px;
}

@media (min-width: 768px) {
  .mobile-snap-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }
  .snap-card-item {
    flex: initial;
    max-width: none;
  }
}

/* Cards & Hover Effects */
.card-hover-effect {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-hover-effect:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(200, 16, 46, 0.18);
  border-color: rgba(200, 16, 46, 0.4);
}

/* Why Us Numbered Cards */
.why-us-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(200, 16, 46, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  overflow: hidden;
}

.why-us-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-red), var(--accent-gold));
  transition: width 0.3s ease;
}

.why-us-card:hover::before {
  width: 8px;
}

.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(200, 16, 46, 0.12);
}

.why-us-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* Faculty Slide-Up Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 650px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 40px rgba(0,0,0,0.3);
  padding: 24px;
}

@media (min-width: 768px) {
  .modal-container {
    border-radius: 24px;
    transform: translateY(40px) scale(0.95);
  }
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

/* Fixed Mobile Bottom Bar */
.fixed-mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .fixed-mobile-bottom-bar {
    display: none !important;
  }
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 0.725rem;
  font-weight: 600;
  text-decoration: none;
  gap: 3px;
  transition: all 0.2s ease;
  width: 25%;
}

.bottom-bar-item.active,
.bottom-bar-item:hover {
  color: var(--accent-gold);
}

.bottom-bar-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Bottom Bar Spacer */
.bottom-bar-spacer {
  height: var(--bottom-bar-height);
  width: 100%;
  display: block;
}

@media (min-width: 768px) {
  .bottom-bar-spacer {
    display: none !important;
  }
}

/* Condensed Footer - STRICT MAX-HEIGHT <= 500px */
footer {
  background: #090D16;
  color: #CBD5E1;
  border-top: 3px solid var(--primary-red);
  max-height: 500px !important;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Call FAB (Positioned above WhatsApp FAB) */
.call-fab {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 82px);
  right: 16px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(200, 16, 46, 0.4);
  z-index: 995;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

@media (min-width: 768px) {
  .call-fab {
    bottom: 96px;
    right: 24px;
    width: 60px;
    height: 60px;
  }
}

.call-fab:hover {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 15px 30px rgba(200, 16, 46, 0.6);
}

.call-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-red);
  animation: pulseRing 2s infinite;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 995;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

@media (min-width: 768px) {
  .whatsapp-fab {
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
  }
}

.whatsapp-fab:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  border-left: 5px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateX(0);
}

/* Custom Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Red / Gold Badge */
.badge-gold {
  background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
  color: #0F172A;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-red-light) 0%, var(--primary-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(200, 16, 46, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #FF8C00 100%);
  color: #0F172A;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FFC72C 0%, #FFA000 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 184, 0, 0.5);
}
