/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Colors */
  --primary-color: #343a40; /* Dark Gray */
  --primary-hover-color: #212529; /* Black */
  --secondary-color: #6c757d; /* Medium Gray */
  --accent-color: #0d6efd; /* Bootstrap blue for specific highlights like active list items */
  
  --background-light: #f8f9fa;
  --background-dark: #111111;
  
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --text-color-muted: #6c757d;
  --heading-color: #222222;

  /* Fonts */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;
}

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

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--heading-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

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

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

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.parallax-bg > .container {
  position: relative;
  z-index: 2;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/*--------------------------------------------------------------
# Global Component Styles
--------------------------------------------------------------*/
/* Buttons */
.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 12px 35px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover-color);
  border-color: var(--primary-hover-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Forms */
.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    background-color: #f1f1f1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--text-color-light);
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Cards */
.card {
  border: none;
  border-radius: 8px;
  background-color: var(--text-color-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

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

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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
body {
    padding-top: 80px; /* Offset for fixed header */
}

.header {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.navbar .nav-link {
  font-family: var(--font-primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--text-color-light);
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--text-color-light);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
    width: 50%;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#hero h1 {
  color: var(--text-color-light);
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    padding: 80px 0;
    overflow: hidden;
}

section.bg-light {
    background-color: var(--background-light);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
#services .card {
    text-align: left;
}
#services .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
#stats .stat-widget h3 {
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--heading-color);
}
#stats .stat-widget p {
    font-family: var(--font-secondary);
    color: var(--text-color-muted);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
#team .card {
    align-items: center;
    text-align: center;
}
.card-image-team {
    width: 150px;
    height: 150px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.card-image-team img {
    border: 5px solid var(--text-color-light);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------------
# Blog & News Section
--------------------------------------------------------------*/
#blog .card {
    flex-direction: row;
}

#blog .card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

#blog .card .card-image {
    height: auto;
}

#blog .card-image img {
    height: 100%;
}

@media (max-width: 767px) {
    #blog .card {
        flex-direction: column;
    }
}


/*--------------------------------------------------------------
# Events Calendar
--------------------------------------------------------------*/
#events .list-group-item {
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#events .list-group-item:hover {
    transform: translateX(5px);
    border-left: 5px solid var(--primary-color);
}

#events .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-left: 5px solid var(--primary-hover-color);
}
#events .list-group-item.active small {
    color: rgba(255,255,255,0.8) !important;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--background-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer h6 {
  font-family: var(--font-primary);
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  margin-bottom: 0.5rem;
}

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

.footer a:hover {
  color: var(--text-color-light);
  text-decoration: underline;
}

.footer .border-top {
    border-color: #333 !important;
}

/*--------------------------------------------------------------
# Page-Specific Styles
--------------------------------------------------------------*/
.privacy-page,
.terms-page,
.contact-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

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

.success-page .card {
    max-width: 500px;
}

.success-page h1 {
    color: var(--heading-color);
    font-size: 3rem;
}