/* CosmoCon'25 - Main Stylesheet */

/* Typography imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@500;600;700;800&family=Oxanium:wght@400;500;600;700&family=Exo+2:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make all elements inherit the body font by default */
*,
*::before,
*::after {
  font-family: inherit;
}

body {
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar Styles */
.navbar {
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #4a148c;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #bb86fc;
  text-decoration: none;
  text-shadow: 0 0 10px #bb86fc;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: #bb86fc;
  text-shadow: 0 0 8px #bb86fc;
}

.register-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
  font-weight: 700;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #bb86fc;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 4rem 20px;
  border-bottom: 2px solid #4a148c; /* Purple edge at bottom of hero to match nav/footer */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #bb86fc;
  text-shadow: 0 0 20px #bb86fc;
  animation: 1s ease-in-out infinite alternate;
  font-family: 'Orbitron', 'Oxanium', 'Exo 2', sans-serif;
  letter-spacing: 0.5px;
}

/* Primary headings/titles use Orbitron */
h1 {
  font-family: 'Orbitron', 'Oxanium', 'Exo 2', sans-serif;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Section Styles */
section {
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 0;
}

section > * {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #bb86fc;
  text-shadow: 0 0 15px #bb86fc;
  font-family: 'Orbitron', 'Oxanium', 'Exo 2', sans-serif;
  letter-spacing: 0.5px;
}

/* Sub-headings use Oxanium/Exo 2 */
h2,
h3,
.logo-item h3,
.module-card h3,
.footer h3 {
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
}

/* All headings use Oxanium for consistent sub-heading style */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.nav-logo,
.module-card h3,
.footer h3,
.logo-item h3 {
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.module-card {
  background: rgba(187, 134, 252, 0.1);
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid #4a148c;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 280px; /* ensure consistent card height */
}

.module-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(187, 134, 252, 0.3);
  border-color: #bb86fc;
}

.module-card h3 {
  color: #bb86fc;
  margin-bottom: 1.25rem; /* more space below title */
  font-size: 1.5rem;
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
  letter-spacing: 0.3px;
}

.module-card p {
  margin-bottom: 1.25rem; /* add space below description */
  line-height: 1.8; /* improve readability */
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Align Details button to bottom across all module cards */
.modules-grid .module-card {
  display: flex;
  flex-direction: column;
}

.module-card .cta-button {
  margin-top: auto; /* pushes button to bottom */
  align-self: center; /* keeps it centered horizontally */
}

/* Organizers & Sponsors */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.logo-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid rgba(187, 134, 252, 0.3);
  transition: all 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.05);
  border-color: #bb86fc;
}

.logo-item img {
  max-width: 150px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Event Details Page */
.event-header {
  text-align: center;
  padding: 3rem 0;
}

.event-header h1 {
  font-size: 3rem;
  color: #bb86fc;
  text-shadow: 0 0 20px #bb86fc;
  margin-bottom: 1rem;
  font-family: 'Orbitron', 'Oxanium', 'Exo 2', sans-serif;
  letter-spacing: 0.5px;
}

.event-details {
  max-width: 900px;
  margin: 0 auto;
}

.detail-section {
  background: rgba(187, 134, 252, 0.1);
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid #4a148c;
  margin-bottom: 2rem;
}

.detail-section h2 {
  color: #bb86fc;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
  letter-spacing: 0.3px;
}

.detail-section p, .detail-section ul {
  font-size: 1.1rem;
  line-height: 1.8;
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.detail-section ul {
  list-style-position: inside;
  margin-left: 1rem;
}

.detail-section li {
  margin-bottom: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-card {
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #bb86fc;
  text-align: center;
}

/* Optional: info-card numbers/text consistency */
.info-card h3 {
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
}

.info-card p {
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cta-section {
  text-align: center;
  padding: 3rem 0;
}

.cta-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 3rem;
  border: none;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
  font-weight: 700;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

/* Explore buttons using h4 tags */
h4.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 1rem 3rem;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
}

h4.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

/* Footer Styles */
.footer {
  background: rgba(0, 0, 0, 0.95);
  padding: 2rem 0;
  border-top: 2px solid #4a148c;
  margin-top: 0; /* previously 4rem created a gap */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer h3 {
  color: #bb86fc;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: 'Oxanium', 'Exo 2', 'Orbitron', sans-serif;
  letter-spacing: 0.3px;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-item a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-item a:hover {
  color: #bb86fc;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(187, 134, 252, 0.3);
  color: #888;
}

/* Schedule tables */
.table-scroll {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
}

.schedule-table th,
.schedule-table td {
  border: 1px solid rgba(187, 134, 252, 0.3);
  padding: 0.85rem 1rem;
  text-align: left;
}

.schedule-table thead th {
  background: rgba(187, 134, 252, 0.15);
  color: #bb86fc;
}

.schedule-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.schedule-table tbody tr:hover {
  background: rgba(187, 134, 252, 0.08);
}

/* Tighten detail sections for schedule */
.detail-section h2 {
  margin-bottom: 0.75rem;
}

.detail-section {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .event-header h1 {
    font-size: 2rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .footer-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav-logo {
    font-size: 1.4rem;
  }
}

/* Optional: ensure last section doesn't add extra space before footer */
section:last-of-type {
  padding-bottom: 2rem; /* reduce bottom padding if needed */
}