/* ===========================
   STYLE (Dark theme mặc định, có light override)
   =========================== */

/* Reset */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color: #e8ecf1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,92,247,0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(79,140,255,0.09), transparent 60%),
    #0b1020;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: #3b82f6; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(10,14,28,0.78), rgba(10,14,28,0.45));
  border-bottom: 1px solid #2a324a;
}
.nav { display: flex; align-items: center; gap: 16px; min-height: 72px; }

/* Logo */
.logo { display:flex; align-items:center; gap:10px; font-weight:700; color: #e8ecf1; }
.logo-badge{
  width:36px; height:36px; border-radius:12px;
  background: conic-gradient(from 160deg, #4f8cff, #7c5cff);
  display:grid; place-items:center; color:#fff; font-size:14px;
}

/* ===== NAV MAIN ===== */
.nav-main { display:flex; align-items:center; gap:6px; margin-left:12px; }
.nav-link {
  position: relative; padding: 10px 12px; border-radius: 10px;
  font-weight: 500; color: #9aa4b5; transition: color .18s ease;
}
.nav-link:hover { color: #e8ecf1; }
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 2px; background: linear-gradient(90deg, #4f8cff, #7c5cff);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease; border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #e8ecf1; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 10px; min-width: 220px;
  background: #1a2238; border: 1px solid #2a324a; border-radius: 14px;
  padding: 8px; opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.dropdown:hover .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.menu-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #e8ecf1; }
.menu-item:hover { background: rgba(255,255,255,0.06); }
.menu-title { font-weight: 600; }

/* ===== RIGHT SIDE ===== */
.nav-right { margin-left: auto; display:flex; align-items:center; gap:10px; }
.btn {
  display:inline-flex; align-items:center; gap:8px; padding:10px 14px;
  border-radius:12px; border:1px solid #2a324a; cursor:pointer; color: #e8ecf1;
}
.btn-primary {
  border:0; background: linear-gradient(90deg, #4f8cff, #7c5cff);
  color:#fff; box-shadow: 0 8px 20px rgba(79,140,255,0.18);
}
.theme-toggle { width:42px; justify-content:center; }

/* ===== BURGER ===== */
.burger { display: none; width:42px; height:42px; border-radius:12px; border:1px solid #2a324a; }
.burger span, .burger::before, .burger::after {
  content:""; display:block; height:2px; margin:6px 10px; background: currentColor;
}

/* ===== PANEL (Mobile) ===== */
.panel {
  position: fixed; inset: 0 0 auto 0; top:72px;
  height: calc(100dvh - 72px);
  background: linear-gradient(180deg, rgba(10,14,28,0.96), rgba(10,14,28,0.86));
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.panel.open { opacity:1; pointer-events:auto; transform: translateY(0); }
.panel-inner { padding:18px; }
.panel a { display:block; padding:12px 10px; border-radius:10px; color:#e8ecf1; }
.panel a:hover { background: rgba(255,255,255,0.04); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .nav-main { display: none; }
  .burger { display: inline-flex; align-items:center; justify-content:center; }
}
@media (max-width: 600px) { .container { padding: 0 12px; } }

/* ===== LIGHT THEME ===== */
body.light { color:#0e1a2b; background:#f6f7fb; }
body.light .site-header { background:#fff; border-bottom:1px solid #d1d5db; }
body.light .nav-link { color:#667085; }
body.light .nav-link:hover, body.light .nav-link.active { color:#0e1a2b; }
body.light .dropdown-menu { background:#fff; border:1px solid #e5e7eb; }
body.light .menu-item { color:#0e1a2b; }
body.light .btn { background:#fff; border:1px solid #e5e7eb; color:#0e1a2b; }
body.light .btn-primary { background: linear-gradient(90deg,#2563eb,#a855f7); color:#fff; }

/* ===== SLIDER ===== */
.slider-section { margin: 0; }
.slider {
  position: relative; overflow: hidden; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); background: #0b0e14;
}
.slides { display: flex; transition: transform 0.6s ease-in-out; }
.slide { flex: 0 0 100%; position: relative; }
.slide img {
  width: 100%; height: 500px; /* Chiều cao đồng nhất */
  object-fit: cover; /* ảnh lấp đầy, không méo */
  display: block; border-radius: 14px;
}
/* Nút */
.slider button.prev, .slider button.next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.5);
  color: #fff; border: none; font-size: 22px; cursor: pointer;
}
.slider button.prev { left: 15px; }
.slider button.next { right: 15px; }
/* Dots */
.dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; }
.dots span.active { background: #fff; }
@media (max-width: 768px) {
  .slide img { height: 280px; }
  .slider button.prev, .slider button.next { width:36px; height:36px; font-size:18px; }
}

/* ===== INTRO ===== */
.intro-section {
    margin: 10px auto;
    max-width: 1180px;
    padding-left: 15px;
    padding-right: 15px;
}

.intro-inner {
  background: linear-gradient(180deg, #0d1428, #1a2238);
  color: #e8ecf1; border-radius: 14px;
  padding: 0px 5px 5px 5px;
}
.intro-inner h1 {
  font-size: 2.2rem; margin-bottom: 4px; text-align:center;
  background: linear-gradient(90deg, #4f8cff, #7c5cff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.intro-inner h2 { font-size: 1.5rem; margin-bottom: 4px; color: #9aa4b5; text-align:center;margin-top: 0px;}
.intro-inner p { font-size: 1rem; line-height: 1.8; text-align: justify; max-width: 1000px; margin: 0 auto; }
/* ===== SERVICES SECTION ===== */
.services-section {
  margin: 60px 0;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #4f8cff, #7c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: linear-gradient(180deg, #0d1428, #1a2238);
  padding: 28px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.service-card .icon {
  font-size: 36px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #4f8cff;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #c5c9d3;
}
/* ===== WHY CHOOSE (IMAGE + LIST STYLE) ===== */
.why-choose-section {
  margin: 100px 0;
  padding: 60px 20px;
  background: #0d1428;
  border-radius: 16px;
}

.why-choose-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-left img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.why-right {
  flex: 1;
}

.why-right .section-title {
  text-align:center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #4f8cff, #7c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s, background 0.3s;
}

.why-list li:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.08);
}

.why-list .icon {
  font-size: 22px;
  margin-right: 12px;
  flex-shrink: 0;
}

.why-list p {
  margin: 0;
  font-size: 1rem;
  color: #e8ecf1;
}

/* Mobile */
@media (max-width: 900px) {
  .why-choose-container {
    flex-direction: column;
    text-align: center;
  }
  .why-list li {
    justify-content: center;
  }
  .why-list .icon {
    margin-right: 8px;
  }
}
