/* ============================================================
   MOBILE ONLY — max-width: 768px
   No tablet rules. No overrides outside media queries.
   ============================================================ */


/* ── BURGER BUTTON (hidden by default, shown on mobile) ───── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  z-index: 1002;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ── ALL MOBILE STYLES ────────────────────────────────────── */
@media (max-width: 768px) {

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

  /* Navbar */
  .top-nav {
    padding: 10px 8px;
    width: 96%;
  }

  .nav-inner {
    height: 60px;
    padding: 0 16px;
  }

  .logo img {
    height: 38px;
  }

  /* Show burger */
  .burger {
    display: flex;
  }

  /* Nav drawer */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 100px 32px 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 0 0 20px 20px;
    z-index: 1001;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    font-size: 22px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #969696;
  }

  .nav-links li:last-child { border-bottom: none; }
  .nav-links li.active { color: #000; }
  .nav-links li.active::after { display: none; }

  /* ── INDEX HERO ── */
  .hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .hero-text {
    font-size: 28px;
    gap: 8px;
  }

  .about-image {
    height: auto;
    margin-top: 40px;
  }

  /* ── ABOUT / ART SECTION ── */
  .about-section {
    padding: 0 0 0px;
  }
  

  /* Stack layout vertically */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  

  /* Tabs become sticky horizontal carousel */
  .about-nav {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  .about-nav::-webkit-scrollbar { display: none; }

  .tab {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 40px 6px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #888;
    white-space: nowrap;
    cursor: pointer;
  }

  .tab.active {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: #39DAFF;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  /* Content panel */
  .about-content {
    padding: 12px 0px;
    margin-top: 12px;
    gap: 20px;
    border-radius: 16px;
  }

  .about-block h3 { font-size: 22px; }

  /* Timeline */
  .timeline-content { max-width: 100%; }

  /* Skills */
  .chips span { font-size: 12px; }
  .tools-section { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .tool{
    opacity: 1;
  }

  /* Social links — stack to 1 column on mobile */
.social-links {
  grid-template-columns: 1fr;
  gap: 4px;
}

.social-item img {
  width: 40px;
  height: 40px;
}

.social-handle {
  font-size: 16px;
}

.social-url {
  font-size: 12px;
}

  /* ── DESIGN & ART HERO ── */
  .design-hero {
    padding: 100px 24px 0px;
  }

  .hero-title {
    font-size: 52px;
    line-height: 1;
  }

  .hero-title p {
    margin: 12px 0px;
  }

  .hero-subtext {
    font-size: 15px;
    max-width: 100%;
    margin-top: 16px;
  }

  .silent{
    color: #ffffff;
    text-shadow: 3px 3px 4px #F4E3C9;
  }

  /* ── DESIGN PRINCIPLES ── */

  .design-principles h1 {
    font-size: 24px;
  }
  .case-studies h1 {
    font-size: 24px;
  }
  .design-principles { margin-top: 40px; }
  .principles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ── CASE STUDIES ── */
  .case-studies { margin-top: 48px; }

  .case-list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Each case link = card */
  .case-link {
    background: #fff;
    outline-width: 2px solid #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.2);
    display: block;
    outline: 2px solid rgba(255, 255, 255, 0.8);
  }

  .case-item,
  .case-item.reverse {
    flex-direction: column;
    gap: 0;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
  }

  .case-image {
    width: 100%;
    height: 288px;
    border-radius: 0;
  }

  .case-content {
    width: 100%;
    padding: 20px 16px;
    box-sizing: border-box;
  }

  .case-content h3 { font-size: 16px; }

  .case-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Visual design — single column on mobile */
.visual-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.visual-image {
  aspect-ratio: 6 / 5; /* wider on mobile to save vertical space */
}

  /* ── PHONE ACTION POPUP — bottom sheet on mobile ── */
  .phone-popup {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: 32px; /* home indicator clearance */

    /* override desktop centered transform */
    transform: translateY(100%);
  }

  .phone-popup.open {
    transform: translateY(0);
  }

  /* Drag handle pill */
  .phone-popup::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 4px;
  }

  .phone-action:first-child {
    border-radius: 0;
  }

  .phone-action:last-child {
    border-radius: 0;
    border-bottom: none;
  }

  /* Hide the close button on mobile — tap backdrop to close */
  .phone-popup-close {
    display: none !important;
  }

  /* ── RESUME SECTION ── */

  .resume-cta {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* ── CONTACT ── */

  .highlight {
    letter-spacing: -5px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .linkedin {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .value { font-size: 17px;}
  .label { font-size: 14px; line-height: 20px; }

  /* ── ART GRID ── */
  .art-grid { column-count: 2; }

  /* ── FOOTER ── */
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-right { gap: 32px; width: 100%; justify-content: flex-start; }
  .footer-col { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-bottom p { font-size: 13px; }

  /* ── DISABLE HOVER TRANSFORMS ── */
  .case-link:hover .case-item { transform: none; }
  .case-item:hover .case-image img { transform: none; }
  .tool:hover { transform: none; }
  .contact-card:hover { transform: none; }
}

.bottom-nav-item .inactive-icon { display: block; }
.bottom-nav-item .active-icon   { display: none;  }

.bottom-nav-item.active .inactive-icon { display: none;  }
.bottom-nav-item.active .active-icon   { display: block; }

.nav-icon {
  width: 24px;
  height: 24px;
}

.footer {
  padding-bottom: 100px;
}

/* ── SMALL MOBILE ─────────────────────────────────────────── */
@media (max-width: 420px) {
  .hero-text { font-size: 28px; }
  .hero-title { font-size: 40px; }
  .principles-grid { grid-template-columns: 1fr; }
  .tools-section { grid-template-columns: repeat(3, 1fr); }
  .art-grid {
  column-count: 2;
  column-gap: 8px;
}

.about-block{
  padding: 14px;
}

.art-item {
  margin-bottom: 24px;
}

.art-item img {
  border-radius: 8px;
}
}

/* DESKTOP BEHAVIOUR */
@media (min-width: 768px) {
  .art-preview img {
    width: 50%;
  }
}

/* ============================================================
   BOTTOM NAV — Mobile only (max-width: 768px)
   Add to bottom of mobile.css
   ============================================================ */

   @media (max-width: 768px) {

    /* ── BOTTOM NAV CONTAINER ── */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 997;
  
      /* Match top nav style */
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 10px 8px 10px; /* 18px bottom for home indicator */
  
      /* Slide animation */
      transform: translateY(0);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
  
    .bottom-nav.hidden {
      transform: translateY(110%);
    }
  
    /* ── EACH NAV ITEM ── */
    .bottom-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      cursor: pointer;
      flex: 1;
      padding: 4px 0;
  
      /* Inactive state */
      opacity: 0.6;
    }
  
    .bottom-nav-item.active {
      opacity: 1;
    }
  
    /* ── ICON ── */
    .bottom-nav-item svg {
      width: 32px;
      height: 32px;
    }
  
    /* ── LABEL ── */
    .bottom-nav-item span {
      font-size: 12px;
      font-weight: 500;
      color: #4d4d4d;
      font-family: 'Montserrat', sans-serif;
      line-height: 1;
    }
  
    .bottom-nav-item.active span {
      color: #000;
      font-weight: 600;
    }
  }