/* =============================================
   CET138 ePortfolio - style.css
   Samika Paudel
   ============================================= */

/* ---- Base ---- */
* {
  box-sizing: border-box;
}

body {
  background-color: #050505;
  color: rgb(166, 165, 165);
  font-family: 'Poppins', Arial, sans-serif;
  padding-top: 70px;
  scroll-behavior: smooth;
  line-height: 1.7;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

h1 {
  color: white;
  margin-top: 20px;
}

h5 {
  color: rgb(9, 141, 9);
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

h6 {
  color: rgb(166, 165, 165);
  font-size: 0.95rem;
}

code {
  color: #39ff88;
  background: #111;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ---- Section Layout ---- */
.section-padding {
  padding: 80px 0;
}

.section-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-intro {
  color: rgb(166, 165, 165);
  max-width: 820px;
  margin-bottom: 10px;
  font-size: 0.97rem;
}

/* Alternate section background */
.bg-section {
  background-color: #0a0a0a;
}

/* ---- Navbar ---- */
.navbar-brand {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-link:hover {
  color: rgb(9, 141, 9) !important;
}

/* ---- Hero ---- */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('background.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero-section h1 span {
  color: rgb(69, 148, 59);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  display: inline-block;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

/* ---- Cards ---- */
.card {
  background-color: rgb(20, 20, 45);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 25px 28px;
  margin-top: 0;
  color: rgb(166, 165, 165);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #3a3a5a;
}

/* Card container for 3-column layout */
.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card-container .card {
  flex: 1 1 280px;
}

/* ---- Tech Tags ---- */
.tech-list {
  margin-top: 14px;
}

.tech-list span {
  border: 1px solid #444;
  padding: 7px 16px;
  margin: 5px 5px 5px 0;
  border-radius: 6px;
  display: inline-block;
  background: #111;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.tech-list span:hover {
  background: #2a7a4f;
  color: white;
  border-color: #2a7a4f;
}

/* ---- Flow Box ---- */
.flow-box {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-left: 4px solid #39ff88;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 18px;
}

.flow-box p {
  color: #c8ffe0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
}

/* ---- Feature List ---- */
.feature-list {
  padding-left: 18px;
  margin-top: 6px;
}

.feature-list li {
  margin-bottom: 5px;
  font-size: 0.93rem;
}

/* ---- Small Note ---- */
.small-note {
  font-size: 0.85rem;
  color: rgb(130, 130, 130);
  margin-bottom: 12px;
}

/* ---- Form Controls ---- */
.form-control,
.form-select {
  background-color: #111;
  border: 1px solid #333;
  color: rgb(200, 200, 200);
  font-size: 0.9rem;
}

.form-control::placeholder {
  color: #555;
}

.form-control:focus,
.form-select:focus {
  background-color: #111;
  border-color: #39ff88;
  color: rgb(200, 200, 200);
  box-shadow: 0 0 0 2px rgba(57, 255, 136, 0.15);
}

.form-select option {
  background-color: #111;
  color: rgb(200, 200, 200);
}

.form-label {
  color: rgb(180, 180, 180);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* ---- Tables ---- */
.demo-table {
  color: rgb(166, 165, 165);
  font-size: 0.9rem;
  border-color: #2a2a2a;
}

.demo-table thead th {
  background-color: rgb(20, 20, 45);
  color: rgb(9, 141, 9);
  border-color: #2a2a2a;
  font-weight: 600;
}

.demo-table tbody tr {
  border-color: #1e1e1e;
}

.demo-table tbody tr:hover {
  background-color: rgba(57, 255, 136, 0.04);
}

.demo-table td, .demo-table th {
  padding: 10px 14px;
  vertical-align: middle;
}

/* ---- Code Block ---- */
.code-block {
  background: #0d0d0d;
  border: 1px solid #222;
  border-left: 4px solid #39ff88;
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  color: #c8ffe0;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- CSS Demo Box ---- */
.animation-box {
  width: 100%;
  max-width: 220px;
  height: 120px;
  background-color: #0d6efd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.35s ease, transform 0.35s ease;
  cursor: default;
}

.animation-box:hover {
  background-color: #198754;
  transform: scale(1.06);
}

/* ---- Bootstrap Grid Demo ---- */
.bs-grid-demo {
  display: flex;
  gap: 6px;
}

.bs-col {
  flex: 1;
  background: #111;
  border: 1px solid #39ff88;
  border-radius: 5px;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.75rem;
  color: #39ff88;
  font-family: monospace;
}

.bs-col-wide {
  flex: 2;
}

/* ---- Counter ---- */
.counter-box {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  margin-top: 14px;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgb(9, 141, 9);
  margin: 0;
  line-height: 1;
}

/* ---- Greeting Output ---- */
.greeting-output {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-left: 4px solid #39ff88;
  border-radius: 8px;
  padding: 12px 16px;
  color: #c8ffe0;
  font-size: 1rem;
  font-weight: 600;
}

/* ---- Alert overrides ---- */
.alert {
  font-size: 0.88rem;
  border-radius: 6px;
}

/* ---- Footer ---- */
.footer {
  background-color: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 30px 0;
  color: rgb(120, 120, 120);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: rgb(90, 90, 90);
  margin: 4px 0 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }

  .hero-section h1 {
    font-size: 1.9rem;
  }

  .hero-section h1 span {
    font-size: 2rem;
  }

  .card-container {
    flex-direction: column;
  }

  .card {
    padding: 20px;
  }

  .section-padding {
    padding: 55px 0;
  }

  .counter-number {
    font-size: 2.2rem;
  }
}
