:root {
  --bg-1: #050b19;
  --accent-1: #00f0ff;
  --accent-2: #6a30ff;
  --text: #eaf6ff;
  --muted: #a4b0c0;
  --panel: rgba(255, 255, 255, 0.04);
  --font: "Poppins", sans-serif;
  --radius: 12px;
  --header-height: 92px;
}

/* -------- Reset & Base -------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1), #02040a);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

.container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto
}

a {
  color: var(--accent-1);
  text-decoration: none
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px
}

/* ------- background canvas (particle) ------- */
.bg-gradient,
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  margin: 0;
  padding: 0;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1200;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 14, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: height .25s ease, background .25s ease, box-shadow .25s ease;
}

.header-inner {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ====== Header Logo Fix ====== */
.header-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.header-logo .nav-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  max-width: none !important;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
  transition: all 0.3s ease;
}

.header-logo .nav-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.8));
}

/* When scrolled (shrink effect) */
.site-header.scrolled .header-logo .nav-logo {
  height: 46px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35));
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 28px
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  transition: color .18s ease;
  font-size: 1rem
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-1)
}

.btn-ghost {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: var(--accent-1);
  background: transparent;
  font-weight: 600;
  transition: all .18s ease;
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.08)
}

/* shrink-on-scroll */
.site-header.scrolled {
  height: 72px;
  background: rgba(5, 8, 14, 0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45)
}

.site-header.scrolled .header-logo img {
  height: 46px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35))
}

/* hamburger */
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  gap: 6px;
  flex-direction: column
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all .2s ease
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px)
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px)
}

@media (max-width:900px) {
  .menu-toggle {
    display: flex
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: none;
    flex-direction: column;
    background: rgba(5, 8, 14, 0.98);
    padding: 18px 16px;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.02)
  }

  .nav.show {
    display: flex
  }

  .nav-link {
    font-size: 1.02rem
  }
}

/* ============ HERO & COMMON ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
  min-height: 72vh;
  padding-top: 8px
}

@media(max-width:1000px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 60vh
  }
}

.lead {
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #000
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text)
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-2px)
}

/* ===== card / grid section ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 28px
}

.feature,
.service-card,
.team-card {
  background: var(--panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature:hover,
.service-card:hover,
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4)
}

/* ===== Stats row ===== */
.stats {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  margin: 54px 0
}

@media(max-width:800px) {
  .stats {
    flex-direction: column;
    gap: 18px
  }
}

.stat h3 {
  font-size: 2.2rem;
  color: var(--accent-1);
  margin-bottom: 6px
}

.stat p {
  color: var(--muted);
  font-size: 0.95rem
}

/* ===== ABOUT/TEAM ===== */
.about-grid,
.contact-grid,
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 18px
}

@media(max-width:900px) {

  .about-grid,
  .contact-grid,
  .office-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FORM FEEDBACK (Global) ===== */
.form-status {
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-status.show {
  opacity: 1;
  transform: translateY(0);
}

.form-status.error {
  background: rgba(255, 67, 67, 0.1);
  border: 1px solid rgba(255, 67, 67, 0.2);
  color: #ff4343;
}

.form-status.success {
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.2);
  color: #2ed573;
}

.input-group {
  position: relative;
}

.input-group.error {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.input-group.error input,
.input-group.error select,
.input-group.error textarea {
  border-color: #ff4343;
  box-shadow: 0 0 0 2px rgba(255, 67, 67, 0.1);
}

.input-group.error input::placeholder,
.input-group.error textarea::placeholder {
  color: rgba(255, 67, 67, 0.6);
}

.input-group .error-message {
  color: #ff4343;
  font-size: 0.85rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(-5px);
  animation: slideIn 0.3s forwards;
}

.form-actions button {
  position: relative;
  overflow: hidden;
}

.form-actions button.loading {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  pointer-events: none;
  opacity: 0.8;
}

.form-actions button.success {
  background: #2ed573;
  pointer-events: none;
}

.form-actions button .fa-spinner {
  animation: spin 1s linear infinite;
}

.form-actions button .fa-check {
  animation: bounceIn 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-2px);
  }

  40%,
  60% {
    transform: translateX(2px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.2);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

/* ===== INQUIRY POPUP ===== */
.inquiry-popup {
  position: fixed;
  bottom: 120px;
  right: 28px;
  width: 360px;
  max-width: 92vw;
  background: #0a1322;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 1400;
  display: none;
  color: var(--text);
}

.inquiry-popup.show {
  display: block;
}

.inquiry-popup h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-1);
}

