:root{
  --sgs-red: #c71f2d;
  --sgs-black: #0a0a0a;
  --sgs-teal: #14b3aa;
  --bg: #0f0f10;
  --muted: #9aa3a6;
  --container-width: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#e7e7e7;
  background: linear-gradient(180deg,#070708 0%, #0f0f10 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  max-width:var(--container-width);
  margin:0 auto;
  padding:2rem;
}

.site-header{
  border-bottom:1px solid rgba(255,255,255,0.04);
  background:rgba(0,0,0,0.35);
  position:sticky;
  top:0;
  z-index:50;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  color:var(--sgs-teal);
  text-decoration:none;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:.75rem;
}
.brand-mark{
  background:var(--sgs-red);
  color:white;
  padding:.4rem .65rem;
  border-radius:6px;
  font-weight:700;
  box-shadow:0 6px 18px rgba(199,31,45,0.12);
}
.nav a{
  color: #dfe6e6;
  margin-left:1rem;
  text-decoration:none;
  padding:.35rem .6rem;
  border-radius:6px;
  transition: color 0.3s ease;
}
.nav a:hover{
  color:var(--sgs-teal);
}
.nav a.cta{
  background:var(--sgs-red);
  color:white;
  margin-left:1rem;
  font-weight:600;
}
.nav a.cta:hover{
  opacity: 0.9;
}

.hero{
  padding:6rem 0 4rem;
}
.hero-inner{
  display:flex;
  gap:2rem;
  align-items:center;
  justify-content:space-between;
}
.hero-copy h1{
  font-size:3rem;
  margin:0 0 .5rem;
  color:white;
}
.hero-copy .lead{
  color:var(--muted);
  margin-bottom:1rem;
  max-width:45ch;
}
.btn-primary{
  display:inline-block;
  background:var(--sgs-teal);
  color:var(--sgs-black);
  padding:.7rem 1.1rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition: background 0.3s ease;
}
.btn-primary:hover{
  opacity: 0.9;
}

.hero-visual .visual-card{
  width:220px;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:linear-gradient(135deg,var(--sgs-black), rgba(0,0,0,0.5));
  color:var(--sgs-teal);
  font-weight:800;
  font-size:2.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.03);
}

.section{padding:4rem 0}
.section h2{
  margin-top:0;
  color:white;
  font-size:2.25rem;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1.5rem;
  margin-top:2rem;
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding:1.5rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}
.card-link{
  text-decoration:none;
  color:inherit;
}
.card-link:hover{
  border-color:var(--sgs-teal);
  box-shadow: 0 8px 24px rgba(20,179,170,0.12);
  transform: translateY(-4px);
}
.card h3{
  margin:0 0 .5rem;
  color:var(--sgs-red);
  font-size:1.1rem;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.5;
}

.project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1.5rem;
  margin-top:2rem;
}
.project{
  padding:2rem;
  background:rgba(255,255,255,0.02);
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
  text-align:center;
  color:var(--muted);
}

.muted{color:var(--muted)}
.site-footer{
  padding:2rem 0;
  border-top:1px solid rgba(255,255,255,0.04);
  margin-top:3rem;
  color:var(--muted);
  text-align:center;
}

.service-hero {
  padding: 6rem 0 4rem;
  position: relative;
  background-attachment: fixed;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.service-hero-content {
  position: relative;
  z-index: 2;
}

.back-link {
  color: var(--sgs-teal);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: white;
}

.service-hero h1 {
  font-size: 3rem;
  margin: 1rem 0 0.5rem;
  color: white;
}

.service-intro {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 60ch;
}

.service-details {
  padding: 4rem 0;
}

.service-content {
  margin-bottom: 4rem;
}

.service-content h2 {
  color: white;
  font-size: 2rem;
  margin-top: 0;
}

.service-content h3 {
  color: var(--sgs-teal);
  font-size: 1.25rem;
  margin-top: 2rem;
}

.service-content ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.service-content li {
  color: var(--muted);
  padding: 0.5rem 0;
  page-break-inside: avoid;
}

.service-content li:before {
  content: "→ ";
  color: var(--sgs-red);
  margin-right: 0.5rem;
}

/* Clients Section */
.clients-section {
  padding: 3rem 0;
  margin: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.clients-section h2 {
  text-align: center;
  color: white;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.clients-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.clients-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.clients-carousel.carousel-active {
  animation: scroll-carousel 30s linear infinite;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  width: fit-content;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  min-height: 120px;
}

.client-logo:hover {
  border-color: var(--sgs-teal);
  box-shadow: 0 8px 24px rgba(20,179,170,0.1);
  transform: translateY(-4px);
}

.client-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(0.9) grayscale(50%);
  transition: filter 0.3s ease;
}

.client-logo:hover img {
  filter: brightness(1) grayscale(0%);
}

.client-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.loading, .no-results, .error {
  color: #9aa3a6;
  text-align: center;
  padding: 2rem;
}

.error {
  color: #c71f2d;
}

@media (max-width: 768px) {
  .service-hero h1 {
    font-size: 2rem;
  }
  
  .service-content ul {
    columns: 1;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .clients-carousel {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .client-logo {
    min-height: 100px;
  }
}

@media (max-width:900px){
  .hero-inner{flex-direction:column; text-align:center}
  .hero-visual{order:2}
  .hero-copy h1{font-size:2rem}
}/* About & Team Sections */
.about-hero {
  padding: 4rem 0 2rem;
}

.intro-text {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 60ch;
}

.team-section {
  padding: 4rem 0;
}
/* ...existing code... */

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-image-wrapper {
  width: 280px;
  height: 280px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}

.team-card:hover .team-image-wrapper {
  border-color: var(--sgs-teal);
  box-shadow: 0 8px 24px rgba(20,179,170,0.15);
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-card h3 {
  color: white;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  text-align: center;
}

.team-card .position {
  color: var(--sgs-red);
  font-weight: 600;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .team-image-wrapper {
    width: 200px;
    height: 200px;
  }
}

.team-card .bio {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0;
  text-align: left;
}

.team-card .socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.team-card .socials a {
  color: var(--sgs-teal);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.team-card .socials a:hover {
  color: var(--sgs-red);
}

/* Team Detail Page */
.team-detail {
  padding: 2rem 0;
}

.team-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.team-detail-image {
  position: sticky;
  top: 100px;
}

.team-detail-image img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--sgs-teal);
  box-shadow: 0 16px 48px rgba(20,179,170,0.2);
}

.team-detail-info h1 {
  color: white;
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.team-detail-info .position {
  color: var(--sgs-red);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 2rem;
}

.bio-content {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 2rem 0;
}

.bio-content p {
  margin: 1rem 0;
}

.team-detail-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--sgs-teal);
  border-radius: 8px;
  color: var(--sgs-teal);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--sgs-teal);
  color: black;
}

@media (max-width: 968px) {
  .team-detail-content {
    grid-template-columns: 1fr;
  }

  .team-detail-image {
    position: static;
  }

  .team-detail-info h1 {
    font-size: 2rem;
  }
}
