@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap");

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ─── ANIMATIONS ─── */
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes neonFlow {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-40px) translateX(20px);
  }
}
@keyframes borderRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dividerGlow {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}
@keyframes blinkCursor {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
@keyframes particleFloat {
  0% {
    transform: translateY(0px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
  100% {
    transform: translateY(0px);
    opacity: 0.4;
  }
}
@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes rotateRingReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes gridMove {
  from {
    transform: perspective(1200px) rotateX(75deg) translateY(0);
  }
  to {
    transform: perspective(1200px) rotateX(75deg) translateY(60px);
  }
}
@keyframes navBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
@keyframes navbarGlow {
  0% {
    transform: translateX(-20%);
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateX(-20%);
  }
}
@keyframes softSkillAppear {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes floatImage {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes mobileMenu {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes floatCircle {
  0% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
}

/* =====================================================
   1200px — project grid 2-col, contact reflow
===================================================== */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrapper {
    grid-template-columns: 1fr 1.3fr;
  }
  .contact-info-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
    align-items: start;
  }
  .contact-info-panel h3 {
    grid-column: 1 / -1;
  }
  .contact-social-row {
    grid-column: 1 / -1;
  }
}

/* =====================================================
   992px — stack hero, reflow contact
===================================================== */
@media (max-width: 992px) {
  .nav-container {
    padding: 15px 40px;
  }

  .featured-container {
    max-width: 100%;
    padding: 0 40px;
  }
  .featured-arrow.left-arrow {
    left: 4px;
  }
  .featured-arrow.right-arrow {
    right: 4px;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }

  .circle {
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%);
  }

  .hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  .hero-image img {
    width: 300px;
    max-width: 100%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.45));
  }
  .hero {
    padding: 30px 20px 10px;
  }

  .about {
    padding: 60px 20px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .section-title {
    margin-bottom: 40px;
  }
  .section-title h2 {
    font-size: 36px;
  }
  .about-content {
    align-items: flex-start;
    gap: 45px;
  }
  .about-left {
    padding-right: 15px;
  }
  .about-right {
    padding-left: 15px;
    gap: 18px;
  }
  .about-text p {
    font-size: 17px;
    line-height: 1.8;
  }
  .info-item p {
    font-size: 16px;
  }
  .about-divider {
    height: 240px;
  }
  .info-item span {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .skills {
    padding: 80px 5%;
  }
  .skills-title {
    font-size: 38px;
  }
  .skill-card {
    min-width: 230px;
  }

  .projects-title {
    font-size: 38px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }
  .contact-info-panel h3,
  .contact-social-row {
    grid-column: 1 / -1;
  }

  .logo {
    font-size: 0;
  }
  .logo::after {
    content: "TP Motau";
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
  }
}

/* =====================================================
   768px — mobile nav, hero, about compact
===================================================== */
@media (max-width: 768px) {
  /* ── NAVBAR — compact, lightweight pill ── */
  .navbar {
    top: 8px;
    width: 92%;
    border-radius: 14px;
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.06),
      0 0 18px var(--nav-glow-primary);
  }
  .navbar::after {
    display: none;
  }
  .nav-container {
    height: 46px;
    padding: 0 14px;
  }
  .logo img,
  .logo-image {
    width: 26px;
    height: 26px;
  }
  .burger {
    display: flex;
    gap: 4px;
  }
  .burger span {
    width: 20px;
    height: 2px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 64%;
    max-width: 250px;
    height: auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 30px;
    gap: 18px;
    z-index: 1500;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-bottom-left-radius: 18px;
    overflow: hidden;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
      color 0.3s ease,
      transform 0.3s ease;
  }
  .nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
  }
  .logo {
    font-size: 0;
    gap: 0.4rem;
  }
  .logo::after {
    content: "TP Motau";
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
  }
  #themeBtn {
    width: 30px;
    height: 30px;
  }
  #themeBtn i {
    font-size: 13px;
  }

  /* ── HERO ── */
  .hero {
    padding: 70px 18px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .intro {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .hero-content h1 {
    font-size: 26px;
    text-align: center;
    line-height: 1.15;
  }
  .hero-content h3 {
    font-size: 0.95rem;
    min-height: 36px;
    justify-content: center;
    margin: 8px 0;
  }
  .subtitle {
    font-size: 12.5px;
    padding: 0 6px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  /* Static image only on mobile — no hover swap */
  .hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 2px;
    width: 150px;
    height: 150px;
  }
  .hero-image .img-hover {
    display: none !important;
  }
  .hero-image .img-default {
    opacity: 1 !important;
    transform: none !important;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 14px rgba(37, 99, 235, 0.45));
  }
  /* Keep hover state inert on mobile */
  .hero-image:hover .img-default {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-image:hover .circle {
    transform: translate(-50%, -50%) !important;
  }
  .hero-image:hover img {
    transform: none !important;
  }

  .circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: floatCircle 4s ease-in-out infinite;
  }
  .circle::before {
    inset: -8px;
  }

  .hero-buttons {
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .btn {
    padding: 9px 15px;
    font-size: 12.5px;
    border-radius: 20px;
  }
  .social-icons {
    justify-content: center;
    gap: 8px;
  }
  .social-icons a {
    width: 38px;
    height: 38px;
  }
  .social-icons img {
    width: 18px;
  }

  /* ── FEATURED PROJECTS ── */
  .featured {
    padding: 44px 0 60px;
  }
  .featured-container {
    padding: 0 16px;
  }
  .featured-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .featured-small-title {
    font-size: 10px;
    letter-spacing: 3px;
  }
  .featured-content {
    padding: 20px 18px 24px;
  }
  .featured-content h3 {
    font-size: 18px;
  }
  .featured-content p {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .featured-arrow {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .featured-arrow.left-arrow {
    left: 6px;
  }
  .featured-arrow.right-arrow {
    right: 6px;
  }
  .demo-pending-badge {
    font-size: 10px;
    padding: 5px 10px;
    bottom: 8px;
    right: 8px;
  }

  /* ── ABOUT ── */
  .about {
    padding: 36px 14px;
  }
  .about-container {
    padding: 22px 16px;
    border-radius: 16px;
    margin-top: -20px;
  }
  .section-title {
    margin-bottom: 20px;
    gap: 8px;
  }
  .section-title h2 {
    font-size: 22px;
    gap: 8px;
  }
  .section-title h2::after {
    width: 48px;
    height: 3px;
    bottom: -10px;
  }
  .section-title i {
    font-size: 18px;
  }

  .about-content {
    flex-direction: column;
    gap: 14px;
    padding: 1.1rem;
    border-radius: 18px;
  }
  .about-subtitle {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
  }
  .about-left {
    padding-right: 0;
    width: 100%;
  }
  .about-text p {
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
  }
  .about-divider {
    display: none;
  }

  /* Info grid — 2×2 compact chips */
  .about-right {
    width: 100%;
    padding-left: 0;
    gap: 8px;
  }
  /* Always visible on mobile as compact chips — no "show" toggle needed */
  .about-right {
    display: flex !important;
  }

  .info-name {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .info-item {
    gap: 7px;
    padding: 9px 9px;
    border-radius: 10px;
    min-height: auto;
    align-items: flex-start;
  }
  .info-name {
    width: 100%;
    font-size: 13px;
  }
  .info-item span {
    width: 28px;
    height: 28px;
    font-size: 12px;
    min-width: 28px;
  }
  .info-item p {
    font-size: 11px;
    line-height: 1.45;
  }
  .info-item strong {
    font-size: 10px;
    display: block;
  }

  /* Hide view more btn — info always shown */
  .view-more-btn {
    display: none !important;
  }

  /* ── SKILLS — disable conveyor, enable swipe ── */
  .skills {
    padding: 40px 0 36px;
    overflow: hidden;
  }
  .skills-container {
    padding: 1.5rem 0;
  }
  .skills-title {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .skills-small-title {
    font-size: 10px;
    letter-spacing: 3px;
  }

  /* Kill the auto-scroll animation entirely */
  .skills-slider {
    animation: none !important;
    animation-play-state: paused !important;
    transform: none !important;
    /* Switch to native horizontal scroll */
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 16px 6px;
    width: 100%;
    max-width: 100%;
  }
  .skills-slider::-webkit-scrollbar {
    display: none;
  }

  /* Hide the duplicate set */
  .skill-card[aria-hidden="true"] {
    display: none !important;
  }

  /* Roomier cards — one fully visible plus a peek of the next */
  .skill-card {
    flex-shrink: 0;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    min-height: auto;
    padding: 14px 12px;
    scroll-snap-align: start;
    border-radius: 14px;
    animation: none !important;
  }
  .skill-card::after {
    display: none;
  }
  .card-title {
    font-size: 11px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .card-title i {
    font-size: 12px;
  }
  .card-dot {
    display: none;
  }
  .skill-card ul li {
    font-size: 10.5px;
    margin-bottom: 7px;
    gap: 5px;
  }
  .skill-card ul li i {
    font-size: 12px;
  }

  /* Arrow buttons hidden — use swipe */
  .skills-arrow {
    display: none !important;
  }

  /* Viewport mask — fade edges */
  .skills-slider-viewport {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0;
  }
  .skills-slider-wrapper {
    overflow: hidden;
  }

  /* Soft skills */
  .soft-skills-btn-container {
    justify-content: center;
    margin-top: 14px;
  }
  .soft-skills-btn {
    font-size: 12.5px;
    padding: 9px 18px;
  }
  .soft-skills {
    justify-content: center;
    padding: 24px 16px;
    gap: 14px;
  }
  .soft-skill-card {
    padding: 11px 15px;
    font-size: 12.5px;
  }

  /* ── PROJECTS — horizontal swipe ── */
  .projects {
    padding: 44px 0 40px;
    overflow: hidden;
  }
  .projects-container {
    padding: 0;
  }
  .projects-title {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .projects-small-title {
    font-size: 10px;
    letter-spacing: 3px;
  }

  /* Kill the grid, replace with horizontal scroll row */
  .projects-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 16px 6px;
    width: 100%;
  }
  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  /* One full card visible + a peek of the next, consistent sizing */
  .project-card {
    flex-shrink: 0;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    scroll-snap-align: start;
    border-radius: 16px;
    /* Kill reflection on mobile for performance */
    animation: none;
  }
  .project-card::after {
    display: none;
  }
  .project-image {
    height: 100px;
    border-radius: 16px 16px 0 0;
  }
  .project-content {
    padding: 13px;
  }
  .project-content h3 {
    font-size: 13px;
    margin-bottom: 5px;
  }
  .project-content p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 9px;
    min-height: auto;
  }
  .project-tech {
    gap: 4px;
    margin-bottom: 9px;
  }
  .project-tech span {
    font-size: 9.5px;
    padding: 3px 8px;
  }
  .project-buttons {
    flex-direction: row;
    gap: 6px;
  }
  .project-btn {
    flex: 1;
    text-align: center;
    font-size: 10.5px;
    padding: 6px 8px;
    border-radius: 8px;
  }
  .project-status {
    font-size: 9px;
    padding: 3px 8px;
    top: 8px;
    right: 8px;
  }

  /* Scroll position dots for skills + projects rows */
  .skills-dots-wrap,
  .projects-dots-wrap {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    padding-left: 16px;
  }

  /* GitHub btn */
  .more-projects {
    margin-top: 24px;
    padding: 0 18px;
  }
  .github-projects-btn {
    font-size: 12.5px;
    padding: 11px 20px;
  }

  /* ── PROJECT MODAL ── */
  .project-modal {
    padding: 14px;
  }
  .modal-content {
    padding: 1.5rem 1.3rem;
    max-height: 88vh;
    border-radius: 18px;
  }
  .close-modal {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .modal-header {
    padding-right: 34px;
  }
  .modal-status {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 9px;
  }
  .modal-header-text h2 {
    font-size: 20px;
  }
  .modal-tagline {
    font-size: 12.5px;
  }
  .modal-tabs {
    gap: 4px;
    margin: 16px 0 16px;
  }
  .modal-tab {
    font-size: 13px;
    margin-right: 14px;
    padding: 8px 2px;
  }
  .modal-description {
    font-size: 12.5px;
    margin-bottom: 18px;
  }
  .modal-content h3 {
    font-size: 13.5px;
    margin-top: 18px;
  }
  .modal-content ul li,
  .modal-content ol li {
    font-size: 12px;
  }
  .modal-tech span {
    font-size: 11px;
    padding: 5px 12px;
  }
  .modal-links {
    gap: 8px;
    margin-top: 18px;
  }
  .video-placeholder {
    padding: 40px 16px;
  }
  .video-placeholder i {
    font-size: 24px;
  }
  .video-placeholder p {
    font-size: 12.5px;
  }
  .modal-link-btn {
    font-size: 12px;
    padding: 9px 16px;
  }
  .doc-section {
    margin-bottom: 20px;
  }

  /* ── CONTACT ── */
  .contact {
    padding: 44px 16px 36px;
  }
  .contact-title {
    font-size: 22px;
    margin-bottom: 22px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-intro-panel {
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }
  .contact-intro-panel h2 {
    font-size: 18px;
  }
  .contact-form {
    padding: 18px;
    gap: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-info-panel {
    display: flex;
    flex-direction: column;
    padding: 18px;
  }
  .contact-social-row {
    justify-content: flex-start;
  }

  /* ── FOOTER ── */
  .footer {
    padding: 18px 5%;
    margin-top: 40px;
  }
  .footer-logo {
    display: none !important;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-links a {
    font-size: 13px;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-socials a {
    width: 36px;
    height: 36px;
  }
  .footer-copy {
    font-size: 11px;
  }
}

/* =====================================================
   480px — tighten further
===================================================== */
@media (max-width: 480px) {
  .hero {
    padding: 60px 14px 26px;
  }
  .hero-content h1 {
    font-size: 23px;
  }
  .hero-content h3 {
    font-size: 0.88rem;
  }
  .subtitle {
    font-size: 12px;
  }

  .featured-title {
    font-size: 20px;
  }
  .featured-media {
    aspect-ratio: 4 / 3;
  }
  .featured-content {
    padding: 16px 14px 20px;
  }
  .featured-content h3 {
    font-size: 16px;
  }
  .featured-content p {
    font-size: 12.5px;
  }
  .btn {
    padding: 8px 13px;
    font-size: 12px;
  }

  .about-container {
    padding: 18px 12px;
  }
  .section-title h2 {
    font-size: 19px;
  }

  .skills-title,
  .projects-title,
  .contact-title {
    font-size: 19px;
  }

  /* Skills — slightly narrower card, still one-plus-peek */
  .skill-card {
    width: 135px;
    min-width: 135px;
    max-width: 135px;
    padding: 12px 10px;
  }
  .card-title {
    font-size: 10px;
  }
  .skill-card ul li {
    font-size: 9.5px;
  }

  /* Projects — narrower card, still one-plus-peek */
  .project-card {
    width: 195px;
    min-width: 195px;
    max-width: 195px;
  }

  .contact-intro-panel h2 {
    font-size: 16px;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
  }

  .soft-skills {
    padding: 18px 12px;
    gap: 10px;
  }
  .soft-skill-card {
    padding: 9px 13px;
    font-size: 12px;
  }
}

/* =====================================================
   360px — very small phones
===================================================== */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 21px;
  }
  .hero-image,
  .hero-image .img-default,
  .circle {
    width: 130px;
    height: 130px;
  }
  .hero-image .img-default {
    width: 112px;
    height: 112px;
  }
  .skill-card {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    padding: 10px 8px;
  }
  .card-title {
    font-size: 9px;
    gap: 3px;
  }
  .skill-card ul li {
    font-size: 9px;
  }
  .project-card {
    width: 175px;
    min-width: 175px;
    max-width: 175px;
  }
}

/* =====================================================================
   v2 ADDITIONS — append this whole block to the END of mediaquery.css
===================================================================== */

/* ---------- Navbar: 7 links need to fit between 769px and ~1280px ---------- */
@media (max-width: 1280px) {
  .nav-links {
    gap: 1.6rem;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .logo {
    font-size: 0;
  }
  .logo::after {
    content: "TP Motau";
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
  }
}
@media (min-width: 769px) and (max-width: 992px) {
  .nav-container {
    padding: 15px 24px;
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 14px;
  }
}

/* breathing room on mid-size screens where the containers had no side padding */
@media (min-width: 769px) {
  .projects-container,
  .contact-container {
    padding-inline: clamp(16px, 3vw, 40px);
  }
}

/* ---------- 992px ---------- */
@media (max-width: 992px) {
  .experience-container {
    padding: 0 40px;
  }
  .contact-intro-panel h3 {
    font-size: 22px;
  }
}

/* ---------- 768px — mobile ---------- */
@media (max-width: 768px) {
  /* off-canvas menu: links must not be tabbable while it is closed */
  .nav-links {
    visibility: hidden;
    transition:
      transform 0.4s ease,
      visibility 0s linear 0.4s;
  }
  .nav-links.active {
    visibility: visible;
    transition-delay: 0s;
  }

  /* heavy blur is expensive on phones — cards are already ~85% opaque */
  .skill-card,
  .project-card,
  .featured-card,
  .experience-card,
  .contact-intro-panel,
  .contact-form,
  .contact-info-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* hero */
  .hero-content .hero-role {
    font-size: 0.95rem;
    margin: 8px 0;
    text-align: center;
  }
  .hero-buttons .btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    justify-content: center;
  }

  /* flagship */
  .flagship-card .featured-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .flagship-label {
    font-size: 10px;
  }
  .project-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .metric strong {
    font-size: 17px;
  }

  /* experience */
  .experience {
    padding: 44px 0 20px;
  }
  .experience-container {
    padding: 0 16px;
  }
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .experience-card {
    padding: 20px 18px;
  }
  .exp-role {
    font-size: 16px;
  }
  .exp-list li {
    font-size: 12.5px;
  }
  .exp-badge {
    font-size: 10px;
  }

  /* skills: grid becomes a swipe row */
  .skills-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 16px;
    max-width: 100%;
  }
  .skills-grid::-webkit-scrollbar {
    display: none;
  }
  .skills-grid .skill-card {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
  .skills-grid .skill-card:hover {
    transform: none !important;
  }

  /* projects: filters become one scrollable row */
  .projects-title {
    margin-bottom: 14px;
  }
  .project-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px 16px;
    scrollbar-width: none;
  }
  .project-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 12px;
  }
  .media-placeholder {
    font-size: 34px;
  }

  /* modal */
  .modal-cards {
    grid-template-columns: 1fr;
  }
  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* about: timeline turns vertical */
  .journey {
    margin-top: 24px;
  }
  .journey-title {
    text-align: left;
    margin-bottom: 14px;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 26px;
  }
  .timeline::before {
    top: 4px;
    bottom: 4px;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  }
  .timeline li {
    padding: 0 0 0 10px;
    text-align: left;
  }
  .timeline li::before {
    top: 3px;
    left: -26px;
    transform: none;
    width: 14px;
    height: 14px;
  }
  .timeline-year {
    font-size: 16px;
  }
  .timeline-text {
    font-size: 12px;
  }
  .now-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .now-card {
    padding: 14px;
  }
  .now-card p {
    font-size: 12.5px;
  }
  .about-text p + p {
    margin-top: 10px;
  }

  /* contact */
  .contact-intro-panel h3 {
    font-size: 18px;
  }
  .contact-interests li {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .hero-content .hero-role {
    font-size: 0.88rem;
  }
  .hero-buttons .btn {
    padding: 8px 10px;
  }
  .contact-intro-panel h3 {
    font-size: 16px;
  }
  .skills-grid .skill-card {
    flex-basis: 185px;
    width: 185px;
    min-width: 185px;
    max-width: 185px;
  }
}
