/* ====================================
   VARIABLES & FONTS
   ==================================== */
:root {
  /* Primary Colors - Complementary color scheme */
  --color-primary: #3a7bd5;
  --color-primary-dark: #2a5f9e;
  --color-primary-light: #6998e6;
  
  --color-secondary: #d5843a;
  --color-secondary-dark: #aa6a2e;
  --color-secondary-light: #e7a965;
  
  /* Neutrals */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-background: #ffffff;
  --color-background-alt: #f7f9fc;
  
  /* Accents */
  --color-success: #4caf50;
  --color-warning: #ffb74d;
  --color-error: #e74c3c;
  
  /* Shadows & Effects */
  --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Glass effect */
  --glass-background: rgba(255, 255, 255, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
  
  /* Z-index layers */
  --z-base: 1;
  --z-above: 10;
  --z-modal: 100;
  --z-top: 1000;
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.p-xs {
  padding: var(--space-xs);
}

.p-sm {
  padding: var(--space-sm);
}

.p-md {
  padding: var(--space-md);
}

.p-lg {
  padding: var(--space-lg);
}

.p-xl {
  padding: var(--space-xl);
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes morphing {
  0% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.morph-animation {
  animation: morphing 8s infinite;
}

/* ====================================
   BUTTONS
   ==================================== */
.button {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: var(--z-base);
  border: none;
}

.button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: width var(--transition-medium);
  z-index: -1;
}

.button:hover:before {
  width: 100%;
}

.button.is-primary {
  background-color: var(--color-primary);
  color: white;
}

.button.is-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(58, 123, 213, 0.3);
}

.button.is-primary.is-outlined {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.button.is-primary.is-outlined:hover {
  background-color: var(--color-primary);
  color: white;
}

.button.is-rounded {
  border-radius: 2rem;
}

.button.is-light {
  background-color: white;
  color: var(--color-primary);
}

.button.is-light:hover {
  background-color: #f5f5f5;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.button.is-light.is-outlined {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.button.is-light.is-outlined:hover {
  background-color: white;
  color: var(--color-primary);
}

.button.is-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.button.is-fullwidth {
  width: 100%;
  display: block;
}

/* Hero Buttons Group */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-top);
  background-color: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  border-bottom: var(--glass-border);
}

.navbar {
  padding: 1rem 0;
  transition: padding var(--transition-medium);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.navbar-item {
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
}

.navbar-item:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}

.navbar-item:hover:after {
  width: 100%;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-end {
  margin-left: auto;
  display: flex;
}

.navbar-burger {
  display: none;
  cursor: pointer;
  height: 3.25rem;
  width: 3.25rem;
  position: relative;
}

.navbar-burger span {
  background-color: var(--color-text);
  display: block;
  height: 2px;
  left: calc(50% - 8px);
  position: absolute;
  transform-origin: center;
  transition: all var(--transition-fast);
  width: 16px;
}

.navbar-burger span:nth-child(1) {
  top: calc(50% - 6px);
}

.navbar-burger span:nth-child(2) {
  top: calc(50%);
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 6px);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media screen and (max-width: 1023px) {
  .navbar-burger {
    display: block;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-medium);
    padding: 1rem;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
  }
  
  .navbar-item {
    margin: 0.5rem 0;
  }
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  min-height: 100vh;
}

.hero-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 2rem;
  max-width: 700px;
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .button {
    margin-bottom: 1rem;
  }
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about-section {
  background-color: var(--color-background);
  padding: 5rem 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* ====================================
   PRODUCTS SECTION
   ==================================== */
.products-section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  position: relative;
}

.products-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.products-section .container {
  position: relative;
  z-index: 2;
}

.tabs {
  margin-bottom: 3rem;
}

.tabs ul {
  display: flex;
  justify-content: center;
  list-style: none;
  border-bottom: 1px solid #ddd;
}

.tabs li {
  margin: 0 1rem;
}

.tabs a {
  display: inline-block;
  padding: 1rem 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.tabs li.is-active a,
.tabs a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.card {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-content h3 {
  margin-top: 0;
}

.card-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.card-content .button {
  margin-top: auto;
  align-self: flex-start;
}

/* ====================================
   EVENTS SECTION
   ==================================== */
.events-section {
  background-color: var(--color-background-alt);
  padding: 5rem 1.5rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.event-date {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: -20px;
  right: 20px;
  z-index: 3;
  width: 70px;
  height: 70px;
  justify-content: center;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.event-date .year {
  font-size: 0.8rem;
}

.event-card .card-content {
  position: relative;
  padding-top: 2rem;
}

.event-card .title {
  margin-right: 80px;
}

.event-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.level {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level-left, .level-right {
  display: flex;
  align-items: center;
}

/* ====================================
   INSIGHTS SECTION
   ==================================== */
.insights-section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  position: relative;
}

.insights-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.insights-section .container {
  position: relative;
  z-index: 2;
}

.insight-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insight-card .button {
  margin-top: auto;
  align-self: flex-start;
}

/* ====================================
   PRESS SECTION
   ==================================== */
.press-section {
  background-color: var(--color-background);
  padding: 5rem 1.5rem;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  filter: grayscale(100%);
  transition: all var(--transition-medium);
}

.partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ====================================
   RESOURCES SECTION
   ==================================== */
.resources-section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  position: relative;
}

.resources-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  z-index: 1;
}

.resources-section .container {
  position: relative;
  z-index: 2;
}

.resource-card {
  background-color: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card .button {
  margin-top: auto;
  align-self: center;
}

/* ====================================
   CONTACT SECTION
   ==================================== */
.contact-section {
  background-color: var(--color-background-alt);
  padding: 5rem 1.5rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-item i {
  margin-right: 1rem;
  color: var(--color-primary);
}

.social-media {
  display: flex;
  gap: 1rem;
}

.social-link {
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.social-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}

.social-link:hover:after {
  width: 100%;
}

.contact-form-container {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.control {
  position: relative;
  width: 100%;
}

.input, .textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
  font-family: inherit;
  font-size: 1rem;
}

.input:focus, .textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox input {
  margin-right: 0.5rem;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background-color: var(--color-text);
  color: white;
  padding: 4rem 1.5rem 2rem;
}

.footer-about {
  margin-bottom: 1.5rem;
}

.footer-title {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--color-primary);
  bottom: -10px;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

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

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
}

.newsletter-form {
  margin-top: 1.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================================
   SUCCESS PAGE
   ==================================== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--color-success);
  margin-bottom: 2rem;
}

/* ====================================
   TERMS & PRIVACY PAGES
   ==================================== */
.privacy-page, .terms-page {
  padding-top: 100px; /* For fixed header */
}

.content-page {
  padding: 2rem 1.5rem 5rem;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.content-container h1 {
  margin-bottom: 2rem;
}

.content-container h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.content-container p {
  margin-bottom: 1.5rem;
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */
@media screen and (max-width: 1215px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media screen and (max-width: 1023px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 768px) {
  .columns.is-multiline {
    margin: 0;
  }
  
  .column {
    padding: 0.75rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .tabs ul {
    flex-direction: column;
    align-items: center;
  }
  
  .tabs li {
    margin: 0.5rem 0;
  }
  
  .event-card {
    margin-bottom: 2rem;
  }
  
  .contact-form-container {
    margin-top: 3rem;
  }
  
  .footer {
    padding: 3rem 1rem 1.5rem;
  }
  
  .footer-bottom .columns {
    flex-direction: column;
  }
  
  .footer-bottom .column.has-text-right {
    text-align: left !important;
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .button.is-medium {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .button {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .social-media, .social-links {
    flex-wrap: wrap;
  }
}