/* ===========================
   LINE Seed Sans TH
   =========================== */
@font-face {
  font-family: 'LINESeedSansTH';
  src: url('../fonts/LINESeedSansTH_W_Th.woff2') format('woff2'),
       url('../fonts/LINESeedSansTH_W_Th.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINESeedSansTH';
  src: url('../fonts/LINESeedSansTH_W_Rg.woff2') format('woff2'),
       url('../fonts/LINESeedSansTH_W_Rg.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINESeedSansTH';
  src: url('../fonts/LINESeedSansTH_W_Bd.woff2') format('woff2'),
       url('../fonts/LINESeedSansTH_W_Bd.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINESeedSansTH';
  src: url('../fonts/LINESeedSansTH_W_XBd.woff2') format('woff2'),
       url('../fonts/LINESeedSansTH_W_XBd.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINESeedSansTH';
  src: url('../fonts/LINESeedSansTH_W_He.woff2') format('woff2'),
       url('../fonts/LINESeedSansTH_W_He.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #778fec;
  --blue-deep: #5a72d4;
  --blue-dark: #3d52a8;
  --yellow: #fce52a;
  --light-blue: #b3d2ee;
  --light-blue-soft: rgba(179, 210, 238, 0.3);
  --dark: #1a1a2e;
  --dark-surface: #22223a;
  --gray-100: #f0f2fa;
  --gray-200: #dde1f0;
  --gray-400: #8a8ea8;
  --gray-600: #5c5f78;
  --white: #ffffff;
  --radius: 12px;
  --font-heading: 'LINESeedSansTH', 'Space Grotesk', sans-serif;
  --font-body: 'LINESeedSansTH', 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: none;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--blue);
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--yellow);
  color: var(--dark);
}

.btn:hover {
  background: var(--white);
  color: var(--blue);
}

/* ===========================
   NAV
   =========================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

#nav.scrolled {
  background: rgba(119, 143, 236, 0.85);
  backdrop-filter: blur(20px);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--light-blue);
  transition: color 0.4s ease;
}

.nav-logo span {
  color: var(--yellow);
}

#nav.scrolled .nav-logo span {
  color: var(--yellow);
}

#nav.scrolled .nav-logo {
  color: var(--light-blue);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--light-blue);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--yellow);
}

#nav.scrolled .nav-links a {
  color: var(--light-blue);
}

#nav.scrolled .nav-links a:hover {
  color: var(--yellow);
}

.nav-cta {
  padding: 10px 24px !important;
  border-radius: 100px !important;
  background: var(--yellow) !important;
  color: var(--dark) !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--blue) !important;
}

#nav.scrolled .nav-cta {
  background: var(--yellow) !important;
  color: var(--dark) !important;
}

#nav.scrolled .nav-cta:hover {
  background: var(--white) !important;
  color: var(--blue) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--light-blue);
  transition: all 0.3s ease;
}

.nav-toggle span:first-child {
  margin-bottom: 8px;
}

#nav.scrolled .nav-toggle span {
  background: var(--light-blue);
}

/* ===========================
   HERO
   =========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 24px;
}

#hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--light-blue);
  margin-bottom: 24px;
}

#hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-sub {
  font-size: 18px;
  color: var(--light-blue);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===========================
   ABOUT
   =========================== */
#about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.about-left .section-label {
  color: var(--blue);
}

.about-left h2 {
  margin-bottom: 0;
}

.about-lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-right > p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 48px;
  line-height: 1.7;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  padding-top: 24px;
  border-top: 3px solid var(--blue);
}

.pillar-num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.pillar p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===========================
   SERVICES
   =========================== */
#services {
  padding: 120px 0;
  background: var(--blue);
  color: var(--white);
}

#services .section-label {
  color: var(--yellow);
}

#services h2 {
  color: var(--yellow);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.service-card {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: background 0.3s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  display: block;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--light-blue);
}

.service-card p {
  font-size: 14px;
  color: rgba(179, 210, 238, 0.6);
  line-height: 1.7;
}

/* ===========================
   WORK
   =========================== */
#work {
  padding: 120px 0;
  background: var(--gray-100);
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.work-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(119, 143, 236, 0.15);
}

.work-item.hidden {
  display: none;
}

.work-img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-100);
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.work-info {
  padding: 20px 24px;
}

.work-info h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}

.work-info p {
  font-size: 13px;
  color: var(--gray-400);
}

/* ===========================
   CLIENTS
   =========================== */
#clients {
  padding: 100px 0;
  background: var(--white);
}

#clients .section-label {
  color: var(--blue);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.client-logo {
  padding: 24px 20px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90px;
  transition: all 0.3s ease;
}

.client-logo img {
  max-height: 48px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.client-logo:hover {
  background: var(--gray-100);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===========================
   CONTACT
   =========================== */
#contact {
  padding: 120px 0;
  background: var(--dark);
  color: var(--white);
}

#contact .section-label {
  color: var(--yellow);
}

#contact h2 {
  color: var(--yellow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--yellow);
}

.form-success {
  padding: 16px 20px;
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  margin-top: 16px;
  width: 100%;
}

/* ===========================
   FOOTER
   =========================== */
#footer {
  padding: 32px 0;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--light-blue);
}

.footer-logo span {
  color: var(--yellow);
}

#footer p {
  font-size: 13px;
  color: var(--gray-600);
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #hero {
    background-position: 62% center;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--blue);
    border-left: 1px solid rgba(179, 210, 238, 0.2);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--light-blue) !important;
    font-size: 18px;
  }

  .nav-links .nav-cta {
    color: var(--dark) !important;
  }

  .nav-links a:hover {
    color: var(--yellow) !important;
  }

  .nav-cta {
    margin-top: 16px;
  }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  #hero h1 {
    font-size: clamp(28px, 8vw, 48px);
  }

  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
