/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Work+Sans:wght@400;500&display=swap');

/*=============== CSS VARIABLES ===============*/
:root {
  /* Colors */
  --bg-color: #E0E5EC;
  --primary-color: #333d4b;
  --secondary-color: #757E8A;
  --accent-color: #007BFF;
  --white-color: #FFFFFF;
  --black-color: #1a1a1a;
  --light-shadow: rgba(255, 255, 255, 0.8);
  --dark-shadow: #A3B1C6;
  --text-color: #5a6473;
  --title-color: #333d4b;
  --overlay-color: rgba(10, 20, 30, 0.6);

  /* Typography */
  --font-body: 'Work Sans', sans-serif;
  --font-title: 'Poppins', sans-serif;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /* Spacing & Borders */
  --header-height: 5rem;
  --section-padding: 5rem 0;
  --container-width: 1140px;
  --grid-gap: 2rem;
  --border-radius: 20px;
  --neumorphic-shadow: 
    -9px -9px 16px var(--light-shadow),
    9px 9px 16px var(--dark-shadow);
  --neumorphic-shadow-inset:
    inset -7px -7px 15px var(--light-shadow),
    inset 7px 7px 15px var(--dark-shadow);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(.25,.8,.25,1);
}

@media screen and (max-width: 992px) {
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.1rem;
    --section-padding: 4rem 0;
  }
}

/*=============== BASE STYLES ===============*/
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--normal-font-size);
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--title-color);
  font-weight: 700;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

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

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

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: var(--section-padding);
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.section__title--light {
  color: var(--white-color);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.section__title--small {
    font-size: var(--h3-font-size);
    margin-bottom: 2rem;
    text-align: center;
}

.section__subtitle {
  display: block;
  font-size: var(--normal-font-size);
  color: var(--secondary-color);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

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

.grid {
  display: grid;
  gap: var(--grid-gap);
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  background-color: var(--bg-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.header.scrolled .nav__logo {
    color: var(--primary-color);
}

.header:not(.scrolled) .nav__logo,
.header:not(.scrolled) .nav__link {
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.header:not(.scrolled) .nav__link--button {
    color: var(--white-color);
    border-color: var(--white-color);
}
.header:not(.scrolled) .nav__toggle {
    color: var(--white-color);
}


@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--bg-color);
    padding: 6rem 2rem 2rem;
    box-shadow: -8px 0px 24px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    z-index: 100;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav__link:hover {
  color: var(--accent-color);
}

.nav__link--button {
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.nav__link--button:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
}

.nav__close, .nav__toggle {
  display: none;
  cursor: pointer;
  color: var(--primary-color);
}
.nav__close svg, .nav__toggle svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}


/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }
  .nav__toggle {
    display: block;
  }
  .nav__close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  .nav__menu.show-menu {
    right: 0;
  }
  .header:not(.scrolled) .nav__logo,
  .header:not(.scrolled) .nav__toggle {
    color: var(--white-color); /* Ensure visibility on hero */
  }
  .header.scrolled .nav__logo,
  .header.scrolled .nav__toggle {
    color: var(--primary-color);
  }
  .nav__link {
      color: var(--primary-color);
  }
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-title);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--neumorphic-shadow);
  transition: var(--transition-smooth);
  text-align: center;
}

.button:hover {
  transform: translateY(-3px);
  color: var(--accent-color);
}

.button:active {
  transform: translateY(1px);
  box-shadow: var(--neumorphic-shadow-inset);
}

.button--hero {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid var(--white-color);
    color: var(--white-color);
    box-shadow: none;
}
.button--hero:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.button--flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}


/*=============== HERO SECTION ===============*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: var(--header-height);
  color: var(--white-color);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
}

.hero__container {
  position: relative;
  z-index: 2;
  text-align: center;
}

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

.hero__title {
  font-size: 3rem;
  color: var(--white-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 768px) {
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__description {
    font-size: 1rem;
  }
}

/*=============== CARDS (PROJECTS, PORTFOLIO, ETC) ===============*/
.card, .portfolio-card, .resource-card {
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--neumorphic-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.card:hover, .portfolio-card:hover, .resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    -12px -12px 20px var(--light-shadow),
    12px 12px 20px var(--dark-shadow);
}

.projects__container, .portfolio__container, .resources__container {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-image, .portfolio-card__img-container {
  border-radius: calc(var(--border-radius) - 10px);
  overflow: hidden;
  margin-bottom: 1.5rem;
  height: 220px;
}

.card__img, .portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__img, .portfolio-card:hover .portfolio-card__img {
  transform: scale(1.05);
}

.card-content, .portfolio-card__content, .resource-card__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card__title, .portfolio-card__title, .resource-card__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}

