/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  background: transparent;
  transition: background 0.3s ease;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-planet {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #fff;
  position: relative;
  padding-bottom: 4px;
  transition: font-weight 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== SCROLL DRIVER ===== */
.scroll-driver {
  height: 1350vh;
  position: relative;
  z-index: 0;
}

/* ===== ANIMATION STAGE ===== */
.animation-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  /* NO overflow:hidden here — it breaks transform-style:preserve-3d on children */
}

.animation-stage a,
.animation-stage .project-explore {
  pointer-events: auto;
}

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

#particleCanvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== HERO LAYER ===== */
.hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.fade-in-content {
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards;
}

.hero-bottom-left {
  animation-delay: 0.3s;
}

.hero-bottom-right {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bottom-left {
  position: absolute;
  bottom: 60px;
  left: 48px;
  z-index: 2;
}

.hero-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.5px;
}

.hero-bottom-right {
  position: absolute;
  bottom: 60px;
  right: 48px;
  text-align: right;
  max-width: 600px;
  z-index: 2;
}

.hero-intro-line1 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}

.hero-intro-line2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}

/* Rotating text */
.rotating-text-wrapper {
  display: inline-block;
  height: 1.4em;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

.rotating-text-inner {
  display: flex;
  flex-direction: column;
  animation: rotateWords 6s ease-in-out infinite;
}

.rotating-word {
  height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 600;
}

@keyframes rotateWords {
  0%, 20% { transform: translateY(0); }
  33.33%, 53.33% { transform: translateY(-1.4em); }
  66.66%, 86.66% { transform: translateY(-2.8em); }
  100% { transform: translateY(0); }
}

/* ===== 3D PERSPECTIVE BLOCKS (one-point perspective floor) ===== */
.perspective-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Perspective applied on this container; vanishing point = screen center */
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.perspective-scene {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Blocks start hidden; opacity controlled per-block in JS based on scroll */
}

.block {
  position: absolute;
  /* width/height set per-block by JS for perspective sizing */
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%; /* bottom-center: for flip-up effect */
  will-change: transform, opacity;
  border-radius: 10px;
  overflow: hidden;
  /* Individual transforms set by JS for floor arrangement */
  pointer-events: auto;
  cursor: pointer;
}

.block:hover .block-inner {
  border-color: rgba(0, 119, 192, 0.6);
  box-shadow: 0 4px 32px rgba(0, 119, 192, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.block-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.block-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.block-blue-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 119, 192, 0.6);
}

.block-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Glossy shine edge effect on blocks */
.block-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.06) 100%
  );
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.15),
    inset -1px -1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== WORKS INTRO LAYER ===== */
.works-intro-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 120px 80px;
  z-index: 3;
  opacity: 0;
  will-change: opacity, transform;
}

.works-intro-text {
  flex: 1;
  max-width: 640px;
  text-align: center;
}

.works-intro-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.works-intro-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: #ccc;
}

.works-intro-image {
  flex: 1;
  max-width: 500px;
}

.image-placeholder {
  width: 100%;
  height: 350px;
  background: #1a1a1a;
  border: 2px dashed #333;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 16px;
  font-weight: 500;
}

.placeholder-hint {
  font-size: 12px;
  color: #444;
  margin-top: 8px;
}

/* ===== PROJECT EXPANDED IMAGE ===== */
.project-image-expanded {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  z-index: 8;
  opacity: 0;
  will-change: transform, opacity;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.expanded-image-inner {
  width: 100%;
  height: 80%;
  border-radius: 16px;
  overflow: hidden;
}

.expanded-image-inner .image-placeholder {
  height: 100%;
  border-radius: 16px;
}

/* ===== PROJECT CARD (FLOATING) ===== */
.project-card-float {
  position: absolute;
  z-index: 10;
  width: 420px;
  opacity: 0;
  will-change: transform, opacity;
  right: 80px;
  top: 100%;
}

.project-card-inner {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 36px;
  pointer-events: auto;
}

.project-card-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.project-card-category {
  font-size: 13px;
  font-weight: 400;
  color: #0077C0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 30px;
}

.project-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  float: right;
  transition: gap 0.3s ease;
}

.project-explore:hover {
  gap: 16px;
}

.explore-arrow {
  transition: transform 0.3s ease;
}

.project-explore:hover .explore-arrow {
  transform: translateX(4px);
}

/* ===== FLOW CONTENT ===== */
.flow-content {
  position: relative;
  z-index: 20;
  background: #000;
}

.about-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 0;
}

