:root {
  /* Colors */
  --primary-color: #3FAE8F;
  --secondary-color: #4B5563;
  --dark-blue: #1F2933;

  --background-color: #FBFBF8;
  --surface-color: #FFFFFF;
  --off-white: #F4F7F5; /* Slightly adjusted for contrast */

  --text-color: #1F2933;
  --text-muted: #5B6770;
  --pure-black: #000000;
  --light-gray: #EEF4F1;
  --border-color: #DDE5E1;

  /* Typography & Layout */
  --font-family: 'Poppins', sans-serif;
  --container-width: 1140px;
  --border-radius: 12px;

  /* Shadows */
  --shadow: 0 10px 30px rgba(31, 51, 41, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #6ED3AE;
    --secondary-color: #AAB7B8;
    --dark-blue: #0F1A17;
    --pure-black: #FFFFFF;
    
    --background-color: #0B1411;
    --surface-color: #162521; /* Slightly lighter than background for depth */
    --off-white: #0B1411;

    --text-color: #E0EAE5; /* Lightened for readability */
    --text-muted: #9FB7AD;

    --light-gray: #20332C;
    --border-color: #2D4039;

    --shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
  }
}

/* =========================
   GLOBAL STYLES
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-family);
  line-height: 1.6; /* Standardized for Poppins */
  color: var(--text-color);
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  flex-grow: 1;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px; /* Increased slightly for better mobile gutters */
}

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

/* =========================
   HEADER & NAVIGATION
   ========================= */
.header {
  background-color: var(--surface-color);
  box-shadow: var(--shadow);
  padding: 10px 0; /* Tightened padding */
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--surface-color);
  list-style: none;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  z-index: 999;
  border: 1px solid var(--border-color);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* =========================
   HAMBURGER
   ========================= */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.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); }

/* =========================
   BUTTONS
   ========================= */
.btn {
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 174, 143, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* =========================
   PAGE HEADER
   ========================= */
.page-header {  
  background-color: var(--dark-blue);
  color: #ffffff;
  padding: 0px 15px;
  text-align: center;
  border-bottom: 4px solid var(--primary-color);
}


/* =========================
   FOOTER
   ========================= */
.footer {
  background-color: var(--surface-color);
  color: var(--text-color);
  padding: 40px 0 20px;
  margin-top: auto;
}

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

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-heading::after {
  content: '';
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: -5px;
  left: 0;
}

.footer-about {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================
   MEDIA QUERIES
   ========================= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Fully hidden off-screen */

    height: 100vh;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: 100px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: block; /* Show links in mobile drawer */
    background: transparent;
  }
  .page-header h1 {
  padding-top: 10px;
  font-size: 1.5rem; 
  }
  .page-header p {
  font-size: 1rem; 
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  /* Keep only About and Contact/Links visible on tiny screens to reduce clutter */
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) {
    display: none;
  }
}