/* SG Service — Hostinger PHP styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #0c0c0c;
  font-family: 'Kanit', sans-serif;
  color: #d7e2ea;
  overflow-x: clip;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #bbccd7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container { width: 100%; max-width: 72rem; margin: 0 auto; }

/* Buttons */
.btn-contact {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: -3px;
  background: linear-gradient(123deg, #18011f 7%, #b600a8 37%, #7621b0 72%, #be4c00 100%);
  box-shadow: 0 4px 4px rgba(181, 1, 167, 0.25), inset 4px 4px 12px #7721b1;
  transition: opacity 0.2s;
}
.btn-contact:hover { opacity: 0.9; }

@media (min-width: 640px) {
  .btn-contact { padding: 0.875rem 2.5rem; font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .btn-contact { padding: 1rem 3rem; font-size: 1rem; }
}

/* Navbar */
.hero-nav {
  position: relative;
  z-index: 50;
}

.navbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0;
}

.nav-brand {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d7e2ea;
  transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.7; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(215, 226, 234, 0.25);
  border-radius: 0.5rem;
  background: rgba(12, 12, 12, 0.85);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #d7e2ea;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1.25rem;
  right: 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(12, 12, 12, 0.97);
  border: 1px solid rgba(215, 226, 234, 0.15);
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nav-links.open { display: flex; }

.nav-links a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d7e2ea;
  transition: opacity 0.2s;
  border-bottom: 1px solid rgba(215, 226, 234, 0.08);
}

.nav-links a:last-child { border-bottom: none; }
.nav-links a:hover { opacity: 0.7; }

@media (min-width: 768px) {
  .navbar { padding: 2rem 2.5rem 0; }
  .nav-brand { font-size: 1.125rem; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-links a {
    padding: 0;
    font-size: 1.125rem;
    border-bottom: none;
  }
}

@media (min-width: 1024px) {
  .nav-brand, .nav-links a { font-size: 1.4rem; }
  .nav-links { gap: 4rem; }
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.from-left { transform: translateX(-80px); }
.fade-in.from-left.visible { transform: translateX(0); }
.fade-in.from-right { transform: translateX(80px); }
.fade-in.from-right.visible { transform: translateX(0); }

/* Portrait fade-in keeps horizontal centering */
.hero-portrait-wrap.fade-in {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 30px));
}
.hero-portrait-wrap.fade-in.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}
.hero-title-wrap { overflow: hidden; padding: 0 1.5rem; }
.hero-title {
  margin-top: 1.5rem;
  font-size: 14vw;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  width: 100%;
}
.hero-bottom {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 1.75rem;
}
.hero-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .hero-bottom-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.hero-tagline {
  max-width: 100%;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.375;
  font-size: clamp(0.75rem, 1.4vw, 1.5rem);
}
.hero-portrait-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  width: min(260px, 70vw);
  max-width: calc(100% - 2rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-portrait-wrap #hero-portrait {
  will-change: transform;
  transition: transform 0.6s ease-in-out;
  display: flex;
  justify-content: center;
}
.hero-portrait-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-title { margin-top: 1rem; font-size: 15vw; }
  .hero-tagline { max-width: 220px; }
  .hero-portrait-wrap {
    top: auto;
    bottom: 0;
    width: 360px;
    max-width: none;
    pointer-events: auto;
  }
  .hero-portrait-wrap.fade-in {
    transform: translate(-50%, 30px);
  }
  .hero-portrait-wrap.fade-in.visible {
    transform: translate(-50%, 0);
  }
  .hero-bottom { padding-bottom: 2rem; }
}
@media (min-width: 768px) {
  .hero-title { margin-top: -1.25rem; font-size: 16vw; }
  .hero-title-wrap, .hero-bottom { padding-left: 2.5rem; padding-right: 2.5rem; }
  .hero-tagline { max-width: 260px; }
  .hero-portrait-wrap { width: 440px; }
  .hero-bottom { padding-bottom: 2.5rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 17.5vw; }
  .hero-portrait-wrap { width: 520px; }
}

/* Marquee */
.marquee-section {
  background: #0c0c0c;
  padding: 6rem 0 2.5rem;
  overflow-x: clip;
}
.marquee-row {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
}
.marquee-row + .marquee-row { margin-top: 0.75rem; }
.marquee-row img {
  width: 420px;
  height: 270px;
  flex-shrink: 0;
  border-radius: 1rem;
  object-fit: cover;
}
@media (min-width: 640px) { .marquee-section { padding-top: 8rem; } }
@media (min-width: 768px) { .marquee-section { padding-top: 10rem; } }

/* About */
.about-section {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem;
}
.about-deco {
  position: absolute;
  pointer-events: none;
}
.about-deco.moon { top: 4%; left: 1%; width: 120px; }
.about-deco.object3d { bottom: 8%; left: 3%; width: 100px; }
.about-deco.lego { top: 4%; right: 1%; width: 120px; }
.about-deco.group { bottom: 8%; right: 3%; width: 130px; }

.about-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.about-title {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
}
.about-text {
  max-width: 560px;
  text-align: center;
  font-weight: 500;
  line-height: 1.625;
  font-size: clamp(1rem, 2vw, 1.35rem);
}
.about-text .char {
  opacity: 0.2;
  transition: opacity 0.1s linear;
}
.about-cta { margin-top: 4rem; }

@media (min-width: 640px) {
  .about-section { padding: 5rem 2rem; }
  .about-content { gap: 3.5rem; }
  .about-deco.moon, .about-deco.lego { width: 160px; }
  .about-deco.object3d { width: 140px; left: 6%; }
  .about-deco.group { width: 170px; right: 6%; }
  .about-cta { margin-top: 5rem; }
}
@media (min-width: 768px) {
  .about-deco.moon { left: 4%; width: 210px; }
  .about-deco.lego { right: 4%; width: 210px; }
  .about-deco.object3d { left: 10%; width: 180px; }
  .about-deco.group { right: 10%; width: 220px; }
  .about-content { gap: 4rem; }
  .about-cta { margin-top: 6rem; }
}

