@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

body {
  background: #020A0F;
  color: white;
}

.container {
  width: 1200px;
  max-width: 100%;
  margin: auto;
  position: relative;
}


/* TITLE */
.title {
  margin-bottom: 15px;
  text-align: center;
  position: relative;
  z-index: 10;
}
.title h2 {
  font-size: 42px;
  margin-bottom: 10px;
}
/* SUBTITLE */
.subtitle {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #94a3b8;
  line-height: 1.6;
}
/* ===== HEADER ===== */
.header {
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  transition: all 300ms;
}
.header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  height: 40px;
  width: 176px;
}

/* MENU */
.menu {
  display: flex;
  gap: 40px;
}

.menu a {
  color: #cfd8dc;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.menu a.active,
.menu a:hover {
  color: #00aaff;
}

/* LANGUAGE */
.lang {
  border: 1px solid #fff;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
}

.lang span {
  padding: 5px 12px;
  cursor: pointer;
  font-size: 14px;
}

.lang .active {
  background: white;
  color: black;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 20px;
}

.hero-container {
  width: 1200px;
  max-width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

/* LEFT */
.hero-left {
  flex:1 1;
}

.hero-left h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-left p {
  color: #9aa4af;
  font-size: 18px;
  margin-bottom: 30px;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  background: linear-gradient(90deg, #1da1f2, #007bff);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.hero-right {
  flex: 1 1;
}
/* RIGHT IMAGE */
.hero-right img {
  width: 100%;
}

/* ===== CURVE BOTTOM ===== */
.hero-curve {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 200px;

  background: linear-gradient(180deg, #111B28, transparent 57%);

  border-radius: 50%;
  z-index: 1;
}


.bg-star {
  width: 50vw;
  height: 50vw;

  background:
    url("img/star.png");

  background-blend-mode: overlay;

  background-repeat: no-repeat, no-repeat;
  background-size: contain;
  background-position: center, center;

  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  opacity: 0;
  transition: all 0.8s ease;
  transition-delay: 0.2s;
}
.hero .bg-star {
  top: -60% !important;
  width: 60vw;
  height: 60vw;
}

/* SECTION */
.services {
  padding: 80px 20px;
  text-align: center;
}


/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
/* ITEM */
.service-item {
  padding: 40px 25px;
  border: 1px solid rgba(255,255,255,0.05);
  background: radial-gradient(circle, rgba(17, 27, 40, 0.2), rgba(17, 27, 40, 0.7));
  transition: 0.3s;
  position: relative;
}

.service-item:hover {
  background: radial-gradient(circle, transparent, #111B28);
}

/* ICON */
.icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.service-item:hover .icon img {
  transform: scale(1.1);
}

/* TEXT */
.service-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}


/* SECTION */
.process {
  padding: 80px 20px;
  color: #fff;
}
/* BOX */
.process-box {
  position: relative;
}

/* GRID */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 50px;
  column-gap: 40px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  background: radial-gradient(circle, rgba(17, 27, 40, 0.2), rgba(17, 27, 40, 0.7));
  border-radius: 20px;
  padding: 50px 30px;
}

/* ITEM */
.process-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
}

/* STEP NUMBER */
.step {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: #1e90ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* TEXT */
.process-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.process-item p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* LINE DỌC */
.process-item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 45px;
  width: 2px;
  height: calc(100% + 30px);
  background: rgba(30,144,255,0.5);
}

/* bỏ line item cuối mỗi cột */
.process-item:nth-child(4)::before,
.process-item:nth-child(5)::before,
.process-item:nth-child(6)::before {
  display: none;
}



/* SECTION */
.projects {
  padding: 80px 20px;
  text-align: center;
}



/* GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ITEM */
.project-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}

/* IMAGE */
.project-img {
  padding: 30px;
  padding-bottom: 0;
  background-color: #212121;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.project-content {
  padding: 30px 20px;
  text-align: center;
}

/* TEXT */
.project-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.project-content p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1e90ff;
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #0ea5e9;
}

/* HOVER EFFECT */
.project-item:hover img {
  transform: scale(1.05);
}

.project-img img {
  transition: 0.4s;
}


.technologies {
  padding: 80px 20px;
}
.company-intro {
  padding: 80px 20px;
}
.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.intro-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle, rgba(17, 27, 40, 0.32), rgba(17, 27, 40, 0.78));
  border-radius: 18px;
  padding: 28px 24px;
}
.intro-card h3,
.contact-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.intro-card p,
.contact-card p {
  color: #94a3b8;
  line-height: 1.7;
}
.contact-card .contact-label {
  display: block;
  color: #cfd8dc;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-card .contact-value,
.contact-card a {
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
  text-decoration: none;
}
.contact-card a:hover {
  color: #00aaff;
}
.contact-note {
  margin-top: 24px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-note p {
  color: #9fb1c3;
  line-height: 1.7;
}
.technologies-content {
  position: relative;
}
.technologies-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle, rgba(17, 27, 40, 0.2), rgba(17, 27, 40, 0.7));
    border-radius: 20px;
    padding: 50px 30px;
    position: relative;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tech-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  padding: 24px 20px;
}
.tech-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.tech-card p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 16px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(29, 161, 242, 0.12);
  border: 1px solid rgba(29, 161, 242, 0.28);
  color: #d9f1ff;
  font-size: 14px;
}

