/* ======== CSS Variables ======== */
:root {
  /* Color Scheme */
  --color-primary: #6b7a8f;
  --color-primary-light: #8497b0;
  --color-primary-dark: #516274;
  
  --color-secondary: #84a9ac;
  --color-secondary-light: #a3c2c5;
  --color-secondary-dark: #6a8a8c;
  
  --color-accent: #f67280;
  --color-accent-light: #f89ba5;
  --color-accent-dark: #e04d5c;
  
  --color-text: #333;
  --color-text-light: #666;
  --color-text-lighter: #999;
  --color-text-dark: #222;
  
  --color-background: #f0f2f5;
  --color-background-alt: #e6e9ec;
  --color-background-dark: #d1d5db;
  
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Neomorphism Shadows */
  --nm-shadow-small: 5px 5px 10px rgba(163, 177, 198, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.8);
  --nm-shadow-medium: 10px 10px 20px rgba(163, 177, 198, 0.5), -10px -10px 20px rgba(255, 255, 255, 0.8);
  --nm-shadow-large: 15px 15px 30px rgba(163, 177, 198, 0.5), -15px -15px 30px rgba(255, 255, 255, 0.8);
  
  --nm-shadow-inset-small: inset 5px 5px 10px rgba(163, 177, 198, 0.5), inset -5px -5px 10px rgba(255, 255, 255, 0.8);
  --nm-shadow-inset-medium: inset 10px 10px 20px rgba(163, 177, 198, 0.5), inset -10px -10px 20px rgba(255, 255, 255, 0.8);
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ======== Base Styles ======== */
html, body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

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

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

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

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

/* ======== Neomorphic Elements ======== */
.neomorphic {
  background: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--nm-shadow-medium);
}

.neomorphic-section {
  background-color: var(--color-background);
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-md) 0;
  border-radius: var(--radius-lg);
  position: relative;
}

.neomorphic-section-alt {
  background-color: var(--color-background-alt);
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-md) 0;
  border-radius: var(--radius-lg);
}

.neomorphic-card {
  background: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--nm-shadow-small);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.neomorphic-box {
  background: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--nm-shadow-small);
  transition: all var(--transition-medium);
}

.neomorphic-box:hover {
  box-shadow: var(--nm-shadow-medium);
}

.neomorphic-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--nm-shadow-small);
}

.neomorphic-button {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--nm-shadow-small);
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.neomorphic-button:hover, 
.neomorphic-button:focus {
  background-color: var(--color-primary-light);
  box-shadow: var(--nm-shadow-medium);
  transform: translateY(-2px);
}

.neomorphic-button:active {
  background-color: var(--color-primary-dark);
  box-shadow: var(--nm-shadow-inset-small);
  transform: translateY(0);
}

.neomorphic-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: var(--radius-round);
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.neomorphic-button:hover::after {
  animation: ripple 1s ease-out;
}

.neomorphic-input, 
.neomorphic-textarea, 
.neomorphic-select select {
  background-color: var(--color-background);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--nm-shadow-inset-small);
  transition: all var(--transition-fast);
}

.neomorphic-input:focus, 
.neomorphic-textarea:focus, 
.neomorphic-select select:focus {
  outline: none;
  box-shadow: var(--nm-shadow-inset-medium);
}

