* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Karla', sans-serif;
}

:root {
  /* Base font size for 1rem = 10px */
  font-size: 62.5%;

  /* Colors - Modern Teal & Slate */
  --color-text: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-background: #0f172a;
  --color-background-light: #1e293b;
  --color-accent: #14b8a6;
  --color-accent-hover: #2dd4bf;
  --color-accent-dark: #0d9488;

  /* Spacing */
  --spacing-md: 2vw;
  --spacing-lg: 3.2vw;
  --spacing-xl: 4.8vw;
  --spacing-2xl: 6.4vw;
  --spacing-3xl: 8vw;

  /* Typography */
  --font-size-heading: 1.8vw;
  --font-size-callout: 5.2vw;
  --font-size-paragraph: 2.3vw;
  --font-size-intro-text: 3.8vw;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-background) 0%, #1e293b 100%);
  line-height: 1.6;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  :root {
    --font-size-heading: 2vw;
    --font-size-callout: 5vw;
    --font-size-paragraph: 3vw;
  }
}

@media (max-width: 900px) {
  :root {
    --font-size-heading: 3vw;
    --font-size-callout: 6vw;
    --font-size-paragraph: 4vw;
  }
}

@media (max-width: 600px) {
  :root {
    --font-size-heading: 3.2vw;
    --font-size-callout: 7vw;
    --font-size-paragraph: 4.7vw;
    --spacing-2xl: 12vw;
  }
}

/* Navigation Styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.2);
  z-index: 1000;
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

nav ul.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  order: 1;
  flex: 1;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.4rem;
  z-index: 1001;
  order: 2;
  margin-left: auto;
}

.hamburger span {
  width: 2.5rem;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

nav li {
  margin: 0;
}

nav li::before {
  display: none;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: rgba(20, 184, 166, 0.15);
  color: var(--color-accent);
  transform: translateY(-1px);
}

main {
  margin-top: 1rem;
  padding-bottom: 4rem;
}

@media (min-width: 900px) {
  main {
    margin-top: 7rem;
  }
}

section {
  min-height: auto;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  position: relative;
}

/* Full height sections for single-page layouts (non-homepage) */
main section:only-child {
  min-height: calc(100vh - 6rem);
}

/* addressing edge case of space-between pushing out content on mobile */
@media (max-width: 600px) {
  section {
    justify-content: flex-start;
  }
}

section > div {
  max-width: 90rem;
  margin: 0 auto;
}

.page-title {
  font-size: var(--font-size-heading);
  font-weight: normal;
  margin-bottom: 1.5rem;
}

h2.site-tagline {
  font-size: var(--font-size-callout);
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

p {
  font-size: var(--font-size-intro-text);
}

p,
ul,
li {
  font-size: var(--font-size-paragraph);
}

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

a:hover {
  color: var(--color-accent-hover);
}

ul {
  margin: var(--spacing-md) 0;
  padding-left: 1.5rem;
  list-style-type: none;
}

li {
  position: relative;
}

li::before {
  content: '•';
  position: absolute;
  left: -1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
}

.underline {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.2em;
}

/* Service section cards */
section:not(:first-child) {
  background: rgba(30, 41, 59, 0.4);
  border-left: 3px solid transparent;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

section:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

section:not(:first-child)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

section:not(:first-child):hover {
  background: rgba(30, 41, 59, 0.6);
  transform: translateX(12px);
  box-shadow: -8px 0 24px rgba(20, 184, 166, 0.2);
}

section:not(:first-child):hover::before {
  opacity: 1;
}

section:not(:first-child):hover::after {
  opacity: 1;
}

/* Hero section special styling */
section:first-child {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.1) 0%,
    var(--color-background) 40%,
    rgba(20, 184, 166, 0.05) 100%
  );
  position: relative;
  padding: 2rem 2rem 6rem;
  margin-top: 0;
  padding-top: 6rem;
}

section:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(20, 184, 166, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

section:first-child::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(60px);
}

/* CTA Link buttons */
.btn-cta {
  display: inline-block;
  padding: 1.4rem 2.8rem;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  color: #0f172a;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4),
    0 0 0 1px rgba(20, 184, 166, 0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  z-index: 10;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.btn-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.5),
    0 0 0 1px rgba(20, 184, 166, 0.3);
  background: linear-gradient(
    135deg,
    var(--color-accent-hover),
    var(--color-accent)
  );
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* CTA buttons layout - mobile first */
.cta-buttons p {
  margin: 0;
}

.cta-buttons p a {
  width: 100%;
  text-align: center;
}

/* CTA buttons layout - wider viewports */
@media (min-width: 768px) {
  .cta-buttons {
    display: flex;
    gap: 2rem;
  }

  .cta-buttons p {
    flex: 1;
  }

  .cta-buttons p a {
    width: 100%;
  }
}

/* Section titles with accent */
section:not(:first-child) .page-title {
  position: relative;
  padding-left: 1.5rem;
}

section:not(:first-child) .page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--color-accent);
  border-radius: 2px;
}

