/* ============================================================
   PRIMECORE GROUP — Global Stylesheet
   Mobile-first | Dark professional | Data-center industry
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

/* ─── CSS Variables — PrimeCore Brand Colors ──────────────── */
/* Logo: Navy #1B3070 (PRIME) + Steel Gray #7A8BA8 (CORE) */
:root {
  --primary:       #1B3070;   /* Navy blue — logo primary */
  --primary-light: #2545A8;   /* Lighter navy for hover/links */
  --primary-dark:  #111E4A;   /* Deep navy for backgrounds */
  --accent:        #7A8BA8;   /* Steel gray — logo secondary */
  --accent-bright: #C8D4E8;   /* Light steel for highlights */
  --accent-hover:  #9AACC4;
  --bg-dark:       #080D1A;   /* Near-black navy background */
  --bg-card:       #0C1427;   /* Dark navy card */
  --bg-surface:    #101B35;   /* Slightly lighter surface */
  --border:        #1A2D52;   /* Navy border */
  --border-light:  #263C6B;   /* Lighter navy border */
  --text-primary:  #EEF2FF;   /* Near-white with cool tint */
  --text-secondary:#96AACB;   /* Muted steel blue */
  --text-muted:    #556A8A;   /* Quiet muted blue */
  --success:       #10B981;
  --white:         #FFFFFF;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow:   0 0 30px rgba(27,48,112,0.35);
  --transition:    150ms ease;
  --transition-md: 250ms ease;
  --nav-height:    72px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; border: none; outline: none; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { line-height: 1.75; color: var(--text-secondary); }

.mono { font-family: 'Fira Code', monospace; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(5, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-md), box-shadow var(--transition-md);
}

.navbar.scrolled {
  background: rgba(5, 12, 24, 0.97);
  box-shadow: var(--shadow-md);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.navbar-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(37,99,235,0.4);
}

.navbar-logo .logo-text {
  color: var(--white);
}

.navbar-logo .logo-text span {
  color: var(--accent);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 900px) { .nav-menu { display: flex; } }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary-light);
  transform: scaleX(0);
  transition: transform var(--transition-md);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: none;
}

@media (min-width: 900px) { .nav-cta { display: flex; align-items: center; gap: 0.75rem; } }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

@media (min-width: 900px) { .hamburger { display: none; } }

.hamburger:hover { background: var(--bg-surface); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-md), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-md), opacity var(--transition-md);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--bg-surface);
  color: var(--white);
}

.mobile-menu-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary-light);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary);
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
}

.btn-accent {
  background: var(--primary-light);
  color: var(--white);
  border: 1.5px solid rgba(200,212,232,0.2);
}

.btn-accent:hover {
  background: var(--primary);
  box-shadow: 0 0 24px rgba(37,69,168,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(37,99,235,0.08);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full { width: 100%; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Animated background grid */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27,48,112,0.30) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(122,139,168,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,58,95,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,95,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item svg { color: var(--success); flex-shrink: 0; }

/* ─── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  text-align: center;
}

@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-num .accent { color: var(--accent); }

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Section Headers ─────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition-md), box-shadow var(--transition-md), transform var(--transition-md);
}

.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* ─── Services Section ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: border-color var(--transition-md), box-shadow var(--transition-md), transform var(--transition-md);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-md);
  transform-origin: left;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-light);
  transition: background var(--transition-md), box-shadow var(--transition-md);
}

.service-card:hover .service-icon {
  background: rgba(37,99,235,0.22);
  box-shadow: 0 0 16px rgba(37,99,235,0.3);
}

.service-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 1.25rem;
  transition: gap var(--transition);
  cursor: pointer;
}

.service-card:hover .learn-more { gap: 0.6rem; }

/* ─── Why PrimeCore ──────────────────────────────────────────── */
.why-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-point-icon {
  width: 40px;
  height: 40px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-point h4 {
  color: var(--white);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.why-point p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.quote-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  position: relative;
}

.quote-block .quote-mark {
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.quote-block blockquote {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.quote-block cite {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

/* ─── Industry Reality ───────────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.industry-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.industry-num .accent { color: var(--accent); }

.industry-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0A1628 50%, #050C18 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content h2 { color: var(--white); margin-bottom: 1rem; }

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 480px) { .cta-actions { flex-direction: row; } }

/* ─── Certifications Strip ───────────────────────────────────── */
.certs-bar {
  background: var(--bg-surface);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.certs-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Fira Code', monospace;
}

.certs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}

.cert-badge:hover { border-color: var(--primary-light); color: var(--white); }

.cert-badge svg { color: var(--accent); flex-shrink: 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-family: 'Fira Code', monospace;
}

.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.footer-contact-item svg { color: var(--primary-light); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--primary-light);
  opacity: 0.7;
}

/* ─── Page Banner ─────────────────────────────────────────────── */
.page-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(26,79,191,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-inner { position: relative; z-index: 1; }

.page-banner h1 { color: var(--white); margin-bottom: 0.75rem; }

.page-banner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
}

/* ─── Checklist ─────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-item svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ─── Service Detail Cards ───────────────────────────────────── */
.service-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-md), box-shadow var(--transition-md);
}

.service-detail:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
}

.service-detail-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.service-detail-body { padding: 1.75rem 2rem 2rem; }

.service-detail h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.service-detail-header > div p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── About Values ───────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: border-color var(--transition-md), box-shadow var(--transition-md);
}

.value-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
}

.value-num {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.value-card h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Projects Timeline ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition-md), box-shadow var(--transition-md);
}

.project-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
}

.project-tag {
  display: inline-block;
  background: rgba(37,99,235,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.project-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Contact Form ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1.6fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-info-card h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7FA8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option { background: var(--bg-card); color: var(--text-primary); }

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

/* ─── Service page layout fix ───────────────────────────────── */
@media (min-width: 768px) {
  .service-layout,
  .about-intro-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ─── Scroll animations ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ─── Utility ─────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-primary-color { color: var(--primary-light); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ─── Hero image overlay ──────────────────────────────────────── */
.hero-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.22) saturate(0.7);
  transition: transform 8s ease;
}

.hero:hover .hero-image-bg {
  transform: scale(1.03);
}

/* ─── Image cards ────────────────────────────────────────────── */
.img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-md);
}

.img-card:hover img { transform: scale(1.04); }

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,13,26,0.85) 0%, transparent 60%);
  pointer-events: none;
}

.img-overlay-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.03em;
}

/* ─── Services image panels ────────────────────────────────── */
.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

@media (min-width: 768px) { .service-img { height: 280px; } }

/* ─── Photo gallery strip ──────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }

.photo-strip-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-md);
  filter: brightness(0.85) saturate(0.8);
}

.photo-strip-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1);
}

/* ─── Logo image in navbar ────────────────────────────────── */
.navbar-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ─── Logo in footer ─────────────────────────────────────── */
.footer-logo-img {
  opacity: 0.92;
}

/* ─── About split image ──────────────────────────────────── */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(8,13,26,0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.about-img-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* ─── Back to top ─────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  z-index: 500;
}

.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--primary); }
