:root {
  --primary: #1790bf;
  --primary-glow: rgba(23, 144, 191, 0.3);
  --accent: #2285e8;
  --bg-dark: #0a0b0c;
  --bg-card: #141619;
  --bg-light: #1c1f24;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.08);
  --container: 1200px;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- IMAGE CONTAINMENT LOGIC --- */
.image-container {
  background-color: #000;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-container {
  height: 400px;
}

.about-container {
  height: 350px;
}

/* --- UTILITY BAR --- */
.top-bar {
  background: #000;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-links {
  display: flex;
  gap: 2rem;
}

.contact-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--primary);
}

/* --- NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 11, 12, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

nav {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin-top: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -1px;
  text-decoration: none;
  color: #fff;
}

.accent-text {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
  list-style: none;
}

/* --- NAVIGATION --- */


.nav-links a {
  text-decoration: none;
  color: var(--text-main); /* Changed from var(--text-muted) to white */
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--primary-glow);
}

/* --- HERO SECTION --- */
.hero {
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

/* --- SECTION STYLES --- */
.section {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .accent-line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.intro-section {
  background: var(--bg-light);
}

/* --- DOCUMENT STORE --- */
.document-store {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 4rem;
  margin-top: 6rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border);
}

.document-store-heading .eyebrow {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-store-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.document-store-heading > p:last-child {
  color: var(--text-muted);
  max-width: 430px;
}

.document-list {
  list-style-position: outside;
  padding-left: 2rem;
}

.document-list li {
  padding: 0.85rem 0 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.document-list li:first-child {
  padding-top: 0;
}

.document-list a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color 0.25s ease,
    text-decoration-color 0.25s ease;
}

.document-list a:hover,
.document-list a:focus-visible {
  color: var(--primary);
  text-decoration-color: currentColor;
}

/* --- CAPABILITIES GRID (3 EQUAL COLUMNS) --- */
.services-section {
  background: var(--bg-dark);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.cap-card {
  background: var(--bg-dark);
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.cap-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.cap-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cap-card p {
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}

/* --- CLIENTS SECTION (LOGO VISIBILITY) --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.clients-section {
  background: var(--bg-light);
}

/* --- CLIENTS SECTION (WITH SERVICE BOX WIGGLE) --- */
/* --- CLIENTS SECTION (TOP-LEFT ALIGNMENT) --- */
.client-card {
  height: 240px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  /* Changed from flex-end to flex-start to move text to the top */
  align-items: flex-start;
  /* Adjusted padding so text isn't touching the very edge */
  padding: 1.5rem;
  border: 1px solid var(--border);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1d21;
  transition: all 0.4s ease;
  cursor: default;
}

/* The "Wiggle" effect on hover */
.client-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Adjusted gradient to be darker at the top so text is readable against the logo */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 50%
  );
  z-index: 1;
}

.client-card::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: inherit;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px) brightness(0.5);
  z-index: 0;
}

.client-info {
  position: relative;
  z-index: 2;
}

.client-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem; /* Reduced margin for top alignment */
  letter-spacing: 1px;
}

.client-info p {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
}

/* --- CONTACT SECTION --- */
.contact-section {
  background: #000;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-details h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white;
  font-family: inherit;
}

/* --- FOOTER --- */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .capabilities-grid,
  .document-store {
    grid-template-columns: 1fr;
  }
  .document-store {
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 4rem;
  }
  .nav-links {
    display: none;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .about-image {
    order: 2;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  .document-list {
    padding-left: 1.5rem;
  }
}
