/* Importing 'Pretendard Variable' Font*/
/* @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css"); */

/* 1. Global Styles & Theme */
:root {
  --text-color: #333;
  --bg-color: #ffffff;
  --primary-accent: #00796b; /* A deep, natural/techy teal */
  --secondary-accent: #f4f7f6; /* Light gray for backgrounds */
  --header-height: 70px; /* Base height, logo will set it */

  /* New: hero CTA button colors (easily customizable later) */
  --cta-bg: #0b6b2d;
  --cta-bg-hover: #05491a;
  --cta-text-color: #ffffff;
}

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

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

body {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  font-family:
    "Pretendard Variable",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-accent);
  display: inline-block;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-section {
  /* The 'scroll-margin-top' matches the header height */
  /* This ensures the section title isn't hidden by the sticky header */
  scroll-margin-top: calc(var(--header-height) + 20px);
  padding: 4rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.content-section:last-of-type {
  border-bottom: none;
}

/* 2. Header & Navigation */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto; /* original was: var(--header-height);*/
  min-height: var(--header-height); /* don't force a fixed height */
}

.logo img {
  /* The logo's height defines the header's height */
  /* height: calc(var(--header-height) - 20px); */ /* 70px - 10px padding top/bottom */
  /* width: auto; */
  height: auto; /* allow natural proportions */
  max-height: calc(
    var(--header-height) - 20px
  ); /* same visual size as before */
  width: auto;
  flex-shrink: 0; /* <-- this is the key: stop flex from squeezing it */
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-links a {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

/* Animated underline effect */
.menu-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-accent);
  transition: width 0.3s ease;
}

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

.lang-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-toggle .flag {
  font-size: 1.5rem; /* Using emoji flags */
  cursor: pointer;
  opacity: 0.5;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.lang-toggle .flag.active {
  opacity: 1;
  transform: scale(1.1);
}

.mobile-toggle {
  display: none; /* Hidden on desktop */
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* 3. Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  /* Provide 'hero-image.jpg' or .webp - Size of 1920x1080px Recommended*/
  /* DISABLED: background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero-image.webp'); */

  position: relative; /* new: to hold the bg image */
  overflow: hidden; /* new: clip the image edges */

  background-size: cover;
  background-position: center;
  color: white;
  padding: 1rem;
}

.hero-bg {
  /* Delete this section if you turn on the background image on #hero */

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* like background-size: cover */
  z-index: -1; /* behind .hero-content */
  filter: brightness(60%); /* replaces your dark overlay */
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 600px;
}

/* New hero CTA button */
.hero-cta-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  background-color: #31572c;
  color: var(--cta-text-color);
  font-weight: 500;
  font-size: 90%;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.hero-cta-button:hover,
.hero-cta-button:focus {
  background-color: 31572C;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* 4. Content Sections */

/* About Us */
#about .about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
#about .about-text {
  flex: 2;
}
#about .about-vision {
  flex: 1;
  background-color: var(--secondary-accent);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-accent);
}

/* Partners */
#partners p {
  max-width: 800px;
}
.partner-logo-container {
  margin-top: 2rem;
  padding: 2rem;
  background-color: var(--secondary-accent);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logo-container img {
  /* User must provide 'nbbio-logo.png' */
  max-width: 250px;
  filter: grayscale(0%);
  opacity: 0.8;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}

.partner-logo-container img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.general-link {
  color: #0b6b2d; /* dark green */
  text-decoration: underline;
  font-weight: 600; /* optional — makes it stand out */
}
.general-link:hover,
.general-link:focus {
  color: #05491a; /* slightly darker on hover/focus */
  text-decoration: underline;
}

.footer-link {
  color: #ccc;
  font-weight: 600;
}
.footer-link:hover,
.footer-link:focus {
  text-decoration: underline;
}

/* Contact */
.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-list li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-list strong {
  /* display: inline-block; */
  display: inline-block;
  /* width: 180px; /* Aligns the email addresses */
  margin-right: 0.2rem;
  color: var(--text-color);
}

/* New: contact socials (LinkedIn) */
.contact-socials {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-socials span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Shared base for LinkedIn icon/button styles */
.social-link,
.social-combined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0a66c2; /* LinkedIn blue */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

/* Icon-only circle */
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* Combined LinkedIn icon + text inside one pill badge */
.social-combined {
  gap: 6px;
  padding: 0 14px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

/* Shared SVG icon styles */
.social-link svg,
.social-combined svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Shared hover/focus behavior */
.social-link:hover,
.social-link:focus,
.social-combined:hover,
.social-combined:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(10, 102, 194, 0.4);
  opacity: 0.9;
}

/* Text-style LinkedIn link (bold + LinkedIn blue) */
.linkedin-text {
  font-weight: 600;
  color: #0a66c2;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.linkedin-text:hover,
.linkedin-text:focus {
  opacity: 0.8;
  text-decoration: underline;
}

/* 5. Footer */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #333;
  color: #ccc;
  font-size: 0.9rem;
}

/* 6. Responsive (Mobile-First approach) */
/* THIS SECTION OVERTAKES THE PREVIOUS ONE. MODIFY HERE ONLY FOR MOBILE CHANGES */
@media (max-width: 768px) {
  :root {
    --header-height: 60px; /* Smaller header on mobile */
  }

  .menu-links {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
  }

  .menu-links.active {
    display: flex; /* Shown when toggled */
  }

  .menu-links li {
    text-align: center;
    padding: 0.75rem 0;
  }

  .mobile-toggle {
    display: block; /* Show hamburger */
  }

  .nav-right {
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  #about .about-content {
    flex-direction: column;
  }

  h2 {
    font-size: 1.75rem;
  }

  .content-section {
    padding: 2.5rem 0;
    scroll-margin-top: var(--header-height);
  }

  .contact-list strong {
    display: block; /* Stack on mobile */
    margin-bottom: 0.25rem;
  }
}
