/* ==========================================================================
   THE HORMONE RESEARCH SOCIETY, JAIPUR (hormoneresearch.org)
   Official Clinical & Academic Stylesheet
   Color Palette: Deep Clinical Navy (#0f2b48), Medical Cyan (#0ea5e9), 
                  Emerald (#059669), Crisp Slate (#334155 / #f8fafc)
   ========================================================================== */

:root {
  --navy-deep: #0f2b48;
  --navy-dark: #091a2c;
  --navy-light: #163e67;
  --navy-surface: #1e4a78;
  --cyan-accent: #0ea5e9;
  --cyan-hover: #0284c7;
  --cyan-light: #e0f2fe;
  --emerald-accent: #059669;
  --emerald-light: #d1fae5;
  --gold-accent: #d97706;
  --gold-light: #fef3c7;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  
  --shadow-subtle: 0 4px 6px -1px rgba(15, 43, 72, 0.05), 0 2px 4px -2px rgba(15, 43, 72, 0.05);
  --shadow-card: 0 10px 15px -3px rgba(15, 43, 72, 0.08), 0 4px 6px -4px rgba(15, 43, 72, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(15, 43, 72, 0.12), 0 8px 10px -6px rgba(15, 43, 72, 0.08);
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.25);
  
  --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base Smoothing & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--slate-700);
  background-color: var(--slate-50);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.25;
}

/* Custom Selection */
::selection {
  background-color: var(--cyan-light);
  color: var(--navy-deep);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--slate-100);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid var(--slate-100);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.top-bar {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.nav-bar-container {
  background: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(15, 43, 72, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.nav-bar-container.scrolled {
  box-shadow: 0 8px 20px rgba(9, 26, 44, 0.25);
  background: rgba(15, 43, 72, 0.98);
  backdrop-filter: blur(8px);
}

.nav-link {
  position: relative;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--cyan-accent);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 75%;
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

/* ==========================================================================
   HERO CAROUSEL / SLIDESHOW
   ========================================================================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  background-color: var(--navy-dark);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-slider-wrapper {
    height: 520px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.06);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(9, 26, 44, 0.92) 0%,
    rgba(15, 43, 72, 0.75) 45%,
    rgba(15, 43, 72, 0.45) 80%,
    rgba(9, 26, 44, 0.7) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Carousel Indicators & Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 43, 72, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: var(--cyan-accent);
  border-color: var(--cyan-accent);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.carousel-btn.prev {
  left: 24px;
}

.carousel-btn.next {
  right: 24px;
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 34px;
  background: var(--cyan-accent);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.carousel-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--cyan-accent);
  width: 0%;
  z-index: 10;
  transition: width 0.1s linear;
}

/* ==========================================================================
   OFFICIAL CERTIFICATE CARD (ABOUT SECTION)
   ========================================================================== */
.certificate-frame {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 35px -5px rgba(15, 43, 72, 0.1), 0 8px 12px -4px rgba(15, 43, 72, 0.05);
  overflow: hidden;
  padding: 2.5rem;
}

@media (max-width: 640px) {
  .certificate-frame {
    padding: 1.5rem 1.25rem;
  }
}

.certificate-inner-border {
  border: 2px dashed #cbd5e1;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  background: linear-gradient(180deg, rgba(254, 252, 232, 0.3) 0%, rgba(255, 255, 255, 0.8) 100%);
}

@media (max-width: 640px) {
  .certificate-inner-border {
    padding: 1.25rem 0.75rem;
  }
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.official-seal-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef3c7 0%, #fde68a 60%, #d97706 100%);
  border: 3px double #b45309;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #78350f;
  text-align: center;
}

/* ==========================================================================
   OBJECTIVES CARDS
   ========================================================================== */
.objective-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--navy-deep);
  transition: all 0.3s ease;
}

.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.objective-card:hover::before {
  background: var(--cyan-accent);
  width: 6px;
}

.objective-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--navy-deep);
}

.objective-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cyan-light);
  color: var(--cyan-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.objective-card:hover .objective-icon-box {
  background: var(--navy-deep);
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}

/* ==========================================================================
   EXECUTIVE COMMITTEE PROFILE CARDS
   ========================================================================== */
.executive-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-subtle);
}

.executive-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.executive-photo-frame {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--cyan-accent) 0%, var(--navy-deep) 100%);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 16px -2px rgba(15, 43, 72, 0.15);
  transition: transform 0.3s ease;
}

.executive-card:hover .executive-photo-frame {
  transform: scale(1.04);
}

.executive-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  background-color: var(--slate-100);
  display: block;
  border: 3px solid #ffffff;
}

.designation-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-chairman {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-co-chairman {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-secretary {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-treasurer {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.badge-member {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

/* ==========================================================================
   RESEARCH ACTIVITIES & VISION CALLOUT
   ========================================================================== */
.activity-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-accent);
  box-shadow: var(--shadow-card);
}

.vision-callout-box {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 60%, var(--navy-light) 100%);
  border-left: 6px solid var(--cyan-accent);
  border-radius: 14px;
  padding: 2.5rem;
  color: #ffffff;
  position: relative;
  box-shadow: 0 15px 30px -5px rgba(9, 26, 44, 0.3);
}

/* ==========================================================================
   EVENTS & GALLERY
   ========================================================================== */
.event-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.gallery-grid-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--slate-200);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 43, 72, 0.9) 0%, rgba(15, 43, 72, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.gallery-grid-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 26, 44, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   INTERACTIVE FORMS & TOAST NOTIFICATIONS
   ========================================================================== */
.form-input {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--slate-800);
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  border-left: 4px solid var(--emerald-accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(15, 43, 72, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 43, 72, 0.25);
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--cyan-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

/* ==========================================================================
   PRINT STYLES FOR OFFICIAL DOCUMENT / CERTIFICATE
   ========================================================================== */
@media print {
  .top-bar,
  .nav-bar-container,
  .hero-slider-wrapper,
  .carousel-btn,
  .carousel-dots,
  .carousel-progress-bar,
  .lightbox-modal,
  .toast-container,
  .back-to-top,
  form,
  iframe,
  footer {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .certificate-frame {
    border: 2px solid #000;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .certificate-inner-border {
    border: 1px solid #333;
    background: transparent;
  }
}

