@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');
    
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: Google Sans, Zalando Sans Expanded;
  scroll-behavior: smooth;
}

.background--custom {
  background: linear-gradient(90deg, #ACACAC, #030303, #ACACAC);
  background-size: 300% 300%;
  animation: gradient 4s alternate infinite;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

@keyframes gradient {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.center {
  display: block;
  width: 100%;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.name-stack {
  position: relative;
  margin-bottom: 40px;
  font-family: Zalando Sans Expanded;
}

.kat {
  font-family: Zalando Sans Expanded;
  font-size: clamp(80px, 15vw, 180px);
  color: white;
  display: block;
  text-align: center;
  letter-spacing: -5px;
  line-height: 0.85;
  font-weight: 500;
  font-variation-settings: 'wght' 500;
  transition: font-variation-settings 0.4s ease-in-out;
}

.reynosa {
  font-family: Zalando Sans Expanded;
  font-size: clamp(80px, 15vw, 180px);
  color: white;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: -5px;
  line-height: 0.85;
  font-weight: 500;
  font-variation-settings: 'wght' 500;
  opacity: 0.7;
  mix-blend-mode: difference;
  transition: all 0.3s ease;
}

.name-stack:hover .kat {
  letter-spacing: -3px;
  font-variation-settings: 'wght' 900;
}

.name-stack:hover .reynosa {
  opacity: 0.9;
  letter-spacing: -3px;
  font-variation-settings: 'wght' 900;
}

.small-text, .link-small-text, .dash {
  color: #888;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 30px;
  animation: fadeIn 1.5s ease;
}

.small-text::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: #444;
  margin: 0 auto 20px;
}

.link-small-text {
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-small-text:hover {
  color: white;
}

.socials {
    margin-top: 10px;
    margin-bottom: 50px;
}

nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  width: 50vw;
  min-width: 380px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}

.nav-links {
  display: flex;
  gap: 30px;
  width: 100%;
  justify-content: space-around;
}

.nav-links a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  text-align: center;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.located {
    margin-top: 100px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-indicator::after {
  content: '↓';
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 20px;
}  
    
/* about me */

#about {
    justify-content: center;
    align-items: center;
    gap: 0;
}

.about-heading {
    width: 100%;
    max-width: 780px;
    margin-bottom: 32px;
}

.about-heading .name-stack {
    margin-bottom: 0;
}

.about-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    width: 100%;
    max-width: 780px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.about-photo-wrap {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: brightness(0.88) saturate(0.8);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.about-card:hover .about-photo {
    filter: brightness(1) saturate(1);
    transform: scale(1.03);
}

.about-photo-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 55%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.about-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-tag {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 5px 14px;
}

.about-bio {
    font-size: 14px;
    color: white;
    line-height: 1.85;
    letter-spacing: 0.3px;
}

.about-divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.about-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.about-link {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.about-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.about-link:hover { color: white; }
.about-link:hover::after { width: 100%; }

.status-badge {
    position: fixed;
    top: 40px;
    right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: rgba(34, 197, 94, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    color: #4ade80;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateX(100px);
  }
  
  .status-badge.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  .status-badge:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
    transform: translateX(0) translateY(-2px);
  }
  
  .status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.6;
      transform: scale(1.1);
    }
  }

.glass-btn {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  width: 27vw;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.glass-btn:active {
  transform: translateY(0);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */

#projects {
    padding: 120px 60px;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.projects-header {
    margin-bottom: 60px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 28px 0 28px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.project-card.visible {
    animation: cardIn 0.6s ease forwards;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* featured card */
.project-card--featured {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
}

/* mouse-following glow */
.project-card-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.06),
        transparent 70%
    );
}

.project-card:hover .project-card-glow { opacity: 1; }

.project-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

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

.project-number {
    font-family: Zalando Sans Expanded, sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 4px;
    color: #444;
    text-transform: uppercase;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4ade80;
}

.status-pip {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.project-date {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444;
}

.project-tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 4px 12px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.project-card:hover .project-tag {
    color: #bbb;
    border-color: rgba(255,255,255,0.22);
}

.project-title {
    font-family: Zalando Sans Expanded, sans-serif;
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 500;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.1;
    transition: letter-spacing 0.3s ease;
}

.project-card:hover .project-title { letter-spacing: 0px; }

.project-desc {
    font-size: 13px;
    color: white;
    line-height: 1.7;
    letter-spacing: 0.3px;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 24px;
    padding-bottom: 4px;
}

.project-link {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.project-link:hover { color: white; }
.project-link:hover::after { width: 100%; }

/* screenshot — bottom of card, peeks out with no bottom radius */
.project-screenshot {
    width: 100%;
    height: 220px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    flex-shrink: 0;
}

/* carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: brightness(1) saturate(1);
    transform: scale(1.02);
}

.carousel-img.active {
    opacity: 1;
    transform: scale(1);
}

.project-card:hover .carousel-img.active {
    transform: scale(1.03);
    filter: brightness(1.05) saturate(1.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.project-card:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.15);
}

.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}



/* empty/placeholder card */
.project-card--empty {
    opacity: 0.35;
    border-style: dashed;
}

.project-screenshot--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
}

.empty-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #555;
}

.project-title--dim { color: #555; }

/* =============================================
   EXPERIENCE SECTION
   ============================================= */

#experience {
    padding: 120px 60px;
    min-height: auto;
    justify-content: center;
    align-items: center;
}

.exp-heading {
    margin-bottom: 60px;
    text-align: center;
}

.exp-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.exp-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.exp-title {
    font-family: Zalando Sans Expanded, sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 500;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.exp-company {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-top: 6px;
}

.exp-right {
    text-align: right;
    flex-shrink: 0;
}

.exp-date {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
}

.exp-location {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444;
    margin-top: 4px;
}

.exp-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.exp-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.exp-bullets li {
    font-size: 13px;
    color: white;
    line-height: 1.7;
    letter-spacing: 0.3px;
    padding-left: 16px;
    position: relative;
}

.exp-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #333;
    font-size: 11px;
    top: 3px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

#contact {
    gap: 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}

.contact-text {
    font-size: 16px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.contact-email {
    font-family: Zalando Sans Expanded, sans-serif;
    font-size: clamp(28px, 4vw, 52px);
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
    font-weight: 300;
    position: relative;
    transition: opacity 0.3s ease;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.4s ease;
}

.contact-email:hover::after {
    width: 100%;
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-socials .small-text::before {
    display: none;
}

/* ── mobile res ── */

/* ── 900px: project grid ── */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 768px: general layout ── */
@media (max-width: 768px) {

  /* NAV — shrink pill, tighten gaps */
  nav {
    padding: 14px 20px;
    gap: 0;
    width: calc(100vw - 32px);
    min-width: unset;
    top: 16px;
  }

  .nav-links {
    gap: 0;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  /* STATUS BADGE */
  .status-badge {
    top: auto;
    bottom: 24px;
    right: 16px;
    left: auto;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 10px 16px;
    gap: 8px;
  }

  /* HERO — tighten vertical rhythm */
  section {
    padding: 100px 24px 60px;
  }

  .kat,
  .reynosa {
    font-size: clamp(60px, 18vw, 120px);
    letter-spacing: -3px;
  }

  .name-stack {
    margin-bottom: 24px;
  }

  .small-text,
  .link-small-text,
  .dash {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 20px;
  }

  .scroll-indicator {
    font-size: 10px;
    bottom: 24px;
  }

  /* ABOUT CARD — single column */
  .about-card {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    min-height: 240px;
  }

  .about-photo-fade {
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
  }

  .about-body {
    padding: 24px 20px;
    gap: 16px;
  }

  .about-bio {
    font-size: 13px;
  }

  /* PROJECTS */
  #projects {
    padding: 100px 16px 60px;
  }

  .projects-grid {
    gap: 16px;
    max-width: 100%;
  }

  .project-card {
    padding: 20px 20px 0 20px;
    border-radius: 12px;
  }

  .project-title {
    font-size: clamp(15px, 4vw, 20px);
  }

  .project-desc {
    font-size: 12px;
  }

  .project-screenshot {
    height: 180px;
  }

  /* EXPERIENCE */
  #experience {
    padding: 80px 16px 60px;
  }

  .exp-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .exp-meta-row {
    flex-direction: column;
    gap: 8px;
  }

  .exp-right {
    text-align: left;
  }

  .exp-title {
    font-size: clamp(15px, 4vw, 20px);
  }

  .exp-bullets li {
    font-size: 12px;
  }

  /* CONTACT */
  #contact {
    padding: 80px 24px 60px;
  }

  .contact-email {
    font-size: clamp(22px, 6vw, 40px);
    letter-spacing: -0.5px;
    text-align: center;
    word-break: break-all;
  }

  .contact-text {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  /* HIDE CUSTOM CURSOR */
  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* ── 480px: extra small phones ── */
@media (max-width: 480px) {

  nav {
    padding: 12px 16px;
    top: 12px;
    width: calc(100vw - 24px);
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0;
  }

  .kat,
  .reynosa {
    font-size: clamp(52px, 19vw, 90px);
    letter-spacing: -2px;
  }

  .about-photo-wrap {
    min-height: 200px;
  }

  .project-screenshot {
    height: 150px;
  }

  .carousel-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .status-badge {
    font-size: 9px;
    padding: 8px 12px;
    bottom: 16px;
    right: 12px;
  }
}
