* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Bu chieu cao .header (position: sticky) de link anchor tu menu khong nhay de title bi che khuat. */
  scroll-padding-top: 130px;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f8ff;
  color: #08153a;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand h2 {
  font-size: 34px;
  font-weight: 800;
}

.brand span {
  color: #0d7cff;
}

.brand small {
  letter-spacing: 4px;
  color: #6d7b98;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  text-decoration: none;
  color: #08153a;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(90deg, #003cff, #00b7ff);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
}

.btn-secondary {
  background: #fff;
  color: #08153a;
  border: 1px solid #d6def5;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.tag {
  color: #006cff;
  font-weight: 700;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  margin: 20px 0;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #5f6f92;
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card {
  height: 420px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0a1f6f, #00bfff);
  position: relative;
  overflow: hidden;
}

.cube {
  width: 120px;
  height: 120px;
  background: #fff;
  opacity: .15;
  position: absolute;
  top: 70px;
  right: 70px;
  transform: rotate(25deg);
  border-radius: 18px;
}

.line {
  width: 400px;
  height: 8px;
  background: #fff;
  opacity: .25;
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) rotate(-12deg);
  border-radius: 50px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 42px;
  margin-bottom: 12px;
}

.section-title p {
  color: #6a7794;
}

.grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.jobs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.card,
.project-card,
.job-card {
  background: #fff;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.card h3,
.project-card h3,
.job-card h3 {
  margin-bottom: 14px;
}

.card p,
.project-card p {
  color: #687794;
  line-height: 1.8;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #687794;
  line-height: 1.8;
}

.card ul li {
  margin-bottom: 4px;
}

.dark {
  background: #07153d;
}

.light h2,
.light p {
  color: #fff;
}

.project-card {
  background: #0d2159;
  color: #fff;
}

.project-card p {
  color: #c9d2f0;
}

.recruitment {
  background: #eef4ff;
}

.footer {
  background: #fff;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer h2 {
  font-size: 34px;
}

.footer span {
  color: #008cff;
}

.footer p {
  color: #6b7894;
  margin-top: 10px;
  line-height: 1.7;
}

.copyright {
  border-top: 1px solid #e4ebf7;
  padding: 20px;
  text-align: center;
  color: #7c88a5;
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

@media(max-width:992px) {

  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    order: 1;
  }

  .lang-switcher {
    order: 2;
    margin-left: auto;
    margin-right: 15px;
  }

  .menu-toggle {
    order: 3;
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  }

  .nav-menu.active {
    display: flex;
  }

  .desktop-btn {
    display: none;
  }

  .hero-grid,
  .grid,
  .project-grid,
  .products-grid,
  .jobs,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero {
    padding: 50px 0;
  }

  .section {
    padding: 60px 0;
  }

  .hero-card {
    height: 280px;
  }

  .cube {
    width: 90px;
    height: 90px;
    right: 40px;
    top: 40px;
  }

  .line {
    width: 250px;
  }

  .section-title h2 {
    font-size: 32px;
  }
}

@media(max-width:576px) {

  .lang-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .card,
  .project-card,
  .job-card {
    padding: 24px;
  }
}


.main-logo {
  height: 90px;
  width: auto;
  display: block;
}

@media(max-width:768px) {
  .main-logo {
    height: 68px;
  }

  html {
    scroll-padding-top: 100px;
  }
}

/* ===========================
   Language Switcher
 ===========================*/

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn:hover {
  color: #0f172a;
}

.lang-btn.active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.flag-icon {
  border-radius: 2px;
  display: block;
}

/*Modal*/
/* ===========================
   Construction Modal
 ===========================*/

.construction-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 17, 41, 0.6);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  perspective: 1000px;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.construction-overlay.show {
  opacity: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.construction-modal {
  position: relative;
  width: 650px;
  max-width: 92%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 45px;
  text-align: center;
  box-shadow: 
    0 10px 40px rgba(8, 21, 58, 0.06),
    0 30px 80px rgba(8, 21, 58, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transform: translateY(40px) scale(0.95) rotateX(8deg);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.construction-overlay.show .construction-modal {
  transform: translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
}

/* Rotating decorative background glow */
.construction-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(14, 165, 233, 0.03) 55%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: rotateGlow 25s linear infinite;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 18px;
  border: none;
  background: none;
  font-size: 32px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.25s ease;
}

.close-modal:hover {
  color: #2563eb;
}

.construction-image img {
  width: 320px;
  max-width: 100%;
  margin: auto;
  display: block;
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.construction-modal h2 {
  margin-top: 20px;
  font-size: 50px;
  color: #111827;
  line-height: 1.15;
}

.construction-modal h2 span {
  color: #2563eb;
}

.construction-modal p {
  color: #64748b;
  margin: 20px auto 35px;
  font-size: 18px;
  line-height: 1.8;
}

.feature-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.feature {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #334155;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(8, 21, 58, 0.05);
}

.launch-btn {
  padding: 16px 42px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #2563eb);
  background-size: 200% auto;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.launch-btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.construction-modal small {
  display: block;
  margin-top: 22px;
  color: #94a3b8;
}

/* Staggered text & interactive elements entrance */
.construction-modal > * {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.construction-overlay.show .construction-modal > * {
  opacity: 1;
  transform: translateY(0);
}

.construction-modal .close-modal { transition-delay: 0.1s; }
.construction-modal .construction-image { transition-delay: 0.15s; }
.construction-modal h2 { transition-delay: 0.2s; }
.construction-modal p { transition-delay: 0.25s; }
.construction-modal .feature-list { transition-delay: 0.3s; }
.construction-modal .launch-btn { transition-delay: 0.35s; }
.construction-modal small { transition-delay: 0.4s; }

/* Responsive styles for Under Construction Modal */
@media (max-width: 640px) {
  .construction-modal {
    padding: 35px 20px;
    border-radius: 24px;
  }
  
  .construction-modal h2 {
    font-size: 32px;
    margin-top: 15px;
  }
  
  .construction-modal p {
    font-size: 15px;
    margin: 15px auto 25px;
    line-height: 1.6;
  }
  
  .construction-image img {
    width: 220px;
  }
  
  .feature-list {
    gap: 8px;
    margin-bottom: 25px;
  }
  
  .feature {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
  }
  
  .launch-btn {
    padding: 14px 32px;
    font-size: 15px;
    width: 100%; /* Full width on small screens */
  }
}

/* ===========================
   Chatbox "Suma" (Views/Shared/_AiAssistantPanel.cshtml)
 ===========================*/

#aiAssistantToggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(90deg, #003cff, #00b7ff);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 60, 255, .35);
  font-size: 26px;
  z-index: 1050;
  cursor: pointer;
}

#aiAssistantPanel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 20px rgba(0, 0, 0, .2);
  z-index: 1049;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
}

#aiAssistantPanel.open {
  right: 0;
}

#aiAssistantHeader {
  background: linear-gradient(90deg, #003cff, #00b7ff);
  color: #fff;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#aiAssistantHeader button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

#aiChatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f5f8ff;
}

.ai-msg {
  margin-bottom: 12px;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.ai-msg-user {
  background: linear-gradient(90deg, #003cff, #00b7ff);
  color: #fff;
  margin-left: auto;
}

.ai-msg-agent {
  background: #fff;
  color: #08153a;
  border: 1px solid #d6def5;
}

.ai-msg-agent ul,
.ai-msg-agent ol {
  margin: 4px 0;
  padding-left: 18px;
}

.ai-msg-agent li {
  margin-bottom: 2px;
}

.ai-msg-agent div {
  margin-bottom: 2px;
}

.ai-msg-agent code {
  background: #eef2f7;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: .8rem;
}

.ai-msg-error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}

.ai-bai-usage {
  font-size: .72rem;
  color: #7c93b8;
  margin: -6px 0 12px 2px;
}

.ai-msg-typing {
  background: #fff;
  border: 1px solid #d6def5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
}

.ai-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa0a6;
  display: inline-block;
  animation: ai-typing-bounce 1.2s infinite ease-in-out;
}

.ai-msg-typing span:nth-child(2) {
  animation-delay: .2s;
}

.ai-msg-typing span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes ai-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

#aiAssistantFooter {
  border-top: 1px solid #e4ebf7;
  padding: 12px;
  background: #fff;
}

#aiInputRow {
  display: flex;
  gap: 8px;
  align-items: center;
}

