/* =========================================================
   assets/css/layout.css
   Contract-aligned with:
   - layout.js
   - partials/navbar.html
   ========================================================= */


html, body {
  max-width: 100vw;
  overflow-x: hidden;
}


   /* =========================================================
   FIXED HEADER OFFSET
   Header height = h-16 = 64px
   ========================================================= */
body {
  padding-top: 4rem;
}


:root {
  --color-primary: #2563eb; /* blue-600 */
}

.bg-primary {
  background-color: var(--color-primary);
}

.text-primary {
  color: var(--color-primary);
}

.dark .bg-primary {
  background-color: #3b82f6; /* blue-500 */
}

.dark .shadow-lg {
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}



/* =========================================================
   NAV BAR (DESKTOP)
   ========================================================= */

.nav-link,
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151; /* gray-700 - readable */
}

.nav-link:hover,
.nav-trigger:hover {
  color: #2563eb; /* blue-600 */
}

.dark .nav-link,
.dark .nav-trigger {
  color: #e5e7eb; /* gray-200 */
}

.dark .nav-link:hover,
.dark .nav-trigger:hover {
  color: #60a5fa; /* blue-400 */
}

/* =========================================================
   LOGO & HEADER ICONS (ISOLATED)
   ========================================================= */

header .text-primary {
  color: #2563eb;
}

.dark header .text-primary {
  color: #60a5fa;
}

/* Dark mode toggle icon */
#nav-dark-toggle i {
  color: #111827;
}

.dark #nav-dark-toggle i {
  color: #f9fafb;
}

/* =========================================================
   MEGA MENU
   ========================================================= */

.mega-menu {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: calc(100vw - 2rem);
  max-width: 72rem;

  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 40;
}

.mega-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dark .mega-menu {
  background: #111827;
  border-color: #374151;
}



/* =========================================================
   MEGA MENU LINKS
   ========================================================= */

.menu-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-link i {
  color: #2563eb;
  margin-top: 2px;
}

.menu-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.dark .menu-link {
  color: #e5e7eb;
}

.dark .menu-link:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.dark .menu-link:hover i {
  color: #93c5fd;
}

/* =========================================================
   TRUSTED BY SCROLLER
   ========================================================= */

#nav-logo-scroller {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollInfinite 100s linear infinite;
  will-change: transform;
}

#nav-logo-scroller:hover {
  animation-play-state: paused;
}

@keyframes scrollInfinite {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  padding: 0.75rem 0;
  color: #111827;
}

.dark .mobile-trigger {
  color: #e5e7eb;
}

.mobile-panel {
  padding-left: 1rem;
  margin-top: 0.4rem;
}

.mobile-panel a {
  display: block;
  padding: 0.35rem 0;
  color: #374151;
}

.dark .mobile-panel a {
  color: #d1d5db;
}

.mobile-panel a:hover {
  color: #2563eb;
}

.dark .mobile-panel a:hover {
  color: #93c5fd;
}

/* =========================================================
   DARK MODE GLOBAL HELPERS (CONTROLLED)
   ========================================================= */
.dark body {
  background-color: #111827;
}

.dark .layout-surface {
  background-color: #1f2937;
}

.dark .border-gray-200 { border-color: #374151; }
.dark .text-gray-900 { color: #f9fafb; }
.dark .text-gray-700 { color: #e5e7eb; }
.dark .text-gray-600 { color: #d1d5db; }

/* =========================================================
   MOBILE HEIGHT SAFETY
   ========================================================= */

@media (max-height: 640px) {
  #nav-mobile-menu > div {
    max-height: 65vh;
  }
}




#gallery-marquee {
  animation: galleryScroll 60s linear infinite;
}

#gallery-marquee:hover {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Card sizing consistency */
.gallery-card {
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
}


@media (max-width: 640px) {
  .gallery-card {
    max-width: 100%;
  }
}


/* =========================================================
   Institutions We’ve Worked With SCROLLER in gallery 
   ========================================================= */

#academic-logo-scroller {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollInfinite 90s linear infinite;
}

#academic-logo-scroller:hover {
  animation-play-state: paused;
}


/* Gallery page part */

@keyframes gallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-track {
  animation: gallery-scroll 40s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

/* Hero for about one */
.hero-bg {
  background-image: url("/assets/images/about/hero/rd-lab.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* About US page  */
/* Who We are section in About us page */
#who-we-are {
  scroll-margin-top: 5rem;
}

#vision-mission {
  scroll-margin-top: 5rem;
}

#leadership {
  scroll-margin-top: 5rem;
}

/* Announcements filters */
.filter-pill {
cursor: pointer;
transition: all 0.2s ease;
}
.filter-pill:hover {
transform: translateY(-1px);
}

.filter-button.active {
  background-color: #3b82f6;
  color: white;
}

.dark .filter-button.active {
  background-color: #2563eb;
  color: white;
}

/* ================= NSE STYLE WHATSAPP PULSE ================= */

.whatsapp-pulse {
  position: relative;
  z-index: 10;
  animation: nseButtonBeat 2.4s ease-in-out infinite;
}

/* Button grows then settles */
@keyframes nseButtonBeat {
  0%   { transform: scale(1); }
  18%  { transform: scale(1.18); }
  32%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* Expanding ring */
.whatsapp-pulse .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.45);
  animation: nsePulseRing 2.4s ease-out infinite;
  z-index: -1;
}

/* Ring expands AFTER button beat */
@keyframes nsePulseRing {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  30% {
    opacity: 0.6;
  }
  70% {
    transform: scale(2.8);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ================= NSE STYLE BACK TO TOP ================= */

.progress-circle {
  width: 56px;
  height: 56px;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.progress-circle.show {
  opacity: 1;
  pointer-events: auto;
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.circle-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 3;
}

.dark .circle-bg {
  stroke: #374151;
}

.circle {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100, 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.15s linear;
}

.dark .circle {
  stroke: #60a5fa;
}

.arrow {
  fill: #2563eb;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(90deg);
  pointer-events: none;
}

.dark .arrow {
  fill: #60a5fa;
}


/* Home Page card minimum height for r&d eduverse and skill labs */
/* .uniform-card {
  height: 110px;
  display: flex;
  align-items: center;
} */
.uniform-card { height: auto; }
