/* =========================
   Base
   ========================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #f0f0f0;
}

header {
  background: #181818;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #222;
}

nav a {
  margin: 0 10px;
  color: #ccc;
  text-decoration: none;
}

nav a:hover {
  color: white;
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* =========================
   Homepage Hero
   ========================= */

.hero {
  position: relative;
  padding: 120px 20px 140px 20px;
  min-height: 70vh;
  text-align: center;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 30px;
  color: #ccc;
}

/* Hero Button */

.btn-primary {
  padding: 12px 24px;
  background: #2b6cb0;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: #3c82d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* =========================
   Hero Highlight Cards
   ========================= */

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.highlight-card {
  background: rgba(28, 28, 28, 0.9);
  padding: 20px;
  width: 260px;
  border-radius: 8px;
  border: 1px solid #222;
  backdrop-filter: blur(6px);
  text-align: center;
  transition: 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: #333;
}

/* =========================
   Portfolio Page
   ========================= */

.intro {
  text-align: center;
  margin-bottom: 30px;
}

#filters {
  text-align: center;
  margin-bottom: 30px;
}

#filters button {
  margin: 5px;
  padding: 8px 16px;
  background: #222;
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
}

#filters button:hover {
  background: #333;
}

/* Responsive Grid Layout */

#portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* =========================
   Cards
   ========================= */

.card {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #222;
  transition: 0.2s ease;
  text-align: left;
}

.card:hover {
  border-color: #333;
  transform: translateY(-3px);
}

.card h3 {
  margin-top: 0;
}

.meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

/* Card Image (below description) */

.card-image {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-top: 15px;
  opacity: 0.9;
  transition: 0.2s ease;
}

.card-image:hover {
  opacity: 1;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: #777;
  border-top: 1px solid #222;
  margin-top: 60px;
}

/* =========================
   Crosshair
   ========================= */

#crosshair {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}
