/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1.  Root Variables & Global Styles
2.  Utility Classes
3.  Header & Navigation
4.  Hero Section
5.  Accolades Section (Stats Widgets)
6.  Vision Section
7.  Research Section (Cards)
8.  Insights Section
9.  External Resources Section
10. FAQ Section & UI Components (Switch)
11. Contact Section & Form
12. Footer
13. Specific Page Styles (Success, Privacy, Terms)
14. Animations & Transitions
15. Media Queries (Responsive Design)
-------------------------------------------------------------------*/

/* 1. Root Variables & Global Styles
-------------------------------------------------------------------*/
:root {
  --primary-color: #0d3d56; /* Deep Technological Blue */
  --secondary-color: #1a759f; /* Lighter Complementary Blue */
  --accent-color: #f79d65; /* Vibrant Orange/Peach */
  --accent-color-darker: #e67e4a;

  --background-color: #f8f9fa;
  --dark-background-color: #03141f;
  
  --text-color: #343a40;
  --text-color-light: #6c757d;
  --light-text-color: #ffffff;
  --headings-color: #212529;

  --font-family-headings: 'Playfair Display', serif;
  --font-family-body: 'Source Sans Pro', sans-serif;

  --container-width: 1200px;
  --container-padding: 1.5rem;
  --border-radius: 8px;
  --transition-speed: 0.4s;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--headings-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* 2. Utility Classes
-------------------------------------------------------------------*/
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #222222;
}

.section-subtitle {
  font-size: 1.15rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: var(--text-color-light);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Base styles for ScrollReveal elements */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
    opacity: 1;
    visibility: hidden;
}

/* 3. Header & Navigation
-------------------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

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

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed) cubic-bezier(0.19, 1, 0.22, 1);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

/* 4. Hero Section
-------------------------------------------------------------------*/
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text-color);
  text-align: center;
  padding: 0 var(--container-padding);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

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

.hero-title {
  font-size: 4rem;
  color: var(--light-text-color);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  color: var(--light-text-color);
  opacity: 0.9;
}

/* Global Button Style */
.cta-button, button[type='submit'] {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text-color);
    background-color: var(--accent-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover, button[type='submit']:hover {
    background-color: var(--accent-color-darker);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--light-text-color);
}


/* 5. Accolades Section (Stats Widgets)
-------------------------------------------------------------------*/
.accolades-section {
  background-color: var(--background-color);
}

.stats-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.stat-widget {
  text-align: center;
  padding: 2.5rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-widget:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-family: var(--font-family-headings);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--headings-color);
  margin-bottom: 1rem;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* 6. Vision Section
-------------------------------------------------------------------*/
.vision-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.vision-image-container {
  flex: 1 1 50%;
}
.vision-image-container img {
  border-radius: var(--border-radius);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.vision-text {
  flex: 1 1 50%;
}
.vision-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* 7. Research Section (Cards)
-------------------------------------------------------------------*/
.research-section {
  background-color: #fff;
}

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

.card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 220px;
  width: 100%;
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
}
.card-content h3 {
    font-size: 1.4rem;
}

/* 8. Insights Section
-------------------------------------------------------------------*/
.insight-item {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}
.insight-item:last-child {
    margin-bottom: 0;
}

.insight-image {
    flex: 0 0 45%;
}
.insight-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.insight-text {
    flex: 1;
}
.insight-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.insight-item-reverse {
    flex-direction: row-reverse;
}

/* 9. External Resources Section
-------------------------------------------------------------------*/
.resources-section {
    background-color: #fff;
}
.resource-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.resource-list li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.resource-list a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}
.resource-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed) cubic-bezier(0.19, 1, 0.22, 1);
}
.resource-list a:hover::after {
    transform: scaleX(1);
}

/* 10. FAQ Section & UI Components (Switch)
-------------------------------------------------------------------*/
.faq-container {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-item summary {
  padding: 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 0 1.5rem 0;
  color: var(--text-color-light);
}

.faq-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}
.switch-label {
    font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input {
  opacity: 1;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: var(--secondary-color);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--secondary-color);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}


/* 11. Contact Section & Form
-------------------------------------------------------------------*/
.contact-section {
    color: var(--light-text-color);
}
.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 61, 86, 0.85), rgba(13, 61, 86, 0.95));
}
.contact-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--light-text-color);
}

.contact-form {
    margin-top: 3rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    background-color: transparent;
    color: var(--light-text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

.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: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: var(--primary-color);
    padding: 0 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form button {
    width: 100%;
}


/* 12. Footer
-------------------------------------------------------------------*/
.site-footer {
  background-color: var(--dark-background-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0 0;
}

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

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

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.8rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* 13. Specific Page Styles
-------------------------------------------------------------------*/
.static-page-content {
    padding-top: 100px; /* Header height + buffer */
    padding-bottom: 4rem;
}
.static-page-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.success-content h1 {
    font-size: 3rem;
    color: var(--light-text-color);
}
.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.success-content a {
    color: var(--light-text-color);
    background-color: var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
}
.success-content a:hover {
    background-color: var(--accent-color-darker);
}

/* 14. Animations & Transitions
-------------------------------------------------------------------*/
/* Barba.js page transitions */
.fade-leave-active,
.fade-enter-active {
  transition: opacity 0.5s;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 1;
}


/* 15. Media Queries (Responsive Design)
-------------------------------------------------------------------*/
@media (max-width: 992px) {
  .vision-content, .insight-item, .insight-item-reverse {
    flex-direction: column;
    text-align: center;
  }
  .insight-item-reverse {
    flex-direction: column; /* Stays column */
  }
}

@media (max-width: 768px) {
  .section-title, .hero-title, .static-page-content h1, .success-content h1 {
    font-size: 2.5rem;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .main-nav.is-active {
    display: flex;
  }
  .main-nav ul {
    flex-direction: column;
    text-align: center;
  }
  .main-nav li {
    margin: 1.5rem 0;
  }
  .main-nav a {
    font-size: 1.5rem;
  }

  .burger-menu {
    display: block;
  }

  .burger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-menu.is-active span:nth-child(2) {
    opacity: 1;
  }
  .burger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-section {
    height: 90vh;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}