@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto/Roboto-Light.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto/Roboto-Medium.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.4;
  color: #000000;
  background-color: #ddf0ff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.dark body {
  background-color: #111827; /* Tailwind's gray-900 */
  color: #f3f4f6; /* Tailwind's gray-100 */
}

header.dark {
  background-color: #1f2937; /* dark:bg-gray-800 */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Allow children to wrap on small screens */
  gap: 1rem; /* Add gap to prevent overlap */
}

.logo-name {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-left: 0.75rem;
  color: #0077b5;
}
.dark .brand-name {
  color: #60a5fa;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-menu .link-btn-no-underline + .link-btn-no-underline {
  margin-left: 1rem;
}

.header-dark-toggle {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 100%;
  margin-top: 0.5rem;
}

.dark-toggle-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  background: transparent;
  color: #111827;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark .dark-toggle-btn {
  color: #fff;
}

/* hyperlink */
a {
  text-decoration: none;
  color: #0077b5;
}
.dark a {
  color: #60a5fa; /* Tailwind's blue-400 for links */
}

a:link {
  text-align: left;
  text-decoration: none;
}

h2,
h3 {
  display: inline-block;
  width: fit-content;
  min-width: 0;
  margin: 0;
}

textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: #fff; /* White background */
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #111827;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  outline: none;
  resize: vertical;
}

textarea:focus {
  border-color: #6366f1; /* Indigo-500 */
  box-shadow: 0 0 0 2px #6366f1;
}

textarea::placeholder {
  color: #9ca3af; /* gray-400 */
}

.dark textarea {
  background-color: #374151; /* dark:bg-gray-700 */
  border-color: #374151; /* dark:border-gray-600 */
}

input[type="checkbox"] {
  display: block;
  margin: 0 auto;
  transform: scale(1.2); /* 20% larger than default */
  accent-color: #4f46e5; /* text-indigo-600, modern browsers */
  border-radius: 0.25rem; /* rounded */
  cursor: pointer;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  font-size: 0.875rem;
  font-weight: 500;
  user-select: text; /* allow text selection on label */
  color: #111827;
  transition: color 0.15s;
}

.dark input[type="checkbox"] + label,
.dark input[type="radio"] + label {
  color: #f3f4f6; /* Tailwind's gray-100 */
}

/* select elements */
select {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  background-color: #ffffff;
  color: #111827;
  font-size: 0.875rem;
  transition: all 0.15s ease-in-out;
  width: auto;
  min-width: 8ch;
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box;
}
.dark select {
  background-color: #1e293b; /* Tailwind's gray-800 for inputs */
  color: #f3f4f6;
  border-color: #374151; /* Tailwind's gray-700 for borders */
}

select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

/* Overlay for DOM elements */
.modal-overlay {
  position: fixed;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
  background: hsla(220, 20%, 20%, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  gap: 1rem;
}
.dom-elm-overlay {
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: none;
}
.green-bg-border {
  background: hsla(120, 60%, 50%, 0.3);
  border: 2px solid hsla(120, 60%, 30%, 0.3);
}
.red-bg-border {
  background: hsla(0, 100%, 50%, 0.5);
  border: 2px solid hsla(0, 100%, 30%, 0.5);
}
/* SVG shapes */
.svg-shape-rectangle,
.svg-shape-image,
.svg-shape-circle {
  stroke-width: 4;
}
.svg-green-image,
.svg-green-rectangle,
.svg-green-circle {
  fill: hsla(120, 60%, 50%, 0.3);
  stroke: hsla(120, 60%, 30%, 0.8);
}
.svg-red-image,
.svg-red-rectangle,
.svg-red-circle {
  fill: hsla(0, 100%, 50%, 0.5);
  stroke: hsla(0, 100%, 30%, 0.5);
}

.sea-surface-shape {
  pointer-events: none; /* Prevent interaction */
}

.centered-heading {
  text-align: center;
}

.mission-statement {
  text-align: center;
  max-width: 1200px;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.3;
  margin: 0 auto;
  padding: 0 1rem;
}

.profile-section p {
  text-align: justify;
}

/* button to "Find my ideal job" */
.button-link-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  
}

.button-link {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 32px;
  background-color: #0078b6;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px rgba(17,120,182,0.08);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  max-width: 100%;            /* prevent overflow */
}
.button-link:hover,
.button-link:focus {
  background-color: #0d5e91;
  box-shadow: 0 4px 16px rgba(17,120,182,0.16);
  outline: none;
}
.dark .button-link {
  background-color: #2563eb; /* Tailwind's blue-600 for buttons */
  color: #f3f4f6;
}

.top-nav {
  background-color: #ffffff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
}

