/* Base Styles */
:root {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --accent-color: #404040;
  --highlight-color: #ffffff;
  --spacing-unit: 20px;
  --transition-speed: 0.3s;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Madefor", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.02em;
  display: block;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-unit);
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 22px;
  text-transform: uppercase;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: var(--spacing-unit);
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* Layout */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 100;
  background-color: rgba(35, 35, 35, 0.8);
  backdrop-filter: blur(5px);
}

.logo-link {
  text-decoration: none;
  color: var(--text-color);
}

.logo-link:hover {
  opacity: 0.9;
}

.logo {
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

nav ul {
  display: flex;
}

nav li {
  margin-left: 25px;
}

nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  font-weight: 300;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--highlight-color);
  transition: width var(--transition-speed);
}

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

main {
  position: relative;
  width: 100%;
}

.section {
  min-height: calc(100vh - 180px);
  display: none;
  padding-top: 80px;
  padding-bottom: 40px;
  width: 100%;
  position: relative;
}

.section.active {
  display: block;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 60px;
  padding-left: var(--spacing-unit);
  padding-right: var(--spacing-unit);
  padding-bottom: 0;
  background-color: #1a1a1a;
  border-radius: 2px;
}

/* Home Section */
#home {
  position: relative;
  height: 100vh;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 0;
}

.poster-background {
  position: absolute;
  top: 0;
  height: 100%;
  max-width: 2000px;
  width: 100%;
  background-image: url('images/mortal-ai-bg.jpg');
  background-size: cover;
  background-position: center center;
  filter: grayscale(30%) brightness(0.9);
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.overlay-text {
  position: absolute;
  bottom: 60px;
  left: 30px;
  max-width: 500px;
}

.overlay-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.overlay-text p {
  margin-bottom: 10px;
}

.overlay-text p a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.overlay-text p a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Events Section */
.event {
  margin-bottom: 60px;
  position: relative;
  padding-left: 20px;
}

.event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 35px; /* Start below the toggle button */
  width: 1px;
  height: calc(100% - 35px);
  background-color: var(--accent-color);
}

.event-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
}

.event-toggle {
  position: absolute;
  left: -35px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 0;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  outline: none;
  z-index: 2;
  content: '-';  /* Default state is minus */
}

.event-toggle::before {
  content: '(';
  position: absolute;
  left: -3px;
}

.event-toggle::after {
  content: ')';
  position: absolute;
  right: -3px;
}

.event-toggle:hover {
  color: var(--highlight-color);
}

.event.collapsed .event-toggle {
  content: '+';
}

.event-date-place {
  font-size: 12px;
  color: #888;
  margin-right: 15px;
  min-width: 150px;
  letter-spacing: 0.1em;
  position: relative;
}

.event h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.event-content {
  transition: max-height 0.5s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 2000px; /* adjusted to accommodate all content */
  opacity: 1;
}

.event.collapsed .event-content {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.event-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.event-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 30px 0;
}

.event-left-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-right-column {
  flex: 1;
  min-width: 300px;
}

.event-image {
  width: 100%;
  height: 0;
  padding-bottom: 177.78%; /* 9:16 aspect ratio */
  background-image: url('images/mortal-ai-poster.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-image::after {
  content: '';
  display: none;
}

.event-video {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.event-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

/* Remove the old video placeholder styles */
.video-placeholder {
  display: none;
}

.team {
  margin-top: 0;
}

.team h4 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team ul li {
  margin-bottom: 10px;
}

.role {
  color: #888;
  display: inline-block;
  width: 220px;
}

/* About Section */
.about-text {
  max-width: 700px;
}

.about-text h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: #fff;
}

/* Contact Section */
.contact-info {
  margin-top: 40px;
}

.contact-info div {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.label {
  display: inline-block;
  width: 80px;
  color: #888;
}

/* Footer */
footer {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 1px solid var(--accent-color);
  background-color: var(--bg-color);
  width: 100%;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.footer-content p {
  margin-bottom: 0;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin: 0;
}

.social-icons a {
  color: #666;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--text-color);
  opacity: 1;
}

/* Media Queries */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav li {
    margin: 5px 10px;
  }
  
  .section {
    padding-top: 120px;
  }
  
  .overlay-text {
    left: 20px;
    right: 20px;
  }
  
  .event-columns {
    flex-direction: column;
    gap: 30px;
  }
  
  .event-image {
    padding-bottom: 75%; /* 4:3 aspect ratio on mobile for better visibility */
  }
  
  .role {
    width: 180px;
  }
}

@media (max-width: 576px) {
  .role {
    width: 100%;
    display: block;
    margin-bottom: 3px;
  }
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 26, 26, 0.95);
  padding: 15px var(--spacing-unit);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-notice.hidden {
  display: none;
}

.cookie-notice p {
  margin: 0;
  font-size: 14px;
  color: #fff;
  opacity: 0.8;
}

.cookie-notice button {
  padding: 8px 16px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.cookie-notice button:hover {
  opacity: 0.9;
} 