/* Footer */
.footer {
  position: relative;
  padding: 100px 20px 0 20px;
  overflow: hidden;
}

/* Curve background */
.curve-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;

  background: linear-gradient(180deg, #111B28, transparent 57%);

  border-radius: 50%;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.col h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #cfd6dd;
}

.col a {
  text-decoration: none;
  color: #8f9aa7;
  font-size: 15px;
}

.col a:hover {
  color: #fff;
}

.col p {
  color: #8f9aa7;
  font-size: 15px;
  line-height: 1.6;
}

.col p a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.col p a:hover {
  color: #fff;
}

/* Left column */
.left {
  max-width: 400px;
}

.left h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.left p {
  color: #8f9aa7;
  line-height: 1.6;
}

/* Bottom */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: flex-end;
  color: #8f9aa7;
  font-size: 14px;
}

/* Big background text */
.bg-text {
  text-align: center;
}
.bg-text img {
  width: 90%;
}

/* ===== BASE ANIMATION ===== */
.animate {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s ease;
}

/* SHOW */
.animate.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* EFFECTS */
.fade-up {
  transform: translateY(50px);
}

.zoom-in {
  transform: scale(0.8);
}

.fade-left {
  transform: translateX(-50px);
}

.fade-right {
  transform: translateX(50px);
}

/* HERO LOAD */
.fade-star.show {
  top: -20vw;
  transform: translateX(-50%) scale(1);
  opacity: 1;
}
.hero .hero-left {
  opacity: 0;
  transform: translateY(50px);
  animation: heroFade 1s ease forwards;
}

.hero .hero-right {
  opacity: 0;
  transform: scale(0.8);
  animation: heroZoom 1s ease forwards;
  animation-delay: 0.3s;
}

.hero .hero-curve {
  opacity: 0;
  transform: translateY(50px);
  animation: heroFade 1.5s ease forwards;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.service-item:nth-child(2) { transition-delay: 0.1s; }
.service-item:nth-child(3) { transition-delay: 0.2s; }
.service-item:nth-child(4) { transition-delay: 0.3s; }
.service-item:nth-child(5) { transition-delay: 0.4s; }
.service-item:nth-child(6) { transition-delay: 0.5s; }
.service-item:nth-child(7) { transition-delay: 0.6s; }

.process-item:nth-child(1) { transition-delay: 0.1s; }
.process-item:nth-child(2) { transition-delay: 0.2s; }
.process-item:nth-child(3) { transition-delay: 0.3s; }
.process-item:nth-child(4) { transition-delay: 0.4s; }
.process-item:nth-child(5) { transition-delay: 0.5s; }
.process-item:nth-child(6) { transition-delay: 0.6s; }




/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

/* ANIMATE TO X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6px) translateX(3px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px) translateX(5px);
}

.inner-page {
  padding: 100px 20px 60px 20px;
}
.padding-main {
  padding: 60px 0;
}
.contact-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle, rgba(17, 27, 40, 0.2), rgba(17, 27, 40, 0.7));
  border-radius: 20px;
  padding: 50px 30px;
  position: relative;
  margin-bottom: 20px;
}
.contact-content {
  position: relative;
}

.gallery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  position: relative;
  cursor: pointer;
  padding-top: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  background: rgba(0,0,0,0.3);
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.zoom-icon {
  font-size: 2rem;
  color: #fff;
}

.lightbox {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox .close,
.lightbox .next,
.lightbox .prev {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.lightbox .close {
  top: 10px;
  right: 30px;
  font-size: 2.5rem;
  transform: none;
}

.lightbox .next {
  right: 10px;
}

.lightbox .prev {
  left: 10px;
}


/* RESPONSIVE */
@media (max-width: 992px) {
  .hero {
    padding: 60px 20px;
    padding-top: 100px;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 35px;
  }
  .hero-curve {
    bottom: -100px;
  }

  .hero-right {
    margin-top: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-grid,
  .contact-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .services, .process, .projects, .technologies, .company-intro {
    padding: 40px 15px;
  }
  .title h2 {
    font-size: 30px;
  }
  .bg-star {
    width: 100vw;
    height: 100vw;
  }
  .fade-star.show {
    top: -50vw;
  }

  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
  }
    .menu a {
    padding: 15px;
    border-bottom: 1px solid #222;
    color: white;
    text-decoration: none;
  }

  .menu.show {
    max-height: 300px;
  }

  .hamburger {
    display: flex;
  }

  .container {
    justify-content: space-between;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .contact-box, .intro-card, .contact-card, .contact-note {
    padding: 20px;
  }
}


@media (max-width: 600px) {
  .service-item {
    padding: 10px;
  }
  .process-item::before {
    display: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    gap: 10px;
  }
  .process-item {
    flex-direction: column;
  }
}
