/* --- ROOT/GLOBAL STYLES --- */
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  /* Sets the purple GIF as a fixed background that doesn't scroll */
  background: url('assets/starrynight.gif') no-repeat center center fixed;
  background-size: cover;
  background-color: #111;
  /* Flexbox here centers the entire layout-container on the screen */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
}

/* --- THE MAIN LAYOUT --- */
.layout-container {
  display: flex;
  flex-direction: row; /* Puts sidebar and main box side-by-side */
  gap: 20px;           /* Spacing between the sidebar and main box */
  width: 90%;
  max-width: 1100px;
  padding: 20px;
}

/* Shared Glass Effect for all boxes */
.glass-box {
  background-color: rgba(220, 209, 209, 0.4); /* Semi-transparent grey/white */
  backdrop-filter: blur(8px);                 /* The "frosted glass" look */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Sidebar: Stacked vertically, takes up 1 unit of space */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Main Content: Takes up 2.5 units of space (making it larger) */
.main-content {
  flex: 2.5;
  min-height: 400px;
}

/* --- TEXT & HEADERS --- */
p, li {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

/* Specific styling for sidebar titles */
.sidebar h3 {
  font-family: system-ui, sans-serif;
  color: #000000;
  text-transform: uppercase;
  border-bottom: 2px solid #000000;
  margin-bottom: 10px;
  margin-top: 0;
}

/* Links inside the boxes */
a { 
  color: #000000; 
  font-weight: bold; 
  text-decoration: none; 
}
a:hover { 
  text-decoration: underline; 
}

/* --- THE WELCOME HEADER (NABLA) --- */
.header-container {
  display: flex;
  align-items: center;    /* Keeps GIFs and Text level with each other */
  justify-content: center; /* Centers the header group */
  gap: 20px;
  margin-bottom: 20px;
}

.header-container h1 {
  font-family: "Nabla", system-ui;
  font-variation-settings: "EDGZ" 100, "GRID" 0;
  text-transform: uppercase;
  font-size: 3.0rem; 
  margin: 0;
}

.header-gif {
  width: 60px;
  height: auto;
}

/* --- FUN STUFF (STICKERS & DIVIDERS) --- */
.sticker-grid {
  display: flex;
  flex-wrap: wrap; /* Allows stickers to wrap to a new line if too many */
  gap: 10px;
}

.sticker-grid img {
  width: 60px;
  height: auto; /* Fixed to 'auto' to prevent squishing */
}

.divider {
  display: block;
  width: 100%;       
  height: 30px;      
  object-fit: cover; /* Crops the GIF if needed to fill the horizontal space */
  margin: 20px 0;    
  pointer-events: none; 
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .layout-container {
    flex-direction: column; /* Stack sidebar and main content vertically */
  }
  .sidebar {
    order: 2; /* Put the sidebar below the main content on small screens */
  }
}

/* Styling for individual review sections */
.review-item {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.review-item h3 {
  font-family: system-ui, sans-serif;
  margin-bottom: 5px;
  color: #222;
}

/* Optional: style for a "Buy Now" button if you're feeling extra corporate */
.buy-button {
  display: inline-block;
  background: #00ff00;
  color: #000;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #000;
}

/* --- PROJECT PAGE STYLES --- */

/* The Grid for Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual Project Card */
.project-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  border-color: #000;
}

.project-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.project-info {
  padding: 10px;
}

.project-info h3 {
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  border: none; /* Removes the sidebar underline style */
}

.project-info p {
  font-size: 0.85rem;
  margin: 0;
}

.tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: bold;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
