/* Global Variables */
:root {
  --primary-color: #3273dc;
  --secondary-color: #23d160;
  --accent-color: #ff3860;
  --dark-color: #222222;
  --light-color: #f5f5f5;
  --text-color: #333333;
  --text-light: #ffffff;
  --text-muted: #666666;
  --border-color: #dbdbdb;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(45deg, var(--primary-color), #4a8bff);
  --gradient-dark: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  --border-radius: 4px;
  --brutalist-shadow: 6px 6px 0 var(--dark-color);
  --transition-slow: all 0.5s ease;
  --transition-medium: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Base Styles */
html, body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--dark-color);
}

p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

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

/* Container styles that complement Bulma */
.container {
  max-width: 1200px;
  width: 100%;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  position: relative;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

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

/* Brutalist and Tilted Grid Elements */
.brutalist-box {
  border: 3px solid var(--dark-color);
  box-shadow: var(--brutalist-shadow);
  transition: var(--transition-medium);
  transform: rotate(-1deg);
  background: #fff;
}

.brutalist-box:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 8px 8px 0 var(--dark-color);
}

.tilted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  transform: rotate(-0.5deg);
}

.tilted-grid > * {
  transform: rotate(0.5deg);
}

.tilted-card {
  transform: rotate(-2deg);
  transition: var(--transition-medium);
}

.tilted-card:hover {
  transform: rotate(0);
}

.tilted-even {
  transform: rotate(2deg);
}

.tilted-odd {
  transform: rotate(-2deg);
}

/* Button Styles */
.button {
  font-weight: 600;
  border-width: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.button:hover::before {
  left: 0;
}

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

.button.is-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(50, 115, 220, 0.3);
}

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

.button.is-light:hover {
  background: #fff;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.button.is-outlined {
  border-width: 2px;
}

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

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

/* Header Styles */
.navbar {
  transition: var(--transition-medium);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand .title {
  margin-bottom: 0;
}

.navbar-item {
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  position: relative;
  background-attachment: fixed;
}

.hero-body {
  z-index: 2;
}

.hero .title, .hero .subtitle, .hero p {
  color: var(--text-light) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .buttons {
  margin-top: 2rem;
}

.animation-element {
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition-slow);
}

.animation-element.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Services Section */
.services .card {
  height: 100%;
  transition: var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

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

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

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

.services .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.services .card-content h3 {
  margin-bottom: 1rem;
}

.services .card-content p {
  flex-grow: 1;
}

/* Partners Section */
.partners {
  background-color: var(--light-color);
}

.partner-box {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: center;
  height: 100%;
  transition: var(--transition-medium);
}

.partner-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.partner-box img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.partner-testimonial {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  position: relative;
}

.partner-testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: 'Georgia', serif;
}

/* Gallery Section */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-medium);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-dark);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-medium);
}

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

.gallery-caption h3, .gallery-caption p {
  color: white;
  margin: 0;
}

/* Resources Section */
.resources {
  background-color: #f9f9f9;
}

.resource-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-medium);
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.resource-card h3 {
  margin-bottom: 1rem;
}

.resource-card p {
  flex-grow: 1;
}

.resource-card .button {
  align-self: flex-start;
}

/* Blog Section */
.blog-card {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-medium);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.blog-card .card-image {
  height: 200px;
  overflow: hidden;
}

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

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

.blog-card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .card-content h3 {
  margin-bottom: 0.5rem;
}

.blog-card .card-content p {
  flex-grow: 1;
}

/* Progress Section */
.progress-section {
  background-color: var(--light-color);
}

.progress-box {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  height: 100%;
  transition: var(--transition-medium);
}

.progress-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.circle-progress {
  position: relative;
  margin: 0 auto;
  width: 120px;
  height: 120px;
}

.progress-ring__circle {
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transform: rotate(-90deg);
  transform-origin: center;
}

.progress-ring__circle-value {
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transform: rotate(-90deg);
  transform-origin: center;
}

.progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Footer Section */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer .title, .footer h3 {
  color: white;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

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

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

.social-links a {
  margin-right: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

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

.copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Contact Page Styles */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-form .field {
  margin-bottom: 1.5rem;
}

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

.contact-form .input, .contact-form .textarea {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition-fast);
}

.contact-form .input:focus, .contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.contact-info {
  background: var(--primary-color);
  color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  height: 100%;
}

.contact-info h3, .contact-info p, .contact-info a {
  color: white;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* About, Privacy, Terms Pages */
.about-page, .privacy-page, .terms-page {
  padding-top: 100px;
}

.about-content, .privacy-content, .terms-content {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
}

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

.success-content {
  text-align: center;
  max-width: 600px;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
}

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

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

#acceptCookies {
  transition: var(--transition-fast);
}

#acceptCookies:hover {
  background-color: #2a64c0;
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .services .card-image {
    height: 200px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .progress-box {
    padding: 1.5rem;
  }
  
  .circle-progress {
    width: 100px;
    height: 100px;
  }
  
  .progress-value {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.25rem !important;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .services .card-image {
    height: 180px;
  }
  
  .gallery-item img {
    height: 180px;
  }
}