/* ============================================
   WINNING ASIA TECHNOLOGY — Corporate Website
   Dark & Premium Theme | Gold Accent #c9a84c
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a0a;
  --black-2:    #111111;
  --black-3:    #161616;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark:  #a07c2a;
  --white:      #ffffff;
  --grey-light: #cccccc;
  --grey-mid:   #888888;
  --grey-dark:  #444444;
  --border:     rgba(201,168,76,0.25);
  --font-sans:  'Montserrat', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --nav-h:      72px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--grey-light);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: none; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--black);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-gold-sm {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-gold-sm:hover { background: var(--gold); color: var(--black); }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
#navbar.scrolled { background: rgba(10,10,10,0.98); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}
.logo-img:hover { opacity: 0.88; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
}
.logo-accent { color: var(--gold); }
.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--grey-mid);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Nav Right */
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Language Toggle */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--grey-mid);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lang-toggle .active { color: var(--gold); font-weight: 600; }
.lang-divider { color: var(--grey-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--grey-light);
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/index_bg.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.6) 60%, rgba(10,6,0,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.scroll-hint:hover { opacity: 1; }
.scroll-arrow {
  display: block;
  width: 14px; height: 14px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section { padding: 100px 0; }
.section-dark   { background: var(--black-2); }
.section-deeper { background: var(--black-3); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}
.gold-line {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 0 auto;
}
.section-intro {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 0.95rem;
  color: var(--grey-mid);
  line-height: 1.8;
}

/* ============================================
   COMPANY BACKGROUND
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--grey-light);
  margin-bottom: 1.2rem;
}
.about-text p:last-child { margin-bottom: 0; }

/* Stat cards */
.about-stats { display: flex; flex-direction: column; gap: 1rem; }

.stat-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--gold); }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* Pillars */
.about-pillars {
  background: var(--black-3);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--grey-light);
}
.pillar-icon { color: var(--gold); font-size: 0.8rem; flex-shrink: 0; }

/* ============================================
   PRODUCTS & SOLUTIONS
   ============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black-2);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  gap: 1rem;
  cursor: pointer;
}
.partner-card:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
}
.partner-img-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.partner-img-wrap img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0.9) saturate(0.8);
  transition: filter var(--transition);
  margin: 0 auto;
}
.partner-card:hover .partner-img-wrap img {
  filter: brightness(1.1) saturate(1);
}
.partner-visit {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}
.partner-card:hover .partner-visit { opacity: 1; }

/* AGT Product Highlights */
.agt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.agt-card {
  display: flex;
  flex-direction: column;
  background: var(--black-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.agt-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
}
.agt-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}
.agt-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.agt-card:hover .agt-card-img-wrap img {
  transform: scale(1.04);
}
.agt-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.agt-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.3;
}
.agt-card-body p {
  font-size: 0.82rem;
  color: var(--grey-light);
  line-height: 1.65;
}
@media (max-width: 1024px) {
  .agt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .agt-grid { grid-template-columns: 1fr; }
}

.partners-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--grey-dark);
  font-style: italic;
}

/* ============================================
   INVESTOR RELATIONS
   ============================================ */
.ir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ir-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color var(--transition);
}
.ir-card:hover { border-color: var(--gold); }
.ir-icon { font-size: 2rem; margin-bottom: 1rem; }
.ir-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.ir-card p {
  font-size: 0.88rem;
  color: var(--grey-mid);
  line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.contact-item p {
  font-size: 0.88rem;
  color: var(--grey-light);
  line-height: 1.7;
}
.contact-item a { color: var(--grey-light); }
.contact-item a:hover { color: var(--gold); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black);
  border: 1px solid var(--grey-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-group select option { background: var(--black-2); }

.form-success {
  font-size: 0.85rem;
  color: var(--gold);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 3rem;
  align-items: start;
}
.footer-brand .logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 0.4rem;
}
.footer-brand p {
  font-size: 0.78rem;
  color: var(--grey-dark);
}
.footer-brand p.footer-slogan {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  justify-content: flex-end;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-mid);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy p { font-size: 0.75rem; color: var(--grey-dark); }
.footer-copy a { color: var(--grey-dark); }
.footer-copy a:hover { color: var(--gold); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* Scroll-reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.hidden-before-reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 calc(50% - 0.5rem); }
  .about-pillars { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .pillar { flex: 1 1 calc(50% - 0.4rem); }

  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .hamburger { display: flex; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .ir-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { flex-direction: column; align-items: flex-start; }

  .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 70px 0; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card { flex: 1 1 100%; }
}

/* ========== AI ROBOT BUSINESS ========== */
.aimo-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.aimo-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.aimo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  transition: transform var(--transition);
}
.aimo-link:hover { transform: translateY(-4px); }
.aimo-logo {
  max-width: 240px;
  width: 100%;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.45));
  transition: filter var(--transition), transform var(--transition);
}
.aimo-link:hover .aimo-logo {
  filter: drop-shadow(0 16px 36px rgba(201,168,76,0.35));
}
.aimo-visit {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
}
.aimo-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.aimo-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.aimo-feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.aimo-feature h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.aimo-feature p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .aimo-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .aimo-logo { max-width: 220px; }
}

/* Coming Soon partner card */
.partner-card-soon {
  cursor: default;
  opacity: 0.55;
}
.partner-card-soon:hover {
  border-color: rgba(201,168,76,0.25);
  transform: none;
  box-shadow: none;
}
.partner-card-soon img { filter: grayscale(60%); }
.partner-soon-label {
  color: var(--grey-mid) !important;
  font-style: italic;
}

/* Footer logo */
.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 0.8rem;
}

/* Contact section without form */
.contact-grid.contact-grid-solo {
  display: flex;
  justify-content: center;
}
.contact-grid-solo .contact-info {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.contact-grid-solo .contact-item {
  justify-content: center;
  text-align: left;
}