#aiInputRow input[type="text"] {
  flex: 1;
  border-radius: 22px;
  padding: 10px 16px;
  border: 1px solid #d6def5;
  font-family: inherit;
}

#aiSendBtn {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: linear-gradient(90deg, #003cff, #00b7ff);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 576px) {
  #aiAssistantToggle {
    right: 16px;
    bottom: 16px;
  }
}

/* ===========================
   Contact page form
 ===========================*/

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #08153a;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d6def5;
  font-family: inherit;
  font-size: 15px;
  color: #08153a;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #b71c1c;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.form-error-summary {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.form-submit-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Honeypot chong bot - an voi nguoi dung that nhung bot doc HTML van thay va thuong tu dien */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thankyou-box {
  background: #fff;
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.thankyou-box .icon {
  font-size: 56px;
  margin-bottom: 20px;
}

/* ===========================
   Products section (Sumato Rent, BaseAI Platform)
 ===========================*/

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.badge-dev {
  display: inline-block;
  background: #fff3cd;
  color: #92700a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ===========================
   Value section ("Giá trị mang lại") - tai su dung .feature-list/.feature cua Construction Modal
 ===========================*/

.value-list {
  margin-top: 10px;
}

.value-list .feature {
  background: #fff;
}

/* ===========================
   Vision banner ("Tầm nhìn") - closing statement truoc footer
 ===========================*/

.vision-banner {
  background: linear-gradient(90deg, #003cff, #00b7ff);
  padding: 70px 0;
  text-align: center;
}

.vision-banner h2 {
  color: #fff;
  font-size: 38px;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 18px;
}

.vision-banner p {
  color: rgba(255, 255, 255, .9);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 17px;
}

@media (max-width: 576px) {
  .vision-banner {
    padding: 50px 0;
  }

  .vision-banner h2 {
    font-size: 28px;
  }
}