/* ==========================================================================
   Jack Portfolio Scoped Styles
   ========================================================================== */

#jack-portfolio {
  background-color: #0c0c0c;
  color: #d7e2ea;
  font-family: 'Kanit', sans-serif;
  overflow-x: clip;
  width: 100%;
}

#jack-portfolio * {
  box-sizing: border-box;
}

/* Typography & Headers */
.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #bbccd7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-main-title {
  font-size: clamp(14vw, 17.5vw, 240px);
  white-space: nowrap;
}

.section-title {
  font-size: clamp(3rem, 12vw, 160px);
}

/* Buttons */
.btn-contact {
  display: inline-block;
  background: linear-gradient(123deg, #18011f 7%, #b600a8 37%, #7621b0 72%, #be4c00 100%);
  box-shadow: 0 4px 4px rgba(181, 1, 167, 0.25), inset 4px 4px 12px #7721b1;
  outline: 2px solid #ffffff;
  outline-offset: -3px;
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  border: none;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(2rem, 3vw, 3rem);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.btn-contact:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-ghost {
  display: inline-block;
  border: 2px solid #d7e2ea;
  color: #d7e2ea;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  padding: 0.6rem 1.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  background-color: rgba(215, 226, 234, 0.1);
  color: #ffffff;
}

/* Hero Section */
.hero-nav a {
  color: #d7e2ea;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.2vw, 1.25rem);
  transition: opacity 0.2s ease;
}

.hero-nav a:hover {
  opacity: 0.7;
}

.hero-portrait-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: clamp(280px, 35vw, 520px);
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .hero-portrait-wrapper {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 768px) {
  .hero-portrait-wrapper {
    bottom: 0;
  }
}

/* Marquee Section */
.marquee-row {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}

.marquee-tile {
  width: 420px;
  height: 270px;
  border-radius: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* About Section */
.about-char {
  display: inline;
  transition: opacity 0.1s linear;
  opacity: 0.2;
}

.about-corner-img {
  position: absolute;
  border-radius: 1.5rem;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Services Section */
.services-section {
  background-color: #ffffff;
  color: #0c0c0c;
  border-top-left-radius: clamp(2.5rem, 5vw, 3.75rem);
  border-top-right-radius: clamp(2.5rem, 5vw, 3.75rem);
}

.service-row {
  border-bottom: 1px solid rgba(12, 12, 12, 0.15);
  padding: clamp(2rem, 3vw, 3rem) 0;
}

.service-number {
  font-size: clamp(3rem, 10vw, 140px);
  font-weight: 900;
  line-height: 0.9;
}

.service-name {
  font-size: clamp(1.25rem, 2.2vw, 2.1rem);
  font-weight: 500;
  text-transform: uppercase;
}

.service-desc {
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.65;
  max-width: 672px;
}

/* Projects Section */
.projects-section {
  background-color: #0c0c0c;
  border-top-left-radius: clamp(2.5rem, 5vw, 3.75rem);
  border-top-right-radius: clamp(2.5rem, 5vw, 3.75rem);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.project-card-container {
  min-height: 85vh;
  position: relative;
}

.project-card {
  border-radius: clamp(2rem, 4vw, 3.75rem);
  border: 2px solid #d7e2ea;
  background-color: #0c0c0c;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  position: sticky;
  top: 6rem;
  will-change: transform;
}

.project-img {
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  object-fit: cover;
  width: 100%;
}