/* CSS Variables for Theme */
:root {
  /* Primary Colors */
  --color-primary: #a8dadc;
  --color-secondary: #457b9d;
  --color-accent: #f1faee;
  --color-dark: #1d3557;
  --color-light: #edf6f9;
  --color-hover: #2a9d8f;

  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-light: #ffffff;

  /* Background Gradients */
  --gradient-overlay: rgba(0, 0, 0, 0.5);
  --gradient-background: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);

  /* Fonts */
  --font-primary: "Work Sans", sans-serif;
  --font-heading: "Poppins", sans-serif;

  /* Transition */
  --transition-speed: 0.3s;

  /* Shadows */
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);

  /* Z-Index */
  --z-index-fixed: 1000;
  --z-index-modal: 9999;
}

/* Global Styles */
body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--color-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

p {
  font-family: var(--font-primary);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

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

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header Styles */
header {
  background-color: var(--color-primary);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-index-fixed);
  box-shadow: var(--shadow-light);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

header .logo a {
  font-size: 1.5rem;
  color: var(--text-light);
  font-weight: bold;
}

nav {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--text-light);
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-links li a:hover {
  color: var(--color-hover);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px;
  transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("image/icon-achievement2.jpg") center / cover no-repeat;
  position: relative;
  color: var(--text-light);
  padding: 8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90vh;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-icon img {
  width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero .btn {
  background-color: var(--color-secondary);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.hero .btn:hover {
  background-color: var(--color-hover);
  color: #fff;
}

/* Sections */
section {
  padding: 4rem 0;
  position: relative;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-secondary);
}

.about,
.process,
.features,
.portfolio,
.testimonials,
.research,
.press,
.team,
.behind,
.contact {
  background-color: var(--color-light);
}

.about-content,
.process-content,
.research-content,
.behind-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-content img,
.research-content img,
.behind-content img {
  flex: 1 1 500px;
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  object-fit: cover;
  height: auto;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-content .text,
.research-content .text,
.behind-content .text {
  flex: 1 1 500px;
  min-width: 300px;
}

.features-grid,
.team-grid,
.portfolio-grid,
.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item,
.team-member,
.portfolio-item,
.resource-item {
  background-color: var(--text-light);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.feature-item:hover,
.team-member:hover,
.portfolio-item:hover,
.resource-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glass);
}

.feature-item img,
.team-member img,
.portfolio-item img,
.resource-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.feature-item h3,
.team-member h3,
.portfolio-item h3,
.resource-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.testimonial-slider {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  scroll-behavior: smooth;
}

.testimonial-item {
  background-color: var(--text-light);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  min-width: 300px;
  flex: 0 0 auto;
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.testimonial-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glass);
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-item h4 {
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.press-articles,
.external-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.press-article,
.resource-item {
  background-color: var(--text-light);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.press-article:hover,
.resource-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass);
}

.press-article a,
.resource-item a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-secondary);
  font-weight: bold;
  transition: color var(--transition-speed);
}

.press-article a:hover,
.resource-item a:hover {
  color: var(--color-hover);
}

.portfolio-grid img,
.team-grid img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

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

.btn {
  align-self: center;
  background-color: var(--color-secondary);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background-color: var(--color-hover);
  color: #fff;
}

.contact .btn {
  align-self: center;
  background-color: var(--color-secondary);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.contact .btn:hover {
  background-color: var(--color-hover);
  color: #fff;

}

/* Footer Styles */
footer {
  background-color: var(--color-dark);
  color: var(--text-light);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links,
.social-media {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a,
.social-media a {
  color: var(--text-light);
  font-weight: 500;
  transition: color var(--transition-speed);
}

.footer-links a:hover,
.social-media a:hover {
  color: var(--color-hover);
}

/* Social Media Text Icons */
.social-media a::before {
  content: attr(data-icon);
  margin-right: 0.5rem;
  font-weight: 700;
}

.social-media a.facebook::before {
  content: "F";
}

.social-media a.twitter::before {
  content: "T";
}

.social-media a.instagram::before {
  content: "I";
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn-primary:hover {
  color: #fff;

  background-color: var(--color-hover);
}

.read-more {
  color: var(--color-secondary);
  font-weight: bold;
  text-decoration: underline;
  transition: color var(--transition-speed);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .features-grid,
  .team-grid,
  .portfolio-grid,
  .resources-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-primary);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
  }

  nav.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .burger {
    display: block;
  }

  .about-content,
  .process-content,
  .research-content,
  .behind-content {
    flex-direction: column;
  }

  .testimonial-slider {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-item {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 1rem 0;
  }
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light);
  text-align: center;
}

.success-page h1 {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.success-page p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Privacy and Terms Pages */
.privacy,
.terms {
  padding-top: 100px;
}

/* Scroll-Dependent Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Button Transitions */
.btn,
.btn-primary,
.contact .btn {
  transition: background-color var(--transition-speed),
    transform var(--transition-speed);
}

.btn:hover,
.btn-primary:hover,
.contact .btn:hover {
  transform: scale(1.05);
}

/* Read More Link */
.read-more {
  font-size: 1rem;
  color: var(--color-secondary);
  transition: color var(--transition-speed);
}

.read-more:hover {
  color: var(--color-hover);
  text-decoration: none;
}
