/*
==========================================================
TechLab365 Website
Temporary Landing Page

Author: Antonio Gabriele Rizzo

Version: 0.1.0
==========================================================
*/

/* ===========================
   Shared Header + Navigation
=========================== */

.site-header {
  position: relative;
  width: min(100%, 1100px);
  margin: 1.25rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.45rem, 0.8vw, 0.75rem);
  z-index: 120;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.home-logo {
  position: static;
  display: block;
  width: clamp(280px, 24vw, 480px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.site-nav {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 1.2vw, 1.35rem);
  list-style: none;
  padding: 0.35rem 0;
  margin: 0;
}

.nav-links a {
  color: #f5f9fc;
  text-decoration: none;
  font-size: clamp(0.95rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #66b9ff;
  border-color: #66b9ff;
}

.home-logo img {
  width: 100%;
  height: auto;
  display: block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;

  min-height: 100%;

  overflow-x: hidden;

  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("../img/backgrounds/techlab365background-V2.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #061224;
}

.landing-page {
  position: relative;
  width: min(100%, 1600px);
  min-height: 100vh;
  flex: 1 0 auto;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(auto, 520px);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(2rem, 3.5vw, 4rem);
  align-items: start;
  background: rgba(5, 15, 30, 0.45);
  padding: clamp(2rem, 3vw, 4rem) clamp(1rem, 3vw, 3rem)
    clamp(0.5rem, 1vw, 0.75rem);
}

.overlay {
  width: 100%;

  height: 100%;

  position: relative;
}

h1 {
  font-size: 4rem;

  margin-bottom: 20px;
}

h2 {
  font-size: 2.2rem;

  font-weight: 300;

  margin-bottom: 35px;

  line-height: 1.3;
}

.tagline {
  font-size: 1.4rem;

  font-weight: bold;

  color: #00a8ff;

  margin-bottom: 15px;
}

.subtitle {
  font-size: 1.2rem;

  color: #d9e7f5;

  margin-bottom: 50px;
}

.work-progress {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  white-space: nowrap;
  color: #ffffff;
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  text-align: center;
  letter-spacing: 0.3px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: clamp(0.25rem, 0.7vw, 0.5rem) auto 0;
  top: -14px;
}

.hero-illustration {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: min(35vw, 520px);
  max-width: 100%;
  margin-top: clamp(-5rem, -2.4vw, -1rem);
  z-index: 2;
  pointer-events: none;
}

.hero-network {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.95;
}

/* =====================================
   Homepage Hero Content
===================================== */

.hero-content {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 760px);
  max-width: 100%;
  margin-top: clamp(-2rem, -1.5vw, -1rem);
  padding-left: clamp(0.25rem, 3vw, 3rem);
  z-index: 5;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 3.2vw, 2.85rem);
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: clamp(0.4rem, 0.7vw, 0.65rem);
}

.hero-content h1 span {
  color: #66b9ff;
  white-space: nowrap;
}

.hero-specialisation {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 500;
  color: #dfeaf7;
  margin-bottom: clamp(1.8rem, 2.4vw, 2.4rem);
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, max-content));
  justify-content: start;
  align-items: start;
  gap: clamp(0.35rem, 0.65vw, 0.55rem);
  margin-bottom: clamp(1rem, 1.5vw, 1.4rem);
}

.hero-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: 0;
  text-align: center;
}

.hero-icon img {
  width: clamp(2rem, 2.4vw, 2.4rem);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.hero-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2rem;
  margin-top: 6px;
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  line-height: 1.2;
  color: #ffffff;
}

.hero-content h2 {
  font-size: clamp(1.7rem, 2vw, 2rem);
  margin-top: clamp(1rem, 1.5vw, 1.4rem);
  margin-bottom: 6px;
  color: #19a7ff;
  font-weight: 700;
}

.hero-introduction {
  width: min(100%, 750px);
  font-size: clamp(0.95rem, 1vw, 1rem);
  line-height: 1.8;
  text-align: justify;
  color: #eaf3fb;
  margin-bottom: 18px;
}

/* =====================================
   Career Journey Call To Action
===================================== */

