:root {
  --primary-dark: #0F2A3F;
  --secondary-dark: #1E465A;
  --accent-primary: #00B16A;
  --accent-secondary: #00a060;
  --text-main: #2A2A2A;
  --text-light: #5A5A5A;
  --bg-light: #FFFFFF;
  --bg-gray: #F4F7F6;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 42, 63, 0.15);
  --border-radius: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Assistant', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Heebo', sans-serif;
  color: var(--primary-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Utilities */
.text-center { text-align: center; }
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  border-radius: 2px;
}
.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-light);
  box-shadow: 0 4px 15px rgba(0, 177, 106, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 177, 106, 0.4);
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: var(--bg-light);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  padding: 15px 0;
}

header .container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Heebo', sans-serif;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent-primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition-fast);
  font-family: 'Heebo', sans-serif;
}

nav a:hover, nav a.active {
  color: var(--accent-primary);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* Padding for Fixed Header */
main {
  padding-top: 80px;
}

/* Sections */
section {
  padding: 80px 0;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-fake-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #E8F0F2;
  overflow: hidden;
  display: flex;
  justify-content: center;
  filter: blur(4px);
  transform: scale(1.05);
}

.fake-scroll {
  width: 100%;
  max-width: 800px;
  animation: hero-scroll-loop 12s linear infinite;
  padding-top: 40px; /* Optional, start slightly offset */
  will-change: transform;
}

.fake-card {
  background: var(--bg-light);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 40px;
}

.fake-img {
  height: 250px;
}

.fake-text {
  padding: 30px;
}

.fake-line {
  height: 16px;
  background: #E0E6ED;
  border-radius: 8px;
  margin-bottom: 20px;
}

.fake-line.short { width: 50%; }
.fake-line.long { width: 85%; }

.fake-btn {
  height: 40px;
  width: 120px;
  background: #E0E6ED;
  border-radius: 20px;
  margin-top: 30px;
}

@keyframes hero-scroll-loop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 42, 63, 0.45);
  z-index: -1;
}

.hero .hero-centered {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-content {
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.hero-content h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about, .process, .portfolio, .faq, .contact, footer {
  position: relative;
  z-index: 5;
}

/* About Section */
.about {
  background-color: var(--bg-light);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent-primary);
  border-radius: var(--border-radius);
  z-index: -1;
  transition: var(--transition-normal);
}

.about-image:hover::after {
  transform: translate(-10px, -10px);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  display: block;
}

.about-content p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Process Section */
.process {
  background-color: var(--bg-gray);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.process-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-step {
  width: 60px;
  height: 60px;
  background: var(--primary-dark);
  color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Heebo', sans-serif;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(15, 42, 63, 0.2);
}

.process-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.process-card p {
  color: var(--text-light);
}

/* Portfolio Section */
.portfolio {
  background-color: var(--bg-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.portfolio-item {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  background: var(--bg-light); /* changed matching the logo backgrounds so it doesn't look boxed */
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.portfolio-item img {
  border-radius: 20px;
  transition: transform 0.8s ease;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

/* FAQ Section */
.faq {
  background-color: var(--bg-gray);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 50px;
}

.accordion-item {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary-dark);
  transition: var(--transition-fast);
}

.accordion-header:hover {
  color: var(--accent-primary);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: var(--transition-normal);
}

.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: var(--transition-normal);
}

.accordion-icon::before {
  top: 11px;
  left: 0;
  width: 100%;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.accordion-body {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-light);
}

.accordion-item.active .accordion-body {
  padding: 0 25px 20px;
  max-height: 200px; /* Adjust according to content height */
}

/* Contact Section */
.contact {
  background: var(--primary-dark);
  color: var(--bg-light);
  text-align: center;
}

.contact .section-title {
  color: var(--bg-light);
}

.contact .section-title::after {
  background: var(--accent-primary);
}

.contact-content {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-info {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-primary);
}

/* Footer */
footer {
  background-color: #0d1a26;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.8rem; }
  .about .container { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.3rem; }
  .hero-image { max-width: 80%; margin: 0 auto; }
  .process-grid, .portfolio-grid { grid-template-columns: 1fr; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    text-align: center;
  }
  nav ul.active { display: flex; }
  .menu-toggle { display: flex; }
  .contact-info { flex-direction: column; gap: 15px; }
}

/* Fade-in Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered items */
/* Final classes for animations, staggered item stays here */
.process-card:nth-child(1) { transition-delay: 0.1s; }
.process-card:nth-child(2) { transition-delay: 0.2s; }
.process-card:nth-child(3) { transition-delay: 0.3s; }

.portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-item:nth-child(3) { transition-delay: 0.3s; }


/* ==========================================================================
   Onboarding Modal & Forms
   ========================================================================== */

.nav-cta a.nav-highlight {
  background: var(--accent-primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-cta a.nav-highlight:hover {
  background: var(--accent-secondary);
  box-shadow: 0 4px 10px rgba(0, 177, 106, 0.4);
  transform: translateY(-2px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 42, 63, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-light);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  margin-bottom: 30px;
}

.progressbar {
  counter-reset: step;
  display: flex;
  justify-content: space-between;
  padding: 0;
  list-style: none;
}

.progressbar li {
  position: relative;
  text-align: center;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  font-family: 'Heebo', sans-serif;
}

.progressbar li::before {
  content: counter(step);
  counter-increment: step;
  width: 30px;
  height: 30px;
  line-height: 30px;
  display: block;
  font-size: 1rem;
  color: #fff;
  background: #d4d4d4;
  border-radius: 50%;
  margin: 0 auto 10px auto;
  z-index: 2;
  position: relative;
  transition: background 0.3s ease;
}

.progressbar li::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: #d4d4d4;
  top: 13px;
  right: -50%;
  z-index: 1;
  transition: background 0.3s ease;
}

.progressbar li:first-child::after {
  content: none;
}

.progressbar li.active {
  color: var(--accent-primary);
}

.progressbar li.active::before {
  background: var(--accent-primary);
}

.progressbar li.completed::after {
  background: var(--accent-primary);
}

/* Form Styles */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

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

.form-step h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--bg-gray);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
  text-align: right;
}

.form-row {
  display: flex;
  gap: 20px;
}

.flex-1 {
  flex: 1;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-family: 'Heebo', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Assistant', sans-serif;
  font-size: 1rem;
  background: #fdfdfd;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 177, 106, 0.1);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.colors-grid {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.checkbox-btn, .radio-btn {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  font-weight: 600;
}

.checkbox-btn:hover, .radio-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-gray);
}

.checkbox-btn input, .radio-btn input {
  margin-left: 10px;
  cursor: pointer;
}

.checkbox-btn:has(input:checked), .radio-btn:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(0, 177, 106, 0.05);
}

.form-actions {
  margin-top: 30px;
  display: flex;
}

.form-actions.right {
  justify-content: flex-end;
}

.form-actions.split {
  justify-content: space-between;
}

.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-message.hidden {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.success-message h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.success-message p {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
