/*
  STYLE.CSS
  Theme: Business Coaching
  Design System: Neuromorphism & Curved Grids
  Color Scheme: Tetradic
  Animation Style: Particle Animation
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
  /* Tetradic Color Scheme */
  --primary-color: #4A47A3;  /* Deep Indigo */
  --secondary-color: #AD62AA; /* Muted Magenta */
  --accent-color-1: #00A19D;   /* Teal */
  --accent-color-2: #E05D5D;   /* Coral Red */

  /* Neutrals for Neuromorphism */
  --bg-color: #E0E5EC;
  --text-color: #333745;
  --text-color-light: #5a5f73;
  --white-color: #FFFFFF;
  --shadow-dark: rgba(163, 177, 198, 0.6);
  --shadow-light: rgba(255, 255, 255, 1);
  --shadow-darker: #2c2f3b;

  /* Typography */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Spacing & Sizing */
  --header-height: 80px;
  --border-radius: 20px;
  --container-width: 1200px;
  --container-padding: 0 20px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.main-container {
  position: relative;
  z-index: 1;
  background-color: var(--bg-color);
}

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

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--container-padding);
}

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

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

a:hover {
  color: var(--accent-color-2);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--shadow-darker);
  text-shadow: 1px 1px 2px var(--shadow-light);
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-color-light); }

section {
  padding: 6rem 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 71, 163, 0.7), rgba(173, 98, 170, 0.6));
  z-index: 1;
}

/* ---------------------------------- */
/*      Buttons & Links Styles        */
/* ---------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  background: var(--bg-color);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}

.btn-primary {
  color: var(--primary-color);
}
.btn-primary:hover {
   color: var(--accent-color-2);
}

.btn-secondary {
  color: var(--white-color);
  background: var(--accent-color-1);
  text-shadow: none;
  box-shadow: 6px 6px 12px rgba(0, 161, 157, 0.4), -6px -6px 12px rgba(0, 161, 157, 0.1);
}
.btn-secondary:hover {
  background: var(--accent-color-2);
  box-shadow: 8px 8px 16px rgba(224, 93, 93, 0.4), -8px -8px 16px rgba(224, 93, 93, 0.1);
}
.btn-secondary:active {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}


.btn-link {
  font-weight: 600;
  color: var(--accent-color-1);
  position: relative;
  padding-bottom: 5px;
}
.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color-2);
  transition: width var(--transition-fast);
}
.btn-link:hover::after {
  width: 100%;
}


/* ---------------------------------- */
/*          Header & Navigation       */
/* ---------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all var(--transition-fast);
  background: rgba(224, 229, 236, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-color);
  padding: 5px 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}
.main-nav a:hover::after {
  width: 100%;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.burger-menu span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-color);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* ---------------------------------- */
/*           Hero Section             */
/* ---------------------------------- */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--white-color);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  color: var(--white-color);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-section .btn-primary {
    background: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-section .btn-primary:hover {
    background-color: var(--bg-color);
}

/* ---------------------------------- */
/*          Partners Section          */
/* ---------------------------------- */
.partners-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}
.partners-carousel {
  display: flex;
  width: calc(150px * 12); /* 6 logos shown, 6 hidden for loop */
  animation: scroll 30s linear infinite;
}
.partner-logo {
  width: 150px;
  margin: 0 40px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-fast);
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-150px * 6 - 80px * 6)); }
}

/* ---------------------------------- */
/*          Insights Section          */
/* ---------------------------------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Curved Grid Effect */
@media (min-width: 1024px) {
  .curved-grid {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .curved-grid .card {
    flex-shrink: 0;
  }
  .curved-grid .card:nth-child(1) {
    transform: rotate(-5deg) translateY(20px);
  }
  .curved-grid .card:nth-child(3) {
    transform: rotate(5deg) translateY(20px);
  }
}

.card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
  padding: 2rem;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
}

.card .card-image {
  width: 100%;
  height: 200px;
  border-radius: calc(var(--border-radius) - 10px);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  color: var(--primary-color);
}

/* ---------------------------------- */
/*          Gallery Section           */
/* ---------------------------------- */
.gallery-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #d1d9e6 100%);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: var(--white-color);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(100%);
    opacity: 0;
    transition: all var(--transition-slow);
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}
.gallery-caption h4 {
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 0.25rem;
}
.gallery-caption p {
    color: var(--white-color);
    opacity: 0.9;
    margin: 0;
}

/* ---------------------------------- */
/*      External Resources Section    */
/* ---------------------------------- */
.resources-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.resource-item {
  padding: 2rem;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  transition: transform var(--transition-fast);
}

.resource-item:hover {
  transform: translateY(-5px);
}

.resource-item h3 {
  color: var(--primary-color);
}

/* ---------------------------------- */
/*          Careers Section           */
/* ---------------------------------- */
.careers-section {
  text-align: center;
  color: var(--white-color);
}

.careers-section .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.careers-section h2, .careers-section .section-subtitle {
  color: var(--white-color);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ---------------------------------- */
/*           Contact Section          */
/* ---------------------------------- */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg-color);
  border-radius: 30px;
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 15px;
  background-color: var(--bg-color);
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 0 0 0 2px var(--primary-color);
}
.form-group label {
  position: absolute;
  top: 15px;
  left: 20px;
  color: var(--text-color-light);
  pointer-events: none;
  transition: all var(--transition-fast);
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -25px;
  left: 10px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.contact-form button {
  width: 100%;
}
/* ---------------------------------- */
/*           Footer Section           */
/* ---------------------------------- */
.site-footer {
  background: #d1d9e6;
  padding: 4rem 0 2rem 0;
  color: var(--text-color-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}
.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-color-light);
}
.footer-column a:hover {
  color: var(--primary-color);
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--shadow-dark);
  padding-top: 2rem;
  font-size: 0.9rem;
}

/* ---------------------------------- */
/*       Animation Scroll Trigger     */
/* ---------------------------------- */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ---------------------------------- */
/*       Specific Page Styles         */
/* ---------------------------------- */

/* For privacy.html, terms.html */
.page-container {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
}
.page-container h1 {
  margin-bottom: 2rem;
}
.page-container h2 {
    margin-top: 2.5rem;
}

/* For success.html */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}
.success-card {
  max-width: 600px;
  padding: 4rem;
  background: var(--bg-color);
  border-radius: 30px;
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
.success-card h1 {
  color: var(--accent-color-1);
}

/* ---------------------------------- */
/*         Responsive Design          */
/* ---------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero-title { font-size: 2.8rem; }
  section { padding: 4rem 0; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .main-nav a {
    font-size: 1.5rem;
  }
  
  .burger-menu {
    display: flex;
  }

  /* Burger Menu Open State */
  .burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger-menu.open span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
      align-items: center;
  }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .contact-wrapper {
        padding: 2rem;
    }
}