* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #050b18;
  color: white;
  font-family: Arial, Tahoma, sans-serif;
  overflow-x: hidden;
}

#universe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 5%,
    rgba(3, 8, 20, .35) 65%,
    #030713 110%
  );
}

header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 25px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo span {
  color: #36cfff;
}

.menu {
  color: #70dfff;
  font-size: 27px;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100svh;
  padding: 130px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.eyebrow {
  color: #8bcfff;
  font-size: 11px;
  letter-spacing: 4px;
  margin-bottom: 25px;
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #35e4ff;
  border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 12px #35e4ff;
}

.hero h1 {
  font-size: clamp(30px, 8.5vw, 76px);
  font-weight: 900;
  letter-spacing: -2px;
  white-space: nowrap;
  text-shadow: 0 0 35px rgba(45, 183, 255, .25);
}

.hero h1 span {
  color: #54caff;
}

.hero h2 {
  margin-top: 12px;
  color: #b3d9ef;
  font-size: clamp(16px, 4vw, 25px);
  letter-spacing: 7px;
}

.hero p {
  max-width: 420px;
  color: #a9b9ce;
  line-height: 2;
  font-size: 15px;
  margin: 25px auto 30px;
}

button {
  border: 1px solid #48cfff;
  background: linear-gradient(120deg, #0876b9, #1246a2);
  color: white;
  border-radius: 40px;
  padding: 15px 35px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(30, 160, 255, .3);
  transition: .3s;
}

button:active {
  transform: scale(.95);
}

button span {
  margin-right: 15px;
}

.scroll {
  position: absolute;
  bottom: 25px;
  color: #8499b2;
  font-size: 12px;
}

.scroll span {
  display: block;
  width: 1px;
  height: 30px;
  background: #43caff;
  margin: 0 auto 10px;
}

.intro {
  min-height: 65vh;
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(180deg, transparent, #0a1930);
}

.intro > span {
  color: #49caff;
  letter-spacing: 3px;
  font-size: 11px;
}

.intro h2 {
  margin: 25px 0;
  font-size: 35px;
}

.intro h2 span {
  color: #49caff;
}

.intro p {
  color: #a9b9ce;
  line-height: 2;
}

@media (max-width: 480px) {
  .hero p {
    font-size: 14px;
    max-width: 310px;
  }
}

/* CHEMISTRY WORLD - MAIN PORTAL */
.portal {
  min-height: 100vh;
  padding: 100px 7% 45px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(16,105,180,.16), transparent 55%),
    linear-gradient(180deg, #071326, #050b18 75%);
  text-align: center;
}

.portal-head { max-width: 650px; margin: 0 auto 55px; }
.portal-tag {
  display: inline-block;
  color: #54caff;
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.portal-head h2 { font-size: clamp(30px, 7vw, 48px); margin-bottom: 15px; }
.portal-head h2 span { color: #54caff; }
.portal-head p { color: #a9b9ce; line-height: 2; font-size: 15px; }

.portal-label {
  color: #54caff;
  font-size: 10px;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.section-heading { font-size: clamp(23px, 5vw, 32px); margin-bottom: 30px; }

.category-grid {
  width: 100%;
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 190px;
  padding: 24px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  border: 1px solid rgba(75,190,255,.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15,39,69,.92), rgba(6,17,34,.96));
  color: white;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  transition: .25s ease;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: #42bfff;
  box-shadow: 0 12px 35px rgba(30,150,255,.15);
}
.category-icon { font-size: 30px; margin-bottom: 17px; }
.category-card strong { font-size: 16px; margin-bottom: 9px; }
.category-card small { color: #91a9c2; font-size: 12px; line-height: 1.8; }
.card-arrow { color: #54caff; font-size: 20px; margin-top: auto; padding-top: 12px; }

.content-view { max-width: 850px; margin: 0 auto; text-align: right; }
.back-button {
  padding: 11px 20px;
  margin-bottom: 25px;
  border-radius: 25px;
  font-size: 13px;
}
.content-placeholder {
  min-height: 350px;
  border: 1px solid rgba(75,190,255,.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(14,39,69,.8), rgba(5,15,30,.95));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 35px 20px;
}
.placeholder-icon { font-size: 55px; margin-bottom: 20px; }
.content-placeholder h3 { font-size: 30px; margin: 12px 0; }
.content-placeholder p { color: #a9b9ce; line-height: 2; }
.coming-soon {
  margin-top: 25px;
  padding: 10px 20px;
  border: 1px solid rgba(69,195,255,.35);
  border-radius: 30px;
  color: #65d1ff;
  font-size: 13px;
  background: rgba(20,115,180,.12);
}
.portal-footer {
  margin: 75px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(100,170,220,.13);
  color: #718ba7;
  font-size: 12px;
  line-height: 2;
}
.portal-footer span { color: #54caff; letter-spacing: 3px; }

@media (max-width: 760px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .category-card { min-height: 175px; padding: 18px 13px; }
  .category-card strong { font-size: 14px; }
  .category-card small { font-size: 11px; }
  .portal { padding: 85px 15px 35px; }
}
@media (max-width: 350px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* LESSON CONTENT */
#contentDetails {
  width: 100%;
  max-width: 760px;
  margin-top: 30px;
  text-align: right;
}
.lesson-block {
  padding: 22px;
  margin: 16px 0;
  border: 1px solid rgba(75,190,255,.18);
  border-radius: 16px;
  background: rgba(8,25,47,.75);
}
.lesson-block h4 {
  color: #62cfff;
  font-size: 19px;
  margin-bottom: 13px;
}
.lesson-block p {
  color: #c1d0df;
  font-size: 14px;
  line-height: 2.1;
  margin: 0;
}
.lesson-example {
  margin-top: 12px;
  padding: 13px 15px;
  border-right: 3px solid #43caff;
  border-radius: 8px;
  background: rgba(40,145,210,.09);
  color: #d5eaff;
  font-size: 13px;
  line-height: 2;
}
.lesson-video {
  padding: 28px 15px;
  text-align: center;
  border: 1px dashed rgba(75,190,255,.4);
  border-radius: 15px;
  background: rgba(10,40,70,.35);
  color: #91b9d8;
  line-height: 2;
}
.lesson-video span {
  display: block;
  font-size: 35px;
  margin-bottom: 10px;
}
.lesson-summary {
  border-color: rgba(54,220,190,.25);
  background: rgba(15,90,80,.12);
}
.lesson-summary h4 { color: #65e3c5; }
@media (max-width: 480px) {
  .lesson-block { padding: 17px; }
  .lesson-block h4 { font-size: 17px; }
  .lesson-block p { font-size: 13px; }
}