.card__description, .portfolio-card__description, .resource-card__description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Resource Card Specifics */
.resource-card {
    text-align: left;
}
.resource-card__source {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-color);
    font-size: var(--small-font-size);
}

/*=============== RESEARCH & STATS SECTION ===============*/
.research {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white-color);
}
.research__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
}
.research__container {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media screen and (min-width: 992px) {
  .research__container {
    grid-template-columns: 1fr 1fr;
  }
}
.research__description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}
.research__stats {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat-widget {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-widget__value {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stat-widget__label {
  font-size: var(--small-font-size);
  line-height: 1.4;
}

/*=============== SUCCESS STORIES (TESTIMONIALS) ===============*/
.success-stories {
  background-color: #d1d9e6;
}
.success__container {
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media screen and (min-width: 992px) {
  .success__container {
    grid-template-columns: 1fr 1fr;
  }
}
.testimonial-card {
  padding: 2rem;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--neumorphic-shadow);
  text-align: center;
}
.testimonial__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  border: 5px solid var(--bg-color);
  box-shadow: var(--neumorphic-shadow);
}
.testimonial__text {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.testimonial__author {
  font-family: var(--font-title);
  font-weight: 600;
  display: block;
  font-style: normal;
}
.testimonial__role {
  font-size: var(--small-font-size);
  color: var(--secondary-color);
  display: block;
}

/*=============== CLIENTELE, AWARDS, MEDIA ===============*/
.grid-halves {
    display: grid;
    gap: 4rem;
}
@media screen and (min-width: 768px) {
    .grid-halves {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
.logos__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 2rem;
}
.logo__img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-smooth);
}
.logo__img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.awards__list {
    list-style-type: none;
    padding: 0;
}
.award__item {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset);
    text-align: center;
}

/*=============== FAQ ===============*/
.faq__container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.faq__item {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--neumorphic-shadow);
  overflow: hidden;
}
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
}
.faq__question h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.faq__icon {
  width: 20px;
  height: 20px;
  fill: var(--accent-color);
  transition: transform 0.4s ease;
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq__answer p {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.7;
}
.faq__item.active .faq__answer {
  max-height: 300px; /* Adjust as needed */
}
.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

/*=============== CONTACT FORM ===============*/
.contact__container {
  align-items: start;
}
@media screen and (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
}
.contact__description {
    margin-bottom: 2rem;
}
.contact__info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.contact__form-container {
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
}
.contact__form {
    display: grid;
    gap: 1.5rem;
}
.form__group {
    position: relative;
}
.form__input {
    width: 100%;
    padding: 1rem;
    border: none;
    outline: none;
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: var(--normal-font-size);
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--primary-color);
    transition: var(--transition-smooth);
}
.form__input:focus {
    box-shadow: 
      inset -2px -2px 5px var(--light-shadow),
      inset 2px 2px 5px var(--dark-shadow),
      0 0 0 2px var(--accent-color);
}
.form__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--secondary-color);
    pointer-events: none;
    transition: var(--transition-smooth);
}
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: var(--small-font-size);
    background-color: var(--bg-color);
    padding: 0 0.5rem;
    color: var(--accent-color);
}
textarea.form__input {
    resize: vertical;
    min-height: 120px;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: #d1d9e6;
  padding: 4rem 0 2rem 0;
  color: var(--text-color);
}
.footer__container {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}
.footer__links {
  display: grid;
  gap: 0.75rem;
}
.footer__link {
  color: var(--text-color);
}
.footer__link:hover {
  color: var(--accent-color);
}
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__social-link {
    color: var(--text-color);
}
.footer__copy {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-shadow);
  font-size: var(--small-font-size);
}

/*=============== SPECIFIC PAGE STYLES ===============*/
/* Success page */
.success-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}
.success-container {
    padding: 3rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    max-width: 500px;
}
.success-container h1 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.success-container p {
    margin-bottom: 2rem;
}
.success-container .button {
    background-color: var(--accent-color);
    color: var(--white-color);
    box-shadow: none;
}
.success-container .button:hover {
    background-color: var(--primary-color);
}

/* Privacy & Terms pages */
.legal-page-body main {
    padding-top: calc(var(--header-height) + 2rem);
}
.legal-content {
    max-width: 800px;
}
.legal-content h1 {
    margin-bottom: 2rem;
}
.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-content p, .legal-content li {
    line-height: 1.8;
    margin-bottom: 1rem;
}
.legal-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}