/* GENERAL */
html {
  scroll-behavior: smooth;
}

/* Visible by default */
.fade-section {
  opacity: 1;
  transform: none;
}

/* Only hide when JS is active */
.js .fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-section.visible {

  opacity: 1;

  transform:
    translateY(0);
}

/*------------------------------------------------------INTRO & ACCOLADES */
.object-fit-cover {
  object-fit: cover;
}

.min-vh-75 {
  min-height: 75vh;
}

.profile-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  /* needed for overlay */
}

/* Tablets */
@media (min-width: 768px) {
  .profile-circle {
    width: 320px;
    height: 320px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .profile-circle {
    width: 450px;
    height: 450px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .profile-circle {
    width: 550px;
    height: 550px;
  }
}

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

/* Red overlay */
.tinted-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(173, 19, 21, .55);
  /* #AD1315 with opacity */
  mix-blend-mode: multiply;
  pointer-events: none;
}

/*------------------------------------------------------SKILLS */

.ultimate-skills-section {
  background: #0f0f11;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ultimate-skills-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(173, 19, 21, 0.08);
  filter: blur(120px);
  top: -120px;
  right: -120px;
  border-radius: 50%;
  z-index: 0;
}

.ultimate-skills-section .container {
  position: relative;
  z-index: 1;
}

.ultimate-eyebrow {
  color: #AD1315;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.ultimate-title {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
}

.ultimate-text,
.proof-text {
  color: #c8c8c8;
  line-height: 1.8;
  font-size: 1.05rem;
}

.ultimate-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.ultimate-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(173, 19, 21, 0.35);
}

.ultimate-stat-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.ultimate-stat-card p {
  margin: 0;
  color: #bdbdbd;
}

/* Panel */
.ultimate-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.ultimate-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.ultimate-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dcdcdc;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.ultimate-tab:hover,
.ultimate-tab.active {
  background: #AD1315;
  border-color: #AD1315;
  color: #fff;
  transform: translateY(-2px);
}

.ultimate-content {
  display: none;
  animation: fadeUltimate 0.35s ease;
}

.ultimate-content.active {
  display: block;
}

.ultimate-content h3 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.ultimate-content p {
  color: #c8c8c8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ultimate-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ultimate-tech-grid span,
.proof-tags span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.ultimate-tech-grid span:hover,
.proof-tags span:hover,
.ultimate-marquee-item:hover {
  background: rgba(173, 19, 21, 0.18);
  border-color: rgba(173, 19, 21, 0.4);
  transform: translateY(-3px);
}

/* Marquee */
.ultimate-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ultimate-marquee-track {
  display: inline-flex;
  gap: 1rem;
  animation: ultimateMarquee 28s linear infinite;
}

.ultimate-marquee-item {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: #f5f5f5;
  transition: all 0.25s ease;
}

/* Proof */
.proof-title {
  font-size: 2rem;
  font-weight: 700;
}

.proof-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.proof-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(173, 19, 21, 0.08);
  border-radius: 50%;
  top: -60px;
  right: -60px;
  filter: blur(50px);
}

.proof-card:hover {
  transform: translateY(-5px);
  border-color: rgba(173, 19, 21, 0.35);
}

.proof-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.proof-top h4 {
  margin: 0;
  font-size: 1.2rem;
  max-width: 75%;
}

.proof-top span {
  background: rgba(173, 19, 21, 0.18);
  border: 1px solid rgba(173, 19, 21, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.proof-card p {
  color: #c8c8c8;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
  position: relative;
  z-index: 1;
}

@keyframes fadeUltimate {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ultimateMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .ultimate-panel {
    padding: 1.5rem;
  }

  .ultimate-tab {
    width: 100%;
    text-align: center;
  }

  .ultimate-title {
    font-size: 2rem;
  }

  .proof-top h4 {
    max-width: 100%;
  }
}

/*------------------------------------------------------ PROJECTS */

.premium-projects-section {
  background: #f7f3ee;
  color: #161616;
  position: relative;
  overflow: hidden;
}

.premium-projects-eyebrow,
.premium-projects-subeyebrow {
  color: #AD1315;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.premium-projects-title {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #111;
}

.premium-projects-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
}

.premium-projects-text,
.premium-projects-note,
.premium-projects-subtext {
  color: #5f5b57;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Shared */
.project-year {
  font-size: 0.9rem;
  color: #7b746d;
  font-weight: 600;
}

.project-type-pill,
.project-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.project-type-pill {
  background: rgba(173, 19, 21, 0.08);
  color: #AD1315;
}

.project-status-pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #333;
}

.status-live {
  background: rgba(34, 139, 34, 0.08);
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.12);
}

