*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.section {
  min-height: 100vh;
  flex-direction: column;
}

html,
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background:rgb(15, 15, 15);
    scroll-behavior: smooth;
}

a{
    transition: all 0.3s ease;
}
/* desktop nav */

nav,
.nav-links{
    display: flex;
}

nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}
.name span{
    position: relative;
    font-family: "Playfair Display", serif;
    font-size: 10vw;
    color:#FF6B2D ;
    line-height: 1.130;
    margin-bottom: 1rem;
}

.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1vw;
    font-family: "Inter", sans-serif;
    margin-top: 0;
}
.links{
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    font-size: 1vw;
    font-family: "Inter", sans-serif;
    position: relative;
    padding: 0;
    margin-top: 1rem;
    cursor: pointer;
}

a {
    color:#ffffff;
    text-decoration: none;
    text-decoration-color:  rgb(181,181,181);
}

a:hover {
    color:#FF6B2D;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181,181,181);
}

.header{
    width: 100%;
    display: flex;
    padding: 2em;
}

.header .h1{
    position: relative;
    font-family: "Playfair Display", serif;
    font-size: 10vw;
    color: #888888;
    line-height: 1.130;
    margin-bottom: 1rem;
    
}
.header-text .p1{
    position: relative;
    font-family: "Inter", sans-serif;
    font-size: 2vw;
    color:#ffffff;
    line-height: 1.125;
    font-weight: 600;
    margin-top: 0;
}
.header-text .p2{
    margin-top: 1.5vw;
    font-family: "Inter", sans-serif;
    position: relative;
    font-size: 1.2vw;
    color: #9a9a9a;
    line-height: 1.125;
    font-weight: 400;
    margin-top: 1rem;
    
}

.name{
    display: flex;
}


.overlay{
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    display: flex;
}
.bar{
    width: 10vw;
    height: auto 105vh;
    background-color: #1a1a1a;
}

.counter{
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items:flex-end;
    z-index: 1000;
    color: #bcbcc4;
    padding: 0.2em 0.4em;
    font-size: 20vw;
    font-family: carpenter;
}


/* hamburger menu styles */
#hamburger{
    display: none;
}

.hamburger-menu{
    display: inline-block;
    position: relative;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    margin-right: 3vw;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: #FF6B2D;
    transition: all 0.3s ease-in-out;
}

.menu-links{
    position: absolute;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-links a{
    display:block;
    margin-top: 0%;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;   
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;

}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px,5px);
}

.hamburger-icon.open span:nth-child(2){
    opacity: 0;
}

.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px,-5px);
}

/* hamburger menu styles */
#hamburger{
    display: none;
}
.nav-container{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 3vw;
    top: 0;
    left: 0;
    z-index: 1000;
}
.hamburger-menu{
    display: inline-block;
    position: relative;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;

}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: rgb(255, 107, 45);
    transition: all 0.3s ease-in-out;
}

.menu-links{
    position: absolute;
    right: 0;
    background-color: #0f0f0f;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border: none;
    border-radius: 0.5rem;
}

.menu-links a{
    display:block;
    margin-top: 0%;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: #eaeaea;
    text-decoration: none;
    transition: all 0.3s ease-in-out;   
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;

}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px,5px);
}

.hamburger-icon.open span:nth-child(2){
    opacity: 0;
}

.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px,-5px);
}

.hamburger-icon span:first-child{
    transform: none;
}

.hamburger-icon span:first-child{
    opacity: 1;
}
@media screen and (max-width: 1000px) {
    #desktop_nav{
        display: none;
    } 
    #hamburger{ 
        display: flex;
    }
}

.tagline{
    position: relative;
    font-family: "Inter", sans-serif;
    font-size: 2vw;
    color: #ffffff;
    line-height: 1.125;
    font-weight: 600;
    justify-content: center;
    align-content: center;
    text-align: center;
}

.categories{
    position: relative;
    font-family: "Playfair Display", serif;
    font-size:6vw;
    color: #888888;
    line-height: 1.130;
    margin-bottom: 1rem;
    justify-content: center;
    align-content: center;
    text-align: center;
}

.categories:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.1rem;
    text-decoration-style: solid;
    text-underline-offset: 0.5rem;
    text-decoration-color: #FF6B2D;
}




.banner {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  overflow: hidden;
}

.slider {
  width: 160px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateSlider 20s linear infinite;
}

.item {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateY(calc((var(--position) - 1) * (360deg / var(--quantity))))
              translateZ(400px);
  cursor: pointer;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.item:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
  filter: brightness(0.7);
}

/* Project overlay on hover */
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-radius: 0 0 10px 10px;
}

.item:hover .project-overlay {
  transform: translateY(0);
}

.project-overlay h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #FF6B2D;
  margin-bottom: 0.25rem;
}

.project-overlay p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
}

