:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --active-underline: rgba(255, 255, 255, 0.4);
}

* { margin:0; padding:0; box-sizing:border-box; max-width: 100%; }

html { scroll-behavior: smooth; }

body {
background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 40%, #0a0a0a 100%);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.noise {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

main, section, .hero-container, .projects-section, .clients-section {
  flex-shrink: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 100;
  flex-shrink: 0;
}
.logo {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
nav { display: flex; gap: 2.5rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  padding-bottom: .5rem;
}
nav a::after {
  content: '';
  position: absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background: var(--active-underline);
  transition: width .3s ease;
}
nav a:hover::after,
nav a.active::after { width:100%; }
nav a.active { font-weight:500; }

.hero-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  max-width: 1400px;
  width: 100%;
  margin: 15vh auto 0 auto;
  padding: 0 5%;
  align-items: center;
}
.hero-left,
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 2.5rem 0;
  overflow: visible;
}
.hero-left {
  font-size: 48px;
  font-weight: 600;
  line-height: 64px;
  text-align: center;
}
.hero-left span { display: block; white-space: nowrap; }
.hero-right {
  font-size: 16px;
  line-height: 30px;
  color: var(--text-muted);
  word-spacing: 0.1em;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 105%;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M0,8 L6,2 L12,8 L18,2 L24,8 L30,2 L36,8 L42,2 L48,8 L54,2 L60,8 L66,2 L72,8 L78,2 L84,8 L90,2 L96,8 L102,2 L108,8 L114,2 L120,8' stroke='%23666666' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  background-position: left center;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}
.hero-right::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 33%;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0,2 L6,8 L12,2 L18,8 L24,2 L30,8 L36,2 L42,8 L48,2 L54,8 L60,2 L66,8 L72,2 L78,8 L84,2 L90,8 L96,2 L102,8 L108,2 L114,8 L120,2' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  background-position: right center;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

.page-footer {
  margin-top: auto;
  padding: 1.5rem 5%;
  font-size: 0.9rem;
  color: #888;
  text-align: right;
}

.projects-section {
  max-width: 1400px;
  margin: 6rem auto 0;
  padding: 0 5%;
}
.projects-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.carousel-track-container {
  position: relative;
  overflow: hidden;
}
.carousel-track-container::before,
.carousel-track-container::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 3;
  pointer-events: none;
}

.carousel-slide img {
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-mode: alpha;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide { min-width: 100%; pointer-events: none; }

.carousel-caption {
  position: relative;
  text-align: center;
  margin: 1.5rem auto 0;
  max-width: 65%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 2.5rem;
}
.caption-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}
.caption-desc { flex: 1; min-height: 0; }
.caption-desc p { margin: 0.35rem 0; text-align: center; }

.carousel-dots {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.carousel-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot:hover { background: rgba(255,255,255,0.7); transform: scale(1.2); }
.carousel-dot.active { background: white; transform: scale(1.4); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(255 255 255 / 6%);
  color: white;
  border: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, transform 0.35s ease;
}
.carousel-arrow.left { left: 20px; }
.carousel-arrow.right { right: 20px; }
.carousel-arrow:hover {
  background: rgb(145 145 145 / 25%);
  transform: translateY(-50%) scale(1.1);
}
.carousel-arrow svg { width: 28px; height: 28px; pointer-events: none; }

.clients-section {
  max-width: 1400px;
  margin: 3rem auto 2rem;
  padding: 0 5%;
}
.clients-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.8rem;
}
.clients-infinite-wrapper {
  overflow: hidden;
  position: relative;
}
.clients-infinite-wrapper {
  -webkit-mask-image: linear-gradient(to right, 
    transparent 0%, 
    rgba(0,0,0,0.3) 8%, 
    black 20%, 
    black 80%, 
    rgba(0,0,0,0.3) 92%, 
    transparent 100%
  );
  mask-image: linear-gradient(to right, 
    transparent 0%, 
    rgba(0,0,0,0.3) 8%, 
    black 20%, 
    black 80%, 
    rgba(0,0,0,0.3) 92%, 
    transparent 100%
  );
}
.clients-infinite-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg) 0%, transparent 100%); }
.clients-infinite-wrapper::after  { right: 0; background: linear-gradient(to left, var(--bg) 0%, transparent 100%); }

