/* ===== VARIABLES ===== */
:root {
  --primary: #8d3594;
  --secondary: #20356b;
  --accent: #febe11;
  --dark-bg: #1b253b;
  --light-bg: #f5f6fa;
  --white: #ffffff;
  --nav-height: 72px;
  /* Animated gradient positions */
  --4-x-position: 20%;
  --4-y-position: 80%;
  --5-x-position: 80%;
  --5-y-position: 20%;
}

@property --4-x-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}
@property --4-y-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 80%;
}
@property --5-x-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 80%;
}
@property --5-y-position {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Google Sans Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  color: #333;
  overflow-x: hidden;
}

.anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ===== NAVBAR ===== */
#mainNav {
  padding: 14px 0;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
  background-color: transparent;
}

#mainNav.scrolled {
  background-color: var(--secondary) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#mainNav .navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--accent);
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--accent);
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  background:
    radial-gradient(
      100% 100% at var(--4-x-position) var(--4-y-position),
      #8d3594 0%,
      transparent
    ),
    radial-gradient(
      100% 100% at var(--5-x-position) var(--5-y-position),
      #20356b 0%,
      transparent
    ),
    #1b253b;
  animation-name: heroGradient;
  animation-iteration-count: infinite;
  animation-duration: 30s;
  transition-timing-function: ease-in-out;
}

@keyframes heroGradient {
  25% {
    --4-x-position: 15%;
    --4-y-position: 15%;
    --5-x-position: 85%;
    --5-y-position: 80%;
  }
  50% {
    --4-x-position: 80%;
    --4-y-position: 15%;
    --5-x-position: 15%;
    --5-y-position: 85%;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-theme {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--accent);
  font-weight: 600;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.hero-meta i {
  margin-right: 6px;
  color: var(--accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  text-decoration: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ===== BUTTONS ===== */
.btn-accent {
  background-color: var(--accent);
  color: #222;
  border: none;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 50px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-accent:hover {
  background-color: #e5ab00;
  color: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(254, 190, 17, 0.35);
}

.btn-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.btn-social:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #222;
}

/* ===== SECTION STYLES ===== */
.section-white,
.section-light,
.section-dark,
.section-purple {
  padding: 100px 0;
}

.section-white {
  background: var(--white);
}

.section-light {
  background: var(--light-bg);
}

.section-dark {
  background: var(--secondary);
  color: var(--white);
}

.section-purple {
  background: linear-gradient(135deg, var(--primary) 0%, #6a1b73 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--secondary);
}

.section-dark .section-title,
.section-purple .section-title {
  color: var(--white);
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

.underline-light {
  background: var(--accent);
}

/* ===== OBJECTIVE CARDS ===== */
.objective-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: transform 0.2s;
}

.objective-card:hover {
  transform: translateY(-4px);
}

.objective-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--primary);
}

.timeline-content h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== SUBTHEME CARDS ===== */
.subtheme-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.subtheme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(141, 53, 148, 0.12);
  border-color: var(--primary);
}

.subtheme-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.subtheme-card h6 {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ===== GUIDELINES BOX ===== */
.guidelines-box {
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.guidelines-box ul {
  padding-left: 18px;
}

.guidelines-box li {
  margin-bottom: 8px;
}

.cfp-guidelines-list {
  padding-left: 18px;
  list-style: none;
}

.cfp-guidelines-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.cfp-guidelines-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.85rem;
  top: 4px;
}

/* ===== SPEAKER CARDS ===== */
.speaker-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 16px;
  background: var(--light-bg);
  transition: transform 0.2s;
}

.speaker-card:hover {
  transform: translateY(-4px);
}

.speaker-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.speaker-photo.invited {
  width: 100px;
  height: 100px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--secondary), #3a5ab5);
}

.speaker-card.keynote {
  border-bottom: 4px solid var(--accent);
}

.speaker-badge {
  display: inline-block;
  background: var(--accent);
  color: #222;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.speaker-badge.badge-invited {
  background: var(--secondary);
  color: #fff;
}

/* ===== PROGRAMME ===== */
#programme .nav-pills .nav-link {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  margin: 0 6px;
  font-weight: 600;
  padding: 10px 24px;
}

#programme .nav-pills .nav-link.active {
  background: var(--accent);
  color: #222;
}

.programme-table {
  --bs-table-bg: rgba(255, 255, 255, 0.05);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.programme-table thead {
  background: rgba(255, 255, 255, 0.1);
}

.programme-table th {
  font-weight: 600;
  border: none;
  color: var(--accent);
}

.programme-table td {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ===== AWARD CARDS ===== */
.award-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--light-bg);
  border-bottom: 4px solid var(--accent);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  height: 100%;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.award-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.award-card h4 {
  color: var(--secondary);
  margin-bottom: 12px;
}

/* ===== COMMITTEE TABLE ===== */
.committee-table th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
}

/* ===== REGISTRATION TABLE ===== */
.registration-table {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.registration-table thead {
  background: rgba(255, 255, 255, 0.15);
}

.registration-table th {
  color: var(--accent);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.15);
}

.registration-table td {
  border-color: rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.registration-table .fee-free {
  background: rgba(254, 190, 17, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ===== VENUE ===== */
.venue-details li {
  padding: 8px 0;
  font-size: 1rem;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ===== ATTRACTION CARDS ===== */
.attraction-card {
  text-align: center;
  border-radius: 16px;
  background: var(--light-bg);
  height: 100%;
  transition: transform 0.2s;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.attraction-card:hover {
  transform: translateY(-4px);
}

.attraction-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.attraction-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.attraction-card:hover .attraction-img img {
  transform: scale(1.05);
}

.attraction-body {
  padding: 16px 12px;
}

.attraction-body h5 {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--secondary);
}

/* ===== FAQ ===== */
.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-button {
  font-weight: 600;
  padding: 18px 24px;
  color: var(--secondary);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(141, 53, 148, 0.25);
}

/* ===== CONTACT ===== */
.contact-card {
  padding: 32px 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-heading {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 40px 0 20px;
}

.footer-logo-wrap {
  display: inline-block;
}

.footer-logo {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.sponsor-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.sponsor-placeholder {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  text-align: center;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.2s;
  box-shadow: 0 4px 15px rgba(141, 53, 148, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  color: #222;
  transform: translateY(-3px);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  #mainNav {
    background-color: var(--secondary) !important;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .section-white,
  .section-light,
  .section-dark,
  .section-purple {
    padding: 70px 0;
  }

  .timeline {
    padding-left: 30px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-theme {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn-accent {
    padding: 10px 28px;
    font-size: 0.95rem;
  }
}
