/* Basic resets */
body, h1, p, a {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace; /* Terminal look */
  color: #fff;
}

body {
  background-color: #000; /* Dark background */
}

.container {
  width: 80%;
  margin: 0 auto;
  max-width: 1200px;
}

/* Header */
header {
  background-color: #000;
  color: #fff;
  padding: 20px 0;
  border-bottom: 2px solid #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__mark {
  font-size: 20px;
  margin-right: 8px;
  color: #ffffff;
  font-weight: bold;
}

.logo__text {
  font-size: 16px;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  position: relative;
}

.logo__cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: #ffffff;
  margin-left: 1px;
  animation: blink 1s step-start infinite;
  position: relative;
  right: -12px;
  top: 0.1em;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}


/* Navigation menu */
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu li {
  margin-left: 20px;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.menu a:hover {
  text-decoration: underline;
}

/* Main content */
main {
  text-align: center;
  padding: 60px 0;
}

/* Portrait section */
.portrait-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px auto;
  width: 200px;
  height: 200px;
  position: relative;
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.portrait {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.6s ease-in-out;
}

/* Show front by default */
.front {
  opacity: 1;
  z-index: 2;
}

/* Hide back until hover */
.back {
  opacity: 0;
  z-index: 1;
}

/* Hover fade effect */
.portrait-wrapper:hover .front {
  opacity: 0;
}

.portrait-wrapper:hover .back {
  opacity: 1;
}

/* Typography */
h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: bold;
}

p {
  font-size: 24px;
  color: #ccc;
}

/* Social links */
.social-links {
  margin-top: 20px;
}

.social-links a {
  margin: 0 10px;
  color: #ffffff;
  text-decoration: none;
}

.social-links svg {
  vertical-align: middle;
}

/* Badge section */
.badge-container {
  position: relative;
  width: 190%;
  height: 50%;
  margin-top: 20px;
}

.badge {
  position: relative;
  display: block;
  margin: 10px auto;
  width: 300px;
  height: auto;
}

/* Labs grid */
.lab-card-upper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.lab-card-upper img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.lab-card-upper:hover {
  transform: scale(1.02);
}

/* Lower Section Cards - Original format */
.lab-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
  aspect-ratio: 5 / 3;
  background: #000;
}

.lab-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.lab-card:hover {
  transform: scale(1.02);
}


/* Caption (bottom trail) */
.lab-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 16px;
  padding: 10px;
  text-align: center;
  border-radius: 0 0 12px 12px;
}

/* Footer */
footer {
  background-color: #000;
  color: #ffffff;
  padding: 10px 0;
  text-align: center;
  border-top: 2px solid #333;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.5);
}

.difficulty-hard {
  color: red;
  font-weight: bold;
}

.difficulty-medium {
  color: orange;
  font-weight: bold;
}

.difficulty-easy {
  color: limegreen;
  font-weight: bold;
}


/*-------------------------------------------------------------------------------------------------------------*/


.dock {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 15px;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 20px;
  width: fit-content;
  margin: 40px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  overflow: visible;
}

/* Thin static light border along the edges */
.dock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;       /* match dock corners */
  border: 2px solid lime;    /* thin line around edges */
  box-shadow: 0 0 8px lime;  /* subtle neon glow */
  pointer-events: none;
  z-index: 1;
  background: transparent;    /* ensure center stays transparent */
}

.dock a svg {
  transition: transform 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.dock a:hover svg {
  transform: translateY(-12px) scale(1.3);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}


/*-------------------------------------------------------------------------------------------------------------*/


/* Terminal-style logo */
.logo-terminal {
    display: flex;
    align-items: center;
    font-family: 'Menlo', 'Courier New', monospace;
    font-size: 16px;
    position: relative; /* needed for overlay */
    cursor: default;
}

/* macOS-style prompt arrow */
.terminal-arrow {
    color: #00ff00; /* green like mac terminal */
    font-weight: bold;
    margin-right: 6px;
}

/* Command path */
.terminal-path {
    color: #ffffff;
}

/* Blinking cursor */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: #ffffff;
    margin-left: 2px;
    animation: blink 1s step-start infinite;
}

/* Blinking animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hidden clickable overlay for the terminal prompt */
.terminal-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;           /* above text but below menu */
    background: transparent;
    cursor: pointer;
}

/* Navigation menu */
.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}


/*-------------------------------------------------------------------------------------------------------------*/

/* Green neon border around lab PNGs */
.lab-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;       /* match .lab-card corners */
  border: 2px solid lime;    /* thin lime border */
  box-shadow: 0 0 8px lime;  /* subtle neon glow */
  pointer-events: none;      /* allow clicks through */
  z-index: 2;                /* sit above the image */
}



/*-------------------------------------------------------------------------------------------------------------*/

/* Back to Top — Clean Neon Lime Square (No Pulse) */
.back-to-top-btn {
  position: fixed;
  bottom: 75px;
  right: 30px;
  width: 38px;
  height: 38px;
  border-radius: 5px; /* slight rounding for smooth neon edges */
  border: 2px solid lime;
  background: rgba(0, 255, 0, 0.05);
  box-shadow:
    0 0 6px lime,
    inset 0 0 4px lime;
  color: #ffffff; /* white caret glyph */
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1000;
}

/* Hover — brighter neon */
@media (hover: hover) {
  .back-to-top-btn:hover {
    transform: scale(1.1);
    box-shadow:
      0 0 12px lime,
      inset 0 0 6px lime;
  }
}

/* Show when scrolled down */
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .back-to-top-btn {
    width: 34px;
    height: 34px;
    bottom: 65px;
    right: 20px;
    font-size: 16px;
  }
}



/*-------------------------------------------------------------------------------------------------------------*/



/* ==========================================
   Labs Platform Section — Unified Styling
   ========================================== */

.labs-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000;
  padding: 25px 0; /* increased spacing for visual balance */
}

.labs-platform {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px; /* space between logo and labs grid */
}

.labs-logo {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Unified hover glow (matches your theme) */
.labs-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.6));
}

/* Grid spacing refinement (keeps your cards neat) */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

/* Visual separator between platform groups */
.labs-section:not(:last-of-type)::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 255, 0.3), transparent);
  margin-top: 80px;
}







