:root {
    color-scheme: light dark;
    --color-accent: #4a9eff;
    --color-moon: #f4f1de;
    --color-sun: #ffb627;
    --color-eclipse: #8b5cf6;
    --color-launch: #ff4757;

    --page-bg: #f4f1de;
    --page-text: #121823;
    --section-bg: rgba(7, 11, 22, 0.98);
    --section-text: #e7e9ef;
    --header-bg: rgba(10, 16, 34, 0.96);
    --panel-bg: rgba(6, 10, 29, 1);
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --shadow: rgba(0, 0, 0, 0.18);
    --nav-link: #fff;
    --nav-link-hover-bg: rgba(74, 158, 255, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #050812;
    --page-text: #f4f4f4;
    --section-bg: #090f1f;
    --section-text: #f4f4f4;
    --header-bg: rgba(0, 0, 12, 0.92);
    --panel-bg: rgba(6, 10, 29, 1);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.5);
    --nav-link: #f4f4f4;
    --nav-link-hover-bg: rgba(74, 158, 255, 0.22);
  }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem 1rem;
  background: rgba(26, 26, 46, 0.95);
  color: white;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  z-index: 2000;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Header styling */
#header-main {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}

.logo-link {
  padding: 0;
  border-radius: 50%;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

#navigation-main {
  display: flex;
  gap: 2rem;
  align-items: center;
}

button.nav-link,
.dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--nav-link);
  font: inherit;
  font-weight: 700;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  padding: 0.75rem 0;
}

.dropdown-toggle,
button.nav-link {
  color: var(--nav-link);
}

.dropdown-toggle:hover,
button.nav-link:hover,
.nav-link:hover {
  color: white;
  background-color: var(--nav-link-hover-bg);
}

.mobile-menu-toggle,
.mobile-menu-close {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

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

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
}

.nav-link:hover,
button.nav-link:hover,
.dropdown-toggle:hover {
  color: white;
  background-color: rgba(74, 158, 255, 0.18);
}

button.nav-link {
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
}

/* Dropdown styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.98);
  min-width: 250px;
  box-shadow: 0px 8px 24px 0px rgba(0,0,0,0.3);
  z-index: 1;
  border-radius: 6px;
  margin-top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-content a,
.dropdown-content .sub-links a,
.dropdown-content .sub-sub-links a {
  color: #f4f4f4;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  margin: 0;
}

/* Keep dropdown open when hovering over it */
.dropdown:hover .dropdown-content,
.dropdown .dropdown-content:hover {
  display: block;
}

/* Extend hover area to include gap */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

/* Nested dropdown */
.sub-links {
  padding-left: 16px;
  background-color: rgba(20, 20, 20, 0.5);
}

.sub-links a {
  padding-left: 28px;
  font-size: 0.95rem;
}

.sub-sub-links {
  padding-left: 16px;
  background-color: rgba(10, 10, 10, 0.5);
}

.sub-sub-links a {
  padding-left: 44px;
  font-size: 0.9rem;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--section-bg);
  color: var(--section-text);
  scroll-margin-top: 80px;
}

/* CTA section needs extra top padding for fixed header */
#section-cta {
  padding-top: 6rem;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.cta-container h1 {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}

.cta-container h2 {
  text-align: center;
}

.cta-img {
  width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

#section-about {
  flex-direction: column;
}

#section-about .content-wrapper {
  text-align: center;
}

#section-about article {
  margin-top: 2rem;
}

#section-about article p {
  margin: 1rem 0;
}

#section-about article hr {
  border: none;
  border-top: 1px solid rgba(134, 145, 156, 0.3);
  margin: 1.5rem auto;
  width: 50%;
}

.section-heading, .heading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-subheading, .subheading {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.session-container {
  margin-top: 2rem;
}

.session-container p {
  margin-bottom: 1rem;
  text-align: center;
}

.subheading a, p a {
  color: inherit;
  text-decoration: underline;
}

.subheading a:hover, p a:hover {
  color: white;
}

.image-group {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-evenly;
  margin: 2rem 0;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.image-container {
  width: 30%;
  text-align: center;
}

.image-container .image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.image-container .img-link:hover .image {
  transform: scale(1.05);
}

.image-container p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-light);
}

