/* Late-2000s Aero-inspired styling: glass, gloss, blue gradients and soft shadows. */

:root {
  --sky-top: #bfe9ff;
  --sky-bottom: #4c91c8;
  --deep-blue: #154c82;
  --nav-blue: #2d78b8;
  --link-blue: #075da8;
  --visited-purple: #604a91;
  --glass-white: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(43, 104, 151, 0.65);
  --shadow: rgba(21, 65, 102, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #17334b;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.85) 0 3%, transparent 18%),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.5) 0 2%, transparent 15%),
    linear-gradient(180deg, var(--sky-top) 0%, #83c2e8 38%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  font-family: "Nunito", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  display: block;
  width: 240px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  content: "";
  filter: blur(2px);
}

body::before {
  top: 12%;
  left: -70px;
  transform: rotate(-12deg);
}

body::after {
  right: -60px;
  bottom: 15%;
  transform: rotate(14deg);
}

.page-shell {
  position: relative;
  width: min(92%, 860px);
  margin: 34px auto;
  overflow: hidden;
  background: rgba(225, 244, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 13px;
  box-shadow:
    0 0 0 1px rgba(44, 104, 150, 0.55),
    0 16px 38px var(--shadow),
    inset 0 1px 0 #ffffff;
}

.site-header {
  position: relative;
  overflow: hidden;  /* FIXED: Clips the shine to header bounds */
  padding: 27px 30px 24px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.12) 18%, transparent 19%),
    linear-gradient(180deg, #72bce9 0%, #2879b9 50%, #155083 100%);
  border-bottom: 2px solid #0f4777;  /* Thicker border for separation */
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

.shine {
  position: absolute;
  top: -52px;
  left: 5%;
  width: 90%;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.27);
  transform: rotate(-3deg);
  pointer-events: none;
  z-index: 1;
}

.logo {
  position: relative;
  z-index: 12;
  color: #ffffff;
  font-family: "Century Gothic", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(26px, 5vw, 43px);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 3px rgba(0, 43, 83, 0.75);
}

.header-pictures {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 10;
}

.header-pictures img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  padding: 4px;
}

/* FIXED: Nav now has solid background and very high z-index */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: #f0f8fd;  /* Solid light base */
  border-bottom: 3px solid #1a5f8a;  /* Stronger divider */
  position: relative;
  z-index: 100;  /* MUCH higher than shine/header elements */
}

/* Add a subtle shadow to lift nav visually */
.main-nav::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1a5f8a;
}

.main-nav a {
  display: inline-block;
  padding: 9px 16px;
  color: #1a4d6e;
  background: linear-gradient(180deg, #ffffff 0%, #dbebf5 100%);
  border: 1px solid #7fb8d9;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(26, 95, 138, 0.3);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #ffffff;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;  /* Above the nav background */
}

.main-nav a span {
  position: static;
  z-index: auto;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #ffffff;
  background: linear-gradient(180deg, #5b947b 0%, #3a7258 100%);
  border-color: #294d43;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
  z-index: 2;  /* Bring hovered button even higher */
}

.main-nav a:active {
  background: #294d43;
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

main {
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(122, 184, 218, 0.24));
}

.content-box {
  position: relative;
  margin: 0 0 17px;
  padding: 18px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 244, 253, 0.72));
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  box-shadow:
    0 2px 7px rgba(31, 91, 130, 0.25),
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(75, 135, 173, 0.35);
  scroll-margin-top: 16px;
}

.content-box::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.95);
  content: "";
}

.hero-box {
  min-height: 210px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(194, 231, 250, 0.8));
  border-color: rgba(48, 120, 170, 0.72);
}

.section-gloss {
  position: absolute;
  top: -62px;
  right: -5%;
  left: -5%;
  height: 105px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

h1, h2, h3 {
  position: relative;
  margin-top: 0;
  color: var(--deep-blue);
  font-family: "Century Gothic", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  text-shadow: 0 1px 0 #ffffff;
}

h1 {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(53, 119, 159, 0.45);
  font-size: 31px;
  margin-bottom: 12px;
}

h2 {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(53, 119, 159, 0.35);
  font-size: 23px;
  margin-bottom: 14px;
}

h3 {
  font-size: 18px;
  color: #2a6a8f;
  margin: 14px 0 8px;
}

p {
  margin: 0 0 10px;
}

a {
  color: var(--link-blue);
}

a:visited {
  color: var(--visited-purple);
}

.notice {
  display: inline-block;
  padding: 6px 12px;
  color: #17496d;
  background: linear-gradient(#ffffff, #d5edf9);
  border: 1px solid #78aeca;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(35, 89, 124, 0.2);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12px;
}

.link-list {
  margin: 0;
  padding-left: 22px;
}

.link-list li {
  margin: 7px 0;
}

.email-icon {
  display: inline-block;
  margin: 5px 0 8px;
}

.email-icon img {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
}

.email-icon img:hover {
  opacity: 0.7;
}

.email-address {
  color: #294d43;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.2px;
}

.email-address span {
  display: inline;
}

.site-footer {
  padding: 15px 18px;
  color: #28516f;
  background: linear-gradient(#d9f0fb, #a7cfe4);
  border-top: 1px solid #ffffff;
  font-size: 11px;
  text-shadow: 0 1px 0 #ffffff;
}

.site-footer p {
  margin: 3px 0;
}

@media (max-width: 560px) {
  .header-pictures {
    position: static;
    transform: none;
    margin-top: 20px;
    text-align: center;
  }

  .header-pictures img {
    width: 140px;
    height: 140px;
    max-width: 140px;
  }

  .main-nav {
    justify-content: center;
  }

  .site-header {
    padding-bottom: 20px;
  }
}