/* Blue Digital Ltd — Shared Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --navy: #060b18;
  --navy-mid: #0a1628;
  --surface: rgba(15,30,60,.6);
  --surface-hover: rgba(20,40,80,.7);
  --border: rgba(80,130,220,.12);
  --border-hover: rgba(80,140,255,.25);
  --accent: #3b9eff;
  --accent-glow: rgba(59,158,255,.15);
  --white: #f0f4ff;
  --light-gray: #a0b4d0;
  --text-dim: rgba(160,180,210,.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header / Nav ── */
header {
  background: rgba(6,14,32,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 100%;
  max-height: 164px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: var(--light-gray);
  font-weight: 500;
  transition: color .2s;
}

nav ul a:hover,
nav ul a.active {
  color: var(--accent);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  background: url('hero-circuit.jpg') center/cover no-repeat;
  text-align: center;
  padding: 4rem 2rem;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,11,24,.6) 0%, rgba(6,11,24,.85) 100%);
  pointer-events: none;
}

.hero-headline, .hero-sub, .hero .btn {
  position: relative; z-index: 1;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .75rem;
  color: var(--white);
}

.hero-headline span {
  background: linear-gradient(135deg, #3b9eff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--light-gray);
  margin-bottom: 3.5rem;
  letter-spacing: -.01em;
}

.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all .25s cubic-bezier(.25,.46,.45,.94);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(59,158,255,.9), rgba(30,100,220,.9));
  color: var(--white);
  border: 1px solid rgba(100,170,255,.3);
  box-shadow: 0 4px 16px rgba(59,158,255,.2), inset 0 1px 0 rgba(255,255,255,.15);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,158,255,.3), inset 0 1px 0 rgba(255,255,255,.2);
}

/* ── Gloss card mixin (applied to service cards, contact panels) ── */
.gloss-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s, border-color .25s;
}

.gloss-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(180deg, rgba(120,170,255,.08) 0%, rgba(80,130,220,.03) 50%, transparent 100%);
  border-radius: 16px 16px 0 0; pointer-events: none;
}

.gloss-card::after {
  content: ''; position: absolute; top: 1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,170,255,.3), transparent);
  pointer-events: none;
}

.gloss-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(80,140,255,.08) inset;
}

/* ── Services ── */
.services {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s, border-color .25s;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(180deg, rgba(120,170,255,.08) 0%, rgba(80,130,220,.03) 50%, transparent 100%);
  border-radius: 16px 16px 0 0; pointer-events: none;
}

.service-card::after {
  content: ''; position: absolute; top: 1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,170,255,.3), transparent);
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(80,140,255,.08) inset;
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: .5rem;
  font-size: 1.15rem;
  color: var(--white);
}

.service-card p {
  font-size: .9rem;
  color: var(--light-gray);
}

/* ── Contact page ── */
.contact-section {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  flex: 1;
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-details,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.contact-details::before,
.contact-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(180deg, rgba(120,170,255,.08) 0%, rgba(80,130,220,.03) 50%, transparent 100%);
  border-radius: 16px 16px 0 0; pointer-events: none;
}

.contact-details::after,
.contact-form::after {
  content: ''; position: absolute; top: 1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,170,255,.3), transparent);
  pointer-events: none;
}

.contact-details h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.contact-details p {
  margin-bottom: 1rem;
  color: var(--light-gray);
}

.contact-details a {
  color: var(--accent);
}

.contact-form h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.contact-form label {
  display: block;
  margin-bottom: .35rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--light-gray);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10,20,45,.6);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Logo section ── */
.logo-section {
  position: relative; z-index: 1;
  text-align: center;
  padding: 3rem 2rem 4rem;
}

.logo-large {
  max-width: 500px;
  width: 100%;
  height: auto;
}

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: auto;
  border-top: 1px solid var(--border);
}

/* ── Staff hub tool cards ── */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s, border-color .25s;
}

.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(180deg, rgba(120,170,255,.08) 0%, rgba(80,130,220,.03) 50%, transparent 100%);
  border-radius: 16px 16px 0 0; pointer-events: none;
}

.tool-card::after {
  content: ''; position: absolute; top: 1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,170,255,.3), transparent);
  pointer-events: none;
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(80,140,255,.08) inset;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  header {
    padding: .75rem 1rem;
  }

  nav .logo img {
    max-height: 80px;
  }

  nav ul {
    gap: 1rem;
  }

  nav ul a {
    font-size: .9rem;
  }

  .hero {
    padding: 2rem 1.25rem;
  }

  .hero-headline { font-size: 2rem; }

  .hero-sub {
    font-size: .95rem;
    margin-bottom: 1.5rem;
  }

  .services {
    padding: 2.5rem 1.25rem;
  }

  .services h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  .contact-section {
    padding: 2.5rem 1.25rem;
  }

  .contact-section h1 {
    font-size: 1.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .logo-section {
    padding: 2rem 1.25rem 3rem;
  }

  .logo-large {
    max-width: 300px;
  }

  .btn {
    padding: .7rem 1.5rem;
    font-size: .9rem;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: .8rem;
  }
}

@media (max-width: 400px) {
  nav .logo img {
    max-height: 55px;
  }

  .hero-sub {
    font-size: .85rem;
  }

  .services-grid {
    gap: 1rem;
  }
}