/* Services */
.services-section {
  background: #fff;
  border-radius: 40px 40px 0 0;
  padding: 5rem 1.25rem;
}
.services-title {
  margin-bottom: 4rem;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  color: #0c0c0c;
}
.services-list { max-width: 64rem; margin: 0 auto; }
.service-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(12, 12, 12, 0.15);
}
.service-item:last-child { border-bottom: none; }
.service-number {
  flex-shrink: 0;
  font-weight: 900;
  color: #0c0c0c;
  font-size: clamp(3rem, 10vw, 140px);
  line-height: 1;
}
.service-name {
  font-weight: 500;
  text-transform: uppercase;
  color: #0c0c0c;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  margin-bottom: 0.5rem;
}
.service-desc {
  max-width: 42rem;
  font-weight: 300;
  line-height: 1.625;
  opacity: 0.6;
  color: #0c0c0c;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
}

@media (min-width: 640px) {
  .services-section { border-radius: 50px 50px 0 0; padding: 6rem 2rem; }
  .service-item { gap: 2.5rem; padding: 2.5rem 0; }
  .services-title { margin-bottom: 5rem; }
}
@media (min-width: 768px) {
  .services-section { border-radius: 60px 60px 0 0; padding: 8rem 2.5rem; }
  .service-item { gap: 3rem; padding: 3rem 0; }
  .services-title { margin-bottom: 7rem; }
}

/* Why Us */
.why-section {
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  background: #0c0c0c;
  border-radius: 40px 40px 0 0;
  padding: 5rem 1.25rem;
}
.why-title {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
}
.why-subtitle {
  margin: 0 auto 4rem;
  max-width: 36rem;
  text-align: center;
  font-weight: 300;
  color: rgba(215, 226, 234, 0.6);
}
.why-grid {
  display: grid;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}
.why-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 30px;
  border: 2px solid rgba(215, 226, 234, 0.15);
  transition: border-color 0.2s;
}
.why-card:hover { border-color: rgba(215, 226, 234, 0.4); }
.why-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.why-icon {
  padding: 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(215, 226, 234, 0.2);
  color: #d7e2ea;
}
.why-number {
  font-weight: 900;
  color: rgba(215, 226, 234, 0.2);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}
.why-card-title {
  margin-bottom: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.35rem);
}
.why-card-desc {
  font-weight: 300;
  line-height: 1.625;
  color: rgba(215, 226, 234, 0.6);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
}
.why-cta {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .why-section { margin-top: -3rem; border-radius: 50px 50px 0 0; padding: 6rem 2rem; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .why-card { padding: 2rem; border-radius: 40px; }
  .why-subtitle { margin-bottom: 5rem; }
  .why-cta { margin-top: 5rem; }
}
@media (min-width: 768px) {
  .why-section { margin-top: -3.5rem; border-radius: 60px 60px 0 0; padding: 8rem 2.5rem; }
  .why-subtitle { margin-bottom: 7rem; }
  .why-cta { margin-top: 7rem; }
}

/* Footer */
.footer {
  background: #0c0c0c;
  padding: 4rem 1.25rem;
}
.footer-inner { max-width: 72rem; margin: 0 auto; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}
.footer-text {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  color: rgba(215, 226, 234, 0.6);
}
.footer-heading {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-list { list-style: none; }
.footer-list li + li { margin-top: 0.5rem; }
.footer-list a {
  font-size: 0.875rem;
  color: rgba(215, 226, 234, 0.6);
  transition: color 0.2s;
}
.footer-list a:hover { color: #d7e2ea; }
.footer-bottom {
  border-top: 1px solid rgba(215, 226, 234, 0.15);
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(215, 226, 234, 0.4);
}

@media (min-width: 640px) {
  .footer { padding: 4rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Sub pages */
.page-top { padding: 2rem 1.5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }
.page-content { padding: 0 1.25rem 5rem; }
.page-heading {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 12vw, 120px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
}
.page-intro {
  margin-bottom: 4rem;
  max-width: 36rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(215, 226, 234, 0.7);
}

/* Contact cards */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.contact-card {
  padding: 2rem;
  border-radius: 30px;
  border: 2px solid rgba(215, 226, 234, 0.2);
}
.contact-card svg { margin-bottom: 1rem; color: #d7e2ea; }
.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-card p, .contact-card a {
  font-weight: 300;
  line-height: 1.625;
  color: rgba(215, 226, 234, 0.7);
}
.contact-card a { transition: color 0.2s; }
.contact-card a:hover { color: #d7e2ea; }
.contact-card .muted { margin-top: 0.5rem; color: rgba(215, 226, 234, 0.5); }

@media (min-width: 640px) {
  .page-top { padding: 3rem 2.5rem; }
  .page-content { padding: 0 2rem 5rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .back-link { font-size: 1rem; }
}

/* Legal pages */
.legal-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}
.legal-title {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 8vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
}
.legal-body { display: flex; flex-direction: column; gap: 1.5rem; }
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
}
.legal-body p, .legal-body li {
  font-weight: 300;
  line-height: 1.625;
  color: rgba(215, 226, 234, 0.8);
}
.legal-body ul { padding-left: 1.25rem; }
.legal-body a { text-decoration: underline; color: #d7e2ea; }
.legal-meta {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: rgba(215, 226, 234, 0.4);
}

@media (min-width: 640px) {
  .legal-article { padding: 0 2rem 5rem; }
}
