/* /* ==========================================================
   TechLab365 - About Page 
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: #eaf3fb;
  line-height: 1.8;
  background:
    linear-gradient(rgba(8, 21, 35, 0.6), rgba(8, 21, 35, 0.6)),
    url("../img/backgrounds/about-background.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: 700px auto;
  background-color: #081523;
}

/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  position: relative;
  width: min(100%, 1100px);
  margin: -0.4rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
}

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

.site-logo {
  position: static;
  display: block;
  width: clamp(235px, 29vw, 340px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  cursor: pointer;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.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.15rem 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;
}

/* ==========================================================
   HERO (Shared for Template + About)
   ========================================================== */

.page-hero {
  position: relative;
  margin-top: 0.9rem;
  padding: 0.8rem 1.25rem 1.2rem;
  text-align: center;
  background: linear-gradient(rgba(5, 15, 30, 0.88), rgba(5, 15, 30, 0.88));
  border-bottom: 2px solid #00a8ff;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  color: #f2f2f2;
  margin: 1.4rem 0 0.35rem;
  line-height: 1.15;
}

.hero-tagline {
  max-width: 1100px;
  margin: 0 auto;
  white-space: nowrap;
  text-align: center;
  color: #1ea7ff;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================
   PAGE CONTAINER
   ========================================================== */

.page-container {
  width: min(1100px, 92%);
  margin: 1.1rem auto 1.5rem;
}

/* ==========================================================
   CARDS (Shared)
   ========================================================== */

.card {
  background: #102235;
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: 16px;
  padding: 1.1rem 1.35rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card h2 {
  color: #00a8ff;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  border-bottom: 2px solid rgba(0, 168, 255, 0.25);
  padding-bottom: 0.45rem;
}

.card h3 {
  color: #1ea7ff;
  font-size: 1.35rem;
  margin: 1.4rem 0 0.7rem;
  font-weight: 700;
}

.card p {
  text-align: justify;
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.card ul {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
}

.card li {
  margin-bottom: 0.45rem;
}

/* ==========================================================
   ABOUT PAGE — ADDITIONAL COMPONENTS
   ========================================================== */

.welcome-container {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.profile-photo {
  width: clamp(150px, 22vw, 190px);
  border-radius: 18px;
  border: 3px solid #1ea7ff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.welcome-text {
  flex: 1;
}

.welcome-text p {
  margin: 0 0 0.7rem;
  line-height: 1.55;
  text-align: justify;
}

.skills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills li {
  background: #0b314d;
  border: 1px solid #00a8ff;
  color: #fff;
  border-radius: 30px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
}

/* ==========================================================
   CERTIFICATIONS & PROFESSIONAL DEVELOPMENT
   ========================================================== */

.certification-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.certification-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1rem;
  background: #0b314d;
  border: 1px solid rgba(0, 168, 255, 0.45);
  border-radius: 14px;
  text-align: left;
}

.certification-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

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

.certification-content {
  min-width: 0;
}

.certification-content h3 {
  margin: 0 0 0.45rem;
  color: #1ea7ff;
  font-size: 1.25rem;
}

.certification-content p {
  margin: 0 0 0.45rem;
  text-align: left;
  line-height: 1.55;
}

.certification-content p:last-child {
  margin-bottom: 0;
}

.certification-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem !important;
}

.certification-score strong {
  color: #ffffff;
}

.certification-score span {
  color: #66b9ff;
  font-weight: 700;
}

/* ==========================================================
   PAGE BUTTONS
   ========================================================== */

.page-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin: 1.15rem 0 0;
}

.page-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.85rem 1rem;
  border: 2px solid #00a8ff;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.page-buttons a:hover,
.page-buttons a:focus-visible,
.page-buttons a.active {
  background: #00a8ff;
}

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

@media (max-width: 768px) {
  /* Mobile navigation - always visible, two-column layout */
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    align-items: center;
    gap: 0.45rem 2rem;
    width: min(94vw, 520px);
    margin: 0 auto 0.4rem;
    padding: 0.15rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .nav-links li {
    display: flex;
    justify-content: center;
  }

  /* ----------------------------------------------------------
     MOBILE NAVIGATION
     Prevent persistent touch-hover states after Android
     Back/Forward navigation.
     ---------------------------------------------------------- */

  .nav-links a:hover {
    color: #f5f9fc;
    border-color: transparent;
  }

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

  .page-hero {
    padding: 0.75rem 1rem 1rem;
  }

  .page-hero h1 {
    font-size: 2.15rem;
  }

  .hero-tagline {
    white-space: normal;
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .page-container {
    width: 94%;
    margin: 1rem auto;
  }

  .card {
    padding: 1rem 1rem 1.1rem;
  }

  .welcome-container {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .profile-photo {
    width: min(70vw, 180px);
    height: auto;
  }

  .welcome-text p {
    font-size: 1.08rem;
    line-height: 1.85;
  }

  .certification-item {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.8rem;
  }

  .certification-logo {
    min-height: 90px;
  }

  .certification-item img {
    width: 90px;
    height: 90px;
  }

  .certification-content h3 {
    font-size: 1.15rem;
  }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media screen and (min-width: 769px) and (max-width: 1600px) and (hover: none) {
  .profile-photo {
    width: clamp(160px, 20vw, 200px);
  }

  .welcome-container {
    gap: 1.4rem;
  }

  .welcome-text p {
    line-height: 1.75;
  }
}

@media (max-width: 480px) {
  .certification-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .certification-logo {
    min-height: 85px;
  }

  .certification-content p,
  .certification-content h3 {
    text-align: center;
  }

  .certification-score {
    justify-content: center;
  }
}
