/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ---------------- NAV ---------------- */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 36px;
  background: #111;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topnav .logo {
  color: #ffd700;
  font-weight: 700;
  font-size: 1.25rem;
}

.topnav ul {
  display: flex;
  list-style: none;
  gap: 14px;
}

.topnav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s;
}

.topnav ul li a:hover {
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  height: 100vh;
  background: url("portfolio-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.hero-text span {
  color: #ffd700;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: #e8dff6;
}

/* ---------------- HERO OPTIONS ---------------- */
.hero-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-options .option {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #ffd700;
  background: rgba(0, 0, 0, 0.35);
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.hero-options .option:hover {
  background: #ffd700;
  color: #111;
}

/* ---------------- BUTTON ---------------- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: #ffd700;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  margin-top: 6px;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-4px);
}

/* ---------------- SECTIONS ---------------- */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.container h2 {
  color: #ffd700;
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 14px;
}

/* ---------------- PROJECTS ---------------- */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 18px;
}

.card {
  background: rgba(50, 0, 80, 0.6);
  border: 2px solid violet;
  border-radius: 14px;
  padding: 18px;
  width: 280px;
  box-shadow: 0 0 20px rgba(238, 130, 238, 0.8);
  transition: 0.3s;
  text-align: center;
}

.card h3 {
  color: #ffccff;
  margin-bottom: 8px;
}

.card p {
  color: #ddd;
  margin-bottom: 12px;
}

.card a {
  background: violet;
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 38px rgba(255, 0, 255, 0.95);
}

/* ---------------- FOOTER ---------------- */
footer {
  background: #111;
  color: #fff;
  padding: 14px;
  text-align: center;
  margin-top: 36px;
}

/* ---------------- REVEAL ANIMATION ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Background canvas */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* që të mbetet prapa tekstit dhe kartave */
  background: black;
}
