
/* --- 2. MAX-WIDTH: 991px (Tablets & Below) --- */
@media (max-width: 991px) {
  /* Layout adjustments */
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
  .side-nav { display: none; }
  .mobile-contents-nav { display: block; }
  
  /* Project & Impact */
  .meta-grid {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 10px;
  }
  .meta-column:last-child { text-align: left; }
  .hero-showcase img, .hero-showcase { height: 350px; }
  .process-flow { flex-direction: column; }
  .process-box:not(:last-child):after {
    content: "↓";
    right: auto; left: 50%;
    top: auto; bottom: -25px;
    transform: translateX(-50%);
  }
  .impact-box { margin-bottom: 70px; }
  
  /* Spacing Fixes */
  section.story-section {
    margin-bottom: 40px;
    padding-top: 40px;
  }
  .scrolling-text-container { display: none; }
  .timeline-badge { font-size: 16px; }
  
  /* Next Project Section */
  .scrolling-text-inner span { font-size: 15vw; }
  .next-project-title { font-size: 28px; }
  .next-project-section { margin-bottom: 20px; }
  
  /* About Hero & Page */
  .about-hero-wrapper {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .about-hero-grid {
    margin-top: 0;
    gap: 40px;
    align-items: center;
  }
  .about-hero-text h1 {
    font-size: 42px;
    margin-bottom: 16px;
  }
  .about-hero-text p { font-size: 18px; }
  .feature-image-section { margin-bottom: 80px; }
  .selected-works-section { padding-bottom: 80px; }
  .works-header { margin-bottom: 30px; }
  .about-content-wrapper { padding-bottom: 72px; }
  .about-grid-minimal {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: normal;
  }
  .minimal-portrait-wrapper { width: 100%; max-width: 100%; }
  .bio-block p { font-size: 16px; margin-bottom: 20px; }
  .minimal-text-col { padding-top: 0px; }
  .about-header h1 { 
    font-size: 40px;
    margin-top: 132px; 
  }

  .project-header {
    margin-bottom: 40px;
  }
  
  /* Resume Section */
  .resume-section {
    padding: 80px 0;
    margin-top: 0px;
    margin-bottom: 72px;
  }
  .resume-title { font-size: 28px; }
  h2 { 
    font-size: 28px;
    margin-bottom: 16px;
   }
  
  /* Carousel Variables Update */
  :root {
    --card-width-desktop: 600px;
    --card-height-desktop: 400px;
  }
  .prev-btn { left: 20px; }
  .next-btn { right: 20px; }
  .carousel-section { margin-bottom: 80px; }
  
  /* Clean Work List */
  .work-card-wide {
    flex-direction: column-reverse;
    height: auto;
  }
  .card-image-col {
    height: 300px;
    flex: none;
  }
  .card-content-col { padding: 40px 30px; }
  .card-btn { font-size: 13px; }
  .work-subtexts { width: 65%; }
  
  /* Display Toggles */
  #ecommerce-project-tab1 { display: block; }
  #ecommerce-project-web1 { display: none; }
  #ceb-project-tab1 { display: block; }
  #ceb-project-web1 { display: none; }

  .hero-text h1 {
  font-size: 40px;
  margin-top: 124px;
}

#studioProject {
  background: url(./Images/project-3dStudio-tab-thumbnail-1.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#cebProject {
  background: url(./Images/project-ceb-tab-thumbnail.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#eCommerceProject {
  background: url(./Images/project-ecommerce-tab-thumbnail.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
}

/* --- 3. MAX-WIDTH: 768px (Mobile Phones) --- */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  
  /* Typography & Hero */
  .hero-text h1 { font-size: 32px; }
  .hero-showcase img, .hero-showcase { height: auto; }
  .project-header { margin-top: 60px; }
  section.story-section { padding-top: 20px; }
  .impact-box { padding: 24px; }
  .impact-text { font-size: 18px; }
  .menu-list a { font-size: 32px; }
  
  /* Next Project */
  .next-project-section { padding: 50px 0 80px 0; }
  .scrolling-text-inner span { font-size: 20vw; }
  .next-project-title { font-size: 24px; }
  .next-project-card:hover { transform: none; }
  .content-wrapper { margin-bottom: 0px; }
  
  /* About Hero Mobile */
  .about-hero-wrapper {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .about-hero-text p { margin: 0 auto; }
  .about-hero-image-wrapper { margin-top: 0; }
  .image-card {
    transform: rotate(0deg);
    max-width: 350px;
    margin: 0 auto;
  }
  .floating-badge {
    display: none;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
  .view-all-link { display: none; }
  
  /* Gallery Toggles */
  #gallery-web { display: none; }
  #gallery-mobile { display: block; }
  #hero-cebcare-mobile { display: block; }
  #hero-cebcare-web { display: none; }
  
  /* Works & Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px; /* merged */
  }
  .section-title { font-size: 28px; }
  
  /* About Page Mobile */
  .about-header { text-align: center !important; }
  .about-grid-minimal {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .minimal-portrait-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }
  .about-content-wrapper { padding-bottom: 0px; }
  .bio-block p {
    font-size: 16px;
    margin-bottom: 20px; 
  }

  .about-header h1, .about-hero-text h1 { line-height: 125%; }

    .about-header h1 { 
    margin-top: 116px; 
  }
  
  /* Resume Mobile */
  .resume-section {
    padding: 60px 20px;
    margin-top: 60px;
    margin-bottom: 80px;
    border-radius: 16px;
  }
  .resume-title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .resume-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .resume-btn {
    width: 100%;
    padding: 14px;
  }
  .resume-modal-box {
    padding: 30px 24px;
    width: 95%;
  }
  .modal-title { font-size: 22px; }
  .modal-close-icon {
    font-size: 24px;
    top: 15px; right: 15px;
  }
  
  /* Carousel Mobile Vars */
  :root {
    --card-width-desktop: 300px;
    --card-height-desktop: 200px;
    --card-gap: 20px;
  }
  .nav-btn {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.9);
  }
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  
  /* Clean Work List Mobile */
  .work-list-section { padding: 40px 20px; }
  .card-title { font-size: 24px; }
  .card-desc { font-size: 16px; }
  .card-content-col { padding: 30px 24px; }
  .card-btn { font-size: 12px; }
  .carousel-viewport { padding-top: 0px; }
  .work-subtexts { width: 95%; }
  
  /* Toggles */
  #ecommerce-project-tab1 { display: none; }
  #ecommerce-project-web1 { display: block; }
  #ceb-project-tab1 { display: none; }
  #ceb-project-web1 { display: block; }

#studioProject {
  background: url(./Images/3dStudio-project-thumbnail.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#cebProject {
  background: url(./Images/ceb-project-thumbnail.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#eCommerceProject {
  background: url(./Images/solastyle-project-thumbnail.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

}

