/* Variables */
:root {
  --primary-color: #0066CC;
  --primary-dark: #004E9A;
  --primary-light: #4D94DB;
  --secondary-color: #FF9900;
  --secondary-dark: #CC7A00;
  --secondary-light: #FFAD33;
  --tertiary-color: #00B894;
  --bg-light: #f5f7fa;
  --bg-dark: #2c3e50;
  --text-dark: #333;
  --text-light: #f9f9f9;
  --text-muted: #6c757d;
  --border-radius: 12px;
  --shadow-small: 6px 6px 12px rgba(0, 0, 0, 0.05), -6px -6px 12px rgba(255, 255, 255, 0.8);
  --shadow-medium: 10px 10px 20px rgba(0, 0, 0, 0.1), -10px -10px 20px rgba(255, 255, 255, 0.7);
  --shadow-large: 15px 15px 30px rgba(0, 0, 0, 0.15), -15px -15px 30px rgba(255, 255, 255, 0.6);
  --shadow-inset: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 10px rgba(255, 255, 255, 0.8);
  --transition-standard: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
}

/* Base Styles */
body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* Neumorphic Styles */
.neumorph {
  border-radius: var(--border-radius);
  background-color: var(--bg-light);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-standard);
  overflow: hidden;
}

.neumorph:hover {
  box-shadow: var(--shadow-large);
}

.neumorph-button {
  border-radius: 50px;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-small);
  transition: var(--transition-standard);
  border: none !important;
}

.neumorph-button:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

.neumorph-button:active {
  box-shadow: var(--shadow-inset);
  transform: translateY(0);
}

.neumorph-input, .neumorph-textarea, .neumorph-select {
  border-radius: var(--border-radius);
  background-color: var(--bg-light);
  box-shadow: var(--shadow-inset);
  border: none;
  padding: 12px 15px;
  transition: var(--transition-standard);
}

.neumorph-input:focus, .neumorph-textarea:focus {
  box-shadow: var(--shadow-small);
  outline: none;
}

/* Header & Navigation */
.navbar {
  background-color: rgba(245, 247, 250, 0.95);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.navbar-item {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: var(--transition-standard);
}

.navbar-item:hover {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

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

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

/* Hero Section */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-body {
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
}

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

.hero .button.is-primary {
  background-color: var(--primary-color);
  transition: var(--transition-standard);
}

.hero .button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.scroll-down {
  margin-bottom: 2rem;
}

.scroll-down a {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* About Section */
.sobre-plataforma {
  padding: 4rem 1.5rem;
}

.sobre-plataforma .content p {
  font-size: 1.1rem;
  line-height: 1.7;
}

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

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

.image-container:hover img {
  transform: scale(1.03);
}

/* Programs Section */
.programas-educativos {
  padding: 4rem 1.5rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-standard);
  margin-bottom: 1.5rem;
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.card-content .title {
  margin-bottom: 0.75rem;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.card-content .button {
  margin-top: auto;
}

/* Team Section */
.team, .instructors {
  padding: 4rem 1.5rem;
}

.team .card, .instructors .card {
  text-align: center;
}

.team .card-image, .instructors .card-image {
  height: 300px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team .card-image img, .instructors .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team .title, .instructors .title {
  margin-top: 0.5rem;
}

.team .subtitle, .instructors .subtitle {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
  padding: 1.5rem;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

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

.testimonial-author h4, .testimonial-author h5 {
  margin-bottom: 0.25rem;
}

.testimonial-author h5 {
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  margin-left: 1rem;
  padding-left: 2rem;
  border-left: 2px solid var(--primary-light);
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2.7rem;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-small);
}

.timeline-content {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.timeline-content h3, .timeline-content h4 {
  margin-bottom: 0.5rem;
}

/* Accordion */
.accordion {
  margin: 1.5rem 0;
}

.accordion-item {
  margin-bottom: 1rem;
}

.accordion-header {
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  transition: var(--transition-standard);
}

.accordion-header:hover {
  box-shadow: var(--shadow-medium);
}

.accordion-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 1rem;
}

/* Clients Section */
.clients-logos {
  text-align: center;
}

.clients-logos figure {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.clients-logos img {
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-standard);
}

.clients-logos figure:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Section */
.contact {
  padding: 4rem 1.5rem;
}

.contact-info, .contact-form {
  height: 100%;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 300px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 1.5rem 2rem;
}

.footer h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer p, .footer ul {
  margin-bottom: 1rem;
}

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

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

.footer a {
  color: var(--secondary-light);
  transition: var(--transition-standard);
}

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

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

.social-links a {
  margin-right: 1rem;
  color: var(--secondary-light);
  transition: var(--transition-standard);
}

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

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

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

.success-content {
  max-width: 600px;
  padding: 3rem;
}

/* Privacy & Terms Pages */
.privacy-content, .terms-content {
  padding-top: 120px;
  padding-bottom: 4rem;
}

/* Utility Classes */
.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-6 {
  margin-top: 3rem !important;
}

.p-5 {
  padding: 2.5rem !important;
}

.has-text-justified {
  text-align: justify !important;
}

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

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

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .navbar-menu {
    background-color: rgba(245, 247, 250, 0.95);
  }

  .hero-body {
    padding: 4rem 1rem;
  }

  .card-image {
    height: 180px;
  }

  .team .card-image, .instructors .card-image {
    height: 250px;
  }

  .timeline {
    margin-left: 0;
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -2.2rem;
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 480px) {
  h1.title.is-1 {
    font-size: 2.5rem;
  }

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

  .card-image {
    height: 160px;
  }
}

/* Animation for scroll effects */
[data-scroll] {
  opacity: 0;
  transition: opacity 1s, transform 1s;
}

[data-scroll="in"] {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll="out"] {
  opacity: 0;
  transform: translateY(100px);
}