/* ================================
   AMTECH – AN MINH TECH WEBSITE CSS
   Color palette from logo:
   Dark navy: #0d2550
   Mid blue:  #1565c0
   Cyan:      #00c8e8
   Light cyan:#00eaff
================================= */

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

:root {
  --navy:      #0d2550;
  --blue:      #1565c0;
  --blue-mid:  #1976d2;
  --cyan:      #00c8e8;
  --cyan-light:#00eaff;
  --white:     #ffffff;
  --off-white: #f4f8fc;
  --gray-100:  #eef2f7;
  --gray-200:  #dde5ef;
  --gray-600:  #5a6a85;
  --gray-800:  #2c3a52;
  --text:      #1a2a42;
  --text-sub:  #4a5f7a;

  --gradient: linear-gradient(135deg, var(--navy) 0%, var(--blue) 45%, var(--cyan) 100%);
  --gradient-h: linear-gradient(90deg, var(--navy) 0%, var(--cyan) 100%);
  --shadow-sm: 0 2px 8px rgba(13,37,80,.10);
  --shadow-md: 0 6px 24px rgba(13,37,80,.13);
  --shadow-lg: 0 16px 48px rgba(13,37,80,.18);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ---- CONTAINER ---- */
.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================
   NAVBAR
================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 140px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-h);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================
   HERO – Visual-first split layout
================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(0,200,232,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(21,101,192,.2) 0%, transparent 55%);
}

/* Floating decorations */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.06);
  z-index: 0;
  pointer-events: none;
}
.hero-deco-1 {
  width: 400px; height: 400px;
  right: -100px; bottom: -100px;
  border-width: 50px;
  animation: decoFloat 12s ease-in-out infinite;
}
.hero-deco-2 {
  width: 200px; height: 200px;
  left: 5%; top: 15%;
  border-width: 2px;
  background: rgba(0,200,232,.05);
  animation: decoFloat 8s ease-in-out infinite reverse;
}
.hero-deco-3 {
  width: 120px; height: 120px;
  right: 30%; top: 10%;
  border-width: 2px;
  background: rgba(255,255,255,.03);
  animation: decoFloat 10s ease-in-out infinite 2s;
}

/* Split layout */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 160px);
}

/* Left side */
.hero-left {
  color: var(--white);
  animation: fadeUp 0.9s ease both;
}
.hero-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 1.2rem;
}
.hero-title-new {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}
.hero-title-new .gradient-text {
  background: linear-gradient(90deg, var(--cyan-light), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right side – Product showcase */
.hero-right {
  animation: fadeUp 0.9s ease 0.3s both;
}

.showcase-container {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.showcase-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.showcase-slide.active {
  opacity: 1;
  transform: scale(1);
}
.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category label */
.showcase-label {
  text-align: center;
  padding: 0.8rem 0 0.4rem;
  min-height: 2.4rem;
  position: relative;
}
.showcase-label-text {
  position: absolute;
  left: 0; right: 0;
  color: rgba(255,255,255,.9);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.showcase-label-text.active {
  opacity: 1;
  transform: translateY(0);
}

/* Thumbnails */
.showcase-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.thumb {
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
  aspect-ratio: 4/3;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover {
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}
.thumb.active {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,200,232,.4);
}

@keyframes decoFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

/* ================================
   BUTTONS
================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator {
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-indicator span {
  display: block;
  width: 4px; height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

/* ================================
   SECTION COMMONS
================================= */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-divider {
  width: 56px; height: 4px;
  background: var(--gradient-h);
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.section-desc {
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ================================
   ABOUT
================================= */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-sub);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.about-text p strong { color: var(--navy); }

.about-info {
  margin-top: 2rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.info-value {
  font-size: 0.97rem;
  color: var(--text);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon .icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.stat-num {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-sub);
}

/* ================================
   SERVICES
================================= */
.services { background: var(--white); }

.services-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
}

.quality-assurance, .business-sectors {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.quality-assurance h3, .business-sectors h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.quality-assurance p {
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.assurance-list {
  list-style: none;
  padding: 0;
}

.assurance-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.assurance-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: bold;
}

.sector-group {
  margin-bottom: 2rem;
}
.sector-group:last-child {
  margin-bottom: 0;
}

.sector-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
}

.sector-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sector-list {
  list-style: none;
  padding: 0;
}

.sector-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.sector-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sector-tags .tag {
  background: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-sub);
  border: 1px solid var(--gray-200);
}

/* ================================
   VALUES
================================= */
.values {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.values::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,232,.15) 0%, transparent 70%);
}
.values .section-tag { color: var(--cyan); }
.values .section-title { color: var(--white); }

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.value-item {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: padding-left var(--transition);
}
.value-item:last-child { border-bottom: none; }
.value-item:hover { padding-left: 1rem; }

.value-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  opacity: 0.9;
}
.value-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.value-body p {
  color: rgba(255,255,255,.65);
  font-size: 0.97rem;
}

/* ================================
   CONTACT
================================= */
.contact { background: var(--off-white); }

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  min-height: 100px;
  flex: 0 1 calc(33.333% - 1rem);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(0,200,232,.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.contact-icon .icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.contact-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}
.contact-link:hover { color: var(--blue); text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.map-wrap iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

/* ================================
   FOOTER
================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer-logo {
  margin-bottom: 0.6rem;
}
.footer-logo-img {
  height: 140px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.footer-tagline {
  color: var(--cyan) !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links a,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--cyan); }
.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
}

/* ================================
   ANIMATIONS
================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   RESPONSIVE
================================= */
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .hero-cta { justify-content: center; }
  .hero-logo { margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-content { grid-template-columns: 1fr; }
  .contact-card { flex: 0 1 calc(50% - 0.75rem); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-title-new { font-size: 2rem; }
  .hero-logo { height: 70px; }
  .section { padding: 70px 0; }
  .services-content { grid-template-columns: 1fr; }
  .contact-card { flex: 0 1 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 100px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .value-item { gap: 1.5rem; }
  .value-num { font-size: 2.2rem; width: 60px; }
}
