/* style.css */

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}
body main {
  flex-grow: 1;
}

.navbar-start {
  width: 100%;
  justify-content: end !important;
}

/* CSS Variables for Theme */
:root {
  /* Primary Colors */
  --color-primary: #a8dadc;
  --color-secondary: #457b9d;
  --color-accent: #f1faee;
  --color-dark: #1d3557;
  --color-light: #f8f9fa;

  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-light: #ffffff;

  /* Hover Colors */
  --hover-primary: #81ecec;
  --hover-secondary: #1e90ff;

  /* Gradient Backgrounds */
  --gradient-bg: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);

  /* Transition */
  --transition-speed: 0.3s;
}

/* Global Styles */
body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: var(--color-light);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

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

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

button,
.button {
  font-family: "Source Sans Pro", sans-serif;
  border-radius: 8px;
  transition: background-color var(--transition-speed),
    transform var(--transition-speed);
}

button:hover,
.button:hover {
  background-color: var(--hover-primary);
  transform: translateY(-3px);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

#hero .title {
  font-size: 3rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#hero .subtitle {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

#hero .button {
  background-color: var(--color-secondary);
  color: var(--text-light);
}

#hero .button:hover {
  background-color: var(--hover-secondary);
}

/* Sections */
.section {
  background-color: var(--color-light);
}

#innovation,
#events-calendar,
#external-resources {
  background-color: #fefefe;
}

#our-process {
  background: var(--gradient-bg);
  color: var(--text-light);
}

#careers,
#events,
#insights,
#faq {
  background-color: #fafafa;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
}

.card-image figure {
  display: block;
  transition: transform var(--transition-speed);
}

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

.card-content {
  padding: 1.5rem;
}

.card-content .title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Buttons */
.button {
  background-color: var(--color-primary);
  color: var(--text-dark);
  border: none;
}

.button:hover {
  background-color: var(--hover-primary);
  color: var(--text-light);
}

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

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

.footer a {
  color: var(--color-primary);
  transition: color var(--transition-speed);
}

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

.footer .buttons .button {
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .buttons .button .icon {
  margin-right: 0.5rem;
}

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

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

.footer ul li a {
  color: var(--color-primary);
}

.footer .content.has-text-centered {
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Contact Form */
#contact .box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

#contact .label {
  font-weight: bold;
  color: var(--text-primary);
}

#contact .input,
#contact .textarea {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: border-color var(--transition-speed),
    box-shadow var(--transition-speed);
}

#contact .input:focus,
#contact .textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 5px rgba(69, 123, 157, 0.5);
}

#contact .button {
  padding: 0.75rem 2rem;
}

/* FAQ Accordion */
.accordion-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.accordion-title {
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
  transition: color var(--transition-speed);
}

.accordion-title::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  transition: transform var(--transition-speed);
}

.accordion-item.active .accordion-title::after {
  content: "-";
  transform: rotate(180deg);
}

.accordion-content {
  transition: max-height var(--transition-speed);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  margin-top: 1rem;
}

.accordion-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Carousel */
.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item {
  width: 80%;
}

.carousel-item.active {
  display: block;
  animation: fadeIn 1s ease-in-out;
}

.carousel-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.carousel-caption {
  text-align: center;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: var(--text-light);
  max-width: 100%;
  margin: 0 auto;
}
.carousel-caption h3 {
  color: #fff;
}

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

/* Events Calendar */
#events-calendar #calendar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* External Resources */
#external-resources .card {
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

#external-resources .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Social Media Icons */
.footer .button .icon {
  margin-right: 0.5rem;
}

.footer .button:hover {
  opacity: 0.8;
}

/* Read More Links */
.read-more {
  color: var(--color-secondary);
  font-weight: bold;
  transition: color var(--transition-speed), transform var(--transition-speed);
}

.read-more:hover {
  color: var(--hover-secondary);
  text-decoration: underline;
  transform: translateX(5px);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.p-1 {
  padding: 1rem;
}

/* Parallax Backgrounds */
[data-prompt*="parallax"] {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

[data-prompt*="parallax"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  z-index: -1;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Grid */
@media (max-width: 768px) {
  .columns.is-two-thirds {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

  #hero .subtitle {
    font-size: 1.2rem;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
