:root {
  --bg-color: #f4f4f9;
  --text-color: #222;
  --accent-color: #ffce00;
  --dark-bg: #1e1e2f;
  --card-bg: #fff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --terminal-bg: #272c36;
  --terminal-text: #d0d0d0;
  --terminal-bar: #3e4451;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  /* background: url('../pexels-markusspiske-1089438.jpg') no-repeat center center fixed; */
  background-size: cover;
  background-color: #000022;
  color: var(--text-color);
  line-height: 1.6;
}

/* HERO SECTION */
header.hero {
  background: url('../photo-1550751827-4bd374c3f58b.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-content h1,
.hero-content p {
  color: #fff;
}

.hero-content h1 {
  font-size: 2.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.image-credit {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.9rem;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-credit a {
  color: #ffffff;
  text-decoration: underline;
}

.highlight {
  color: var(--accent-color);
}

/* MAIN CONTAINER BOX */
.main-box {
  max-width: 1100px;
  margin: 2rem auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* SECTIONS */
.section {
  padding: 2rem 1.5rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.section.dark {
  background-color: #2c2c3c;
  color: white;
  border-radius: 1rem;
  padding: 2rem;
}

/* PROJECT CARDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px var(--card-shadow);
  width: 300px;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.03);
}

/* SERVER STATUS */
#status-display {
  text-align: center;
  font-family: monospace;
  padding: 1rem;
}

/* TERMINAL */
.terminal {
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  border-radius: 8px;
  font-family: monospace;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.terminal-bar {
  background-color: var(--terminal-bar);
  padding: 0.5rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.terminal-body {
  padding: 1rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #eee;
  color: #555;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-radius: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .main-box {
    margin: 1rem;
    padding: 1.5rem;
  }
}
