/* ==========================================================================
   TAPAS — Stylesheet
   Single Page View Routing & Section Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body {
  width: 100%;
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  background-color: #FFFFFF;
  color: #1F2937;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Page View Routing visibility */
.page-view {
  display: none;
  animation: fadeInView 0.35s ease;
}

.page-view.active-view {
  display: block;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Top Navigation Bar (Centered Menu)
   -------------------------------------------------------------------------- */
.opening-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #4B5563;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #000000;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #111827;
  transition: width 0.25s ease;
}

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #1F2937;
}

/* --------------------------------------------------------------------------
   View Header Bars
   -------------------------------------------------------------------------- */
.view-header-bar {
  text-align: center;
  margin-bottom: 3rem;
}

.view-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #2563EB;
  background: #EFF6FF;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.view-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1F2937;
}

/* --------------------------------------------------------------------------
   Section 1: Opening Page Hero Layout
   -------------------------------------------------------------------------- */
.opening-page-section {
  min-height: 100vh;
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem 1rem;
  position: relative;
}

.opening-page-container {
  width: 100%;
  max-width: 1550px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-logo-wrapper {
  width: 100%;
  padding: 2.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.opening-logo-img {
  width: 100%;
  max-width: 1480px;
  height: auto;
  display: block;
}

.opening-tagline-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #374151;
  text-transform: uppercase;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  line-height: 1.8;
  max-width: 1080px;
}

.down-triangle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.down-triangle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  outline: none;
  display: inline-block;
  text-decoration: none;
}

.triangle-down-shape {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 28px solid #374151;
  transition: transform 0.25s ease, border-top-color 0.25s ease;
  animation: floatBounce 2.2s infinite ease-in-out;
}

.down-triangle-btn:hover .triangle-down-shape {
  border-top-color: #000000;
  transform: translateY(6px) scale(1.1);
}

@keyframes floatBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   Section 2: Page 2 — About Us
   -------------------------------------------------------------------------- */
.page2-about-section {
  min-height: 100vh;
  width: 100%;
  background-color: #FFFFFF;
  padding: 7rem 1.5rem 4rem 1.5rem;
  position: relative;
}

.page2-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.page2-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.page2-left-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page2-right-col {
  display: flex;
  flex-direction: column;
}

.page2-card {
  background-color: #FFFFFF;
  border: 1.5px solid #9CA3AF;
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page2-card:hover {
  border-color: #4B5563;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-title-grey {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #374151;
  text-transform: uppercase;
}

.grey-divider {
  width: 100%;
  height: 1px;
  background-color: #D1D5DB;
  margin: 1.25rem 0;
}

.card-text-grey {
  font-size: 0.98rem;
  color: #4B5563;
  line-height: 1.75;
}

.founder-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.founder-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #374151;
  text-transform: uppercase;
}

.founder-name {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.25rem;
}

.founder-subtitle {
  font-size: 0.92rem;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 1.25rem;
}

.founder-bio p {
  margin-bottom: 0.85rem;
}

.founder-photo-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame-grey {
  border: 1.5px solid #9CA3AF;
  border-radius: 10px;
  padding: 0.75rem;
  background-color: #FFFFFF;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.founder-img {
  width: 100%;
  max-width: 320px;
  border-radius: 6px;
  display: block;
}

.photo-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6B7280;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Section 3: Page 3 — Events & Poster Ekam 2026
   -------------------------------------------------------------------------- */
.page3-events-section {
  min-height: 100vh;
  width: 100%;
  background-color: #F9FAFB;
  padding: 7rem 1.5rem 5rem 1.5rem;
  position: relative;
}

.poster-featured-card {
  background: #FFFFFF;
  border: 1.5px solid #9CA3AF;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  max-width: 1100px;
  margin: 0 auto;
}

.poster-card-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

.poster-thumbnail-wrapper {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border: 1px solid #D1D5DB;
}

.poster-img-container {
  position: relative;
  overflow: hidden;
  display: block;
}

.poster-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.poster-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
}

.popup-icon {
  font-size: 2rem;
}

.poster-thumbnail-wrapper:hover .poster-hover-overlay {
  opacity: 1;
}

.poster-thumbnail-wrapper:hover .poster-thumbnail-img {
  transform: scale(1.04);
}

.event-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2563EB;
  background: #EFF6FF;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.event-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.event-venue {
  font-size: 0.92rem;
  color: #4B5563;
  margin-bottom: 1.5rem;
}

