/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Shag-Lounge, sans-serif;
}

/* BACKGROUND GRADIENT */
body {
  min-height: 100vh;

  /* default gradient colors */
  --grad1: #c0392b;
  --grad2: #2c3e9e;
  --grad3: #e8d8b9;

  background: linear-gradient(135deg, var(--grad1), var(--grad2), var(--grad3));
  color: #222;
}

/* NAV BAR */
nav {
  width: 100%;
  padding: 18px 40px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

nav .logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ffe7c2;
}

/* HERO SECTION */
.hero{
  min-height: calc(100vh - 80px);
  height: auto;                   
  padding: 80px 24px 40px;         
  display: flex;
  flex-direction: column;
  justify-content: center;        
  align-items: center;
  text-align: center;
  gap: 18px;
}


.hero h1 {
  font-size: 60px;
  color: white;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: 32px;
  color: white;
  margin-bottom: 15px;
}

.hero p {
  font-size: 20px;
  color: #f5f5f5;
  margin-bottom: 30px;
}

/* BUTTONS */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 30px;
  background: white;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.milestone {
background: linear-gradient(45deg,gold,red);
  color:black;
  font-weight:bold;
  box-shadow:0 0 20px gold;
  padding: 14px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.milestone:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg,red,blue);
}

.btn:hover {
  transform: scale(1.05);
  background: #f1e1c8;
}

/* CONTENT SECTION */
.section {
  background: white;
  padding: 80px 40px;
  text-align: center;
}

.section h2 {
  margin-bottom: 20px;
  font-size: 36px;
}

.section p {
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
  color: #555;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
}
/* Modal overlay */
.modal-overlay{
  position: fixed;
  inset: 0;
  display: none;              /* hidden by default */
  place-items: center;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  padding: 20px;
}

/* Show state */
.modal-overlay.show{
  display: grid;
}

/* Modal card */
.modal-card{
  width: min(900px, 95vw);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

/* Video sizing */
.modal-card video{
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
.continue-toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(20,20,20,.85);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  z-index: 10000;
}

.continue-title{
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.continue-details{
  font-size: 13px;
  opacity: .9;
  margin-bottom: 10px;
}

.continue-actions{
  display: flex;
  gap: 10px;
}

.continue-btn, .dismiss-btn{
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.continue-btn{
  background: white;
  color: #222;
}

.dismiss-btn{
  background: rgba(255,255,255,.15);
  color: white;
}
.video-list{
  width: min(900px, 95vw);
  display: flex;
  flex-wrap: wrap;           /* lets buttons wrap to new lines */
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.video-list .btn{
  flex: 1 1 220px;           /* responsive button width */
  max-width: 280px;
}
.video-btn.watched{
  background: #dcdcdc;
  color: #444;
  opacity: 0.7;
  position: relative;
}

.video-btn.watched::after{
  content: "✓ Watched";
  font-size: 12px;
  margin-left: 8px;
  color: green;
}