/* ============================================
   TROT ENGINEERING — Modern Aesthetic Theme
   ============================================ */

:root {
  --bg-0: #0a0e1a;
  --bg-1: #0f1524;
  --bg-2: #151b2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6e9f2;
  --text-dim: #9aa3b8;
  --text-muted: #6b7490;
  --accent: #f5a623;        /* amber/industrial accent */
  --accent-2: #ff7a45;      /* warm coral */
  --accent-grad: linear-gradient(135deg, #f5a623 0%, #ff7a45 100%);
  --blue: #4f8cff;
  --success: #4ade80;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px circle at 10% 0%, rgba(245, 166, 35, 0.08), transparent 50%),
    radial-gradient(600px circle at 90% 30%, rgba(79, 140, 255, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .25s var(--ease);
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary {
  background: var(--accent-grad);
  color: #0a0e1a;
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(245, 166, 35, 0.4); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 14, 26, 0.9);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #0a0e1a;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.3);
}
.logo small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 10px;
  transition: all .2s var(--ease);
}
.nav-links a:hover { color: #fff; background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  place-items: center;
  color: #fff;
}
.hamburger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  display: grid; place-items: center;
}
.drawer-links {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-links a {
  display: block;
  padding: 18px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid transparent;
}
.drawer-links a:hover,
.drawer-links a:active {
  background: var(--surface);
  border-color: var(--border);
}
.drawer-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(10,14,26,0.3) 0%, rgba(10,14,26,0.85) 70%, rgba(10,14,26,1) 100%),
    url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: saturate(0.8) brightness(0.6);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245, 166, 35, 0.15), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* Anchor scroll offset so sections don't hide behind fixed nav */
section[id] { scroll-margin-top: 80px; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero h1 { margin: 20px 0 24px; }
.hero h1 .line { display: block; }
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 720px;
}
.stat {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-num .unit { color: var(--accent); }
.stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head h2 { margin: 18px 0 16px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.about-media:hover img { transform: scale(1.04); }
.about-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,14,26,0.7));
}
.about-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  padding: 16px 20px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.about-badge strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}
.about-badge span { font-size: 0.82rem; color: var(--text-dim); }

.about-text h2 { margin: 18px 0 20px; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.about-highlights {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .25s var(--ease);
}
.highlight:hover { border-color: var(--accent); transform: translateX(4px); }
.highlight-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent);
  display: grid; place-items: center;
}
.highlight-icon svg { width: 18px; height: 18px; }
.highlight-text strong { display: block; color: #fff; margin-bottom: 2px; font-size: 0.95rem; }
.highlight-text span { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- VMV (Vision/Mission/Value) ---------- */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vmv-card {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s var(--ease);
}
.vmv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.vmv-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.vmv-card:hover::before { opacity: 1; }
.vmv-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #0a0e1a;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.25);
}
.vmv-icon svg { width: 24px; height: 24px; }
.vmv-card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.vmv-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .35s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(245, 166, 35, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(255, 122, 69, 0.1));
  border: 1px solid rgba(245, 166, 35, 0.3);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.service-card .learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s var(--ease);
}
.service-card:hover .learn { gap: 10px; }

/* ---------- Global Presence ---------- */
.presence {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.presence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.loc-card {
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all .25s var(--ease);
}
.loc-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.loc-flag {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.loc-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #fff;
}
.loc-card span { font-size: 0.85rem; color: var(--text-dim); }
.loc-card .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--accent-grad);
  color: #0a0e1a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta-section { padding: 80px 0; }
.cta-box {
  position: relative;
  padding: 60px 48px;
  background:
    radial-gradient(ellipse at top right, rgba(245, 166, 35, 0.2), transparent 60%),
    linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-box h2 { margin-bottom: 14px; position: relative; }
.cta-box p { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-box .hero-actions { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-about p {
  color: var(--text-dim);
  margin: 16px 0 20px;
  font-size: 0.92rem;
  max-width: 340px;
}
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all .2s var(--ease);
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social-btn svg { width: 18px; height: 18px; }

.footer-col h5 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: grid; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { aspect-ratio: 4/3; max-height: 420px; }
  .vmv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  section { padding: 70px 0; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-card { padding: 24px 22px; }
  .vmv-card { padding: 28px 22px; }
}

@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .logo small { display: none; }
}