.event-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: #F9FAFB;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.meta-item i {
  font-size: 1.2rem;
  color: #374151;
  margin-top: 0.2rem;
}

.meta-item strong {
  display: block;
  font-size: 0.85rem;
  color: #1F2937;
}

.meta-item p {
  font-size: 0.85rem;
  color: #6B7280;
}

.event-desc-text {
  font-size: 0.92rem;
  color: #4B5563;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.poster-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-popup-trigger {
  background: #1F2937;
  color: #FFFFFF;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-popup-trigger:hover {
  background: #000000;
  transform: translateY(-2px);
}

.btn-poster-dl {
  background: transparent;
  color: #374151;
  border: 1.5px solid #9CA3AF;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-poster-dl:hover {
  border-color: #1F2937;
  color: #000000;
  background: #F3F4F6;
}

/* --------------------------------------------------------------------------
   Full Poster Lightbox Popup Modal
   -------------------------------------------------------------------------- */
.poster-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.poster-modal-dialog {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 7px;
  max-width: 90vw;
  width: auto;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #D1D5DB;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background: #F3F4F6;
  transform: scale(1.1);
}

.modal-header-bar {
  display: none;
}

.modal-body-scroll {
  padding: 0;
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  border-radius: 6px;
}

.modal-poster-full-img {
  max-width: 88vw;
  width: auto;
  height: auto;
  max-height: 78vh;
  border-radius: 6px;
  display: block;
}

.modal-footer-bar {
  margin-top: 7px;
  padding-bottom: 2px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Coming Soon Sections (Media & Awards)
   -------------------------------------------------------------------------- */
.coming-soon-section {
  min-height: 100vh;
  width: 100%;
  background-color: #FFFFFF;
  padding: 9rem 1.5rem 5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  border: 1.5px solid #9CA3AF;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.coming-soon-icon {
  font-size: 3.5rem;
  color: #4B5563;
  margin-bottom: 1.25rem;
}

.coming-soon-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #2563EB;
  background: #EFF6FF;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}

.coming-soon-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
}

.coming-soon-desc {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Contact Page Section
   -------------------------------------------------------------------------- */
.contact-page-section {
  min-height: 100vh;
  width: 100%;
  background-color: #FFFFFF;
  padding: 7rem 1.5rem 5rem 1.5rem;
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  max-width: 1150px;
  margin: 0 auto;
}

.contact-info-box {
  background: #FFFFFF;
  border: 1.5px solid #9CA3AF;
  border-radius: 16px;
  padding: 2.5rem;
}

.info-box-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.info-box-desc {
  font-size: 0.9rem;
  color: #6B7280;
  margin-bottom: 2rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #374151;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: #1F2937;
  margin-bottom: 0.2rem;
}

.contact-item p {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.5;
}

.contact-form-box {
  background: #FFFFFF;
  border: 1.5px solid #9CA3AF;
  border-radius: 16px;
  padding: 2.5rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.field-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1F2937;
}

.field-input:focus {
  outline: none;
  border-color: #1F2937;
}

.textarea-input {
  min-height: 120px;
  resize: vertical;
}

.submit-btn-primary {
  width: 100%;
  padding: 0.95rem;
  background: #1F2937;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.25s ease;
}

.submit-btn-primary:hover {
  background: #000000;
}

/* Mobile Brand Logo (Left on Mobile) */
.mobile-brand-logo {
  display: none;
  text-decoration: none;
}

.mobile-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.offcanvas-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 1.5rem;
  width: 100%;
}

.offcanvas-logo {
  height: 28px;
  width: auto;
}

.offcanvas-close-btn {
  background: #F3F4F6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background 0.2s ease;
}

.offcanvas-close-btn:hover {
  background: #E5E7EB;
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .mission-vision-grid, .page2-main-grid, .poster-card-grid, .contact-grid-container {
    grid-template-columns: 1fr;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .opening-header {
    padding: 1.25rem 0;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }

  .header-container {
    justify-content: space-between !important;
    padding: 0 1.25rem;
  }

  .mobile-brand-logo {
    display: flex;
    align-items: center;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    font-size: 1.25rem;
    color: #1F2937;
    cursor: pointer;
  }

  /* Creative Off-Canvas Drawer */
  .opening-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1000;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.75rem 1.5rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .opening-nav.offcanvas-open {
    transform: translateX(0);
  }

  .offcanvas-header {
    display: flex !important;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1F2937;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F3F4F6;
  }

  .page2-card, .poster-featured-card, .contact-info-box, .contact-form-box {
    padding: 1.5rem;
  }
}
