/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --primary-color: #FF6B6B; /* Coral Red */
  --primary-color-darker: #e05252;
  --secondary-color: #4ECDC4; /* Turquoise */
  --secondary-color-darker: #3db8af;
  --accent-color: #FFD166; /* Sunny Yellow */
  --accent-color-darker: #f0b940;

  --text-color: #333333; /* Dark Grey for body */
  --text-color-headings: #222222; /* Very Dark Grey for headings */
  --text-color-light: #FFFFFF;
  --text-color-muted: #6c757d; /* Bootstrap muted color */

  --background-color: #FDFDFD; /* Slightly off-white */
  --background-color-light: #F8F9FA; /* Bootstrap's bg-light equivalent */
  --background-color-dark: #212529; /* Bootstrap's bg-dark equivalent */
  --background-color-footer: #1a1a1a;

  --font-family-headings: 'Montserrat', sans-serif;
  --font-family-body: 'Merriweather', serif;

  --border-radius-sm: 0.25rem; /* 4px */
  --border-radius-md: 0.5rem;  /* 8px */
  --border-radius-lg: 1rem;   /* 16px */
  --border-radius-biomorphic: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic shape */

  --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --box-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

  --transition-speed: 0.3s;
  --transition-easing: ease-in-out;

  --button-padding-y: 0.65rem;
  --button-padding-x: 1.5rem;
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--text-color-headings);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.25; }
h3 { font-size: 1.8rem; line-height: 1.3; }
h4 { font-size: 1.5rem; line-height: 1.35; }
h5 { font-size: 1.25rem; line-height: 1.4; }
h6 { font-size: 1rem; line-height: 1.4; }

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

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

/* Section general styling */
section {
  padding: 80px 0;
  overflow: hidden; /* For animations and biomorphic shapes */
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  position: relative;
  font-family: var(--font-family-headings);
  color: var(--text-color-headings);
  text-align: center;
}

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

/*--------------------------------------------------------------
# Buttons - Global Styles
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-family-headings);
  font-weight: 600;
  padding: var(--button-padding-y) var(--button-padding-x);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-speed) var(--transition-easing);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: var(--box-shadow-sm);
}

.btn-primary, button.btn-primary, input[type="submit"].btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-color-light);
}

.btn-primary:hover, button.btn-primary:hover, input[type="submit"].btn-primary:hover {
  background-color: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.btn-secondary, button.btn-secondary, input[type="submit"].btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-color-light);
}

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

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

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
header.sticky-top .navbar {
  box-shadow: var(--box-shadow-md);
  background-color: rgba(255, 255, 255, 0.95) !important; /* Semi-transparent white */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* For Safari */
}

.navbar-brand {
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-color-headings) !important;
}
@media (max-width: 768px) {
  .navbar-brand {

    font-size: 1.2rem;
  
  }
}

.navbar-nav .nav-link {
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: var(--text-color) !important;
  margin-left: 10px;
  margin-right: 10px;
  padding: 0.8rem 0.5rem;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  transition: width var(--transition-speed) var(--transition-easing);
}

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

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

.navbar-toggler {
  border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 80vh; /* Responsive height */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section h1 {
  font-size: 3.5rem; /* Larger for hero */
  color: var(--text-color-light); /* Enforced white text */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.hero-section p.lead {
  font-size: 1.4rem;
  color: var(--text-color-light); /* Enforced white text */
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.hero-section .btn {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding-top: 100px; /* Space for navbar */
    padding-bottom: 60px;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section p.lead {
    font-size: 1.1rem;
  }
}


/*--------------------------------------------------------------
# Services Section (Accordion)
--------------------------------------------------------------*/
#services .accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-sm);
  overflow: hidden; /* For rounded corners */
}

#services .accordion-button {
  font-family: var(--font-family-headings);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color-headings);
  background-color: var(--background-color-light);
  border: none;
  box-shadow: none;
  padding: 1.2rem 1.5rem;
}

#services .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: #eef8f7; /* Light primary tint */
}

#services .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

#services .accordion-button::after { /* Custom icon */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B6B'%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");
  transform: rotate(-180deg);
}
#services .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='%23FF6B6B'%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");
  transform: rotate(0deg);
}

#services .accordion-body {
  padding: 1.5rem;
  background-color: var(--background-color);
  font-family: var(--font-family-body);
  color: var(--text-color);
}
#services .accordion-body img {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-sm);
}

/*--------------------------------------------------------------
# Cards (General for Portfolio, Accolades etc.)
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-lg); /* More biomorphic */
  box-shadow: var(--box-shadow-md);
  transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
  height: 100%; /* For equal height cards in a row */
  display: flex;
  flex-direction: column;
  background-color: var(--background-color); /* Ensure cards have a background */
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--box-shadow-lg);
}

.card .card-image {
  width: 100%;
  height: 220px; /* Fixed height for image container */
  overflow: hidden;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  display: flex; /* For centering content within */
  align-items: center; /* For centering content within */
  justify-content: center; /* For centering content within */
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area, might crop */
  transition: transform var(--transition-speed) var(--transition-easing);
}

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

.card .card-body {
  padding: 1.5rem;
  text-align: center; /* Center text content in card body */
  flex-grow: 1; /* Allows card body to fill remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes footer content down if any */
}

.card .card-title {
  font-family: var(--font-family-headings);
  font-size: 1.3rem;
  color: var(--text-color-headings);
  margin-bottom: 0.75rem;
}

