/* ====== VARIABLES ====== */
:root {
  /* Tetrad color scheme */
  --primary: #6a3de8;
  --primary-dark: #5b32d1;
  --primary-light: #8f6aff;
  --secondary: #e83d8e;
  --secondary-dark: #c33277;
  --secondary-light: #ff70b3;
  --tertiary: #3de8a1;
  --tertiary-dark: #32c389;
  --tertiary-light: #70ffbe;
  --quaternary: #e8a13d;
  --quaternary-dark: #c38932;
  --quaternary-light: #ffbe70;
  
  /* Neutral colors */
  --dark: #222235;
  --dark-gray: #444455;
  --medium-gray: #777788;
  --light-gray: #d1d1d8;
  --light: #f5f5fa;
  
  /* Neomorphism shadows */
  --shadow-light: rgba(255, 255, 255, 0.7);
  --shadow-dark: rgba(174, 174, 192, 0.25);
  --neomorph-radius: 15px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary), var(--tertiary-light));
  --gradient-quaternary: linear-gradient(135deg, var(--quaternary), var(--quaternary-light));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-gray));
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ====== BASE STYLES ====== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  transition: all var(--transition-fast);
}

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

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

/* ====== NEOMORPHIC ELEMENTS ====== */
.neomorphic-card {
  border-radius: var(--neomorph-radius);
  background: var(--light);
  box-shadow: 8px 8px 16px var(--shadow-dark), 
              -8px -8px 16px var(--shadow-light);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.neomorphic-card:hover {
  box-shadow: 10px 10px 20px var(--shadow-dark), 
              -10px -10px 20px var(--shadow-light);
  transform: translateY(-5px);
}

.neomorphic-button {
  border: none;
  border-radius: 30px;
  box-shadow: 5px 5px 10px var(--shadow-dark), 
              -5px -5px 10px var(--shadow-light);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.neomorphic-button:hover, .neomorphic-button:focus {
  box-shadow: 3px 3px 6px var(--shadow-dark), 
              -3px -3px 6px var(--shadow-light);
  transform: translateY(-2px);
}

.neomorphic-button:active {
  box-shadow: inset 2px 2px 5px var(--shadow-dark), 
              inset -2px -2px 5px var(--shadow-light);
  transform: translateY(0);
}

.neomorphic-input, .neomorphic-textarea, .neomorphic-select {
  border: none;
  border-radius: var(--neomorph-radius);
  background: var(--light);
  box-shadow: inset 3px 3px 6px var(--shadow-dark), 
              inset -3px -3px 6px var(--shadow-light);
  transition: all var(--transition-fast);
  padding: 12px 15px;
}

.neomorphic-input:focus, .neomorphic-textarea:focus, .neomorphic-select:focus {
  box-shadow: inset 2px 2px 4px var(--shadow-dark), 
              inset -2px -2px 4px var(--shadow-light), 
              0 0 0 3px rgba(106, 61, 232, 0.1);
}

/* ====== BUTTON STYLES ====== */
.button {
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.5rem;
  transition: all var(--transition-fast);
}

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

.button.is-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

.button.is-light:hover {
  background: var(--light-gray);
  color: var(--dark);
}

/* ====== LAYOUT COMPONENTS ====== */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--light);
}

.section:nth-child(odd) {
  background-color: #fafafe;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== HEADER & NAVIGATION ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.header.scrolled {
  padding: 5px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
  padding: 10px 0;
}

.navbar-item {
  font-weight: 600;
  margin: 0 10px;
  color: var(--dark);
  transition: all var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary);
}

.navbar-burger {
  color: var(--dark);
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero.is-fullheight-with-navbar {
  margin-top: 0;
}

.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

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

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.hero-content h1, .hero-content h2, .hero-content p {
  color: white !important;
}

.hero .title, .hero .subtitle {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ====== ABOUT SECTION ====== */
.about-section .image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ====== EVENTS SECTION ====== */
.events-section .event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.events-section .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 250px;
}

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

.events-section .card:hover .card-image img {
  transform: scale(1.1);
}

.events-section .event-highlights {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

.events-section .event-highlights li {
  margin-bottom: 0.5rem;
  position: relative;
}

.events-section .event-highlights li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: -1.2rem;
}

/* ====== BEHIND SCENES SECTION ====== */
.behind-scenes-section {
  color: white;
  position: relative;
}

.behind-scenes-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.7)
  );
  z-index: 1;
}

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

.behind-scenes-section .title {
  color: white;
}

/* ====== RESEARCH SECTION ====== */
.research-section .research-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.research-section .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 250px;
}

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

.research-section .card:hover .card-image img {
  transform: scale(1.1);
}

.research-section .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.research-section .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ====== RESOURCES SECTION ====== */
.resources-section .resource-card {
  height: 100%;
  padding: 2rem;
  transition: transform var(--transition-fast);
}

.resources-section .resource-card:hover {
  transform: translateY(-5px);
}

.resources-section .resource-card ul {
  padding-left: 1.5rem;
}

.resources-section .resource-card li {
  margin-bottom: 1rem;
}

.resources-section .resource-card a {
  font-weight: 600;
  transition: color var(--transition-fast);
}

.resources-section .resource-card a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ====== WEBINARS SECTION ====== */
.webinars-section .webinar-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.webinars-section .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 300px;
}

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

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

.webinars-section .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.webinars-section .content {
  flex-grow: 1;
}

/* ====== PROJECTS SECTION ====== */
.projects-section .project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.projects-section .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 250px;
}

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

.projects-section .project-card:hover .card-image img {
  transform: scale(1.1);
}

.projects-section .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.projects-section .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-section .tag {
  display: inline-block;
  padding: 0.35em 0.8em;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ====== FAQ SECTION ====== */
.faq-section .faq-item {
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast);
}

.faq-section .faq-item:hover {
  transform: translateY(-3px);
}

.faq-section .faq-item h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* ====== CONTACT SECTION ====== */
.contact-section {
  background-color: var(--light);
}

.contact-section .card {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section .label {
  color: var(--dark);
  font-weight: 600;
}

.contact-section .button {
  margin-top: 1.5rem;
}

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

.footer .title, .footer h4 {
  color: var(--light);
}

.footer p {
  color: var(--light-gray);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--tertiary-light);
  text-decoration: underline;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--light-gray);
  transition: color var(--transition-fast);
  margin-right: 15px;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--tertiary-light);
}

.footer hr {
  background-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

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

.success-card {
  max-width: 600px;
  width: 100%;
  padding: 3rem;
}

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

/* ====== PRIVACY & TERMS PAGES ====== */
.privacy-page, .terms-page {
  padding-top: 100px;
  min-height: 100vh;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

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

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

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 1023px) {
  .section {
    padding: 4rem 1rem;
  }

  .about-section .image-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero .title.is-1 {
    font-size: 2.5rem;
  }

  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }

  .events-section .event-card,
  .research-section .research-card,
  .webinars-section .webinar-card,
  .projects-section .project-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 1rem;
  }

  .hero .title.is-1 {
    font-size: 2rem;
  }

  .hero .subtitle.is-3 {
    font-size: 1.25rem;
  }

  .button.is-large {
    font-size: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}