.career-journey {
  width: min(100%, 750px);
  margin-bottom: 1rem;
  color: #dfeaf7;
  font-size: clamp(0.95rem, 1vw, 1rem);
  line-height: 1.6;
}

.career-journey-button {
  display: inline-block;
  margin-left: 0.35rem;
  color: #66b9ff;
  text-decoration: none;
  font-size: clamp(0.78rem, 0.85vw, 0.85rem);
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border: 2px solid #66b9ff;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(102, 185, 255, 0.35);

  white-space: nowrap;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.career-journey-button:hover {
  background-color: #66b9ff;
  color: #061224;
  transform: translateY(-1px);
}

/* =====================================
   Certification Highlights
===================================== */

.certification-highlights {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.certification-highlight {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  font-weight: 600;
}

.certification-highlight img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 768px) {
  body {
    background-size: cover;
    background-position: center top;
  }

  .site-header {
    gap: 0.7rem;
  }

  .home-logo {
    width: clamp(235px, 29vw, 340px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 2rem;
    width: min(94vw, 520px);
    margin: 0 auto 0.4rem;
    padding: 0.15rem 0;
    list-style: none;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: inline-block;
    font-size: 1rem;
    padding: 0.25rem 0.15rem;
  }

  /*
     Mobile navigation:
     prevent persistent touch-hover styling on mobile.
     The active page is controlled by the JavaScript in index.html.
  */
  .nav-links a:hover {
    color: #f5f9fc;
    border-color: transparent;
  }

  .nav-links a.active {
    color: #66b9ff;
    border-color: #66b9ff;
  }

  .hero-illustration {
    display: none;
  }

  .landing-page {
    display: block;
    min-height: auto;
    padding: 0.9rem 1.25rem 1.8rem;
  }

  .hero-content {
    position: static;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding-left: 0;
    margin-top: 0.6rem;
  }

  .hero-content h1 {
    font-size: 2.3rem;
    line-height: 1.15;
    margin-bottom: 25px;
  }

  .hero-content h1 span {
    white-space: normal;
  }

  .hero-specialisation {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    justify-items: center;
    margin-bottom: 28px;
  }

  .hero-icon {
    width: auto;
  }

  .hero-icon img {
    width: 42px;
    height: 42px;
  }

  .hero-icon span {
    font-size: 0.9rem;
  }

  .hero-content h2 {
    font-size: 2rem;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .hero-introduction {
    width: 100%;
    font-size: 1rem;
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }

  .career-journey {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .career-journey p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
  }

  .career-journey-button {
    font-size: 1rem;
  }

  .certification-highlights {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
  }

  .certification-highlight {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    text-align: left;
  }

  .certification-highlight img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  .certification-highlight span {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .buttons {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin: 40px 0;
  }

  .buttons a {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .work-progress {
    position: static;
    transform: none;
    width: 100%;
    max-width: 360px;
    margin: 25px auto 0;
    white-space: normal;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.6;
  }
}

/* ==========================================================
   TABLET / LAPTOP / 2K / 4K DESKTOP SCALING
   Preserve the same composition across desktop environments
   ========================================================== */

@media screen and (max-width: 1200px) {
  .site-header {
    width: min(100%, 960px);
  }

  .home-logo {
    width: clamp(240px, 19vw, 360px);
  }

  .hero-content {
    width: min(100%, 640px);
    padding-left: 0;
    margin-top: clamp(1.2rem, 2.2vw, 2rem);
  }

  .hero-content h1 {
    font-size: clamp(2rem, 2.8vw, 2.45rem);
  }

  .hero-specialisation {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
  }

  .hero-icons {
    gap: clamp(0.9rem, 1.4vw, 1.2rem);
  }

  .hero-icon img {
    width: clamp(2rem, 2.4vw, 2.4rem);
  }

  .hero-illustration {
    width: min(40vw, 560px);
  }

  .hero-introduction {
    width: min(100%, 640px);
  }
}

@media screen and (min-width: 1601px) {
  .landing-page {
    padding-top: clamp(2rem, 2.8vw, 3rem);
  }

  .hero-content {
    margin-top: clamp(-2.5rem, -1.5vw, -1rem);
  }

  .hero-illustration {
    width: min(38vw, 760px);
  }
}
