/* --- 1. VARIABLES (The Color Palette) --- */
:root {
  --bg-color: #0f172a; /* Deep Space Blue */
  --text-color: #f8fafc; /* Off White */
  --accent-scratch: #facc15; /* Electric Yellow */
  --accent-future: #3b82f6; /* Neon Blue */
  --accent-go: #22c55e; /* Bright Green */
  --card-bg: #1e293b; /* Lighter Blue for cards */
}

/* --- 2. GLOBAL STYLES --- */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Fredoka", sans-serif; /* Friendly font for reading */
}

h1,
h2,
h3,
.logo {
  font-family: "Courier Prime", monospace; /* Code font for titles */
}

/* --- 3. NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #334155;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-future);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* --- 4. HERO SECTION --- */
.hero {
  height: 80vh; /* 80% of the screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--accent-scratch);
}

/* --- 5. BUTTONS --- */
.btn-main {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background-color: var(--accent-go);
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.2s;
}

.btn-main:hover {
  transform: scale(1.1); /* Grows slightly when hovered */
  box-shadow: 0 0 15px var(--accent-go); /* Glow effect */
}

/* --- 6. SECTIONS & GRID --- */
section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  border-bottom: 2px dashed var(--text-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* The Grid for Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #334155;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px); /* Floats up when hovered */
  border-color: var(--accent-scratch);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-info {
  padding: 20px;
}

.btn-small {
  display: block;
  text-align: center;
  background-color: var(--accent-future);
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

/* --- 7. FUTURE AREA --- */
.construction-box {
  background: repeating-linear-gradient(
    45deg,
    #1e293b,
    #1e293b 10px,
    #334155 10px,
    #334155 20px
  );
  padding: 40px;
  text-align: center;
  border-radius: 15px;
  border: 2px solid var(--accent-future);
}

.loading-bar {
  width: 100%;
  height: 20px;
  background-color: #000;
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  width: 60%;
  height: 100%;
  background-color: var(--accent-future);
}

/* --- 8. FOOTER --- */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid #334155;
  opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* --- 9. LAB NOTES STYLING --- */
.notebook {
  margin: 2rem 0;
}

.note {
  padding: 2rem 0 !important;
  margin-bottom: 2rem !important;
  border-bottom: 3px dashed var(--accent-scratch) !important;
  position: relative;
}

.note:last-child {
  border-bottom: none !important;
}

.note:not(:last-child)::after {
  content: "• • •" !important;
  display: block !important;
  text-align: center !important;
  color: var(--accent-future) !important;
  font-size: 1.5rem !important;
  margin-top: 1.5rem !important;
  letter-spacing: 0.5rem !important;
}

.note h4 {
  color: var(--accent-scratch);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.note .tip {
  background-color: var(--card-bg);
  padding: 1rem;
  border-left: 4px solid var(--accent-go);
  border-radius: 8px;
  margin-top: 1rem;
}

.note .steps {
  margin: 1rem 0;
}

.note .steps ol {
  margin: 0.5rem 0;
  padding-left: 2rem;
}

.note .steps li {
  margin-bottom: 0.5rem;
}