.card .card-text {
  font-family: var(--font-family-body);
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Specifically for testimonial cards if they need different styling */
#accolades .card {
  background: linear-gradient(135deg, var(--background-color-light), #e6f7f6); /* Subtle gradient */
}
#accolades .card-body img.rounded-circle {
  border: 3px solid var(--primary-color);
  padding: 3px;
  margin-bottom: 1rem;
}
#accolades .blockquote-footer {
    color: var(--primary-color);
    font-weight: 600;
}

/*--------------------------------------------------------------
# Innovation Section
--------------------------------------------------------------*/
#innovation .stat-widget {
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem; /* Spacing for mobile */
  transition: transform 0.3s ease;
}
#innovation .stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}
#innovation .stat-widget .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}
#innovation .stat-widget .stat-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Vision Section
--------------------------------------------------------------*/
#vision {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Dark overlay is applied via inline style in HTML, ensuring text readability */
}

#vision .rounded-circle {
  border: 5px solid var(--text-color-light);
  box-shadow: 0 0 25px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
#external-resources .list-group-item {
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.75rem;
  border-color: #e0e0e0;
  transition: all var(--transition-speed) var(--transition-easing);
  padding: 1.25rem;
}
#external-resources .list-group-item:hover {
  transform: translateX(5px);
  box-shadow: var(--box-shadow-sm);
  border-left: 4px solid var(--primary-color);
  background-color: #fcfcfc;
}
#external-resources .list-group-item h5 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
#external-resources .list-group-item p {
  font-size: 0.9rem;
  color: var(--text-color-muted);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact .card { /* Specific styling for the contact form card */
  background-color: var(--text-color-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  /* Glassmorphism elements for contact card */
  /* background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3); */
}
#contact .form-label {
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: var(--text-color-headings);
  margin-bottom: 0.5rem;
}
#contact .form-control {
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  transition: border-color var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
  font-family: var(--font-family-body);
}
#contact .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25); /* Use primary color with opacity */
}
#contact button[type="submit"] {
  background-color: var(--accent-color); /* Using accent for submit */
  border-color: var(--accent-color);
  color: var(--text-color-headings);
  padding: 0.75rem 2rem;
  font-size: 1rem;
}
#contact button[type="submit"]:hover {
  background-color: var(--accent-color-darker);
  border-color: var(--accent-color-darker);
}

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

footer h5 {
  color: var(--text-color-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 2;
  font-size: 0.9rem;
  transition: color var(--transition-speed) var(--transition-easing);
}

footer ul li a:hover {
  color: var(--primary-color);
  text-decoration: none; /* No underline on hover for footer links to keep it clean */
}

/* Footer social links (text-based) */
footer .list-unstyled a {
  padding: 5px 0; /* Add some padding for easier clicking */
  display: inline-block; /* Allows padding */
}

footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .text-center p {
  font-size: 0.85rem;
  margin-bottom: 0;
}


/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/
/* For success.html */
.success-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background-color: var(--background-color-light);
}
.success-page-container h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.success-page-container p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.success-page-container .btn {
    padding: 0.75rem 2rem;
}

/* For privacy.html and terms.html */
.privacy-page-container,
.terms-page-container {
  padding-top: 120px; /* Offset for fixed header */
  padding-bottom: 60px;
  min-height: calc(100vh - 180px); /* Adjust based on footer height if needed */
}
.privacy-page-container h1,
.terms-page-container h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.privacy-page-container h2,
.terms-page-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--primary-color);
}
.privacy-page-container p, .privacy-page-container ul,
.terms-page-container p, .terms-page-container ul {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.privacy-page-container ul,
.terms-page-container ul {
    padding-left: 20px;
}
.privacy-page-container ul li,
.terms-page-container ul li {
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
# Animations & Effects
--------------------------------------------------------------*/
/* Placeholder for scroll animations - to be triggered by JS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing);
}

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

/* Parallax effect - CSS part. JS will handle scroll. */
.parallax-bg {
  background-attachment: fixed; /* Simple parallax. For more complex, JS needed */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* "Read More" link style */
.read-more-link {
  display: inline-block;
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-speed) ease;
}

.read-more-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.read-more-link:hover {
  color: var(--primary-color-darker);
}

.read-more-link:hover::after {
  width: 100%;
}

/* Cookie Popup - as per HTML */
#cookiePopup {
    /* Styles are mostly inline in HTML for simplicity as requested,
       but you can override or enhance them here if needed.
       Example: ensure it's above other elements if z-index issues. */
    z-index: 10000; /* Higher than navbar */
}

/* Barba.js transition example (optional, based on setup) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* Ensure images within sections like "Vision" or "Workshops" are styled correctly */
#vision img.rounded-circle,
#workshops img.rounded {
    margin-left: auto;
    margin-right: auto;
}

/* Helper for sections with background images that need dark overlay for text contrast */
.section-bg-image {
    position: relative;
    background-size: cover;
    background-position: center;
}
.section-bg-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5); /* Default dark overlay */
    z-index: 1;
}
.section-bg-image > .container { /* Ensure content is above overlay */
    position: relative;
    z-index: 2;
}
.section-bg-image h1, .section-bg-image h2, .section-bg-image p, .section-bg-image .lead {
    color: var(--text-color-light); /* Text on dark overlay should be light */
}