@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&family=IBM+Plex+Serif:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #f7f7f7;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-main: #111111;
  --text-muted: #666666;
  --border-color: #dddddd;
  --border-hover: #aaaaaa;
  
  --accent-primary: #e63e00;
  --accent-secondary: #008fa3;
  /* Use the uploaded background image (placed at project root as `bg.png`) */
  --bg-texture: 'bg.png';
  
  --font-header: 'IBM Plex Serif', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
    /* textured site-wide background with a light color blend for readability
      Uses the `bg.png` file you added at the project root */
    background-image: linear-gradient(rgba(247,247,247,0.85), rgba(247,247,247,0.85)), url('bg.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* multiply blending so dark details of texture show subtly behind content */
    background-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: none;
  margin-bottom: 0.5rem;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

section {
  padding: 6rem 0;
}

/* Funky Card Style */
.card {
  border: 2px solid var(--border-color);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:nth-child(3n+1) { background: rgba(0, 255, 230, 0.85); }
.card:nth-child(3n+2) { background: rgba(255, 150, 255, 0.85); }
.card:nth-child(3n+3) { background: rgba(180, 255, 100, 0.85); }

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-6px) rotate(1.5deg);
  box-shadow: -4px 4px 0px var(--accent-secondary), 4px -4px 0px rgba(230, 62, 0, 0.5);
}

/* Buttons */
@keyframes funky-wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-2deg) scale(1.02); }
  75% { transform: rotate(2deg) scale(1.02); }
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-header);
  font-size: 1.25rem;
  color: var(--bg-color);
  background: var(--text-main);
  border: 1px solid var(--text-main);
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: funky-wobble 4s infinite ease-in-out;
}

.btn:hover {
  background: transparent;
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-color);
}

/* Header / Nav */
header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.header-logo-img {
  height: 90px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.1) sepia(0.2) hue-rotate(-5deg);
  border-radius: 4px;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero .label {
  color: var(--accent-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.hero-logo {
  max-width: 100%;
  width: 600px;
  height: auto;
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Session Cards */
.session-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.session-card .time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.session-card h3 {
  font-size: 2.5rem;
  line-height: 1;
}

.session-card .price {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.session-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.link-text {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-text::after {
  content: '→';
  transition: transform 0.2s ease;
}

.session-card:hover .link-text::after {
  transform: translateX(4px);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  color: var(--text-main);
  font-family: var(--font-body);
}

.form-group input:focus {
  outline: none;
  border-color: var(--text-main);
}

.ticket-option {
  cursor: pointer;
}

.ticket-option.selected {
  border-color: var(--accent-primary);
  border-width: 4px;
  transform: scale(1.02);
  box-shadow: 8px 8px 0 var(--accent-primary);
}

/* General Layout Blocks */
.content-block {
  background: rgba(255, 240, 0, 0.85);
  border: 2px solid var(--border-color);
  padding: 2rem;
  border-radius: 4px;
}

.content-block.with-poster {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .content-block.with-poster {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
}

.content-text {
  flex: 1;
}

.content-image {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster-img {
  width: 100%;
  max-width: 380px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: rotate(1.5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-img:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.poster2-img {
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transform: rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  z-index: 10;
}

.poster2-img:hover {
  transform: rotate(1deg) scale(1.04);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

footer h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin: 1.5rem 0;
}

/* Decorative Stickers */
@keyframes float-1 {
  0% { margin-top: 0px; margin-left: 0px; }
  50% { margin-top: -50px; margin-left: 40px; }
  100% { margin-top: 30px; margin-left: -20px; }
}
@keyframes float-2 {
  0% { margin-top: 0px; margin-left: 0px; }
  50% { margin-top: 40px; margin-left: -50px; }
  100% { margin-top: -30px; margin-left: 30px; }
}
@keyframes float-3 {
  0% { margin-top: 0px; margin-left: 0px; }
  50% { margin-top: 60px; margin-left: 60px; }
  100% { margin-top: -40px; margin-left: -20px; }
}

.sticker {
  position: absolute;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  box-shadow: 6px 6px 0 var(--accent-secondary);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.3;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  animation: float-1 20s infinite ease-in-out alternate;
}

.sticker:nth-child(even) {
  animation-name: float-2;
  animation-duration: 25s;
}

.sticker:nth-child(3n) {
  animation-name: float-3;
  animation-duration: 18s;
}

.sticker:hover {
  transform: scale(1.15) rotate(0deg) !important;
  opacity: 1;
  box-shadow: 10px 10px 0 var(--accent-primary);
  z-index: 50;
  border-color: var(--accent-primary);
  animation-play-state: paused;
}

/* Teaser Video Wrapper */
.video-wrapper {
  max-width: 900px;
  width: fit-content;
  margin: 0 auto;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 50px rgba(230, 62, 0, 0.3), 0 20px 40px rgba(0, 143, 163, 0.3), 10px 10px 0 var(--accent-secondary);
  overflow: hidden;
  transform: rotate(-1.5deg) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  position: relative;
  z-index: 10;
}

.video-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 0 70px rgba(230, 62, 0, 0.5), 0 30px 50px rgba(0, 143, 163, 0.5), 15px 15px 0 var(--accent-primary);
  border-color: var(--accent-primary);
}

.teaser-video {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: block;
  filter: contrast(1.05) saturate(1.1);
  background: #000;
}

/* Sticky Floating Logo */
.sticky-logo {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 80px;
  height: 80px;
  z-index: 999;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(2px 2px 0 var(--accent-primary));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body, .container {
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .header-logo-img {
    height: 60px;
  }
  
  .hero-logo {
    width: 90%;
  }
  
  /* Override inline heading sizes for mobile */
  h2[style] {
    font-size: 2.2rem !important;
  }
  h3[style] {
    font-size: 1.8rem !important;
  }
  
  /* Fix hardcoded inline flex layouts (Host blocks) */
  div[style*="display: flex"][style*="gap: 2rem"] {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }
  
  /* Fix DR OFRO Banner */
  div[style*="padding: 4rem 3rem"] {
    padding: 2rem 1.5rem !important;
    background-position: center !important;
  }
  div[style*="font-size: 5rem"] {
    font-size: 2.8rem !important;
    bottom: -20px !important;
    right: 10px !important;
  }
  
  /* Scale down stickers */
  .sticker {
    width: 60px !important;
    height: 60px !important;
    box-shadow: 3px 3px 0 var(--accent-secondary) !important;
  }
  
  .sticker:hover {
    box-shadow: 5px 5px 0 var(--accent-primary) !important;
  }
  
  /* Adjust grids for smaller phones */
  .grid {
    grid-template-columns: 1fr;
  }
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  .sticky-logo {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
}