.clients-infinite-track {
  display: flex;
  gap: 2.8rem;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.client-tall-card {
  width: 300px;
  height: 450px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 20px;
  padding: 1.4rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  user-select: none;
  pointer-events: none;
}
.client-tall-card * { pointer-events: none; }
.client-tall-card .kick { pointer-events: all !important; cursor: pointer; }

.client-tall-img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  object-fit: cover;
  margin-bottom: 0.9rem;
}
.client-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.7rem 0;
  color: var(--text);
  text-align: center;
}
.ratings {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-top: -0.8rem;
  padding-top: 0.4rem;
}
.rating-block { display: flex; flex-direction: column; gap: 0.1rem; }
.rating-label { color: var(--text); font-weight: 500; font-size: 0.95rem; padding-left: 0.8rem; }
.rating-line { display: grid; grid-template-columns: 1fr 44px; gap: 0.8rem; padding: 0 0.8rem; align-items: center; }
.bar { height: 7px; background: #333; border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--text); border-radius: 4px; }
.pct { font-weight: 600; font-size: 0.88rem; color: var(--text); justify-self: end; min-width: 44px; text-align: right; }
.kick { color: var(--text-muted); font-size: 0.92rem; text-decoration: none; margin-top: 0.75rem; padding-top: 0.5rem; }
.kick:hover { color: var(--text); }

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.clients-infinite-wrapper:hover .clients-infinite-track { animation-play-state: paused; }

.quote-connector { margin: 1rem 0 0.8rem; height: 30px; display: flex; justify-content: center; align-items: center; }
.arrow-down { width: 28px; height: 28px; opacity: 0.7; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
.client-quote {
  margin-top: 0.5rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 290px;
}
.client-quote strong { display: block; margin-bottom: 0.4rem; color: white; font-weight: 600; font-size: 0.98rem; }

.discord-watermark {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 8rem 0 6rem;
  user-select: none;
  line-height: 1;
}
.discord-watermark::before {
  content: "";
  position: absolute;
  inset: -60px 0;
  cursor: default;
}
.discord-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-size: 100px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.discord-bg.hover { opacity: 0; }
.discord-handle {
  position: relative;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 500;
  color: #ffffff;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.discord-handle.hover-text {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}
.discord-watermark:hover .discord-bg.default { opacity: 0; }
.discord-watermark:hover .discord-bg.hover { opacity: 1; }
.discord-watermark:hover .discord-handle.default { opacity: 0; }
.discord-watermark:hover .discord-handle.hover-text { opacity: 1; }

@media (max-width: 1024px) {
  .discord-bg { font-size: 80px; }
  .discord-handle, .discord-handle.hover-text { font-size: 36px; }
}
@media (max-width: 768px) {
  .discord-bg { font-size: 70px; }
  .discord-handle, .discord-handle.hover-text { font-size: 30px; }
  .discord-watermark { margin: 6rem 0 4rem; }
}

header, .hero-left, .hero-right, .projects-section {
  opacity: 0;
  transform: translateY(40px);
}
header.animate-in,
.hero-left.animate-in,
.hero-right.animate-in,
.projects-section.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hero-left  { transform: translateX(-80px) translateY(20px); }
.hero-right { transform: translateX(80px) translateY(20px); }

.scroll-anim {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-footer { opacity: 0; }
.page-footer.animate-in { opacity: 1; transition: opacity 1.4s ease; }
.carousel-dot.active {
  background: white;
  transform: scale(1.4);
}
.carousel-dot { border: none !important; }

.cursor-light {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
background: radial-gradient(circle,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.10) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.02) 75%,
    transparent 90%
  );
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: soft-light;
}

body:hover .cursor-light { 
  opacity: 1; 
}

.clients-infinite-track .client-group {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.clients-section.scroll-anim {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.clients-section.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-container {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
  }
  .hero-left {
    font-size: 42px;
    line-height: 56px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 10vh auto 0;
  }
  .hero-left,
  .hero-right {
    text-align: center;
    padding: 1.5rem 0;
  }
  .hero-left {
    font-size: 38px;
    line-height: 50px;
  }
  .hero-left span {
    white-space: normal;
  }
  .hero-left::before,
  .hero-right::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-left {
    font-size: 32px;
    line-height: 42px;
  }
}

@media (max-width: 480px) {
  .hero-left {
    font-size: 28px;
    line-height: 36px;
  }
  .hero-right {
    font-size: 15px;
    line-height: 28px;
  }
}

.client-tall-img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  object-fit: cover;
  margin-bottom: 0.9rem;
  
  background: #1a1a1a;
  aspect-ratio: 1 / 1;
  contain: layout paint;
}

.squiggle-line {
    margin-top: 1.5rem;
}

.kick.pending {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  pointer-events: none;
}

.carousel-slide a.project-link {
  color: inherit;               /* Keeps the text color from parent (usually white or your theme) */
  text-decoration: none;        /* No underline */
  transition: opacity 0.2s ease;
}

.carousel-slide a.project-link:hover {
  opacity: 0.75;                /* Subtle fade on hover – adjust value if you want more/less */
  text-decoration: none;        /* Still no underline */
  cursor: pointer;
}

/* Optional: if you want to ensure it doesn't inherit any other link styles */
.carousel-slide a.project-link:visited,
.carousel-slide a.project-link:active {
  color: inherit;
  text-decoration: none;
}