/* =======================================================================
   BASE RESET
   ======================================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #fff; /* Light theme default */
  overflow-x: hidden; /* Prevent horizontal scroll / anti-aliasing gap */
}

img,
video {
  max-width: 100%;
  height: auto;
}

p {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}

a {
  text-decoration: none;
  color: inherit;
}
@font-face {
  font-family: 'Corinthia';
  src: url('../fonts/Corinthia-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 10%;
  line-gap-override: 0%;
}


@font-face {
  font-family: 'Corinthia';
  src: url('../fonts/Corinthia-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.corinthia-regular {
  font-family: 'Corinthia', 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-weight: 400;
}

.corinthia-bold {
  font-family: 'Corinthia', 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-weight: 700;
}

/* =======================================================================
   THEME VARIABLES
   ======================================================================= */
:root {
  /* LIGHT THEME VARIABLES */
  --nav-text: #111; /* nav text color */
  --nav-text-hover: #555; /* nav item hover */
  --nav-text-scrolled: #000; /* nav text when scrolled */
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95); /* nav background scrolled */
  --dropdown-bg: rgba(255, 255, 255, 0.95); /* dropdown bg */
  --dropdown-text: #111; /* dropdown text color */
  --hamburger-bg: #111; /* hamburger bars color */
}

body.dark-theme {
  /* DARK THEME VARIABLES */
  --nav-text: #fff;
  --nav-text-hover: #ddd;
  --nav-text-scrolled: #fff;
  --nav-bg-scrolled: rgba(23, 22, 22, 0.95);
  --dropdown-bg: rgba(23, 22, 22, 0.95);
  --dropdown-text: #fff;
  --hamburger-bg: #fff;
}
body.dark-theme .dropdown-menu {
  background: var(--dropdown-bg);
  /* Optionally add a subtle backdrop blur for glassmorphism */
  backdrop-filter: saturate(180%) blur(10px);
  /* Optional box shadow for separation */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* subtle highlight border */
}

/* =======================================================================
   NAVBAR BASE
   ======================================================================= */
/* Reset dropdown toggle button */
.dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dropdown-toggle:focus {
  outline: 2px solid var(--nav-text-hover);
  outline-offset: 2px;
}
.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #000; /* match hero background or navbar scrolled color */
  z-index: 1002;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 0 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  color: var(--nav-text);

  /* Add transform to transition */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;

  border: none;
  box-shadow: none;
}
.navbar.hidden {
  transform: translateY(-100%);
}

/* Logo / Company name */
.company-name {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  padding: 0.5rem 0;
  color: var(--nav-text);
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem;
  font-weight: 500;
  color: var(--nav-text);
  transition: color 0.3s ease;
  line-height: 1.2;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--nav-text-hover);
  outline: none;
  text-decoration: underline;
}

/* =======================================================================
   NAVBAR SCROLLED STATE
   ======================================================================= */
.navbar.scrolled {
  background-color: var(--nav-bg-scrolled);
}

.navbar.scrolled .company-name,
.navbar.scrolled .nav-item {
  color: var(--nav-text-scrolled);
}

/* =======================================================================
   NAV LINKS LAYOUT
   ======================================================================= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

/* =======================================================================
   DROPDOWN
   ======================================================================= */
.dropdown {
  flex: 0 0 auto;
  position: relative;
}

.caret {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.4rem;
  align-self: center;
  transition: transform 0.3s ease;
}

.dropdown.open .caret {
  transform: rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  list-style: none;
  display: none;
  flex-direction: column;
  background: var(--dropdown-bg);
  padding-left: 0 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 1001;
  user-select: none;
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu .nav-item {
  color: var(--dropdown-text);
}

.dropdown:hover .dropdown-menu {
  display: flex;
  animation: dropdownSlideDown 0.3s ease forwards;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================================================
   HAMBURGER (MOBILE)
   ======================================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: var(--hamburger-bg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Update hamburger colors on scroll */
.navbar.scrolled .hamburger span {
  background: var(--hamburger-bg);
}

/* =======================================================================
   MOBILE NAV
   ======================================================================= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: var(--dropdown-bg);
    width: 300px;
    padding: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    display: block;
    max-height: 0;
    width: 100%;
    min-width: 200px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .dropdown-menu li {
    padding: 0.75rem 1rem;
  }

  .dropdown.open .dropdown-menu {
    max-height: 500px;
    opacity: 1;
  }

  .dropdown > .nav-item,
  .nav-item {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links > li {
    width: 100%;
  }
}

/* =======================================================================
   HERO SECTION
   ======================================================================= */

.hero-image {
  position: relative;
  top: 0;
  left: 0;
  margin: 0;
  margin-top: -2px; /* fix 1px gap issue */
  padding: 0;
  height: 100vh;
  width: 100%;
  background: url("images/hero1-small.jpg") center/cover no-repeat;
  background-color: #000;
  filter: blur(4px);
  transition: filter 0.8s ease, background-image 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  transform: translateZ(0); /* fix subpixel gaps */
}

.hero-image.loaded {
  filter: blur(0);
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 6px 12px rgba(0, 0, 0, 0.8);
}

.tagline {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.4;
}

/* =======================================================================
   ABOUT SECTIONS
   ======================================================================= */
.about {
  padding: 20px;
  margin: auto;
  max-width: 800px;
}

.about h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

.about p {
  line-height: 1.6;
  color: #555;
  font-size: 1rem;
  text-align: justify;
}

.landing.about {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

.landing.about h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
  font-family: "Corinthia", cursive;
}

.top-margin-2 {
  margin-top: 2rem;
}
