/* ===== Design Tokens — TwinK brand (blue / navy / red) ===== */
:root {
  --blue: #2f53b3;
  --blue-mid: #3a63c9;
  --blue-deep: #16285a;
  --blue-soft: #e8eefb;
  --blue-tint: #eff3fc;
  --red: #e1251b;
  --red-soft: #fde9e8;
  --steel: #52617f;

  --ink: #16203a;
  --ink-soft: #46506b;
  --muted: #828ba3;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --line: #e3e9f4;

  --grad: linear-gradient(135deg, #3a63c9 0%, #1c3a86 100%);
  --grad-red: linear-gradient(135deg, #2f53b3 0%, #e1251b 100%);
  --grad-soft: linear-gradient(135deg, #e8eefb 0%, #eef2f9 55%, #f4f7fc 100%);

  --shadow-sm: 0 4px 14px rgba(28, 50, 110, .07);
  --shadow-md: 0 14px 40px rgba(28, 50, 110, .13);
  --shadow-lg: 0 24px 60px rgba(28, 50, 110, .18);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --maxw: 1160px;
  --nav-h: 76px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: none; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s;
  font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(47, 83, 179, .38); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28, 58, 134, .48); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(244, 247, 252, .72); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(244, 247, 252, .9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; }
.logo-img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .2s, background .2s; }
.nav-links a:not(.nav-cta):hover { color: var(--blue); background: var(--blue-soft); }
.nav-cta { background: var(--grad); color: #fff !important; box-shadow: 0 8px 20px rgba(47, 83, 179, .35); }
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 70px; overflow: hidden;
  background: var(--grad-soft);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(47,83,179,.10) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(47,83,179,.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .42; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 380px; height: 380px; background: var(--blue-mid); top: -80px; right: -60px; }
.blob-2 { width: 320px; height: 320px; background: var(--red); bottom: -100px; left: -40px; animation-delay: -4s; opacity: .22; }
.blob-3 { width: 260px; height: 260px; background: var(--steel); top: 40%; left: 55%; animation-delay: -8s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.06); } }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 860px; }
.badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .88rem; color: var(--ink-soft); box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 22px; }
.grad-text { background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 660px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px; }
.stat {
  background: rgba(255,255,255,.72); backdrop-filter: blur(8px); border: 1px solid #fff;
  border-radius: var(--r-md); padding: 20px 28px; min-width: 150px; box-shadow: var(--shadow-sm);
}
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-plus { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--red); vertical-align: top; }
.stat small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; margin-top: 2px; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-tint { background: var(--surface); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); padding: 6px 14px; background: var(--blue-soft); border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ===== About / VM ===== */
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vm-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 30px;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.vm-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.vm-vision { background: linear-gradient(135deg, #3a63c9, #2f53b3); }
.vm-mission { background: linear-gradient(135deg, #1c3a86, #16285a); }
.vm-value { background: linear-gradient(135deg, #e1251b, #b51c14); }
.vm-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.vm-card p { color: var(--ink-soft); }

/* ===== Video / Company Profile ===== */
.video-wrap { max-width: 900px; margin: 0 auto; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff; background: var(--blue-deep);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lazy video facade */
.video-facade { cursor: pointer; display: grid; place-items: center; background: var(--grad); }
.video-frame.is-playing { background: #000; border-color: #fff; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,40,90,.15), rgba(22,40,90,.45)); }
.yt-play {
  position: relative; z-index: 2; width: 80px; height: 80px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; padding-left: 5px;
  box-shadow: 0 12px 30px rgba(225,37,27,.5); transition: transform .25s ease;
}
.video-facade:hover .yt-play, .video-facade:focus-visible .yt-play { transform: scale(1.12); }
.video-facade:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 3px; }
.yt-label { position: absolute; z-index: 2; bottom: 18px; left: 22px; color: #fff; font-weight: 700; font-family: 'Space Grotesk', sans-serif; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* ===== Gallery / Carousel ===== */
.carousel {
  position: relative; max-width: 980px; margin: 0 auto; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; background: #0a1024;
}
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.4, .0, .2, 1); }
.slide { flex: 0 0 100%; margin: 0; aspect-ratio: 3 / 2; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.85); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: background .2s, transform .2s; z-index: 3;
}
.car-prev { left: 14px; } .car-next { right: 14px; }
.car-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.car-btn:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; }
.car-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.car-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.55);
  cursor: pointer; padding: 0; transition: width .25s, background .2s;
}
.car-dots button.active { background: #fff; width: 24px; border-radius: 6px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 28px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px; transition: transform .3s, background .3s, color .3s;
}
.service-card:hover .svc-icon { transform: scale(1.08) rotate(-4deg); background: var(--grad); color: #fff; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: .96rem; }

/* ===== Partners ===== */
.partners-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner-chip {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  padding: 16px 26px; border-radius: 999px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.partner-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 70px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--blue-mid), var(--blue), var(--red)); border-radius: 3px; }
.tl-item { position: relative; display: flex; gap: 28px; padding-left: 0; margin-bottom: 30px; }
.tl-year {
  flex: 0 0 58px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem;
  color: var(--blue); text-align: right; padding-top: 18px; position: relative; z-index: 2;
}
.tl-item::before {
  content: ''; position: absolute; left: 64px; top: 24px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue); z-index: 2;
}
.tl-card { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--shadow-sm); margin-left: 22px; transition: transform .3s, box-shadow .3s; }
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.tl-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tl-card p { color: var(--ink-soft); font-size: .96rem; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.team-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 26px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 22px rgba(47,83,179,.35);
}
.team-card h3 { font-size: 1.15rem; }
.team-exp { display: inline-block; font-weight: 700; font-size: .82rem; color: var(--blue); background: var(--blue-soft); padding: 4px 12px; border-radius: 999px; margin: 8px 0; }
.team-card p { color: var(--ink-soft); font-size: .94rem; }
.cert-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.cert-row span { font-weight: 700; color: var(--ink); }
.cert-row em { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.ci-item { display: flex; gap: 16px; }
.ci-icon { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(47,83,179,.32); }
.ci-item h4 { font-size: 1.02rem; margin-bottom: 2px; }
.ci-item p, .ci-item a { color: var(--ink-soft); font-size: .96rem; }
.ci-item a:hover { color: var(--blue); }
.ci-note { background: var(--grad-soft); border-radius: var(--r-md); padding: 18px 22px; border: 1px solid var(--line); }
.ci-note strong { display: block; margin-bottom: 2px; }
.ci-note p { color: var(--ink-soft); font-size: .94rem; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.6px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); background: #fff; }
.field input.invalid, .field textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .94rem; text-align: center; min-height: 1.2em; }
.form-status.success { color: #1f9d72; }
.form-status.error { color: var(--red); }
.form-hint { margin-top: 10px; text-align: center; color: var(--muted); font-size: .85rem; }
.form-hint strong { color: var(--ink-soft); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #c8cee0; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo-chip { display: inline-block; background: #fff; padding: 12px 18px; border-radius: var(--r-md); margin-bottom: 16px; }
.footer-logo-chip img { height: 44px; width: auto; }
.footer-brand p { color: #9aa2bd; font-size: .96rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #c8cee0; transition: background .2s, color .2s, transform .2s; }
.footer-social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1.02rem; }
.footer-col a, .footer-col p { display: block; color: #9aa2bd; font-size: .94rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--blue-mid); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom p { color: #7e87a3; font-size: .88rem; text-align: center; }

/* ===== To Top ===== */
.to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s; z-index: 90; border: none; cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ===== Reveal Animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .vm-grid, .services-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .logo-img { height: 40px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: rgba(244,247,252,.98); backdrop-filter: blur(16px); padding: 18px 24px 26px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .35s ease; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .section { padding: 70px 0; }
  .timeline::before { left: 7px; }
  .tl-year { flex-basis: auto; text-align: left; padding-top: 0; padding-left: 30px; margin-bottom: 6px; }
  .tl-item { flex-direction: column; gap: 8px; }
  .tl-item::before { left: 0; top: 4px; }
  .tl-card { margin-left: 30px; }
}
@media (max-width: 560px) {
  .vm-grid, .services-grid, .team-grid, .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stat { flex: 1 1 calc(50% - 14px); min-width: 0; }
  .contact-form { padding: 24px; }
  .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