/* Project sections styling */
#section-projects {
  flex-direction: column;
}

.project-section {
  margin: 2rem 0;
}

.project-subsection {
  margin: 2rem 0;
}

/* ============================================ */
/* CALENDAR SECTION STYLES */
/* ============================================ */

#section-calendar {
  background: linear-gradient(180deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
}

.calendar-wrapper {
  width: 100%;
}

/* Calendar Header Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Calendar Controls */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 1s ease 0.2s backwards;
}

.month-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-btn {
  background: var(--color-accent);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-btn:hover {
  background: #3a8eef;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
}

.current-month {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  min-width: 250px;
  text-align: center;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.view-btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.view-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.15);
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease 0.4s backwards;
}

.day-header {
  text-align: center;
  font-weight: 600;
  color: var(--color-accent);
  padding: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-day {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  min-height: 120px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 158, 255, 0.2);
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.today {
  border: 2px solid var(--color-accent);
  background: rgba(74, 158, 255, 0.1);
}

.day-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.moon-phase {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  text-align: center;
}

.event-indicator {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-indicator.eclipse {
  background: rgba(139, 92, 246, 0.3);
  border-left: 3px solid var(--color-eclipse);
}

.event-indicator.meteor {
  background: rgba(255, 182, 39, 0.3);
  border-left: 3px solid var(--color-sun);
}

.event-indicator.supermoon {
  background: rgba(244, 241, 222, 0.2);
  border-left: 3px solid var(--color-moon);
}

.event-indicator.launch {
  background: rgba(255, 71, 87, 0.3);
  border-left: 3px solid var(--color-launch);
}

/* Events Sidebar */
.events-sidebar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 1s ease 0.6s backwards;
}

.events-heading {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-accent);
  transition: all 0.3s;
  cursor: pointer;
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.event-card.eclipse {
  border-left-color: var(--color-eclipse);
}

.event-card.meteor {
  border-left-color: var(--color-sun);
}

.event-card.supermoon {
  border-left-color: var(--color-moon);
}

.event-card.launch {
  border-left-color: var(--color-launch);
}

.event-date {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.event-description {
  font-size: 0.9rem;
  color: var(--color-light);
  line-height: 1.5;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  transition: all 0.3s;
}

.export-btn:hover {
  background: #3a8eef;
  box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
  transform: translateY(-2px);
}

.watch-btn {
  background: var(--color-launch);
}

.watch-btn:hover {
  background: #e63946;
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  color: white;
}

.close-modal {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

  .event-details-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .event-details-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .event-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .event-details-card .event-title {
    font-size: 1.15rem;
    color: white;
    font-weight: 700;
  }

  .event-details-card .event-date {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-top: 0.3rem;
  }

  .event-details-card .event-description {
    font-size: 0.95rem;
    color: var(--color-light);
    line-height: 1.6;
  }

  .event-details-card .event-location {
    font-size: 0.9rem;
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .details-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.3s;
  }

  .details-btn:hover {
    background: rgba(255, 71, 87, 1);
    transform: translateY(-1px);
  }

  .event-details-card.eclipse {
    border-left: 4px solid var(--color-eclipse);
  }

  .event-details-card.meteor {
    border-left: 4px solid var(--color-sun);
  }

  .event-details-card.supermoon {
    border-left: 4px solid var(--color-moon);
  }

  .event-details-card.launch {
    border-left: 4px solid var(--color-launch);
  }


.export-option i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.export-option span {
  display: block;
  color: white;
  font-weight: 600;
}

/* Legend */
.legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1rem;
  animation: fadeIn 1s ease 0.8s backwards;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.eclipse {
  background: var(--color-eclipse);
}

.legend-color.meteor {
  background: var(--color-sun);
}

.legend-color.supermoon {
  background: var(--color-moon);
}

.legend-color.launch {
  background: var(--color-launch);
}

/* ============================================ */
/* END CALENDAR SECTION STYLES */
/* ============================================ */

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--color-light);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-light);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(100, 149, 237, 0.3);
}