/* View More Card */
.view-more-card {
  background: linear-gradient(135deg, rgba(255, 107, 45, 0.15), rgba(255, 107, 45, 0.05));
  border: 2px dashed rgba(255, 107, 45, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.view-more-card:hover {
  background: linear-gradient(135deg, rgba(255, 107, 45, 0.25), rgba(255, 107, 45, 0.1));
  border-color: #FF6B2D;
  box-shadow: 0 10px 30px rgba(255, 107, 45, 0.3);
  transform: scale(1.05);
}

.view-more-content {
  text-align: center;
  padding: 2rem;
}

.view-more-icon {
  font-size: 4rem;
  color: #FF6B2D;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.view-more-card:hover .view-more-icon {
  transform: rotate(90deg);
}

.view-more-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.view-more-content p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #888888;
}


@keyframes rotateSlider {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.project-label {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 1rem;
  pointer-events: none;
}


.project-label h1 {
  font-size: 4em;
  font-family: "Playfair Display", serif;
  color: #888888;
  margin: 0;
}

.project-label h2 {
  font-size: 1.25em;
  font-family: "Inter", sans-serif;
  color: #ffffff;
  margin-top: 0.5rem;
}
.project-label h1 span{
    font-size: 1em;
  font-family: "Playfair Display", serif;
  color: #FF6B2D;
  margin: 0;
}

/* Section wrapper */
.contact-section {
  min-height: 100vh;
  padding: 6rem 2rem;
  background: rgb(15, 15, 15);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glass card container */
.glass-card {
  background: rgba(245, 245, 245, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(235, 235, 235, 0.1);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 0 30px rgba(245, 245, 245, 0.2);
}

/* Headline + text */
.glass-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: #888888;
  margin-bottom: 1rem;
}

.glass-card p {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

/* Icon layout */
.icon-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Icon style */
.icon-links img {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 0 transparent);
}

/* On hover — clean black to soft glow */
.icon-links a:hover img {
  opacity: 1;
  transform: scale(1.5);
  filter: drop-shadow(0 0 6px rgba(245, 245, 245, 0.3));
}
.glass-wrapper {
  perspective: 1000px;
}

.glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card:hover {
  box-shadow: 0 15px 45px rgba(255, 107, 45, 0.15);
}
.glass-card h2 span{
  font-size: 1em;
  font-family: "Playfair Display", serif;
  color: #FF6B2D;
  margin: 0;
}
footer{
    height: 5vh;
    
}
footer p{
    text-align: center;
    font-family: "Inter", sans-serif;
    color: #ffffff;
}

/* Open to Work Badge */
.work-badge {
    position: relative;
    top: 0;
    right: 18rem;
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px 22px 8px 12px;
    font-size: 1.1rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #FF6B2D;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.08);
    z-index: 10;
}

@keyframes fadeInBadge {
    to {
        opacity: 1;
    }
}

/* Glowing green dot */
.status-dot {
    position: relative;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotGlow 2s ease-in-out infinite;
}

/* Pulsing ring around dot */
.status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

/* Outer glow ring */
.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    animation: dotRipple 2s ease-in-out infinite;
}

@keyframes dotGlow {
    0%, 100% {
        box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e;
    }
    50% {
        box-shadow: 0 0 20px #22c55e, 0 0 30px #22c55e, 0 0 40px #22c55e;
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

@keyframes dotRipple {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Typewriter text */
.work-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #22c55e;
    width: 0;
    animation: typing 2s steps(14) 7s forwards, blink 0.75s step-end infinite 7s;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 130px;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Remove cursor after typing */
.work-text.typed {
    border-right: none;
}

/* Hover effect */
.work-badge:hover {
    transform: scale(1.05);
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(20, 20, 20, 0.95);
    transition: all 0.3s ease;
}

.work-badge:hover .status-dot {
    animation: dotGlow 1s ease-in-out infinite;
}

/* Open to Work Badge - Positioned next to "Hey, I'm" */
.header-top-line {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0;
}



@keyframes fadeInBadge {
    to {
        opacity: 1;
    }
}
/* Skills section */
.skill-reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.03);
  cursor: pointer;
    height: 80px;
  position: relative;
  transition: max-height 0.4s ease, background 0.3s, box-shadow 0.3s;
  overflow: hidden
}

.skill-title {
    /* Larger, responsive title size for skills */
    font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
}

.skill-arrow {
  color: #FF6B2D;
  font-size: 1.1rem;
  transition: transform 0.4s ease;
}

.skill-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
    /* Slightly larger supporting text that scales down on small screens */
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-family: "Playfair Display", serif;
  font-weight: 400;
  line-height: 1.6;
}

.skill-card:hover {
  height: auto;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.08);
}

.skill-card:hover .skill-details {
  opacity: 1;
  max-height: 300px;
  transform: translateY(0);
}

.skill-card:hover .skill-arrow {
  opacity: 0;
  transform: rotate(90deg);
}

/* Fun stuff section */
.personal-section {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #888888;
}

/* Quote container and card */
.quote-container {
    max-width: 600px;
    margin: 0 auto;
}

.quote-card {
    background: linear-gradient(135deg, rgba(255, 107, 45, 0.1), rgba(255, 107, 45, 0.05));
    border: 1px solid rgba(255, 107, 45, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    max-height: 300px;
    min-height:200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 140px;
    color: rgba(255, 107, 45, 0.1);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.quote-card:hover {
    transform: translateY(-8px);
    border-color: #FF6B2D;
    box-shadow: 0 20px 50px rgba(255, 107, 45, 0.25);
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FF6B2D;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.7;
    color: #ffffff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.quote-action {
    font-size: 0.9rem;
    color: #888;
    text-align: right;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.arrow {
    transition: transform 0.3s ease;
}

.quote-card:hover .arrow {
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }

  .name {
    flex-wrap: wrap;
    font-size: 14vw;
    margin-bottom: 1rem;
  }

  .header-text .p1 {
    font-size: 5vw;
    text-align: left;
  }

  .header-text .p2 {
    font-size: 3vw;
    text-align: left;
  }

  .links {
    justify-content: flex-start;
    gap: 1.5rem;
    font-size: 2.5vw;
  }

  .h1 {
    font-size: 16vw !important;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .quote-card {
    padding: 2rem 1.5rem;
    min-height: 250px;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .quote-card::before {
    font-size: 100px;
    top: -20px;
  }
}
.section-text p{
  font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    position:relative;
}

/* Center the "explore my" text above skills */
.section-text {
  text-align: center;
}
/* ===== MOBILE CAROUSEL ===== */
.mobile-carousel {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 4rem 0;
    flex-direction: column;
    justify-content: center;
}

.mobile-project-header {
    text-align: center;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.mobile-tagline {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-title {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    color: #888888;
    margin: 0.5rem 0;
}

.mobile-title span {
    color: #FF6B2D;
}

.mobile-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.mobile-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0 1.5rem;
}

.mobile-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-project-card {
    min-width: calc(100% - 3rem);
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.mobile-project-card:active {
    transform: scale(0.98);
}

.mobile-card-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.mobile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 45, 0.15), rgba(255, 107, 45, 0.05));
    border: 2px dashed rgba(255, 107, 45, 0.4);
}

.mobile-view-more-content {
    text-align: center;
}

.mobile-plus {
    font-size: 4rem;
    color: #FF6B2D;
    display: block;
    margin-bottom: 1rem;
    font-weight: 300;
}

.mobile-view-more-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: #ffffff;
}

.mobile-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

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

.mobile-dot.active {
    background: #FF6B2D;
    width: 24px;
    border-radius: 4px;
}

/* Media Queries */
/* Force hide/show carousels */
@media screen and (max-width: 768px) {
    /* Hide desktop carousel */
    .banner {
        display: none !important;
    }
    
    .desktop-carousel {
        display: none !important;
    }
    
    #project .banner {
        display: none !important;
    }
    
    /* Show mobile carousel */
    .mobile-carousel {
        display: flex !important;
    }
}

@media screen and (min-width: 769px) {
    /* Show desktop carousel */
    .banner {
        display: flex !important;
    }
    
    .desktop-carousel {
        display: flex !important;
    }
    
    /* Hide mobile carousel */
    .mobile-carousel {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .mobile-project-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

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

    .mobile-subtitle {
        font-size: 0.9rem;
    }

    .mobile-slider-wrapper {
        padding: 0 1rem;
    }

    .mobile-project-card {
        min-width: calc(100% - 2rem);
    }

    .mobile-card-image {
        height: 300px;
    }

    .mobile-plus {
        font-size: 3rem;
    }

    .mobile-view-more-content h3 {
        font-size: 1.5rem;
    }

    .mobile-dots {
        margin-top: 2rem;
    }
}

/* Mobile/tablet tweak: ensure the Open-to-Work badge appears above the "Hey, I'm" line
     and isn't clipped during entrance animations. */
@media screen and (max-width: 1024px) {
    .header-top-line {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }

    .work-badge {
        /* position it before the heading */
        order: -1 !important;
        align-self: flex-start !important;
        margin: 0 0 0.4rem 0 !important;
        font-size: 0.95rem !important;
        padding: 6px 12px !important;
        transform: none !important; /* prevent transform-based clipping */
        left: auto !important;
        right: auto !important;
        overflow: visible !important;
        white-space: nowrap !important;
        z-index: 60 !important;
    }

    .work-text {
        max-width: 220px;
        font-size: 0.9rem !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
}

@media screen and (max-width: 480px) {
    .header-top-line {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        align-items: flex-start;
    }

    .work-badge {
        order: -1 !important;
        align-self: flex-start !important;
        margin: 0 0 0.35rem 0 !important;
        font-size: 0.85rem !important;
        padding: 5px 10px !important;
        transform: none !important;
        overflow: visible !important;
        white-space: nowrap !important;
        z-index: 60 !important;
    }

    .work-text {
        max-width: 180px;
        font-size: 0.8rem !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
}