.inquiry-popup p.sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.inquiry-popup input,
.inquiry-popup select,
.inquiry-popup textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: #e0e8f0;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.inquiry-popup input::placeholder,
.inquiry-popup textarea::placeholder {
  color: #a8b3c7;
  opacity: 0.9;
}

.inquiry-popup input:focus,
.inquiry-popup textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.12);
}

.inquiry-popup .popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.inquiry-popup .popup-close:hover {
  color: var(--accent-1);
}

.inquiry-popup button[type="submit"] {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border: none;
  color: #000;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.inquiry-popup button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.inquiry-popup .muted-sm {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ===== CHAT BUBBLE ===== */
.chat-bubble {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 1300
}

.chat-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
  transition: transform .18s ease, box-shadow .18s ease;
}

.chat-button img {
  width: 30px;
  height: 30px;
  filter: invert(1)
}

.chat-button:hover {
  transform: translateY(-6px)
}

body.inquiry-open .chat-bubble {
  bottom: 160px
}

/* ===== HOME PAGE BODY ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.05), transparent 60%);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 50px;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.hero-text h1 span {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 16px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.25));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ===== FEATURES ===== */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #fff;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature {
  background: var(--panel);
  padding: 20px 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  /* Make the card a two-row grid so the image occupies the top half */
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  min-height: 340px;
  /* ensures there is space for a clear top half */
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.feature img {
  /* Make the image area fill the top grid row (approximately top half)
     Keep icons centered and contained without cropping. */
  width: auto;
  height: 100%;
  max-height: 220px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  box-sizing: border-box;
  align-self: center;
}

/* Reduce card height on small screens so layout stays compact */
@media (max-width: 900px) {
  .feature {
    min-height: 260px;
  }

  .feature img {
    max-height: 160px;
  }
}

/* ===== PROCESS ===== */
.process {
  background: rgba(255, 255, 255, 0.02);
  padding: 100px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.process-step {
  background: var(--panel);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.process-step span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-1);
  display: block;
  margin-bottom: 10px;
}

.process-step h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #02040a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 40px;
  width: auto;
  align-self: flex-start;
}

.footer-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent-1);
  color: #000;
  transform: translateY(-3px);
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-1);
}

.footer-news h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-news p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-form {
  display: flex;
  gap: 8px;
}

.footer-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9rem;
}

.footer-form input:focus {
  outline: none;
  border-color: var(--accent-1);
}

.footer-form button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: var(--accent-1);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.footer-form button:hover {
  background: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #888888;
  margin: 0;
  font-weight: 300;
}

.footer-legal {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-legal a {
  color: #cccccc;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  text-decoration: none;
  font-weight: 300;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ===== Responsive Tweaks ===== */
@media(max-width:1000px) {
  .header-logo img {
    height: 56px
  }

  .nav {
    gap: 14px
  }

  .hero {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  /* Footer responsive */
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-news {
    grid-column: 1 / -1;
  }
}

@media(max-width:768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-legal {
    gap: 16px;
  }
}

@media(max-width:480px) {
  .header-logo img {
    height: 48px
  }

  .nav-link {
    font-size: .95rem
  }

  .chat-button {
    width: 56px;
    height: 56px
  }

  .inquiry-popup {
    right: 14px;
    left: 14px;
    width: auto
  }

  /* Footer mobile */
  .site-footer {
    padding: 40px 0 30px;
  }

  .footer-inner {
    gap: 35px;
  }

  .footer-logo {
    height: 60px;
  }

  .footer-social {
    gap: 18px;
  }

  .footer-bottom {
    padding: 20px 0 0;
    margin-top: 30px;
  }
}