.submit-btn {
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.submit-btn:hover {
  background: #6495ed;
  transform: translateY(-2px);
}

/* Footer styling */
footer {
  background: var(--header-bg);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  color: var(--section-text);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-weight: bold;
  font-size: 1.1rem;
  color: white;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--color-light);
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

.copyright-container {
  text-align: right;
  font-size: 0.9rem;
}

/* ============================================ */
/* MEDIA QUERIES FOR MOBILE RESPONSIVENESS */
/* ============================================ */

/* Tablet and smaller desktop (1024px and below) */
@media screen and (max-width: 1024px) {
  .cta-container h1 {
    font-size: 2.5rem;
  }
  
  .cta-img {
    width: 60%;
  }
  
  .image-container {
    width: 45%;
  }
  
  section {
    padding: 3rem 1.5rem;
  }

  .calendar-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .current-month {
    min-width: auto;
  }
}

/* Tablets (768px and below) */
@media screen and (max-width: 768px) {
  #header-main {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }
  
  #navigation-main {
    gap: 1.5rem;
    font-size: 0.9rem;
  }
  
  .cta-container h1 {
    font-size: 2.2rem;
  }
  
  .cta-container h2 {
    font-size: 1.2rem;
  }
  
  .cta-img {
    width: 70%;
  }
  
  .section-heading, .heading {
    font-size: 2rem;
  }
  
  .section-subheading, .subheading {
    font-size: 1.5rem;
  }
  
  .image-container {
    width: 48%;
  }
  
  section {
    padding: 2.5rem 1.5rem;
    scroll-margin-top: 70px;
  }

  .calendar-grid {
    gap: 0.5rem;
  }

  .calendar-day {
    min-height: 80px;
    padding: 0.5rem;
  }

  .day-number {
    font-size: 1rem;
  }

  .moon-phase {
    font-size: 1.2rem;
  }

  .export-options {
    grid-template-columns: 1fr;
  }
}

/* Mobile landscape and small tablets (700px and below) */
@media screen and (max-width: 700px) {
  .cta-container h1 {
    font-size: 1.9rem;
  }
  
  .cta-img {
    width: 80%;
  }
  
  .section-heading, .heading {
    font-size: 1.8rem;
  }
  
  .image-container {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .image-group {
    flex-direction: column;
    align-items: center;
  }
  
  #section-about article hr {
    width: 70%;
  }
}

