@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

/* ===== Color Theme ===== */
:root {
  --red: #c10202;
  --gray-dark: #111;
  --gray-mid: #333;
  --gray-light: #e5e5e5;
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--gray-dark);
  color: var(--gray-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Intro overlay ===== */
#intro {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
  overflow: hidden;
}

#unlv-text {
  font-size: 6rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  animation: fadeIn 2s forwards 0.5s;
}

#intro-text {
  position: relative;
  text-align: center;
  z-index: 5;
}

#unlv-text {
  font-size: 5rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  transition: opacity 1s ease;
}

#unlv-subtitle {
  font-size: 1.5rem;
  color: var(--gray-light);
  opacity: 0;
  transition: opacity 1s ease;
  margin-top: 1rem;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

canvas#binary-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  pointer-events: none;
}

/* Hide content until intro finishes */
.hidden { opacity: 0; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  border-bottom: 2px solid var(--red);
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Logo */
.logo {
  font-weight: 700;
  color: var(--gray-light);
  text-decoration: none;
}

.logo:hover {
  color: var(--red);
  cursor: pointer;
}

/* Navbar links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--red);
}

/* Responsive behavior */
@media (max-width: 850px) {
  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
    gap: 0.6rem 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

/* ===== Sections ===== */
.section {
  max-width: 900px;
  margin: 8rem auto 3rem;
  background: var(--gray-mid);
  padding: 2rem;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.section h1, .section h2 {
  color: var(--red);
}

.section p {
  line-height: 1.7;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray-light);
  border-top: 1px solid #444;
}

/* ===== Fade-in Effect ===== */
.fade-in {
  animation: contentFade 1.5s ease forwards;
}
@keyframes contentFade {
  to { opacity: 1; }
}

/* ===== Lab and Resource List Styling ===== */
.lab-list,
.resource-list {
  list-style: none;
  margin-left: 0;
  padding-left: 1.5rem;
}

.lab-list li,
.resource-list li {
  position: relative;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.lab-list li::before,
.resource-list li::before {
  content: "•";
  color: var(--red);
  position: absolute;
  left: -1rem;
  font-size: 1.4rem;
  line-height: 1;
}

/* ===== Improved Link Styling ===== */
.section a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.section a:hover {
  color: #ff4c4c;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

/* ===== Code and SSH Blocks ===== */
pre {
  background: #222;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  color: var(--gray-light);
  font-family: monospace;
  margin-top: 0.5rem;
}

code {
  background: #1c1c1c;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: #f8f8f8;
}

/* ===== Navbar Enhancement ===== */
.navbar {
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ===== Section Spacing ===== */
.section {
  margin: 6rem auto 3rem;
}

@media (max-width: 850px) {
  .section {
    margin: 5rem auto 2rem;
  }
}

/* ===== Section Header Highlight ===== */
.section h1, .section h2 {
  background: rgba(193, 2, 2, 0.15);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* ===== Back to Top Button ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: none;
  background: var(--red);
  color: white;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 200;
  transition: opacity 0.3s;
}
#backToTop.show { display: block; opacity: 0.9; }
#backToTop:hover { opacity: 1; }

/* ===== Background Gradient ===== */
body {
  background: linear-gradient(180deg, #0f0f0f 0%, #1b1b1b 100%);
  line-height: 1.75;
  color: #f1f1f1;
}

/* ===== Fade-in Animation for Sections ===== */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Consistent List Bullet Styling (fixed spacing) ===== */
.resource-list,
.useful-software {
  list-style: disc inside; /* ensures bullets align cleanly with text */
  margin: 0 0 1.5rem 1.5rem; /* proper indentation */
  padding: 0;
}

.resource-list li,
.useful-software li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #f1f1f1;
}

.resource-list li::before,
.useful-software li::before {
  content: none !important; /* disable custom red bullets */
}

/* Clean link styling */
.resource-list a,
.useful-software a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.resource-list a:hover,
.useful-software a:hover {
  color: #ff4c4c;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
/* CSS for Social Media Buttons */
.fa {
  padding: 20px;
  font-size: 100px;
  width: 25px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
  color: white;
}

.fa:hover {
    opacity: 0.7;
}
