/* Reset and Base Styles */
:root {
  --primary: #008080;
  --background: #0c0a09;
  --foreground: #f8fafc;
  --muted: #64748b;
  --card-bg: rgba(12, 10, 9, 0.5);
  --logo-bg: #808080; /* 50% grey */
}

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

.tsew-logo {
  display: inline-block; /* So the span can accept padding */
  padding-top: 32px;     /* More space above */
  padding-bottom: 8px;  /* Less space below */
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  padding: 2rem 0;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Network Background */
#network-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--background);
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.75rem;
  }
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.5rem;
  }
}

/* Cards */
.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-content {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .card-content {
    display: flex;
    gap: 2rem;
  }

  .card-content.reverse {
    flex-direction: row-reverse;
  }
}

.image-container {
  width: 100%;
  height: 16rem;
  background-color: var(--muted);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .image-container {
    width: 16rem;
    height: 16rem;
  }
}

.content {
  flex-grow: 1;
}

/* Text Styles */
.text-muted {
  color: var(--muted);
}

.text-primary {
  color: var(--primary);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Lists */
ul {
  list-style: none;
  margin-bottom: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Client Logos Grid */
.client-logos {
  display: grid;
  /* Adjust columns as needed. Fewer columns = bigger logos per row. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  /* Show 3 columns from tablet size upwards (tweak as you like). */
  .client-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  /* Show 4 columns on larger screens. */
  .client-logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Individual Logo Cards */
.logo-card {
  /* Give each logo a taller bounding box for bigger logos */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--logo-bg);
  border-radius: 0.5rem;
  padding: 1rem;
  height: 10rem; /* Increased from 8rem to allow for larger scaling */
}

.logo-card img {
  /* Let the image scale while maintaining aspect ratio */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-card span {
  display: none; /* Hide unless you need visible text here */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Social Links */
.social-links {
  margin-top: 2rem;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

/* Cookie Consent */
#cookie-consent {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 50;
  display: none;
  max-width: 24rem;
  backdrop-filter: blur(8px);
}

#cookie-consent.show {
  display: block;
}

#cookie-consent p {
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.btn-primary:hover {
  opacity: 0.8;
}