.about-section {
  display: flex;
  flex-direction: column;
  padding: 140px 80px 120px;
  scroll-margin-top: 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 80px;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-bullets li {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: #999;
  padding-left: 14px;
  position: relative;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0077C0;
}

.detail-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-top: 60px;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.demo-video-banner {
  width: 100%;
  background: #000;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  font-family: 'Recursive', monospace;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
}

.youtube-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: none;
}

/* ---- About Top: Photo + Name/Intro ---- */
.about-top {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-photo-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
}

.about-name-intro {
  flex: 1;
}

.about-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

.about-name-alt {
  font-weight: 300;
  color: #888;
}

.about-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: #bbb;
}

/* ---- About Bottom: Skills + Details ---- */
.about-bottom {
  display: flex;
  gap: 60px;
}

.about-skills {
  flex-shrink: 0;
  width: 180px;
}

.about-section-heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills-list li {
  font-size: 14px;
  font-weight: 300;
  color: #aaa;
  padding-left: 12px;
  position: relative;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0077C0;
}

.about-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-block {
  display: flex;
  flex-direction: column;
}

.about-entry {
  margin-bottom: 24px;
}

.about-entry:last-child {
  margin-bottom: 0;
}

.about-entry-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.about-entry-date {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.about-entry-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: #999;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.contact-section {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 48px;
  text-align: center;
  scroll-margin-top: 80px;
}

.contact-text {
  font-size: 16px;
  font-weight: 300;
  color: #ccc;
  margin-bottom: 20px;
}

.contact-email {
  font-size: 20px;
  font-weight: 500;
  color: #0077C0;
  transition: opacity 0.3s ease;
}

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

.contact-phone {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-top: 12px;
  transition: opacity 0.3s ease;
}

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

.contact-linkedin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  transition: opacity 0.3s ease;
}

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

.linkedin-icon {
  flex-shrink: 0;
  color: #0077B5;
}

/* ===== PROJECT DETAIL PAGE ===== */
.detail-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.detail-navbar.hidden {
  transform: translateY(-100%);
}

.detail-back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #fff;
  transition: opacity 0.3s ease;
}

.detail-back:hover {
  opacity: 0.7;
}

.back-arrow {
  transition: transform 0.3s ease;
}

.detail-back:hover .back-arrow {
  transform: translateX(-4px);
}

.detail-project-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #fff;
}

.detail-nav-links {
  display: flex;
  gap: 28px;
}

.detail-nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #fff;
  position: relative;
  padding-bottom: 4px;
  transition: font-weight 0.2s ease;
}

.detail-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.detail-nav-link:hover {
  font-weight: 600;
}

.detail-nav-link:hover::after {
  width: 100%;
}

