/* ================================
   GLOBAL STYLES & CONFIGURATION
================================== */

:root {
  /* Brand Colors */
  --theme-color: #010050;
  --theme-color-dark: #091E3E;
  --theme-color-hover: #171686;
  --accent-color: #ff4d4d;
  --primary: #06A3DA;
  --secondary: #f0cad6;
  --light: #EEF9FF;
  --section-bar: #ff4d4d;
  
  /* Text & Surface Colors */
  --text-light: #f8f9fa;
  --default-font-color: #666666;
  --surface-white: #ffffff;
  --dropdown-bg: #f8f9fa;
  --divider-color: #dee2e6;
  
  /* Typography Scale */
  --font-body: 'Nunito', sans-serif;
  --font-headings: 'Rubik', sans-serif;
  
  /* Transitions & Shadows */
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(1, 0, 80, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Utilities */
.bg-light { background-color: var(--light) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-shadow { text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--default-font-color);
  font-family: var(--font-body);
  font-display: swap;
  
  /* Modern Sticky Footer Layout using Grid instead of Flex */
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* Base Typography Configuration */
h1, h2, h3, h4, h5 {
  font-family: var(--font-headings);
  font-display: swap;
  font-weight: 700;
  color: var(--theme-color);
  margin-top: 0;
}

h1 { font-size: 2.5rem; color: #7952b3; } /* 40px */
h2 { font-size: 1.875rem; }               /* 30px */
h3 { 
  font-size: 1.875rem; 
  color: #7952b3; 
  text-transform: uppercase; 
}
h4 { font-size: 1.125rem; }               /* 18px */
h5 { font-size: 0.75rem; }                /* 12px */

p {
  line-height: 1.75;
  margin-block-end: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout Blocks using Logical Properties */
main {
  padding-block-start: 20vh;
}

section {
  margin-block-end: 15vh;
}

.container {
  margin-block-start: 30px;
}

/* ================================
   COMPONENTS
================================== */

/* Navbar & Nav Links */
.navbar {
  background-color: var(--theme-color) !important;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.nav-link {
  color: #b9baba;
  transition: color var(--transition-smooth);
}

.nav-link:hover,
.nav-link:active {
  color: var(--surface-white);
}

/* Dropdown Navigation */
.dropdown-menu {
  background-color: var(--dropdown-bg);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  min-width: 200px;
  border: none;
}

.dropdown-item {
  padding: 10px 15px;
  font-weight: 500;
  color: #212529;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--theme-color) !important;
  color: var(--surface-white);
}

.dropdown-divider {
  border-top: 1px solid var(--divider-color);
  margin-block: 0.5rem;
}

/* Modernized Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  transition: background-color var(--transition-smooth), transform 0.2s ease, box-shadow var(--transition-smooth);
  border-radius: 4px; /* Softened from hard 0 for a cleaner look */
}

.btn-info {
  background-color: var(--primary);
  border: none;
  color: var(--surface-white);
}

.btn-info:hover {
  background-color: var(--theme-color-hover);
  transform: translateY(-1px);
}

.form-floating input {
  border-radius: 4px !important;
}

/* Blog Components */
.blog-item {
  overflow: hidden;
}

.blog-item .blog-img img {
  transition: transform var(--transition-smooth);
}

.blog-item:hover .blog-img img {
  transform: scale(1.08); /* Reduced for a cleaner look */
}

.scale-effect {
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.scale-effect:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Hindi Content Block Styling */
.hindi {
  font-family: 'Noto Sans Devanagari', var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
}

.hindi p {
  margin-block-end: 15px; 
}

.hindi i {
  display: block;
  margin-block: 25px;
  font-style: italic;
  color: #555;
  background-color: #f9f9f9;
  border-inline-start: 4px solid #ff9800;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
}

.hindi h2 {
  font-size: 1.25rem;
  margin-block-start: 25px;
}

/* Native List Group Color Inherit Fix */
.list-group-item .p {
  color: inherit !important;
}

/* Form Password Toggles */
.password-toggle-container {
  position: relative;
}

#togglePassword, #togglePassword2 {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #0dcaf0;
  cursor: pointer;
  transition: color var(--transition-smooth);
}

#togglePassword:hover, #togglePassword2:hover {
  color: var(--theme-color);
}

/* Card & Interactive elements */
.scrolling-card {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin; /* Standardized scrollbars */
}

/* Mobile Nav Toggle Icon */
.customer-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1050;
  background: transparent;
  border: none;
  padding: 0;
}

.line {
  height: 3px;
  width: 100%;
  background-color: var(--surface-white);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), width var(--transition-smooth);
  transform-origin: left center;
}

/* Smoother Hamburger-to-X Animation Morph */
.customer-toggler.active .top { transform: rotate(45deg); }
.customer-toggler.active .middle { opacity: 0; width: 0; }
.customer-toggler.active .bottom { transform: rotate(-45deg); }

/* Testimonials Carousel Hooks */
.testimonial-carousel .owl-dots {
  margin-block-start: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.testimonial-carousel .owl-dot {
  width: 12px;
  height: 12px;
  background: #aaa;
  border-radius: 50%; /* Modern circular dots */
  transition: width var(--transition-smooth), background var(--transition-smooth);
  border: none;
}

.testimonial-carousel .owl-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--primary);
}

/* Birthday Feature Block */
.bithdayImg {
  width: auto;
  height: 250px;
  object-fit: cover;
}

.birthday {
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.birthdayUserName {
  position: absolute;
  inset-inline: 5px;
  bottom: 21px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
  padding: 10px 20px;
  background-color: rgba(255, 0, 0, 0.7);
  backdrop-filter: blur(4px); /* Modern overlay glass effect */
  color: var(--surface-white);
  text-align: center;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); } /* Tamed down from 1.2 to avoid blurring/layout jumps */
}

/* Section Title Running Border Keyframes */
.section-title-1, .section-title-2 { position: relative; }

@-webkit-keyframes section-title-run {
  0%, 100% { left: 0; }
  50% { left: 145px; }
}
@keyframes section-title-run {
  0%, 100% { left: 0; }
  50% { left: 145px; }
}

/* Footer Section */
footer {
  background-color: var(--theme-color) !important;
  padding-block: 2rem;
  text-align: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
  color: var(--surface-white);
}

footer a {
  color: var(--surface-white);
  margin-inline: 5px;
  transition: opacity var(--transition-smooth);
}
footer a:hover {
  opacity: 0.8;
}

/* ================================
   RESPONSIVE LAYOUT RESPONSES
================================== */

/* Desktop-first fallback / Upgrade configurations */
@media (min-width: 992px) {
  .dropdown-menu {
    display: block;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
  }

  .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 991.98px) {
  .customer-toggler {
    display: flex;
  }

  .mobile-nav-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding-inline-end: 5px;
    scrollbar-width: thin;
  }
}