/* --- 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;
  }

 .nav-links {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 70vh;
  background-color: rgba(43, 108, 176, 0.9); /* semi-transparent blue */
  color: #fff;
  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;
  border-bottom: 0; 
  transition: color 0.25s ease, transform 0.25s ease;
}

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

/* When nav toggle is checked, slide in */
.nav-toggle:checked + .nav-toggle-label + .nav-links {
  right: 0;          /* slide into view */
  opacity: 1;
}
.trial-link {
    display: inline-block;
    font-size: 1em;
    padding: 10px 20px;        /* wider padding for mobile */
    min-width: 180px;          /* longer width */
    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; /* darker shade on hover/tap */
    transform: scale(1.05);    /* slight zoom effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  }
}

@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; 
    flex-direction: column; 
    align-items: center; }

  .nav-links a { 
    font-size: 1em;
   } 
   .trial-link { 
     font-size: 0.95em; 
     padding: 6px 8px; } 
    .nav-toggle-label { 
      top: 12px; 
      right: 8px; }
}

/* --- BACKGROUND SECTION MEDIA QUERIES --- */
@media screen and (max-width: 1024px) {
  .background-section,
  .background-section.purple {
    padding: 2.5rem 1.5rem 1rem;
    min-height: 600px;
    background-size: cover !important;
    background-position: center center !important;
    background-image: url("https://fortemusic.netlify.app/assets/pexels-mart-production-8471817.jpg") !important; /* 👈 added line */
    flex-direction: column;
    gap: 1.5rem;
  }
  .background-section .bottom-left-text {
    font-size: 1.2rem !important;
    max-width: 400px !important;
  }
  .form-container {
    font-size: 0.85rem !important;
    max-width: 320px !important;
    padding: 1.5rem !important;
  }
}

@media screen and (max-width: 768px) {
  .background-section,
  .background-section.purple {
    flex-direction: column;
    justify-content: center;
    align-items: center;       /* center everything */
    padding: 1.5rem 1rem;
    min-height: 400px;
    gap: 1rem;
	background-image: url("https://fortemusic.netlify.app/assets/pexels-mart-production-8471817.jpg");
    background-size: cover;
    background-position: center center;
  }

  .background-section .gradient-overlay {
    background: linear-gradient(25deg, rgba(0,167,112,0.9) 20%, rgba(0,167,112,0) 40%);
  }
  .background-section.purple .gradient-overlay {
    background: linear-gradient(25deg, rgba(106,13,173,0.9) 20%, rgba(106,13,173,0) 40%);
  }

  .background-section .bottom-left-text {
    font-size: 1rem !important;       /* smaller text */
    max-width: 300px !important;      /* narrower block */
    line-height: 1.3 !important;
    margin-top: 0 !important;
  }

  .form-container {
    font-size: 0.8rem !important;     /* shrink form text */
    max-width: 280px !important;      /* narrower form */
    padding: 1rem !important;         /* less padding */
  }

  .form-container img,
  .background-section img {
    max-width: 70% !important;        /* shrink images */
    height: auto !important;
  }
}

 @media screen and (max-width: 480px) {
  .background-section {
    padding: 1rem;
    padding-top: 4rem;
    min-height: 280px;
    gap: 0.8rem;
    background-size: cover;
	background-image: url("https://fortemusic.netlify.app/assets/pexels-mart-production-8471817.jpg");
    background-position: center center;
  }

  .background-section.purple {
    padding: 1rem;
    padding-top: 4rem;
    min-height: 280px;
    gap: 0.8rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .background-section .bottom-left-text {
    font-size: 0.9rem !important;
    max-width: 260px !important;
    line-height: 1.3 !important;
  }

  .form-container {
    font-size: 0.75rem !important;
    max-width: 240px !important;
    padding: 0.8rem !important;
  }

  .form-container img,
  .background-section img {
    max-width: 60% !important;
    height: auto !important;
  }
}

/* --- 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;
  }
}