/*
  style.css
  Theme: "Покроковий процес: як проходить перша консультація Еквадор"
  Design System: "Futuristic" with "Asymmetric Balance"
  Color Scheme: "Bright"
  Animation Style: "Non-linear Movements"
*/

/* ---------------------------------------------------
   1. CSS Variables & Root Styles
   --------------------------------------------------- */

:root {
  /* Bright Color Palette */
  --primary-color: #0d6efd; /* Vibrant Blue */
  --secondary-color: #8338ec; /* Bright Purple */
  --accent-color: #ffbe0b; /* Bright Yellow */
  --danger-color: #ff006e; /* Hot Pink/Magenta */
  --success-color: #06d6a0; /* Teal/Green */

  /* Neutral & Text Colors */
  --bg-dark: #101118;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;

  /* Spacing & Sizing */
  --navbar-height: 80px;
  --border-radius: 8px;
}

/* ---------------------------------------------------
   2. General & Typography
   --------------------------------------------------- */

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--text-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-title-light {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

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

.btn-link {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ---------------------------------------------------
   3. Header / Navigation
   --------------------------------------------------- */

.navbar {
  background: rgba(16, 17, 24, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--navbar-height);
  transition: background 0.3s ease-in-out;
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  background: var(--bg-dark);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

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

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------------------------------------------------
   4. Hero Section
   --------------------------------------------------- */

.hero-section {
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  color: var(--text-light);
}

.hero-section h1 {
    color: var(--text-light);
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section .lead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ---------------------------------------------------
   5. Buttons & Forms
   --------------------------------------------------- */
.futuristic-button, .btn-primary {
  padding: 12px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  background-size: 200% auto;
}

.futuristic-button:hover, .btn-primary:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(131, 56, 236, 0.4);
  color: var(--text-light);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--text-dark);
}
.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(255, 190, 11, 0.4);
    color: var(--text-dark);
}

.form-control {
    background-color: #e9ecef;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating > label {
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------
   6. Cards (Instructors, News, Clientele)
   --------------------------------------------------- */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  overflow: hidden;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

#instructors .card-image {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    margin-top: -50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 5px solid white;
}

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

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

.card-content, .card-body {
    padding: 2rem;
    width: 100%;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}
.testimonial-card .blockquote-footer {
    color: rgba(255,255,255,0.8);
}

/* ---------------------------------------------------
   7. Accordion (Events Calendar)
   --------------------------------------------------- */
.accordion-item {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  background-color: var(--bg-light);
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--text-light);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ---------------------------------------------------
   8. Specific Sections
   --------------------------------------------------- */

/* Resources Section */
.resource-card {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.resource-card:hover {
    transform: translateX(5px);
    background: #23252f;
}

.resource-card h4 a {
    color: var(--text-light);
    text-decoration: none;
}
.resource-card h4 a:hover {
    color: var(--accent-color);
}

/* Community Section */
.community-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    padding: 8rem 0;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer h5 {
  color: var(--text-light);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.footer .footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer .footer-link:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-hr {
    border-top: 1px solid var(--border-color);
}

/* ---------------------------------------------------
   9. Standalone Pages (Privacy, Terms, Success)
   --------------------------------------------------- */
.legal-page-container, .success-page-container {
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 60px;
}

.legal-page-container h1 {
    color: var(--primary-color);
}

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

.success-page h1 {
    color: var(--success-color);
    font-size: 4rem;
}
.success-page p {
    font-size: 1.2rem;
}

/* ---------------------------------------------------
   10. Animation & Responsive
   --------------------------------------------------- */

.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    #instructors .card-image {
        margin-top: 1.5rem;
        height: 200px;
        width: 200px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        background-color: var(--bg-dark);
        text-align: center;
        padding: 1rem 0;
        margin-top: 1rem;
        border-radius: var(--border-radius);
    }
    .hero-section {
        min-height: 80vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
}