/* Mobile devices (600px and below) */
@media screen and (max-width: 600px) {
  #header-main {
    padding: 0.8rem 1rem;
  }
  
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  
  #navigation-main {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: min(320px, 90%);
    max-width: 320px;
    height: auto;
    max-height: calc(100vh - 2rem);
    background: linear-gradient(180deg, var(--panel-bg) 0%, rgba(16, 24, 56, 0.98) 100%);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    padding: 4.25rem 1.5rem 1.5rem;
    gap: 1.25rem;
    transform-origin: top right;
    transform: scale(0.14);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease, clip-path 0.35s ease;
    box-shadow: -18px 0 56px rgba(0, 0, 0, 0.45);
    z-index: 1200;
    overflow-y: auto;
  }
  
  #navigation-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(74, 158, 255, 0.14), transparent 24%),
                radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.06), transparent 14%);
    pointer-events: none;
  }
  
  @keyframes starGrow {
    from {
      transform: scale(0.14);
      clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
      opacity: 0;
    }
    to {
      transform: scale(1);
      clip-path: inset(0);
      opacity: 1;
    }
  }

  #navigation-main.open {
    animation: starGrow 0.35s ease forwards;
    pointer-events: auto;
  }
  
  .mobile-menu-close {
    display: inline-flex;
    margin-bottom: 1rem;
    align-self: flex-end;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
  }
  
  .mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.14);
  }
  
  .nav-link {
    color: var(--nav-link);
    font-size: 1rem;
    padding: 0.75rem 0;
  }

  .logo-container a {
    width: 52px;
    height: 52px;
  }

  .logo-img {
    width: 100%;
    height: 100%;
  }

  #header-main {
    padding: 0.75rem 1rem;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }
  
  .dropdown-content {
    position: static;
    display: none;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 0;
    border-radius: 0;
    padding-left: 1rem;
  }
  
  .dropdown.open .dropdown-content {
    display: block;
  }
  
  .dropdown-content a {
    padding: 0.75rem 0;
  }
  
  .dropdown .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }
  
  .dropdown .nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.7rem;
    font-size: 0.9rem;
  }
  
  .dropdown.open > .nav-link::after {
    content: '\f106';
  }
  
  .dropdown:hover .dropdown-content,
  .dropdown .dropdown-content:hover {
    display: none;
  }
  
  #section-cta {
    padding-top: 5rem;
  }
  
  #section-cta {
    padding-top: 5rem;
  }
  
  .cta-container h1 {
    font-size: 1.7rem;
    padding: 0 1rem;
  }
  
  .cta-container h2 {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .cta-img {
    width: 90%;
  }
  
  .section-heading, .heading {
    font-size: 1.6rem;
  }
  
  .section-subheading, .subheading {
    font-size: 1.3rem;
  }
  
  section {
    padding: 2rem 1rem;
    min-height: auto;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .copyright-container {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }

  .calendar-controls {
    padding: 1rem;
  }

  .month-navigation {
    gap: 1rem;
  }

  .current-month {
    font-size: 1.4rem;
  }

  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Small mobile devices (480px and below) */
@media screen and (max-width: 480px) {
  #header-main {
    padding: 0.7rem 0.8rem;
  }
  
  .logo-container {
    font-size: 0.9rem;
  }
  
  #navigation-main {
    gap: 0.7rem;
    font-size: 0.75rem;
  }
  
  .nav-link {
    font-size: 0.75rem;
  }
  
  #section-cta {
    padding-top: 4.5rem;
  }
  
  .cta-container {
    gap: 1rem;
  }
  
  .cta-container h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .cta-container h2 {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .section-heading, .heading {
    font-size: 1.4rem;
  }
  
  .section-subheading, .subheading {
    font-size: 1.1rem;
  }
  
  section p, .session-container p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .sub-links a {
    padding-left: 20px;
    font-size: 0.85rem;
  }
  
  .sub-sub-links a {
    padding-left: 32px;
    font-size: 0.8rem;
  }
  
  footer {
    padding: 2rem 1rem;
  }
  
  .footer-heading {
    font-size: 1rem;
  }
  
  .social-links a {
    font-size: 1.3rem;
  }
  
  .copyright-container {
    font-size: 0.85rem;
  }

  .current-month {
    font-size: 1.2rem;
  }

  .calendar-day {
    min-height: 60px;
    padding: 0.3rem;
  }

  .event-indicator {
    font-size: 0.65rem;
  }
}

/* Very small mobile devices (360px and below) */
@media screen and (max-width: 360px) {
  #header-main {
    padding: 0.6rem;
  }
  
  #navigation-main {
    gap: 0.5rem;
    font-size: 0.7rem;
  }
  
  #section-cta {
    padding-top: 4rem;
  }
  
  .cta-container h1 {
    font-size: 1.3rem;
  }
  
  .cta-container h2 {
    font-size: 0.9rem;
  }
  
  .section-heading, .heading {
    font-size: 1.2rem;
  }
  
  .section-subheading, .subheading {
    font-size: 1rem;
  }
  
  section p, .session-container p {
    font-size: 0.9rem;
  }
  
  section {
    padding: 1.5rem 0.8rem;
  }

  .calendar-grid {
    gap: 0.3rem;
  }
}