/* =====================================================
   MOBILE OPTIMIZATION (Phones + Tablets)
   Max width: 1024px
   ===================================================== */

@media (max-width: 1024px) {

  /* -------------------------
     LAYOUT
  -------------------------- */
  .layout {
    max-width: 100%;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 16px;
  }

  .editor {
    border-radius: 10px;
  }

  .editor-body {
    padding: 20px;
  }

  /* -------------------------
  EDITOR HEADER TITLE (HIDE ON MOBILE)
  -------------------------- */
  .editor-header .title {
  display: none;
  }

  /* -------------------------
     HERO SECTION
  -------------------------- */
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .name-text {
    font-size: 26px;
    line-height: 1.25;
  }

  .typing-text {
    font-size: 20px;
  }

  /* -------------------------
     PROFILE PHOTO
  -------------------------- */
  .photo-wrapper {
    --photo-size: 150px;
    --orbit-logo-size: 32px;
  }

  /* Disable heavy animations on mobile */
  .photo-wrapper::after,
  .orbiting-logo {
    display: none;
  }

  .photo {
    animation: none;
    box-shadow:
      0 0 0 2px rgba(201, 162, 63, 0.12),
      0 0 14px rgba(34, 197, 94, 0.35);
  }

  /* -------------------------
     LOGO BAR (ONE LINE)
  -------------------------- */
  .logo-bar {
    display: flex;
    justify-content: center;
    gap: 8px;               /* tighter spacing */
    flex-wrap: nowrap;      /* force single line */
  }

  .logo-bar .logo-link {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .logo-bar img {
    max-width: 100%;
    height: auto;
  }

  /* -------------------------
     SECTIONS
  -------------------------- */
  .section {
    padding: 22px 20px;
    font-size: 14px;
  }

  ul {
    margin-left: 16px;
  }

  /* -------------------------
     TIMELINE
  -------------------------- */
  .timeline {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -26px;
  }

  /* -------------------------
     SKILLS GRID
  -------------------------- */
  .skills-category {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* -------------------------
     CONTACT FORM
  -------------------------- */
  .contact-form {
    gap: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .submit-btn {
    align-self: stretch;
    text-align: center;
    padding: 12px 20px;
  }

  /* -------------------------
     FOOTER
  -------------------------- */
  .footer {
    font-size: 12px;
    padding: 12px 0;
  }
}

/* =====================================================
   EXTRA SMALL DEVICES (<= 480px)
   ===================================================== */

@media (max-width: 480px) {

  .name-text {
    font-size: 24px;
  }

  .typing-text {
    font-size: 18px;
  }

  .editor-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .title-link .title {
    font-size: 12px;
  }
}