* {
  margin: 0;
  padding: 0;
  box-sizing:border-box;
}

/* Colors */
:root {
  --primary-color: #6851E2;
  --text-color: #222;
  --secondary-color: #D6D9EF;
  --btn-primary-bg: #6851E2;
  --btn-primary-text: #fff;
  --btn-secondary-bg: #D6D9EF;
  --btn-secondary-text: #37123C;
  --btn-reverse-text: #573237;
  --btn-reverse-bg: #f5f1e0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--text-color);
  background: #fff;
  line-height: 1.45;
}

.container {
  max-width: 960px;
  margin: 0px auto;
}

p {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}

/* Spacing */

.p-25 {
  padding: 25px !important;
}

.mt-10 {
  margin-top: 10px !important;
}

.mt-30 {
  margin-top: 30px !important;
}

.mt-50 {
  margin-top: 50px !important;
}

/* NAVIGATION */

header {
  width: 100%;
}

nav {
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  padding-left: 20px;
}

nav img {
  height: 50px;
  margin-top: 10px;
}

ul.nav-links {
  list-style: none;
  gap: 1.75rem;
}

ul.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

ul.nav-links a:hover {
  color: var(--primary-color);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 20px;
  margin-top: 5px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
}

/* Full-screen overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay close button (X) */
.overlay-close {
  background: none;
  border: none;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 1002;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-close svg {
  width: 40px;
  height: 40px;
}

.overlay-close svg line {
  stroke: var(--text-color);
  stroke-width: 4;
}

/* Overlay nav links */
.mobile-menu-overlay .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  margin-top: 80px; /* leave space for X */
}

.mobile-menu-overlay .nav-links li a {
  font-size: 2rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
}

/* --- MOBILE-FIRST NAV FIX --- */

/* Mobile default */
.desktop-nav {
  display: none;
}

.hamburger {
  display: flex;
}

/* Desktop: show desktop nav, hide hamburger */
@media (min-width: 901px) {
  .desktop-nav {
    display: flex;
    gap: 1.75rem;
  }

  .hamburger {
    display: none !important;
  }

  .mobile-menu-overlay {
    display: none;
  }
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

.btn-reverse {
  background: var(--btn-reverse-bg);
  color: var(--btn-reverse-text);
}

/* HERO SECTION */
.hero {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  background: var(--primary-color);
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  min-height: 500px;
  margin: 0 auto;
  padding: 0px;
}

/* Headshot image */
.hero-headshot {
  width: 100%;
  max-width: 500px;
  object-fit: cover;
}

img.hero-headshot {
  margin-bottom: -6px;
}

/* Text */
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.hero-text .btn-group {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    gap: 30px;
    padding: 40px 20px 0 20px; /* remove bottom padding on hero-inner */
  }

  .hero-text {
    order: 1;
  }

  .hero-headshot-container {
    order: 2;
    margin: 0 auto;
    padding-bottom: 0;
  }

  .hero-headshot {
    margin-bottom: 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-text .btn-group {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

/* SECTIONS */
section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #fff;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Demos Section */
section#demos {
  padding-bottom: 30px;
}

.demos-section {
  padding: 40px 20px;
  text-align: center;
}

.demos-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
  transition: transform 0.3s, box-shadow 0.3s;
}

.demo-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.demo-card p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

.demo-card audio {
  width: 100%;
  outline: none;
}

/* Testimonials Section */
section#testimonials {
  background-color: var(--secondary-color);
  padding-bottom: 30px;
}

.testimonials-section {
  padding: 40px 20px;
  text-align: center;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

.testimonials-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial-card {
  background-color: #f4f4f4;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: left;
  position: relative;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.6;
  display: inline;
}

.testimonial-author {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  margin-top: 10px;
}

.testimonial-card p {
  position: relative;
  z-index: 1;
}

/* Call to Action Buttons */
.cta {
  margin-top: 40px;
  text-align: center;
}

.cta .btn {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, transform 0.2s;
}

.cta .btn-primary::after {
  content: ' \2192'; /* Unicode arrow as pseudo-element */
  margin-left: 6px;
}

.cta .btn-primary::after {
  transition: transform 0.3s;
}

.cta .btn-primary:hover::after {
  transform: translateX(4px);
}

/* Page Header Section */
.page-header {
  background-color: var(--secondary-color);
  padding: 30px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: #222;
}

.page-header .page-intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  opacity: 0.9;
}

/* Demo List */

.demo-container {
  padding: 0px 20px;
}

.demo-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.demo-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-item audio {
  width: 100%;
}

/* About Section Layout */

.section-white.about-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.about-inner {
  display: flex;
  flex-direction: row; /* horizontal by default */
  align-items: flex-start; /* top align image with text */
  gap: 40px;
  margin-top: 20px;
}

.about-image {
  margin-top: 10px;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1; /* take remaining space */
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {

  .about-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
  }

  .about-text {
    padding: 0px 20px;
  }

  .about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin-top: 0px;
  }

  .about-image img {
    max-width: 100%;
  }
}

/* Projects Page */

section.section-white h2,
section.section-white h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-color);
}

section.section-white p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Responsive iframes (Vimeo/YouTube) */
.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Project images */
.project-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

@media (max-width: 900px) {
  .projects-container {
    padding: 25px;
    padding-top: 0px;
  }
}

/* Contact form styling with placeholders only */

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fafafa;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
  font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(104, 81, 226, 0.3);
  outline: none;
}

.contact-form button {
  display: block;          /* Make it block-level */
  margin: 0 auto;          /* Center horizontally */
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form .h-captcha {
  display: flex;
  justify-content: center;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(104, 81, 226, 0.25);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .contact-container {
    padding: 20px 10px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px;
    font-size: 0.95rem;
  }

  .contact-form button {
    width: 100%;
    padding: 14px 0;
  }
}