.detail-content {
  padding: 140px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Keep text readable at a narrower width while images use full container */
.detail-title,
.detail-category,
.detail-description {
  max-width: 900px;
}

.detail-hero-image {
  width: 100%;
  height: 60vh;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 60px;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-image .image-placeholder {
  height: 100%;
  border-radius: 16px;
}

.detail-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-category {
  font-size: 14px;
  font-weight: 400;
  color: #0077C0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 40px;
}

.detail-description {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 60px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.detail-gallery img {
  width: 100%;
  border-radius: 12px;
}

.detail-gallery-full {
  grid-template-columns: 1fr;
}

.detail-gallery .image-placeholder {
  height: 250px;
  border-radius: 12px;
}

/* =============================================================
   MOBILE RESPONSIVE STYLES
   Uses @media queries for reliable viewport-based activation.
   Does NOT affect desktop layout in any way.
   ============================================================= */

/* --- Default: hide all mobile-only elements on desktop --- */
.mobile-hero,
.mobile-portfolio,
.mobile-contact-particles,
.hamburger,
.mobile-nav-overlay {
  display: none;
}

/* ===== ALL MOBILE STYLES INSIDE MEDIA QUERY ===== */
@media (max-width: 768px) {

  /* --- Body state --- */
  body {
    overflow-x: hidden;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  /* --- Hide desktop-only elements on mobile --- */
  .scroll-driver {
    height: 0 !important;
    overflow: hidden;
  }

  .animation-stage {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  /* ===== MOBILE NAVBAR ===== */
  .navbar {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-logo {
    font-size: 13px;
    gap: 8px;
  }

  .nav-planet {
    width: 18px;
    height: 18px;
  }

  /* ===== HAMBURGER BUTTON ===== */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
  }

  .hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* Hamburger -> X animation */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ===== MOBILE NAV OVERLAY ===== */
  .mobile-nav-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 52px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-family: 'Outfit', 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .mobile-nav-overlay.open .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav-overlay.open .mobile-nav-item:nth-child(1) {
    transition-delay: 0.08s;
  }

  .mobile-nav-overlay.open .mobile-nav-item:nth-child(2) {
    transition-delay: 0.16s;
  }

  .mobile-nav-overlay.open .mobile-nav-item:nth-child(3) {
    transition-delay: 0.24s;
  }

  .mobile-nav-icon {
    width: 32px;
    height: 32px;
    color: #0077C0;
  }

  /* ===== MOBILE HERO ===== */
  .mobile-hero {
    display: flex;
    position: relative;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
  }

  #mobileParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  #mobileParticles canvas {
    display: block;
    width: 100%;
    height: 100%;
  }

  .mobile-hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    font-family: 'Outfit', 'Montserrat', sans-serif;
    padding: 0 20px;
  }

  .mobile-hero-name {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    margin-bottom: 20px;
    line-height: 1;
  }

  .mobile-hero-welcome {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
  }

  .mobile-hero-sub {
    font-size: 13px;
    font-weight: 300;
    color: #777;
    letter-spacing: 1px;
  }

  /* ===== MOBILE PORTFOLIO ===== */
  .mobile-portfolio {
    display: block;
    padding: 56px 20px 40px;
    background: #000;
    scroll-margin-top: 60px;
  }

  .mobile-portfolio-title {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 24px;
    text-transform: uppercase;
  }

  .mobile-project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mobile-project-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
  }

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

  /* Glossy edge effect on mobile cards */
  .mobile-project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.05) 100%
    );
    box-shadow:
      inset 1px 1px 0 rgba(255, 255, 255, 0.12),
      inset -1px -1px 0 rgba(255, 255, 255, 0.04);
  }

  .mobile-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

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

  .mobile-card-info {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-card-meta {
    flex: 1;
    min-width: 0;
  }

  .mobile-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
  }

  .mobile-card-category {
    font-size: 11px;
    font-weight: 400;
    color: #0077C0;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-card-explore {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    opacity: 0.7;
  }

  /* ===== MOBILE ABOUT SECTION ===== */
  .about-section {
    padding: 56px 20px 48px;
    gap: 32px;
    scroll-margin-top: 60px;
  }

  .about-title {
    font-size: 22px;
    text-align: center;
    letter-spacing: 2px;
  }

  .about-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .about-photo-wrap {
    width: 130px;
    height: 160px;
  }

  .about-name {
    font-size: 22px;
    text-align: center;
  }

  .about-name-alt {
    font-size: 18px;
  }

  .about-intro {
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
  }

  .about-bottom {
    flex-direction: column;
    gap: 28px;
  }

  .about-skills {
    width: 100%;
  }

  .skills-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .about-section-heading {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .about-entry-title {
    font-size: 13px;
  }

  .about-entry-date {
    font-size: 11px;
  }

  .about-entry-desc {
    font-size: 13px;
  }

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

  .about-entry {
    margin-bottom: 20px;
  }

  /* ===== MOBILE CONTACT SECTION ===== */
  .contact-section {
    position: relative;
    padding: 70px 20px 56px;
    min-height: 70vh;
    overflow: hidden;
    scroll-margin-top: 60px;
  }

  .mobile-contact-particles {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
  }

  .mobile-contact-particles canvas {
    display: block;
    width: 100%;
    height: 100%;
  }

  .contact-section > *:not(.mobile-contact-particles) {
    position: relative;
    z-index: 1;
  }

  .section-title {
    font-size: 20px;
    letter-spacing: 1.5px;
  }

  .contact-text {
    font-size: 13px;
  }

  .contact-email {
    font-size: 16px;
  }

  .contact-phone {
    font-size: 15px;
  }

  .contact-linkedin {
    font-size: 14px;
  }

  /* ===== MOBILE DETAIL PAGE ===== */
  .detail-navbar {
    padding: 12px 16px;
  }

  .detail-nav-links {
    display: none !important;
  }

  .detail-back {
    gap: 8px;
  }

  .detail-back span {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .detail-content {
    padding: 72px 16px 36px;
  }

  .detail-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .detail-category {
    font-size: 11px;
    margin-bottom: 20px;
  }

  .detail-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .detail-subtitle {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 18px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .detail-hero-image {
    height: 28vh;
    margin-bottom: 28px;
  }

  .demo-video-banner {
    font-size: 24px;
    padding: 28px 16px;
  }

  .youtube-embed {
    border-radius: 8px;
  }

} /* end @media (max-width: 768px) */