.status-progress {
  background: rgba(255, 166, 0, 0.10);
  color: #a96a00;
  border-color: rgba(169, 106, 0, 0.14);
}

.status-archived {
  background: rgba(120, 120, 120, 0.10);
  color: #666;
  border-color: rgba(120, 120, 120, 0.14);
}

.status-complete {
  background: rgba(0, 102, 204, 0.08);
  color: #1f5f9d;
  border-color: rgba(31, 95, 157, 0.12);
}

.status-default {
  background: rgba(0, 0, 0, 0.05);
  color: #444;
}

/* Featured */
.featured-project-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.featured-project-image-link {
  display: block;
  height: 100%;
}

.featured-project-image-wrap {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #ddd;
}

.featured-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.featured-project-card:hover .featured-project-image {
  transform: scale(1.05);
}

.featured-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(17, 17, 17, 0.55),
      rgba(17, 17, 17, 0.1),
      rgba(17, 17, 17, 0.02));
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.featured-project-card:hover .featured-project-overlay {
  opacity: 1;
}

.featured-project-cta {
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}

.featured-project-content {
  padding: 3rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-project-label {
  color: #AD1315;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
}

.featured-project-content h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

.featured-project-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-project-description {
  color: #55514d;
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.stack-label {
  color: #7a726c;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-project-tags,
.mini-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-project-tags span,
.mini-stack span {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  color: #333;
}

.mini-stack span {
  font-size: 0.8rem;
  padding: 0.5rem 0.85rem;
}

.featured-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.25s ease;
}

.featured-project-link:hover {
  color: #AD1315;
}

.featured-project-link span {
  transition: transform 0.25s ease;
}

.featured-project-link:hover span {
  transform: translate(4px, -4px);
}

/* Gallery */
.premium-project-card-link {
  display: block;
  height: 100%;
}

.premium-project-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 28px;
  overflow: hidden;
  height: 100%;
  transition: all 0.35s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.premium-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(173, 19, 21, 0.2);
}

.premium-project-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ddd;
}

.premium-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.premium-project-card:hover .premium-project-image {
  transform: scale(1.06);
}

.premium-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(17, 17, 17, 0.65),
      rgba(17, 17, 17, 0.15),
      rgba(17, 17, 17, 0.05));
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.premium-project-card:hover .premium-project-overlay {
  opacity: 1;
}

.premium-project-cta {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.premium-project-content {
  padding: 1.5rem;
}

.premium-project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.premium-project-type {
  font-size: 0.78rem;
  font-weight: 700;
  color: #AD1315;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.premium-project-content h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #111;
}

.premium-project-content p {
  color: #55514d;
  line-height: 1.8;
  margin: 0;
}

/* Mobile */
@media (max-width: 991px) {
  .featured-project-content {
    padding: 2rem 1.6rem;
  }

  .featured-project-image-wrap {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  .premium-projects-title {
    font-size: 2rem;
  }

  .premium-projects-subtitle {
    font-size: 1.6rem;
  }

  .premium-project-content {
    padding: 1.35rem;
  }

  .featured-project-overlay,
  .premium-project-overlay {
    opacity: 1;
    background: linear-gradient(to top,
        rgba(17, 17, 17, 0.5),
        rgba(17, 17, 17, 0.08));
  }

  .featured-project-content h3 {
    font-size: 1.9rem;
  }

  .featured-project-meta,
  .premium-project-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .featured-project-info {
    gap: 0.5rem;
  }
}