.neomorphic-footer {
  background-color: var(--color-background-alt);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.columns {
  display: flex;
  flex-wrap: wrap;
}

/* ======== Header ======== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.navbar-item {
  padding: var(--spacing-sm) var(--spacing-md);
  position: relative;
  font-weight: 500;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--spacing-sm);
  right: var(--spacing-sm);
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-medium);
}

.navbar-item:hover::after {
  transform: scaleX(1);
}

.navbar-burger {
  display: none;
}

@media screen and (max-width: 1023px) {
  .navbar-burger {
    display: block;
    cursor: pointer;
    width: 3.25rem;
    height: 3.25rem;
    position: relative;
  }

  .navbar-burger span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    left: 0.875rem;
    transition: all var(--transition-medium);
  }

  .navbar-burger span:nth-child(1) {
    top: calc(50% - 6px);
  }

  .navbar-burger span:nth-child(2) {
    top: calc(50%);
  }

  .navbar-burger span:nth-child(3) {
    top: calc(50% + 6px);
  }

  .navbar-burger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    box-shadow: var(--nm-shadow-medium);
    padding: var(--spacing-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .navbar-menu.is-active {
    display: block;
  }

  .navbar-end {
    flex-direction: column;
  }
}

/* ======== Hero Section ======== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.hero-body {
  display: flex;
  align-items: center;
  padding: var(--spacing-xxl) 0;
  min-height: 80vh;
     padding-top: 160px;
}

.hero .title,
.hero .subtitle {
  color: var(--color-white);
}

.arrows {
  position: relative;
  display: inline-block;
  margin-top: var(--spacing-md);
}

.arrows a {
  display: block;
  text-align: center;
}

.arrows span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: arrow-bounce 2s infinite;
}

.arrows span:nth-child(2) {
  animation-delay: -0.2s;
}

.arrows span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes arrow-bounce {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(20px, 20px);
  }
}

/* ======== Vision Section ======== */
#vision {
  position: relative;
  overflow: hidden;
}

/* ======== Methodology Section ======== */
.custom-slider {
  width: 100%;
  position: relative;
  margin: var(--spacing-lg) 0;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--spacing-md) 0;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  padding: 0 var(--spacing-md);
  display: flex;
}

@media (min-width: 768px) {
  .slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  align-items: center;
}

.card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  text-align: center;
}

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

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

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

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

.slider-prev,
.slider-next {
  margin: 0 var(--spacing-sm);
}

/* ======== Workshops Section ======== */
#workshops .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#workshops .card-image {
  height: 300px;
  width: 100%;
  text-align: center;
}

#workshops .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  margin: 0 auto;
}

#workshops .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* ======== Instructors Section ======== */
#instructors .card-image {
  width: 100%;
  height: 400px;
  text-align: center;
}

#instructors .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ======== Projects Section ======== */
#projects .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#projects .card-image {
  height: 300px;
  width: 100%;
  text-align: center;
}

#projects .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ======== Research Section ======== */
.research-list li {
  margin-bottom: var(--spacing-lg);
}

/* ======== Team Section ======== */
#team .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#team .card-image {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  text-align: center;
}

#team .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ======== Sustainability Section ======== */
#sustainability .neomorphic-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ======== Resources Section ======== */
.resources-list {
  margin-top: var(--spacing-lg);
}

.resource-item {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

/* ======== Contact Section ======== */
.contact-info {
  height: 100%;
}

.contact-list {
  list-style: none;
  padding: 0;
}

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

.contact-form .label {
  font-weight: 600;
}

/* ======== Footer ======== */
.footer {
  background-color: var(--color-background-alt);
  padding: var(--spacing-xl) 0;
}

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

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

.social-links a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-right: var(--spacing-sm);
}

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

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

/* ======== Animations ======== */
@keyframes ripple {
  0% {
    opacity: 1;
    transform: scale(0, 0);
  }
  20% {
    transform: scale(25, 25);
  }
  100% {
    opacity: 0;
    transform: scale(50, 50);
  }
}


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

.is-fullheight {
  min-height: 100vh;
}

.is-fullheight-with-navbar {
  min-height: calc(100vh - 3.25rem);
}

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

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

.pb-5 {
  padding-bottom: 1.25rem !important;
}

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

.success-container {
  max-width: 800px;
  padding: var(--spacing-xl);
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--nm-shadow-medium);
}

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

/* ======== Media Queries ======== */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

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

  .hero-body {
    padding: var(--spacing-xl) 0;
 padding-top: 120px;
  }

  .columns.is-multiline {
    flex-direction: column;
  }

  .title.is-1 {
    font-size: 2rem;
  }

  .title.is-2 {
    font-size: 1.75rem;
  }

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

  .contact-info, .contact-form {
    margin-bottom: var(--spacing-lg);
  }
}

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

/* ======== Responsive Helper Classes ======== */
@media screen and (max-width: 768px) {
  .is-hidden-mobile {
    display: none !important;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .is-hidden-tablet-only {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  .is-hidden-touch {
    display: none !important;
  }
}

@media screen and (min-width: 1024px) {
  .is-hidden-desktop {
    display: none !important;
  }
}

.navbar-item.logo .title {
  margin-bottom: 0;
}