/* === VARIABLES === */
:root {
  /* Main colors - Complementary color scheme */
  --primary-color: #4a6fa5;
  --primary-dark: #3a5880;
  --primary-light: #6a8fc5;
  --secondary-color: #a56a4a;
  --secondary-dark: #8a5a3a;
  --secondary-light: #c58a6a;
  --accent-color: #4aa56a;
  --accent-dark: #3a8a5a;
  --accent-light: #6ac58a;

  /* UI Colors */
  --text-color: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a2332;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-radius: 20px;
  --glass-blur: 8px;

  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  --base-font-size: 1rem;
  --heading-line-height: 1.2;
  --body-line-height: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Dimensions */
  --navbar-height: 80px;
  --container-max-width: 1200px;
  --card-border-radius: 15px;
}

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

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

body {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  line-height: var(--body-line-height);
  color: var(--text-color);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: var(--heading-line-height);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

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

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

ul {
  list-style-type: none;
}

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

/* === UTILITIES === */
.is-hidden {
  display: none !important;
}

/* === GLASSMORPHISM EFFECT === */
.glassmorphism-card {
  background: var(--glass-bg);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  padding: var(--spacing-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  margin-bottom: var(--spacing-md);
}

.glassmorphism-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.45);
}

/* === HEADER & NAVIGATION === */
.navbar {
  transition: background-color var(--transition-normal);
  height: var(--navbar-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.is-transparent {
  background-color: transparent;
  box-shadow: none;
}

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
}

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

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-burger {
  height: 3.25rem;
  width: 3.25rem;
}

.navbar-burger span {
  height: 2px;
  width: 20px;
  background-color: var(--primary-color);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7);
  z-index: 0;
}

.hero-body {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1, 
.hero h2, 
.hero p {
  color: var(--text-white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
}

.buttons.is-centered {
  justify-content: center;
}

/* === MISSION SECTION === */
#mission {
  padding: var(--spacing-xl) 0;
}

#mission .title {
  color: var(--primary-color);
}

#mission .image-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: var(--card-border-radius);
  margin-bottom: var(--spacing-md);
}

#mission .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === WORKSHOPS SECTION === */
#workshops {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.workshop-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.workshop-card:hover {
  transform: translateY(-10px);
}

.workshop-card .card-image {
  width: 100%;
}

.workshop-card .image-container {
  height: 250px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

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

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

.workshop-card .card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--spacing-md);
}

.workshop-details {
  color: var(--text-light);
  font-style: italic;
  margin: var(--spacing-sm) 0;
}

.accordion-toggle {
  cursor: pointer;
  margin: var(--spacing-sm) 0;
}

.accordion-content {
  display: none;
  padding: var(--spacing-sm) 0;
}

.accordion-content ul {
  list-style-type: disc;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

/* === PORTFOLIO SECTION === */
#portfolio {
  padding: var(--spacing-xl) 0;
}

.portfolio-item {
  margin-bottom: var(--spacing-md);
}

.portfolio-item .image-container {
  height: 400px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* === PRODUCTS SECTION === */
#products {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card .image-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.product-card .card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--spacing-md);
}

.price {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}

/* === INNOVATION SECTION === */
#innovation {
  padding: var(--spacing-xl) 0;
}

#innovation .image-container {
  height: 500px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

#innovation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === RESOURCES SECTION === */
#resources {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* === EVENTS SECTION === */
#events {
  padding: var(--spacing-xl) 0;
}

.events-carousel {
  position: relative;
}

.event-slide {
  margin-bottom: var(--spacing-md);
}

.event-slide .image-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-border-radius);
}

.event-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date,
.event-location {
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.event-description {
  margin-bottom: var(--spacing-sm);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.carousel-controls button {
  margin: 0 var(--spacing-xs);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.carousel-controls button:hover {
  background-color: var(--primary-dark);
}

/* === CAREERS SECTION === */
#careers {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.job-item {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.job-item:last-child {
  border-bottom: none;
}

/* === MEDIA SECTION === */
#media {
  padding: var(--spacing-xl) 0;
}

.media-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-card .image-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

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

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

.media-date {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

/* === CONTACT SECTION === */
#contact {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.contact-info .icon {
  margin-right: var(--spacing-sm);
  color: var(--primary-color);
  font-size: 1.2rem;
  min-width: 30px;
}

.map-container {
  width: 100%;
  border-radius: var(--card-border-radius);
  overflow: hidden;
}

.contact-form .field {
  margin-bottom: var(--spacing-sm);
}

.contact-form .label {
  color: var(--text-color);
  font-weight: 500;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 15px;
  transition: all var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

/* === FOOTER === */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: var(--spacing-xl) 0;
}

.footer h4 {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
}

.footer p {
  margin-bottom: var(--spacing-sm);
}

.social-links {
  margin: var(--spacing-md) 0;
}

.social-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.social-links a {
  color: var(--text-white);
  transition: color var(--transition-fast);
}

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-white);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.newsletter-text {
  margin-top: var(--spacing-md);
}

.newsletter-form {
  margin-top: var(--spacing-xs);
}

.footer-bottom {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.address-footer {
  margin-top: var(--spacing-xs);
  color: var(--text-light);
}

/* === BUTTON STYLES === */
.button {
  font-family: var(--heading-font);
  font-weight: 500;
  border-radius: 50px;
  padding: 10px 25px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

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

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

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

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

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

.button.is-info:hover {
  background-color: #148a9e;
}

.button.is-medium {
  font-size: 1.2rem;
  padding: 12px 30px;
}

.button.is-small {
  font-size: 0.85rem;
  padding: 8px 18px;
}

.button.is-rounded {
  border-radius: 50px;
}

.button.is-fullwidth {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === SUCCESS PAGE === */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--spacing-md);
  text-align: center;
}

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

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

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate__fadeIn {
  animation: fadeIn 1s both;
}

.animate__fadeInDown {
  animation: fadeIn 1s both;
  transform-origin: top;
}

.animate__fadeInUp {
  animation: fadeIn 1s both;
  transform-origin: bottom;
}

.animate__pulse {
  animation: pulse 2s infinite;
}

/* === PARTICLES ANIMATION === */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  display: block;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

/* === RESPONSIVE STYLES === */
@media screen and (max-width: 1023px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .navbar-menu {
    background-color: var(--bg-light);
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
  }
  
  .navbar-menu.is-active {
    position: absolute;
    left: 0;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .event-slide .columns {
    flex-direction: column;
  }
  
  .event-slide .column.is-one-third {
    margin-bottom: var(--spacing-md);
  }
  
  .social-links ul {
    gap: var(--spacing-xs);
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 1.1rem;
  }
  
  .buttons.is-centered {
    flex-direction: column;
  }
  
  .buttons.is-centered .button {
    margin-bottom: var(--spacing-sm);
  }
}