/* --- Google Font --- */
@import url('/npm/@fontsource/prompt/index.css');

/* --- CSS Variables --- */
:root {
    --primary-color: #41826e;
    --white-color: #ffffff;
    --dark-grey-color: #333333;
    --light-grey-color: #f4f7f6;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.7;
    color: var(--dark-grey-color);
}

body, .custom-scroll-container {
  overflow-y: overlay; /* Overlay scrollbar (Chrome/Edge) */
  scrollbar-gutter: stable; /* Prevent layout shifts (Firefox/Chrome) */
}

.custom-scroll-container {
  max-height: 300px;
  overflow-y: auto;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--primary-color); margin-bottom: 1rem; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
.section-bg { background-color: var(--light-grey-color); }
section { padding: 80px 0; }
a { text-decoration: none; }

/* --- Header & Navbar --- */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 50px; }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-link { text-decoration: none; color: var(--dark-grey-color); font-weight: 400; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-color); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-grey-color); transition: all 0.3s ease-in-out; }

/* --- Footer Section --- */
.footer { background-color: var(--primary-color); color: var(--white-color); padding: 50px 0 0; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding-bottom: 40px; }
.footer h4 { margin-bottom: 1rem; color: var(--white-color); font-size: 1.2rem; }
.footer p, .footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.3s ease; }
.footer a:hover { color: var(--white-color); }
.footer ul { list-style: none; }
.footer-bottom { text-align: center; padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); }

/* --- Fade-in Animation on Scroll --- */
.section-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.section-fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;          /* Width of vertical scrollbar */
  height: 8px;         /* Height of horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent; /* Hide track by default (overlay effect) */
  border-radius: 0;
  margin: 2px 0;       /* Add spacing around the thumb */
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color); /* Thumb color */
  border-radius: 10px;
  border: 2px solid var(--light-grey-color); /* Light border for contrast */
  transition: opacity 0.3s;
  opacity: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--primary-color) 80%, black 20%); /* Darken on hover */
}

.is-scrolling ::-webkit-scrollbar-thumb {
  opacity: 1;
}

@media (max-width: 768px) {
    /* Navbar */
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; left: -100%; top: 80px; flex-direction: column; background-color: var(--white-color); width: 100%; text-align: center; transition: 0.3s; box-shadow: var(--shadow); }
    .nav-menu.active { left: 0; }
    .nav-menu li { padding: 1rem 0; }
    .section-title { font-size: 2rem; }
}

@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary-color) 70%, black 30%);
  }
}