/* About section special styling */
section:last-child {
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.6) 0%,
    rgba(20, 184, 166, 0.08) 100%
  );
  border-radius: 12px 12px 0 0;
  margin-top: 2rem;
}

/* Stats/numbers emphasis in About section */
section:last-child ul li {
  font-size: var(--font-size-paragraph);
  padding-left: 1.5rem;
  /* margin-bottom: var(--spacing-md); */
  position: relative;
}

section:last-child ul li::before {
  color: var(--color-accent);
  font-size: 1.2em;
  left: -1.6rem;
}

/* Responsive adjustments for marketing styles */
@media (max-width: 900px) {
  section:not(:first-child):hover {
    transform: translateX(6px);
  }

  .btn-cta {
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  nav ul.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 8rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }

  nav ul.nav-menu.active {
    right: 0;
  }

  nav ul.nav-menu li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  nav ul.nav-menu a {
    display: block;
    width: 100%;
    padding: 1.2rem 1.6rem;
    font-size: 1.6rem;
    border-radius: 0.8rem;
  }

  nav ul.nav-menu a:hover {
    background-color: rgba(20, 184, 166, 0.2);
  }

  section:first-child {
    padding-top: 8rem;
  }
}

@media (max-width: 600px) {
  nav ul.nav-menu {
    width: 85%;
  }

  main {
    margin-top: 3.5rem;
  }

  section:first-child {
    padding-top: 6rem;
  }

  section:not(:first-child) {
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
  }

  section:not(:first-child)::before {
    width: 2px;
  }

  section:not(:first-child):hover {
    transform: translateX(4px);
  }

  .btn-cta {
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    width: 100%;
    text-align: center;
  }

  section:not(:first-child) .page-title {
    padding-left: 1rem;
  }

  section:not(:first-child) .page-title::before {
    width: 2px;
  }
}

/* Form Styles */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 50%;
  padding: 2rem 0;
  margin-top: 2rem;
}

.form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1000px) {
  form {
    max-width: 100%;
  }
}

form label {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  display: block;
  transition: color 0.2s ease;
}

form input,
form textarea {
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  color: var(--color-text);
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
  transform: translateY(-2px);
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

form textarea {
  min-height: 12rem;
  resize: vertical;
  line-height: 1.6;
}

form button[type='submit'] {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  color: #0f172a;
  border: none;
  padding: 1.4rem 3.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
  letter-spacing: 0.5px;
}

form button[type='submit']:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.5);
  background: linear-gradient(
    135deg,
    var(--color-accent-hover),
    var(--color-accent)
  );
}

form button[type='submit']:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

form button[type='submit']::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

form button[type='submit']:hover::before {
  left: 100%;
}

/* Form field focus animations */
form .form-group {
  position: relative;
}

form .form-group label {
  position: absolute;
  top: 1.2rem;
  left: 1.6rem;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  pointer-events: none;
  background: transparent;
  padding: 0 0.4rem;
}

form .form-group input:focus + label,
form .form-group textarea:focus + label,
form .form-group input:not(:placeholder-shown) + label,
form .form-group textarea:not(:placeholder-shown) + label {
  top: -0.8rem;
  left: 1.2rem;
  font-size: 1.2rem;
  color: var(--color-accent);
  background: var(--color-background);
}

/* Responsive form adjustments */
@media (max-width: 600px) {
  form {
    padding: 1.6rem 0;
    margin: 0;
  }

  form input,
  form textarea {
    font-size: 1.6rem;
    padding: 1rem 1.2rem;
  }

  form button[type='submit'] {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
  }
}

/* Error message styles */
form .error-message {
  font-size: 1.2rem;
  color: #ff6b6b;
  margin-top: 0.4rem;
  min-height: 1.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

form .error-message.show {
  opacity: 1;
}

form input.invalid,
form textarea.invalid {
  border-color: #ff6b6b;
}

form input.invalid:focus,
form textarea.invalid:focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

/* Disabled button styles */
form button[type='submit']:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

form button[type='submit']:disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
}

/* Email address button */
.email-address {
  text-decoration: underline;
  color: var(--color-accent);
  background: transparent;
  border: none;
  font-size: inherit;
  font-style: italic;
  cursor: pointer;
  transition: color 0.2s ease;
}

.email-address:hover {
  color: var(--color-accent-hover);
}

address {
  margin-top: 2rem;
  font-style: normal;
  font-size: var(--font-size-paragraph);
  text-align: center;
}
