/* ============================================
   MEDIAQUERIES.CSS - All Responsive Styles
   ============================================ */


/* Large Tablets & Small Laptops */
@media screen and (max-width: 1400px) {
  .about-container {
    flex-direction: column;
  }
}


/* Tablets */
@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }
  .section-container {
    display: block;
  }
  .arrow {
    display: none;
  }
  .section-container {
    height: fit-content;
  }
  .about-containers {
    margin-top: 0;
  }
}


/* Medium screens */
@media screen and (max-width: 1024px) {
  .product-grid-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 0 auto !important;
    justify-items: center;
  }
}


/* ── Hero / Profile: 768px and below ── */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-tabs {
    gap: 0.25rem;
  }

  .skills-tab {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  /* Hamburger nav */
  #hamburger-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
  }

  #hamburger-nav .logo {
    color: white;
  }

  .hamburger-icon span {
    background-color: white;
  }

  /* Hero section */
  #profile {
    height: 100vh;
    min-height: 600px;
    margin: 0;
    padding: 0 !important;
    width: 100vw;
  }

  /* Photo anchored to top */
  .section__pic-container {
    top: 0;
    bottom: unset;
    left: 0;
    transform: none;
    height: auto;
    width: auto;
    margin: 0;
  }

  .section__pic-container img {
    width: 100vw;
    height: auto;
    object-fit: unset;
    object-position: unset;
    border-radius: 0;
  }

  /* Text block */
  .section__text.hero__text {
    right: unset;
    left: 50%;
    top: 70vh;
    bottom: unset;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    gap: 0.1rem;
  }

  /* Hero text sizes */
  .hero-name {
    font-size: 1.4rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

  /* Buttons */
  .btn-container {
    flex-direction: row;
    justify-content: center;
  }

  .btn {
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  /* Hide socials to avoid overlap */
  #socials-container {
    display: flex;
    justify-content: center;
  }

  /* Marquee */
  .marquee-text {
    font-size: 1.2rem;
  }

  /* Contact form stacks */
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }
/* Modern hamburger menu overlay */

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.close-menu:hover {
  opacity: 1;
}
  .menu-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 100;
  }

  .menu-links.open {
    max-height: 100vh;
    opacity: 1;
  }

  .menu-links a {
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 400;
    color: white;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 60%;
    text-align: center;
  }

  .menu-links a:hover {
    color: rgba(255, 255, 255, 0.6);
  }

 /* Publications mobile layout */
.publications-layout {
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Hide center image on mobile */
.publications-center {
  display: flex;
  min-height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  touch-action: pan-y; /* allows vertical scroll but captures horizontal swipe */
}

.publications-title {
  font-size: 2.2rem;
}

.publications-right {
  max-height: 400px;
}

/* Show all items fully on mobile — less opacity fade */
.pub-item {
  opacity: 0.7;
}

.pub-item.active,
.pub-item:hover {
  opacity: 1;
}

.pub-details p {
  font-size: 0.85rem;
  text-transform: none;   /* remove uppercase on mobile for readability */
  letter-spacing: 0;
}



 .cert-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cert-right {
    position: static;
  }

  .cert-stack {
    height: 250px;
  }

  #certificates {
    padding: 3rem 1.5rem;
  }

}


/* ── Mobile Phones: 600px and below ── */
@media screen and (max-width: 600px) {

/* In mediaqueries.css, inside the @media screen and (max-width: 600px) block */
#wide-skills-section,
#about.text-container {
  margin: 0 auto !important;
  width: 95% !important;
}

  /* General section spacing */
  section {
    margin: 0 1rem;
    padding: 2rem 0 !important;
    width: calc(100% - 2rem) !important;
  }

  /* Hero overrides section margin */
  #profile {
    margin: 0 !important;
    width: 100vw !important;
    padding: 0 !important;
  }

  /* Footer */
  #contact,
  footer {
    height: auto;
    padding-bottom: 2rem;
  }

  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }

  footer p {
    display: block !important;
    margin-top: 15px !important;
    font-size: 14px;
    color: #555;
  }

  /* Typography */
  article {
    font-size: 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }

  .experience-sub-title {
    font-size: 1.25rem;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  .title {
    font-size: 2rem;
  }

  .text-container {
    padding: 2rem 1.5rem;   /* reduce padding on mobile */
    font-size: 0.80rem;     /* slightly smaller text */
    text-align: justify;    /* justify looks better on narrow screens */
  }

  .timeline-company {
    color: #3b5bdb;
    font-size: 0.80rem;
    text-decoration: none;
    font-weight: 400;
}

  /* About section */
  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

  .contact-info-container {
    margin: 0;
  }

  /* Work experience */
  .details-container-wide {
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
    align-items: center;
  }

  .work-entry {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .work-entry-item {
    flex-direction: column;
    text-align: center;
  }

  .work-details {
    text-align: center;
    width: 100%;
    grid-column: 1;
  }

  .work-details ul {
    text-align: left;
    padding-left: 1.5rem;
    margin-top: 1rem;
  }

  .work-icon {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.5rem auto !important;
    width: 32px !important;
    height: 32px !important;
    grid-column: 1;
    margin-bottom: 0.5rem;
  }

  .work-icon img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
  }

  /* Experience cards */
  #experience .article-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 1rem;
  }

  .experience-card {
    padding: 2rem !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .experience-card-text,
  .text-container {
    height: auto !important;
    width: 100% !important;
  }

  /* Tool cards */
  .tool-card {
    width: 100% !important;
    height: auto !important;
    min-height: 100px;
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
  }

  /* Grid layouts */
  .tools-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .product-grid-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 2rem auto !important;
    justify-items: center;
  }

  .product-card {
    width: 90% !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Projects section */
  #projects-grid {
    padding: 2rem 1rem !important;
  }

  #projects-grid .title {
    margin-bottom: 1rem !important;
  }

  /* Partners/logos */
  .partners-main-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .partners-title {
    text-align: center;
    padding: 0 1rem;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    border-left: none;
    padding-left: 0;
  }

  #projects-grid {
  padding: 2rem 1.5rem !important;
}

.publications-title {
  font-size: 2rem;
}

.publications-layout {
  gap: 1.5rem;
}
}