.top-nav-links-container {
  display: flex;
  gap: 24px;
}

.logo-text-link {
  display: flex;
  align-items: center;
}

.app-logo {
  height: 32px;
  margin-right: 10px;
}

.brand-text {
  display: inline;
  font-size: 32px;
  font-weight: 500;
  color: #2c3e50;
}

.main-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 500px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background-color: #000000;
}

.main-header-video {
  object-fit: cover;
}

.main-header-content {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 64px;
  padding: 32px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  color: white;
  perspective: 1000px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 500;
  font-size: 2.8rem;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  /* padding: 2rem 1rem; */
  z-index: 10;
}

.main-header-text {
  display: inline-block;
  transform-origin: bottom center;
  transition:
    transform 1s ease,
    opacity 0.5s ease;
}

.tagline-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  padding-left: 64px;
  padding-right: 64px;
  box-sizing: border-box;
}

.tagline {
  font-size: 61px;
  text-align: left;
  font-weight: 300;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.header-sub-tagline {
  width: 100%;
  max-width: 1200px;
  text-align: left;
  padding-left: 64px;
  padding-right: 64px;
  box-sizing: border-box;
}

.header-sub-tagline .sub-tagline {
  max-width: 900px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px;
}

.segmented-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 64px 32px;
  background-color: #ffffff;
}
.dark .segmented-section,
.dark .top-nav {
  background-color: #1f2937; /* Tailwind's gray-800 for cards/navs */
  color: #f3f4f6;
}

.section-split {
  display: flex;
  gap: 64px;
}

.section-split > * {
  width: 50%;
}

.section-split > * > img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.profile-section {
  display: flex;
  gap: 64px;
  max-width: 1200px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  border-radius: 8px;
  padding: 64px;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  min-width: 30%;
}

.profile-picture {
  width: 256px;
  height: 256px;
  background-size: cover;
  border-radius: 50%;
  margin: 1em;
}

.profile-name {
  font-size: 28px;
}

.kevin {
  background-image: url(../assets/images/kevin.jpg);
}

.jonathan {
  background-image: url(../assets/images/jonathan.jpg);
}

.profile-bio {
  flex-grow: 1;
}

footer {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding: 16px;
  font-size: 16px;
}

.section-split img {
  max-width: 500px;
}

.section-split img.iceberg-image {
  max-width: 400px;
  height: auto;
}

.charts-graphic-image.popup-company-card {
  cursor: pointer;
}

.section-split img.charts-graphic-image {
  max-width: 490px;
  height: auto;
  cursor: pointer;
}

.section-split img.bill-murray-image {
  max-width: 370px;
  height: auto;
}

.section-split img.gem-image {
  max-width: 180px;
  height: auto;
}

.section-image-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.section-text-container ul {
  padding-inline-start: 1em;
}

.video-embed-container {
  max-width: 720px;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.video-embed-container iframe {
  width: 100%;
  height: 405px;
  display: block;
  border-radius: 12px;
  box-shadow: none; /* Remove inline shadow, container handles it */
}

ul li {
  padding-top: 0.4em;
  padding-bottom: 0.4em;
}

.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .profile-section {
    flex-direction: column;
    gap: 8px;
  }

  .profile-picture {
    order: 2;
  }

  .profile-name {
    order: 1;
  }

  .tagline {
    font-size: 42px;
  }

  .header-sub-tagline .sub-tagline {
    max-width: 600px;
  }

  .section-split {
    flex-direction: column;
    align-items: center;
  }

  .section-split > * {
    width: 100%;
  }

  .section-split > .section-image-container {
    order: 0;
  }

  .section-split > .section-text-container {
    order: 1;
  }
}

@media (max-width: 800px) {
  .top-nav {
    flex-direction: column;
    text-align: center;
    box-sizing: border-box;
    height: 140px;
    gap: 24px;
  }

  .main-header {
    box-sizing: border-box;
    height: 40vh;
    height: 40dvh;  /* dynamic viewport height */
  }

  h1 {
    font-size: 28px;
  }

  .tagline,
  .header-sub-tagline {
    text-align: center;
  }

  .tagline {
    font-size: 32px;
  }

  .profile-section {
    gap: 0px;
  }

  .profile-picture {
    width: 150px;
    height: 150px;
  }

  .tagline-container {
    gap: 12px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 400px) {
  main {
    padding: 16px;
    gap: 16px;
  }

  .top-nav-links-container {
    font-size: 18px;
  }

  .main-header {
    box-sizing: border-box;
    height: 30vh;
    height: 30dvh;
  }

  .profile-name {
    text-align: center;
  }

  .xs-hidden {
    display: none !important;
  }

  .tagline-container {
    gap: 64px;
  }
}
