/* --- HEADER MEDIA QUERIES --- */
@media screen and (max-width: 1024px) {
  .header-wrapper {
    padding: 0 12px;
  }

  .logo img {
    max-width: 160px;
  }

  .nav-links {
    gap: 24px;
  }

  .header-right {
    margin-left: -20px;
    padding-bottom: 8px;
  }

  .contact-numbers {
    gap: 16px;
    font-size: 0.95em;
  }
}

@media screen and (max-width: 768px) {
  .header-wrapper {
    padding: 0 8px;
    height: auto;
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    max-width: 120px;
  }

  .nav-toggle-label {
    display: flex;
  }

  .header-right {
    margin-left: 0;
    padding-bottom: 12px;
    align-items: center;
  }

  .contact-numbers {
    flex-direction: column;
    gap: 6px;
    font-size: 0.9em;
    margin-bottom: 8px;
  }

 /* --- Base Desktop/Universal Styles (Keep these outside media queries) --- */
.nav-links {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 70vh;
  background-color: rgba(43, 108, 176, 0.9);
  color: #fff;
  display: flex; /* Added display flex for column alignment */
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 16px 20px;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 12px rgba(0,0,0,0.25);
  transition: right 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  z-index: 999;
}

.nav-links a {
  color: #fff;
  font-size: 1.1em;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  text-decoration: underline;
  color: #e0e0ff;
  transform: scale(1.05);
}

.nav-toggle:checked + .nav-toggle-label + .nav-links {
  right: 0;
  opacity: 1;
}

/* --- Mobile Specific Fixes (768px and below) --- */
@media screen and (max-width: 768px) {
  /* Integrated Dropdown Logic */
  .nav-item-dropdown {
    display: block;
    width: 100%;
    text-align: center;
  }

  .dropdown-content {
    position: relative; /* Stacks links vertically in the sidebar */
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle contrast against blue */
    display: block; /* Expand by default for mobile accessibility */
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
  }

  .dropdown-content a {
    display: block;
    font-size: 0.95em; /* Slightly smaller for hierarchy */
    padding: 6px 0;
  }

  .trial-link {
    display: inline-block;
    font-size: 1em;
    padding: 10px 20px;
    min-width: 180px;
    text-align: center;
    background-color: #2b6cb0;
    color: #fff;
    border-radius: 8px;
    transition: all 0.25s ease;
  }

  .trial-link:hover,
  .trial-link:active {
    background-color: #1a4a80;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  }
}

/* --- Extra Small Devices (480px and below) --- */
@media screen and (max-width: 480px) {
  .header-wrapper {
    padding: 0 4px;
    height: auto;
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    max-width: 90px;
  }

  .header-right {
    margin-left: 0;
    padding-bottom: 14px;
    align-items: center;
  }

  .contact-numbers {
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    margin-bottom: 6px;
  }

  .nav-links {
    top: 54px;
    right: 4px;
    min-width: 140px;
    padding: 10px 8px;
    gap: 12px;
  }

  .nav-links a {
    font-size: 1em;
  }

  .trial-link {
    font-size: 0.95em;
    padding: 6px 8px;
    min-width: 120px; /* Adjusted for very small screens */
  }

  .nav-toggle-label {
    top: 12px;
    right: 8px;
  }
}
/* --- HERO SECTION MEDIA QUERIES --- */

/* Tablet / Small Desktop */
@media screen and (max-width: 1024px) {
  .hero-image {
    min-height: 400px; /* Reduce height from desktop */
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem; /* Shrink title */
  }

  .hero-content h2 {
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Mobile Landscape / Tablets */
@media screen and (max-width: 768px) {
  .hero-image {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
    line-height: 1.4;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .hero-image {
    min-height: 300px;
    padding: 1.5rem 0.5rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }

  .hero-content h2 {
    font-size: 1rem;
    font-weight: normal;
  }

  .hero-gradient {
    /* Optional: make gradient darker on small screens for better text legibility */
    background: rgba(0, 0, 0, 0.4); 
  }
}
/* --- LOCATION SECTION --- */
@media screen and (max-width: 1024px) {
  .location-section {
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  /* keep two-up layout on tablets/larger; account for gap */
  .location-box {
    flex: 0 0 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media screen and (max-width: 768px) {
   .location-box {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .location-icon {
    width: 64px;
  }
}

@media (max-width: 600px) {
  .location-section {
    flex-direction: column;
    align-items: center;
  }
  .location-box {
    flex: 0 0 80%;
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .location-section {
    padding: 2rem 1rem;
  }

  .location-box {
    padding: 1rem;
    text-align: left; /* force all content left-aligned on mobile */
  }

  .location-label-south,
  .location-label-west,
  .location-label-woolloongabba {
    font-size: 0.95rem;
  }

  .location-phone-south,
  .location-phone-west,
  .location-phone-woolloongabba {
    font-size: 0.9rem;
  }

  /* specifically target the address paragraph */
  .location-box p,
  .location-address {
    text-align: left;
    margin-left: 0; /* ensure no unintended centering */
  }
}


/* --- SLIDESHOW SECTION --- */
@media screen and (max-width: 1024px) {
  .mySlides p,
  .text {
    font-size: 20px;
  }
  .mySlides p {
    height: 260px;
    padding: 16px;
  }
  .text {
    padding: 6px 10px;
  }
  .prev, .next {
    font-size: 16px;
    padding: 12px;
  }
  .slideshow-container {
    max-width: 90%;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 768px) {
  .mySlides p {
    font-size: 18px;
    height: 220px;
    padding: 14px;
  }
  .text {
    font-size: 18px;
    padding: 6px 10px;
    bottom: 6px;
  }
  .mySlides:nth-of-type(1) .text {
    padding-top: 20px !important;
  }
  .numbertext {
    font-size: 10px;
  }
  .prev, .next {
    font-size: 14px;
    padding: 10px;
  }
  .dot {
    height: 12px;
    width: 12px;
  }
}

@media screen and (max-width: 480px) {
  .slideshow-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .mySlides p {
    font-size: 16px;
    height: 200px;
    padding: 12px;
  }
  .text {
    font-size: 16px;
    padding: 4px 8px;
    bottom: 4px;
  }
  .mySlides:nth-of-type(1) .text {
    padding-top: 24px !important;
  }
  .prev, .next {
    font-size: 12px;
    padding: 8px;
  }
  .dot {
    height: 10px;
    width: 10px;
  }
}

/* --- SKILLS SECTION --- */
@media screen and (max-width: 768px) {
  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .skills-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .card {
    max-width: 90%;       /* shrink width to fit mobile */
    padding: 10px;        /* reduce padding */
    font-size: 0.9rem;    /* slightly smaller text */
  }

  .card h2 {
    font-size: 1.2rem;    /* shrink heading */
  }

  .card p {
    font-size: 0.85rem;   /* shrink paragraph text */
  }

  .card img {
    width: 60px;          /* shrink icons */
    height: auto;
  }
}