/* ==========================================================================
   AR Dynamix Ltd — Shared Stylesheet
   ========================================================================== */

:root {
  --bg: #060b18;
  --bg-alt: #0a1226;
  --surface: #0d1830;
  --surface-light: #15234a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eaeefb;
  --text-muted: #93a0bd;
  --text-dim: #5d6a8a;
  --navy: #0a2a66;
  --accent: #2dd4ff;
  --accent-2: #6366f1;
  --accent-warm: #f5a623;
  --accent-soft: rgba(45, 212, 255, 0.14);
  --gradient: linear-gradient(135deg, #2dd4ff 0%, #6366f1 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1240px;
  --transition: 0.25s ease;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
}

/* Background ambience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 800px 500px at 15% -10%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(45, 212, 255, 0.16), transparent 60%),
    url("../images/watermark-x.png");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 90% 10%;
  background-size: auto, auto, 65vmax 65vmax;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent-warm);
  border-radius: 2px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 16px;
}

.section-head.left {
  margin: 0 0 56px;
  text-align: left;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #04101f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background var(--transition), border-color var(--transition), padding var(--transition), box-shadow var(--transition);
  background: #c0c0c0;
  border-bottom: 1px solid rgba(10, 42, 102, 0.08);
  box-shadow: 0 4px 24px -12px rgba(0, 0, 0, 0.25);
}

.site-header.scrolled {
  background: #c0c0c0;
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(10, 42, 102, 0.14);
  padding: 14px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  background: #e9ecf2;
  padding: 8px 14px;
  border-radius: 10px;
}

.site-header .logo {
  background: none;
  padding: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(10, 42, 102, 0.65);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-warm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile dropdown panel keeps a dark background, so its links stay light */
.nav-links.open a {
  color: var(--text-muted);
}

.nav-links.open a:hover,
.nav-links.open a.active {
  color: var(--text);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 160px 0 140px;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(6, 11, 24, 0.55) 0%, rgba(6, 11, 24, 0.78) 55%, var(--bg) 100%),
    url('https://images.unsplash.com/photo-1768592959322-659216ae87ea?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .eyebrow {
  justify-content: center;
}

.hero h1 {
  margin: 0 auto 24px;
  max-width: 920px;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.hero-stats .stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Page hero (service detail pages)
   ========================================================================== */

.page-hero {
  padding: 70px 0 70px;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.page-hero-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
}

.page-hero-sub {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Logos / trust strip
   ========================================================================== */

.strip {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services {
  padding: 110px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 30px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 26, 44, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 1px 0 var(--accent-warm);
  background: linear-gradient(180deg, var(--surface-light) 0%, rgba(17, 26, 44, 0.5) 100%);
}

.service-thumb {
  margin: -36px -30px 6px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.05);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: var(--gradient);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  transition: stroke var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: #04101f;
}

.service-card h3 {
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.service-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   About / split sections
   ========================================================================== */

.split {
  padding: 110px 0;
}

/* Grid lives on the container, not the section, so the section doesn't
   accidentally become a 2-col grid with only one child. */
.container.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.container.split.reverse .split-media {
  order: 2;
}

#about .container.split {
  align-items: start;
}

#about .split-media {
  position: sticky;
  top: 110px;
}

.split-media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.split-media svg {
  width: 38%;
  height: 38%;
  stroke: var(--accent);
  opacity: 0.85;
  position: relative;
}

.split-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media.contact-map {
  aspect-ratio: 4 / 3.4;
}

.split-body {
  text-align: left;
}

#about .feature-list {
  max-width: 460px;
}

#location .feature-list {
  max-width: 420px;
}

.split-media iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) invert(0.92) contrast(0.92) hue-rotate(180deg);
}

.split-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 460px;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
}

.feature-list .check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list .check svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
}

.feature-list strong {
  display: block;
  margin-bottom: 2px;
}

.feature-list span.desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-list span.desc a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.feature-list span.desc a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Process steps
   ========================================================================== */

.process {
  padding: 110px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.process-step .step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Related services
   ========================================================================== */

.related {
  padding: 90px 0 110px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   Sub-services (cyber security)
   ========================================================================== */

.sub-services {
  padding: 0 0 110px;
}

.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sub-service-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.sub-service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.sub-service-card .service-icon {
  margin-bottom: 18px;
}

.sub-service-card h3 {
  margin-bottom: 10px;
}

.sub-service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta {
  padding: 90px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  opacity: 0.08;
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo {
  background: none;
  padding: 0;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 18px 0 22px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}

.social-row a:hover {
  border-color: var(--accent);
}

.social-row a:nth-child(1) {
  color: #0a66c2; /* LinkedIn brand color */
}

.social-row a:nth-child(2) {
  color: #1da1f2; /* Twitter / X brand color */
}

.social-row a:nth-child(3) {
  color: #ffffff; /* GitHub brand color (dark theme) */
}

.social-row svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .services-grid,
  .related-grid,
  .sub-services-grid,
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .container.split { grid-template-columns: 1fr; gap: 48px; }
  .container.split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .services-grid,
  .related-grid,
  .sub-services-grid,
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-box { padding: 48px 28px; }
  .hero { padding: 70px 0 60px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero h1,
  .section-head h2 { max-width: 320px; margin-left: auto; margin-right: auto; }
  .split-body h2 { max-width: 320px; }
}

/* ==========================================================================
   Mobile nav drawer
   ========================================================================== */

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(7, 11, 20, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  gap: 22px;
}
