/* ==========================================================================
   Indrajith Rajagopal Official Website - Custom Styles
   Colors, Animations, Lightbox, Form, and Layout Enhancements
   ========================================================================== */

:root {
  --inc-blue: #0f3b7a;
  --inc-blue-dark: #0a254d;
  --inc-blue-light: #1e4f9c;
  --inc-saffron: #f37920;
  --inc-green: #138808;
  --wa-green: #25d366;
  --wa-dark: #128c7e;
  --wa-chat-bg: #e5ddd5;
  --wa-bubble-out: #dcf8c6;
}

html {
  font-family: 'Noto Sans Malayalam', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Subtle scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Malayalam typography enhancements */
.malayalam-text {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.malayalam-heading {
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px -10px rgba(15, 59, 122, 0.14);
}

/* Tricolor Banner */
.inc-tricolor-bar {
  background: linear-gradient(90deg, #f37920 33.3%, #ffffff 33.3%, #ffffff 66.6%, #138808 66.6%);
  height: 4px;
  width: 100%;
}

/* Gallery Filter Active State */
.filter-btn.active {
  background-color: #0f3b7a;
  color: #ffffff;
  border-color: #0f3b7a;
  box-shadow: 0 4px 12px rgba(15, 59, 122, 0.2);
}

/* Gallery Items Transition */
.gallery-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item.hidden-item {
  display: none !important;
}

/* Lightbox Modal */
#lightboxModal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightboxModal.open {
  opacity: 1;
  visibility: visible;
}

/* WhatsApp Chat Preview Bubble */
.wa-chat-bubble {
  background-color: #dcf8c6;
  border-radius: 12px;
  border-top-right-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  position: relative;
  word-break: break-word;
}
.wa-chat-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid #dcf8c6;
  border-bottom: 8px solid transparent;
}

/* Modal Backdrops */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Drawer transitions */
#mobileDrawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobileDrawer.open {
  transform: translateX(0);
}

/* Bottom bar padding safe area for mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}

/* Header Responsive Typography & Alignment */
.header-brand-title {
  font-size: 0.875rem; /* 14px on mobile */
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .header-brand-title {
    font-size: 1rem; /* 16px */
  }
}
@media (min-width: 1024px) {
  .header-brand-title {
    font-size: 1.125rem; /* 18px */
  }
}

.header-designation-badge {
  font-size: 8.5px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f3b7a;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  margin-top: 1.5px;
}
@media (min-width: 380px) {
  .header-designation-badge {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
}
@media (min-width: 640px) {
  .header-designation-badge {
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-top: 2.5px;
  }
}

/* Footer Bottom Responsive Single-Line Classes */
.footer-copyright-line {
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}
@media (min-width: 375px) {
  .footer-copyright-line {
    font-size: 11px;
  }
}
@media (min-width: 640px) {
  .footer-copyright-line {
    font-size: 12.5px;
  }
}

.footer-portal-line {
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  color: #94a3b8;
}
@media (min-width: 375px) {
  .footer-portal-line {
    font-size: 11.5px;
  }
}
@media (min-width: 640px) {
  .footer-portal-line {
    font-size: 12.5px;
  }
}

.footer-credit-line {
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  color: #94a3b8;
}
@media (min-width: 640px) {
  .footer-credit-line {
    font-size: 12px;
  }
}


