/* ===========================
   Theme Variables
   =========================== */
:root {
  --color-primary: #1e40af;
  --color-accent: #3b82f6;
  --color-muted: #6b7280;
  --color-bg: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: #1a1a1a;
  background-color: var(--color-bg);
  line-height: 1.6;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

/* ===========================
   Layout
   =========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   Header / Nav
   =========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a1a1a;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animate hamburger → X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Sections
   =========================== */
section {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-muted);
}

/* ===========================
   Home Section
   =========================== */
#home {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.home-canvas {
  height: 50vh;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.home-canvas::after {
  content: "";
  position: absolute;
  pointer-events: none;
  /* mobile: fade bottom */
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #ffffff);
}

@media (min-width: 641px) {
  .home-canvas::after {
    /* desktop: fade right edge */
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, transparent, #ffffff);
  }
}

#particles {
  display: block;
  width: 100%;
  height: 100%;
}

.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
  max-width: 860px;
}

.home-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.home-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.home-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #eff6ff;
  color: var(--color-primary);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-tagline {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 360px;
  line-height: 1.6;
}

.home-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  letter-spacing: -0.02em;
}

.home-headline span {
  color: var(--color-accent);
}


/* ===========================
   Features Section
   =========================== */
#features {
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
  padding: 5rem 0;
  background: #f8faff;
}

.features-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-text p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 480px;
}

.feature-media {
  flex: 1;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #e0eaff;
}

@media (max-width: 640px) {
  #features {
    padding: 3.5rem 0;
  }

  .features-inner {
    gap: 3rem;
  }

  .feature-row,
  .feature-row--reverse {
    flex-direction: column;
  }

  .feature-media {
    width: 100%;
  }
}

/* ===========================
   Testimonials Section
   =========================== */
#testimonials {
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
  padding: 5rem 0;
}

.testimonials-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.testimonials-header {
  text-align: center;
}

.testimonials-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.testimonials-header p {
  font-size: 1rem;
  color: var(--color-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #f8faff;
  border: 1px solid #e0eaff;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.testimonial-author strong {
  font-size: 0.9rem;
  color: #111827;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.testimonials-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.testimonials-footer p {
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.testimonials-footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 640px) {
  #testimonials {
    padding: 3.5rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Contact Section
   =========================== */
#contact {
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
  padding: 5rem 0;
  background: #f8faff;
}

.contact-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.contact-details li span:last-child {
  font-size: 0.95rem;
  color: #374151;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid #e0eaff;
  border-radius: 12px;
  padding: 2.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.contact-submit {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.contact-submit:hover {
  background: var(--color-accent);
}

.contact-submit:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  #contact {
    padding: 3.5rem 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Floating Contact Button
   =========================== */
.fab {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  padding: 0.7rem 1.75rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s, transform 0.3s;
}

.fab:hover {
  background: var(--color-accent);
}

.fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

/* ===========================
   Footer
   =========================== */
footer {
  background: #111827;
  color: #9ca3af;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #6b7280;
  max-width: 260px;
}

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #4b5563;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom a {
  color: #6b7280;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #9ca3af;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ===========================
   Responsive
   =========================== */
@media (min-width: 641px) {
  #home {
    flex-direction: row;
    height: 75vh;
  }

  .home-canvas {
    width: 50%;
    height: 100%;
  }

  .home-content {
    width: 50%;
    height: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}
