
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-height);
  background: #000;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(55% 30% at 52% 3%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 75%),
    radial-gradient(50% 22% at 52% 18%, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.92) 32%, rgba(0, 0, 0, 0.25) 68%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08) 26%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 88px 0 64px;
}

.hero-content { max-width: 760px; }

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(3rem, 6.1vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.lead {
  margin: 0 0 28px;
  max-width: 640px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn-pill:hover { transform: translateY(-1px); }

.btn-primary-custom {
  background: linear-gradient(180deg, #ff6e36, #ff4d12);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 90, 31, 0.24);
}

.btn-primary-custom:hover { color: #fff; }

.btn-secondary-custom {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary-custom:hover { color: #fff; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat {
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.stat span {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
}

.content-section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(130deg, transparent 0 56%, rgba(255,255,255,0.016) 57%, transparent 58%),
    linear-gradient(210deg, transparent 0 63%, rgba(255,255,255,0.012) 64%, transparent 65%);
  pointer-events: none;
}

.dot-orbits {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dot-orbit {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.03));
  will-change: transform;
}

.dot-orbit::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(185, 185, 185, 0.28) 0 1.35px, transparent 1.45px) 0 0 / 18px 18px,
    radial-gradient(circle, rgba(135, 135, 135, 0.18) 0 1px, transparent 1.1px) 9px 9px / 18px 18px;
}

.dot-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(0,0,0,0.08) 68%, rgba(0,0,0,0.34) 84%, rgba(0,0,0,0.82) 100%);
}

.orbit-a {
  width: 860px;
  height: 860px;
  right: -230px;
  top: 50%;
  transform: translateY(-50%) rotate(var(--orbit-1));
  opacity: 0.92;
}

.orbit-b {
  width: 520px;
  height: 520px;
  left: -120px;
  top: 8%;
  transform: rotate(var(--orbit-2));
  opacity: 0.36;
}

.orbit-c {
  width: 360px;
  height: 360px;
  right: 14%;
  bottom: -120px;
  transform: rotate(var(--orbit-3));
  opacity: 0.24;
}

.content-section > .container-wide {
  position: relative;
  z-index: 1;
}

.plan-card, .hosting-card, .service-card, .about-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover, .hosting-card:hover, .service-card:hover, .about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.3);
  box-shadow: var(--shadow-soft);
}

.package-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(255, 90, 31, 0.12);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 90, 31, 0.18);
}

.portfolio-shell { position: relative; }
.portfolio-track-wrap { position: relative; overflow: hidden; }

.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}

.portfolio-track::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .portfolio-track { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (min-width: 1200px) {
  .portfolio-track { grid-auto-columns: calc((100% - 48px) / 3); }
}

.portfolio-slide { scroll-snap-align: start; }

.portfolio-card {
  position: relative;
  width: 100%;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.32s ease, box-shadow 0.32s ease;
}

.portfolio-card:hover {
  border-color: rgba(255, 90, 31, 0.28);
  box-shadow: var(--shadow-soft);
}

.portfolio-card:hover .portfolio-thumb {
  transform: scale(0.965);
}

.portfolio-thumb {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  pointer-events: none;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.portfolio-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 52%, rgba(255, 90, 31, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.2));
}

.portfolio-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.portfolio-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.portfolio-overlay-head { padding: 20px 24px 18px; }

.portfolio-overlay-head h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  color: #fff;
}

.portfolio-overlay-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay-body {
  max-height: 160px;
  opacity: 1;
  padding: 0 24px 22px;
}

.portfolio-overlay-body p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

.portfolio-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.portfolio-control {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.portfolio-control:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.28);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.portfolio-control:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.portfolio-link-label {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
}

.software-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.software-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
}

.software-panel img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #080808;
}

.contact-box {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.form-control,
.form-control:focus {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
  border-radius: var(--radius-sm);
}

.floating-field { position: relative; }

.floating-field .form-control {
  height: 64px;
  padding: 1.35rem 1rem 0.7rem;
}

.floating-field textarea.form-control {
  height: auto;
  min-height: 160px;
  padding-top: 1.6rem;
  resize: vertical;
}

.floating-field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.42);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.floating-field-textarea label { top: 1.35rem; transform: none; }

.floating-field .form-control:focus {
  border-color: rgba(255, 90, 31, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.18);
  background: rgba(255,255,255,0.05);
}

.floating-field .form-control:focus + label,
.floating-field .form-control:not(:placeholder-shown) + label,
.floating-field .form-control:-webkit-autofill + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.78);
  background: #111;
  padding: 0 0.45rem;
  border-radius: 999px;
}

.floating-field-textarea .form-control:focus + label,
.floating-field-textarea .form-control:not(:placeholder-shown) + label,
.floating-field-textarea .form-control:-webkit-autofill + label {
  top: 0;
  transform: translateY(-50%);
}

