/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #141414;
  color: #ffffff;
  min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 24px;
  position: relative;
  background: #fff;
}

.hero-container {
  max-width: 720px;
  width: 100%;
  position: relative;
}

/* --- Profile Photo --- */
.hero-photo {
  width: 80px;
  height: 80px;
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Headings --- */
.hero-headings {
  margin-bottom: 48px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
}

.line-white {
  color: #ffffff;
}

.line-muted {
  color: #555555;
}

.line-black {
  color: #000;
}

/* --- Cursor Badge --- */
.cursor-badge {
  position: absolute;
  top: 260px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: float 3s ease-in-out infinite;
}

.cursor-arrow {
  color: #f2a0b7;
  font-size: 14px;
  transform: rotate(-30deg);
  display: inline-block;
}

.cursor-label {
  background-color: #f2a0b7;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --- Description --- */
.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #999999;
  max-width: 480px;
  font-weight: 400;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 900px;
  margin-left: -100px;
  margin-right: auto;
}

.hero-badge {
  background: #f5f7f9;
  border-radius: 999px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
}

.hero-badge-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #101827;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.hero-badge-title span {
  font-weight: 700;
}

.hero-badge-sub {
  margin-top: 4px;
  font-size: 0.7rem;
  color: #6b7280;
  text-align: center;
}

.hero-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e5edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}

/* ===== Projects Carousel ===== */
.projects {
  padding: 40px 0 60px;
  background: #fff;
}

.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 720px) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 640px;
  scroll-snap-align: start;
}

.slide-image {
  width: fit-content;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: block;
}

.slide-image img {
  width: auto;
  height: auto;
  max-width: 640px;
  max-height: 460px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.slide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 200px;
  width: 100%;
}

.slide-placeholder span {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide-caption {
  margin-top: 20px;
  font-size: 0.65rem;
  font-weight: 500;
  color: #888888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ===== Logos Section ===== */
.logos {
  padding: 40px 24px;
  background: #fff;
}

.logos-container {
  max-width: 1040px;
  margin: 0 auto;
}

.logos-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.logo-item {
  transition: opacity 0.3s ease;
  height: 40px;
  display: flex;
  align-items: center;
}

.logo-item:hover {
  opacity: 1;
}

.logo-item svg,
.logo-item img {
  height: 20px;
  width: auto;
  display: block;
  filter: invert(1);
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 100px 24px;
  background: #fff;
}

.testimonials-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  position: relative;
}

.testimonial-avatar svg,
.testimonial-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  filter: grayscale(30%);
}

.avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.avatar-badge svg,
.avatar-badge img {
  width: 24px;
  height: 24px;
  border-radius: 0;
  filter: none;
  object-fit: contain;
  display: block;
}

.testimonial-content {
  padding-top: 4px;
}

.testimonial-quote {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: #000;
  letter-spacing: -0.01em;
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.testimonial-author {
  font-size: 0.9rem;
  color: #777777;
  font-weight: 400;
  line-height: 1.5;
}

/* ===== Services / Features Section ===== */
.services {
  padding: 80px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #fff;
}

.services-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.services-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-list li {
  font-size: 1.05rem;
  color: #777777;
  font-weight: 400;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 60px;
}

/* ===== CTA / Hire Section ===== */
.cta {
  padding: 72px 24px 80px;
  background: #141414;
  color: #ffffff;
}

.cta-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-main {
  max-width: 420px;
}

.cta-heading {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 0.98rem;
  color: #b3b3b3;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  background: #f5f5f5;
}

.cta-button--secondary {
  background: transparent;
  color: #000;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.cta-contact {
  font-size: 0.9rem;
  color: #888888;
}

.cta-contact a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-container .cta-button--secondary {
  color: #fff;
}

.carousel-slide:first-child .slide-image {
  margin-left: 20px;
}

.carousel-slide:first-child .slide-caption {
  margin-left: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
    align-items: flex-start;
    padding-top: 120px;
  }

  .hero-photo {
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
    border-radius: 12px;
  }

  .hero-headings {
    margin-bottom: 36px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .cursor-badge {
    top: 200px;
    right: 0;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    width: 100%;
    margin-top: 36px;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-badge {
    min-height: 70px;
    padding: 14px 16px;
  }

  .logos-list {
    gap: 25px;
  }

  .logo-item svg,
  .logo-item img {
    height: 15px;
  }

  .carousel-slide {
    max-width: 85vw;
  }

  .slide-image img {
    max-height: 50vh;
  }

  .carousel-track {
    gap: 16px;
    padding: 0 20px;
  }

  .projects {
    padding: 30px 0 40px;
  }

  .slide-image {
    border-radius: 12px;
  }

  .slide-caption {
    font-size: 0.72rem;
    margin-top: 14px;
  }

  .services {
    padding: 60px 20px;
  }

  .services-container {
    gap: 56px;
  }

  .services-heading {
    font-size: 1.1rem;
  }

  .services-list li {
    font-size: 0.95rem;
  }

  .services-grid {
    gap: 10px 40px;
  }

  .testimonials {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .cta-container {
    flex-direction: column;
  }

  .cta-actions {
    align-items: center;
  }

  .cta-contact {
    margin-top: 20px;
  }

  .logo-nixit {
    margin-top: -10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .cursor-badge {
    top: 180px;
    right: -5px;
  }

  .cursor-label {
    font-size: 11px;
    padding: 3px 10px;
  }
}
