:root {
  --brand: #05B2DC;
  --neon: #617e95;
  --bg: #080808;
  --ink: #E8F4F8;
  --ink-dim: #9FB4BC;
  --panel: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.08);
  --white: #fefefe;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Kanit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg) url('img/section_background.svg') no-repeat center center fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

html {
  scroll-behavior: smooth;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(8, 8, 8, .72);
  border-bottom: 1px solid var(--stroke);
}

/* Layout for Logo Left / Menu Right */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.menu {
  display: flex;
  gap: 28px;
  font-family: "Lato", sans-serif;
  align-items: center;
}

.menu a {
  color: #D8F7FF;
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(0, 240, 255, .55);
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 80px 0 160px;
  /* Increased bottom padding to account for the slant */
  text-align: center;
  background: #080808;
  min-height: 600px;
  display: flex;
  align-items: center;

  /* Creates the diagonal cut */
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  z-index: 1;
  margin-top: 0;
}

/* Video Background Elements */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradient: Top is dark tint, Bottom matches the 'Our Approach' section background */
  background: linear-gradient(to bottom,
      rgba(8, 8, 8, 0.5) 0%,
      /* Dark tint at the top */
      rgba(8, 8, 8, 0.2) 50%,
      /* Very clear in the middle to see the video */
      #080808 100%
      /* Solid black at the very bottom to blend */
    );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Kanit", sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.1;
  margin: 0 0 16px;
}

/* Updated CTA Button styling */
.cta {
  margin-top: 28px;
  display: inline-block;
  background: #0c152a;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.cta:hover {
  transform: scale(1.04);
  background: #455476;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(71, 85, 105, 0.4),
    0 0 40px rgba(71, 85, 105, 0.2);
}

.cta:active {
  transform: scale(0.97);
}

section {
  padding: 40px 0;
  /* Reduced from 72px to 40px top/bottom */
  margin-top: -20px;
  /* Pulls sections slightly closer to each other */
  scroll-margin-top: 80px;
}

section h2 {
  color: var(--white);
  font-family: "Kanit", sans-serif;
  font-weight: 200;
  font-size: clamp(26px, 3vw, 40px);
  margin: 0 0 12px;
}

section p {
  font-family: "Kanit", sans-serif;
  font-weight: 300;
  /* This selects the 'Light' weight */
  font-size: 19px;
  /* Slightly increased as Kanit runs a bit smaller than Nunito */
  line-height: 1.6;
  color: var(--ink);
  margin: 14px 0;
  letter-spacing: 0.02em;
  /* Subtle spacing to improve readability of light weights */
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 22px 22px;
}

.card h3 {
  font-family: "Kanit", sans-serif;
  font-size: 28px;
  color: var(--white);
  margin: 0 0 10px;
}

.card h1 {
  font-family: "Kanit", sans-serif;
  font-size: 48px;
  color: var(--white);
  margin: 0 0 0px;
}

.muted {
  color: var(--ink-dim)
}

/* UPDATED FOOTER STYLES */
footer {
  background: linear-gradient(to right, #0d1a33, #080808);
  /* Gradient from image */
  color: var(--white);
  padding: 80px 0 40px;
  border-top: 1px solid var(--stroke);
  font-family: "Kanit", sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    /* Logo area is wider */
  }
}

.footer-brand img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-brand h2 {
  font-family: "Kanit", sans-serif;
  font-weight: 300;
  font-size: 48px;
  margin: 0;
  line-height: 1;
}

.footer-brand p {
  font-family: "Kanit", sans-serif;
  font-size: 24px;
  color: var(--white);
  margin: 5px 0 0;
}

.footer-links h4 {
  display: none;
  /* Matches the clean look in the image */
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--neon);
}

.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  text-align: justify;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Style for the rotating header */
.rotating-header {
  color: #fefefe;
  font-weight: 200;
  /* Extra Light */
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: baseline;
}

.rotating-word {
  color: #9dc2d8;
  font-weight: 400;
  /* Regular */
  transition: opacity 0.5s ease-in-out;
}

#who_we_are {
  margin-top: -80px;
  /* Pulls the section up into the slant area */
  padding-top: 120px;
  /* Adds space so text doesn't hit the slant */
  position: relative;
  z-index: 0;
}

.contact-wrapper {
  margin: 40px 0 0;
  text-align: left;
}

.web-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.web-form input,
.web-form textarea {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 4px;
  padding: 14px;
  color: var(--white);
  font-family: "Kanit", sans-serif;
  font-size: 16px;
}

.web-form input:focus,
.web-form textarea:focus {
  outline: none;
  border-color: var(--neon);
}

/* Mobile responsiveness for the form */
@media (max-width: 600px) {
  .form-group {
    grid-template-columns: 1fr;
  }
}

@media (min-width:880px) {
  .cards {
    grid-template-columns: repeat(3, 1fr)
  }
}