.floating-field .form-control::placeholder { color: transparent; }

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

#contactStatus {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

#contactStatus.is-success {
  display: block;
  color: #fff;
  background: rgba(72, 224, 164, 0.14);
  border-color: rgba(72, 224, 164, 0.35);
}

#contactStatus.is-error {
  display: block;
  color: #fff;
  background: rgba(255, 90, 31, 0.14);
  border-color: rgba(255, 90, 31, 0.35);
}

#contactSubmit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.field-wrap .form-control.is-invalid {
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.18);
}

.field-wrap .form-control.is-valid {
  border-color: rgba(72, 224, 164, 0.45);
}

.field-error {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #ff8a66;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.28);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.contact-mode-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-mode-btn {
  appearance: none;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.68);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-mode-btn:hover {
  color: #fff;
}

.contact-mode-btn.is-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.contact-panel {
  display: none;
}

.contact-panel.is-active {
  display: block;
}

.chatbot-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chatbot-messages {
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.chatbot-row {
  display: flex;
  margin-bottom: 12px;
}

.chatbot-row.bot {
  justify-content: flex-start;
}

.chatbot-row.user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: min(88%, 540px);
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
  font-size: 0.98rem;
}

.chatbot-row.bot .chatbot-bubble {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

.chatbot-row.user .chatbot-bubble {
  background: rgba(255, 90, 31, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 90, 31, 0.28);
}

.chatbot-inputbar {
  display: flex;
  gap: 12px;
}

.chatbot-inputbar .form-control {
  min-height: 54px;
}

#chatbotStatus {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

#chatbotStatus.is-success {
  display: block;
  color: #fff;
  background: rgba(72, 224, 164, 0.14);
  border-color: rgba(72, 224, 164, 0.35);
}

#chatbotStatus.is-error {
  display: block;
  color: #fff;
  background: rgba(255, 90, 31, 0.14);
  border-color: rgba(255, 90, 31, 0.35);
}

#chatbotSend.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

#chatbotInput {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#chatbotInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#chatbotInput:focus {
  outline: none;
  border-color: #ff5a00;
  background: rgba(255, 255, 255, 0.12);
}

#chatbotSend {
  background: #ff5a00;
  color: #fff;
  border: none;
}

#chatbotSend:hover {
  background: #ff6f1a;
}

.chatbot-row.typing .chatbot-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
}

.chatbot-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  animation: chatbotTypingPulse 1s infinite ease-in-out;
}

.chatbot-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbotTypingPulse {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chatbot-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 90, 0, 0.15);
  border: 1px solid rgba(255, 90, 0, 0.35);
  color: #ff5a00;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-clear-btn:hover {
  background: #ff5a00;
  color: #fff;
  border-color: #ff5a00;
}

@media (max-width: 900px) {
  .orbit-a {
    width: 660px;
    height: 660px;
    right: -260px;
  }

  .orbit-b {
    width: 420px;
    height: 420px;
    left: -140px;
  }

  .orbit-c {
    width: 280px;
    height: 280px;
    right: -40px;
  }
}

@media (max-width: 768px) {
  .hero { padding-top: 74px; }

  .hero-inner {
    min-height: calc(100vh - 74px);
    align-items: center;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .hero-content { max-width: 100%; }
  .hero-stats { gap: 10px; }
  .stat { min-width: calc(50% - 5px); }
  .portfolio-card { min-height: 380px; }

  /* keep the same card look, but reduce how much overlay sits on the image */
  .portfolio-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.72) 48%,
      rgba(0, 0, 0, 0.08) 100%
    );
    border-top: none;
  }

  .portfolio-overlay-head {
    padding: 14px 18px 14px;
  }

  .portfolio-overlay-head h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  /* hide the description so it no longer covers half the image */
  .portfolio-overlay-body {
    display: none;
  }

  .portfolio-link-label {
    display: none;
  }

  .orbit-a {
    width: 520px;
    height: 520px;
    right: -250px;
  }

  .orbit-b {
    width: 320px;
    height: 320px;
    left: -120px;
  }

  .orbit-c {
    width: 220px;
    height: 220px;
    right: -50px;
    bottom: -70px;
  }
}

@media (max-width: 768px) {
  .portfolio-track-wrap { padding-inline: 40px; }
  .portfolio-control { width: 38px; height: 38px; border-radius: 12px; }
}


.portfolio-more-btn {
  min-width: 220px;
}

.faq-section {
  position: relative;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-accordion .accordion-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.faq-accordion .accordion-button {
  background: transparent;
  color: #fff;
  box-shadow: none;
  padding: 1.2rem 1.35rem;
  font-weight: 600;
  line-height: 1.45;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,0.03);
  color: #fff;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.faq-accordion .accordion-body {
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  padding: 0 1.35rem 1.35rem;
}
