/* ======= VARIABLES ======= */
:root {
  /* Split-complementary color scheme */
  --primary-color: #3273dc;
  --primary-dark: #1c4b8c;
  --primary-light: #4a89e8;
  
  --secondary-color: #dc4732;
  --secondary-dark: #b32e1d;
  --secondary-light: #e8695a;
  
  --tertiary-color: #32dc72;
  --tertiary-dark: #1e8c46;
  --tertiary-light: #4ae88a;
  
  --neutral-dark: #333333;
  --neutral-medium: #666666;
  --neutral-light: #f5f5f5;
  
  --white: #ffffff;
  --black: #222222;
  
  /* Typography */
  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Border radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ======= GLOBAL STYLES ======= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

p {
  margin-bottom: 1.5rem;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-lg) 0;
}

/* ======= BUTTONS ======= */
.button {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

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

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

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

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-tertiary:hover {
  background-color: var(--tertiary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ======= NAVBAR ======= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast);
}

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

.navbar-brand .title {
  color: var(--primary-color);
  margin-bottom: 0;
}

.navbar-burger {
  border: none;
  background: transparent;
  cursor: pointer;
  display: none;
}

.navbar-burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neutral-dark);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

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

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

.navbar-item {
  padding: 1.5rem 1rem;
  color: var(--neutral-dark);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

@media (max-width: 1023px) {
  .navbar-burger {
    display: block;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
    width: 100%;
  }
  
  .navbar-item {
    width: 100%;
    padding: 1rem 2rem;
  }
}

/* ======= HERO SECTION ======= */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: '';
  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;
  padding: var(--spacing-xl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--white);
  opacity: 0.9;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

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

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
}

/* ======= CARDS ======= */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

.card .title {
  color: var(--neutral-dark);
  margin-bottom: var(--spacing-sm);
}

.card .subtitle {
  color: var(--neutral-medium);
  margin-bottom: var(--spacing-sm);
}

/* ======= SERVICES SECTION ======= */
.services .title.is-2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.services .card-image {
  height: 250px;
}

/* ======= STATISTICS SECTION ======= */
.has-background-light {
  background-color: var(--neutral-light);
}

.box {
  padding: var(--spacing-md);
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.box:hover {
  transform: translateY(-5px);
}

.counter {
  color: var(--primary-color);
  font-weight: 700;
}

/* ======= WORKSHOPS SECTION ======= */
.workshops .card {
  margin-bottom: var(--spacing-md);
}

.workshops .card-image {
  height: 300px;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

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

.tag.is-info {
  background-color: #209cee;
  color: var(--white);
}

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

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

.level-item {
  margin-right: 0.5rem;
}

/* ======= RESOURCES SECTION ======= */
.resources .card {
  height: 100%;
}

/* ======= PORTFOLIO SECTION ======= */
.portfolio .card-image {
  height: 250px;
}

/* ======= GALLERY SECTION ======= */
.gallery-container {
  margin-bottom: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.gallery-item .card-image {
  height: 300px;
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: var(--white);
  padding: var(--spacing-md);
  transform: translateY(20px);
  transition: transform var(--transition-medium);
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  padding: var(--spacing-sm);
}

.media {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.media-left {
  margin-right: var(--spacing-sm);
}

.image.is-64x64 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.image.is-64x64 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating {
  color: #ffd700;
  margin-top: var(--spacing-sm);
}

/* ======= RESEARCH SECTION ======= */
.research .card {
  height: 100%;
}

/* ======= CONTACT SECTION ======= */
.contact .card {
  height: 100%;
}

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

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

.control {
  position: relative;
}

.input, .textarea, .select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dbdbdb;
  border-radius: var(--border-radius-md);
  font-family: var(--body-font);
  transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

.select {
  position: relative;
  display: block;
  width: 100%;
}

.select::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border: 3px solid transparent;
  border-top-color: var(--neutral-medium);
  pointer-events: none;
}

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

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

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

.footer .title {
  color: var(--white);
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

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

.footer a:hover {
  color: var(--white);
}

.social-links a {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.newsletter .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newsletter .button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ======= MODAL ======= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.is-active {
  display: flex;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.modal-card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background-color: var(--primary-color);
  color: var(--white);
}

.modal-card-title {
  font-family: var(--heading-font);
  font-weight: 600;
  margin: 0;
}

.delete {
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  width: 20px;
  height: 20px;
}

.delete::before,
.delete::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--white);
}

.delete::before {
  transform: translateY(-50%) rotate(45deg);
}

.delete::after {
  transform: translateY(-50%) rotate(-45deg);
}

.modal-card-body {
  padding: var(--spacing-md);
  overflow-y: auto;
}

.modal-card-foot {
  display: flex;
  justify-content: flex-end;
  padding: var(--spacing-md);
  background-color: var(--neutral-light);
}

.modal-card-foot .button {
  margin-left: 0.5rem;
}

/* ======= ANIMATIONS ======= */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-down"] {
  transform: translateY(-50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Particle Animation */
@keyframes particle-animation {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(var(--rand-x));
  }
}

.hero-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 8%);
  background-size: 3vmin 3vmin;
  background-position: 0 0;
  animation: particle-background 10s linear infinite;
  opacity: 0.5;
}

@keyframes particle-background {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* ======= UTILITIES ======= */
.has-text-centered {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.has-text-white {
  color: var(--white) !important;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }

  .column {
    width: 100% !important;
    margin-bottom: var(--spacing-md);
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
}

/* ======= ADDITIONAL PAGES ======= */
.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 300px);
}

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

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

.success-page .title {
  margin-bottom: var(--spacing-sm);
}

.success-page .button {
  margin-top: var(--spacing-md);
}

/* Cookie Consent */
#cookie-consent {
  border-top: 3px solid var(--primary-color);
}

#accept-cookies {
  transition: background-color var(--transition-fast);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
}

/* Content pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-lg);
}

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

.privacy-page h2, .terms-page h2 {
  color: var(--primary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.privacy-page p, .terms-page p {
  margin-bottom: var(--spacing-md);
}

.privacy-page ul, .terms-page ul {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.privacy-page li, .terms-page li {
  margin-bottom: var(--spacing-sm);
}

/* Hyperrealistic textures */
.card {
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="0.5"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* Read more links */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-top: var(--spacing-sm);
  position: relative;
  padding-right: 1.5rem;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Form styles */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="password"], 
textarea, 
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dbdbdb;
  border-radius: var(--border-radius-md);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus, 
input[type="number"]:focus, 
input[type="password"]:focus, 
textarea:focus, 
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(50,115,220,0.25);
  outline: none;
}

/* Contact form submit button hover animation */
#contact-form .button {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#contact-form .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s;
  z-index: -1;
}

#contact-form .button:hover::before {
  left: 100%;
}