/* ============================================
   VOGAR TECHNOLOGY — Corporate Website Styles
   ============================================ */

:root {
  --ink: #0b1220;
  --ink-2: #101b2e;
  --body: #46536b;
  --muted: #7b8698;
  --line: #e5eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --accent: #0ea5b7;
  --accent-2: #22d3ee;
  --accent-deep: #0b7f8d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.14);
  --font-head: "Poppins", "Sarabun", sans-serif;
  --font-body: "Sarabun", "Poppins", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: all .25s ease; cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 8px 24px rgba(14, 165, 183, .35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14, 165, 183, .45); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }

.text-gradient {
  background: linear-gradient(100deg, var(--accent-2), #67e8f9 45%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(11, 18, 32, 0.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(11, 18, 32, 0.92);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-text {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  color: #fff; letter-spacing: .06em; line-height: 1; display: flex; flex-direction: column;
}
.brand-text small { font-size: 9.5px; font-weight: 600; letter-spacing: .42em; color: var(--accent-2); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: 15px; color: rgba(255,255,255,.82);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px; transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: all .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 150px 0 110px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,10,20,.92) 25%, rgba(7,20,35,.72) 60%, rgba(8,30,45,.55));
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(14, 165, 183, .14); border: 1px solid rgba(34, 211, 238, .4);
  color: var(--accent-2); font-family: var(--font-head); font-weight: 600;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; margin-bottom: 24px; }
.hero p { color: rgba(255,255,255,.85); font-size: clamp(16px, 1.6vw, 19px); max-width: 700px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 2;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent-2); border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { top: 8px; opacity: 1; } 70% { top: 22px; opacity: 0; } 100% { top: 8px; opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 16px; }
.section-head p { color: var(--body); font-size: 16.5px; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep);
  background: rgba(14,165,183,.1); padding: 6px 16px; border-radius: 999px;
}

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 46px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .3s ease, box-shadow .3s ease;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(14,165,183,.14), rgba(34,211,238,.14));
  color: var(--accent-deep); margin-bottom: 20px;
}
.about-icon svg { width: 28px; height: 28px; }
.about-card h3 { font-size: 20px; margin-bottom: 12px; }
.about-card p { font-size: 15px; }

.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 30px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,165,183,.35); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--accent-2); margin-bottom: 22px;
  transition: background .3s ease, transform .3s ease;
}
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; transform: scale(1.06); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-card p { font-size: 15px; }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--bg-soft); }
.capabilities-layout { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: stretch; }
.capabilities-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); min-height: 420px;
}
.capabilities-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(14,165,183,.16), transparent 55%);
  pointer-events: none;
}
.capabilities-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.capabilities-content .eyebrow { margin-bottom: 16px; }
.capabilities-content h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 26px; }

.cap-item { margin-bottom: 26px; }
.cap-item h4 {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; margin-bottom: 8px;
}
.cap-num {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--accent-deep); background: rgba(14,165,183,.12);
  border-radius: 6px; padding: 3px 8px; letter-spacing: .05em;
}
.cap-item p { font-size: 15px; }

.check-list { list-style: none; display: grid; gap: 14px; margin-bottom: 34px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px rgba(14,165,183,.35);
}

/* ---------- R&D Innovation ---------- */
.rnd { background: var(--bg-soft); }
.rnd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 26px; }
.rnd-tech {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow);
}
.rnd-tech h3 { font-size: 20px; margin-bottom: 22px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 820px; margin: 0 auto;
}
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 22px; text-align: center; position: relative; overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: rgba(14,165,183,.35); }
.contact-card:hover::before { transform: scaleX(1); }
.contact-icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(14,165,183,.32);
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card h4 { font-size: 17px; margin-bottom: 10px; }
.contact-card p { font-size: 14.5px; line-height: 1.8; }
.contact-card .contact-link { color: var(--ink); font-weight: 600; transition: color .2s; }
.contact-card .contact-link:hover { color: var(--accent-deep); }
.contact-card a[href^="mailto:"] { color: var(--ink); transition: color .2s; }
.contact-card a[href^="mailto:"]:hover { color: var(--accent-deep); }
.contact-cta { text-align: center; margin-top: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 220px at 50% 0%, rgba(14,165,183,.14), transparent 70%);
  pointer-events: none;
}
.footer-grid { position: relative; display: flex; flex-direction: column; align-items: center; padding: 80px 0 58px; }
.footer-brand { text-align: center; width: 100%; }
.footer-brand .brand { justify-content: center; }
.footer-brand .brand-text { font-size: 22px; }
.footer-brand::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 32px auto 0;
  border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 13.5px; color: rgba(255,255,255,.5); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-layout { grid-template-columns: 1fr; gap: 44px; }
  .rnd-grid { grid-template-columns: 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: min(320px, 82vw); height: 100vh; height: 100dvh;
    background: rgba(11, 18, 32, .97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; gap: 26px;
    transition: right .35s ease; z-index: 90; box-shadow: -20px 0 50px rgba(0,0,0,.3);
  }
  .main-nav.open { right: 0; }
  .nav-link { font-size: 18px; }
  .hero { padding: 130px 0 90px; min-height: 92vh; }
  .hero-actions .btn { width: 100%; }
  .about-grid, .services-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16 / 10; }
  .footer-grid { padding: 60px 0 44px; }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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