/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Tetradic Color Scheme */
  --primary-color: #FF6B35;    /* Energetic Orange-Red */
  --secondary-color: #00B295;  /* Cool Blue-Green */
  --tertiary-color: #845EC2;    /* Vibrant Violet */
  --accent-color: #D6E233;     /* Lime Accent */

  /* Neutrals */
  --text-dark: #212529;
  --text-light: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #1a1a1a;
  --border-color: #212529;
  --border-light: #dee2e6;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* Spacing */
  --spacing-unit: 1rem;
  --section-padding: 5rem 0;
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--text-light);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

section {
  padding: var(--section-padding);
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

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

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-dark) !important;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: 2px solid var(--border-color);
    border-radius: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1, .hero-section p {
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-section h1 {
  font-weight: 900;
}

/*--------------------------------------------------------------
# Buttons & Forms
--------------------------------------------------------------*/
.btn, button, input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0;
  padding: 12px 30px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 var(--border-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--border-color);
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--border-color);
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--border-color);
}

.form-control {
    border-radius: 0;
    border: 2px solid var(--border-light);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25);
}

/*--------------------------------------------------------------
# Card Styles
--------------------------------------------------------------*/
.card {
  border: 2px solid var(--border-color);
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content */
  text-align: center;
}

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

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

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-body, .card-content {
  padding: 1.5rem;
}

/* Instructor Cards */
#experts .card {
    box-shadow: none;
    border: none;
}
#experts .card-image img {
    border: 4px solid var(--border-color);
    box-shadow: 5px 5px 0 var(--primary-color);
}


/*--------------------------------------------------------------
# Section Specific Styles
--------------------------------------------------------------*/
/* Methodology Section */
.progress {
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.progress-bar {
    background-color: var(--secondary-color);
}

.warped-grid-container img {
    border: 3px solid var(--border-color);
    transform: rotate(-3deg) skew(-2deg);
    transition: transform 0.4s ease;
}

.warped-grid-container:hover img {
    transform: rotate(1deg) skew(0deg);
}

/* Gallery Section */
.gallery-image {
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    box-shadow: 8px 8px 0 var(--tertiary-color);
    transform: scale(1.02) rotate(1deg);
}

/* Resources Section */
.list-group-item {
    border: 2px solid var(--border-light);
    border-radius: 0 !important;
    margin-bottom: 1rem;
}
.list-group-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* FAQ Section */
.accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 1rem;
}

.accordion-button {
    border-radius: 0;
    font-weight: 700;
    font-family: var(--font-heading);
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(214, 226, 51, 0.5);
    border-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer h6 {
  color: var(--text-light);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

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

/*--------------------------------------------------------------
# Static Pages (Success, Privacy, Terms)
--------------------------------------------------------------*/
.page-container {
    padding-top: 120px;
    padding-bottom: 60px;
}

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  background-color: var(--bg-light);
}

.success-content {
  max-width: 600px;
  border: 3px solid var(--border-color);
  padding: 3rem;
  box-shadow: 8px 8px 0 var(--secondary-color);
}

/*--------------------------------------------------------------
# Animations on Scroll
--------------------------------------------------------------*/
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
}
.fade-in-up {
    transform: translateY(40px);
}
.fade-in-left {
    transform: translateX(-40px);
}
.fade-in-right {
    transform: translateX(40px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/*--------------------------------------------------------------
# Barba.js Page Transitions
--------------------------------------------------------------*/
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease-in-out;
}

.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}


/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
  }
  .nav-link {
      margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  section {
    padding: 3rem 0;
  }
  .hero-section {
    min-height: 70vh;
  }
}