body{
  margin:0;
  font-family:'Poppins', sans-serif;
  background:linear-gradient(135deg,#0b0f2a,#2b1e5a);
  color:white;
  transition:0.3s;
  min-height:100vh;
}

/* NAVBAR */
.navbar{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 32px;
  background:rgba(26,17,64,0.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.logo{
  font-family:'Press Start 2P', cursive;
  font-size:18px;
  display:flex;
  align-items:center;
  gap:6px;
  user-select:none;
}

.logo-code{
  color:#ff8a2a;
  text-shadow:
    0 0 6px rgba(255,138,42,0.7),
    0 0 16px rgba(255,138,42,0.4);
}

.logo-recall{
  color:#ff2e97;
  text-shadow:
    0 0 6px rgba(255,46,151,0.8),
    0 0 16px rgba(255,46,151,0.45);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:22px;
}

.nav-toggle{
  display:none;
  width:46px;
  height:46px;
  border:none;
  border-radius:14px;
  background:rgba(255,255,255,0.08);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  padding:0;
}

.nav-toggle span{
  width:20px;
  height:2px;
  background:#fff;
  border-radius:999px;
  display:block;
  transition:transform 0.25s ease, opacity 0.25s ease;
}

.nav-links a{
  color:white;
  text-decoration:none;
  opacity:0.85;
  font-size:15px;
  transition:0.25s ease;
}

.nav-links a:hover,
.nav-links a.active-link{
  color:#00e5ff;
  opacity:1;
}

.login-btn{
  border:none;
  border-radius:14px;
  padding:12px 20px;
  background:linear-gradient(135deg,#ff2e97,#ff4db8);
  color:white;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 0 16px rgba(255,46,151,0.28);
  transition:0.25s ease;
}

.login-btn:hover{
  transform:translateY(-2px) scale(1.03);
}

.navbar.mobile-open .nav-toggle span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.navbar.mobile-open .nav-toggle span:nth-child(2){
  opacity:0;
}

.navbar.mobile-open .nav-toggle span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* PAGE */
.subjects-page{
  width:min(1180px, 92%);
  margin:0 auto;
  padding:28px 0 60px;
  display:flex;
  flex-direction:column;
  gap:28px;
}

/* ANIMATION */
.fade-in{
  animation:fadeIn 0.8s ease;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* HERO */
.subjects-hero{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:24px;
  padding:32px 28px;
  backdrop-filter:blur(10px);
  box-shadow:0 0 20px rgba(255,0,150,0.12);
}

.hero-badge{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  font-size:13px;
  font-weight:600;
}

.subjects-hero h1{
  margin:12px 0 14px;
  font-size:clamp(34px, 5vw, 54px);
  line-height:1.1;
}

.subjects-hero p{
  margin:0;
  font-size:16px;
  line-height:1.75;
  opacity:0.92;
  max-width:860px;
}

/* SUBJECT GRID */
.subjects-grid-section{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}

.subject-card{
  background:#3a2575;
  border-radius:22px;
  padding:26px;
  transition:0.25s ease;
}

.hover-glow:hover{
  transform:translateY(-5px);
  box-shadow:0 0 20px #ff2e97;
}

.subject-icon{
  font-size:38px;
  margin-bottom:10px;
}

.subject-card h2{
  margin:0 0 12px;
  font-size:30px;
  line-height:1.2;
}

.subject-text{
  margin:0;
  font-size:15px;
  line-height:1.8;
  opacity:0.88;
}

.topic-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.topic-chip{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  font-size:13px;
  font-weight:600;
}

/* INFO SECTION */
.info-section{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.section-heading h2{
  margin:0 0 8px;
  font-size:28px;
}

.section-heading p{
  margin:0;
  opacity:0.8;
  font-size:14px;
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.info-card{
  background:#3a2575;
  border-radius:20px;
  padding:24px;
  transition:0.25s ease;
}

.info-icon{
  font-size:34px;
  margin-bottom:10px;
}

.info-card h3{
  margin:0 0 10px;
}

.info-card p{
  margin:0;
  font-size:14px;
  opacity:0.85;
  line-height:1.7;
}

/* CTA */
.cta-card{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:24px;
  padding:28px;
  text-align:center;
  backdrop-filter:blur(10px);
}

.cta-card h2{
  margin:0 0 10px;
  font-size:30px;
}

.cta-card p{
  margin:0;
  opacity:0.85;
  line-height:1.7;
}

.cta-buttons{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
}

.primary-btn,
.secondary-btn{
  border:none;
  border-radius:14px;
  padding:14px 22px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:0.25s ease;
}

.primary-btn{
  background:linear-gradient(135deg,#ff2e97,#ff4db8);
  color:white;
  box-shadow:0 0 16px rgba(255,46,151,0.28);
}

.secondary-btn{
  background:linear-gradient(135deg,#00e5ff,#00ffcc);
  color:#111;
}

.primary-btn:hover,
.secondary-btn:hover{
  transform:translateY(-2px) scale(1.02);
}

/* FOOTER */
.footer{
  background:#1a1140;
  border-top:1px solid rgba(255,255,255,0.08);
  padding:22px 20px;
  text-align:center;
  margin-top:10px;
}

.footer-content p{
  margin:0;
  opacity:0.76;
  font-size:14px;
}

/* THEME BUTTON */
.theme-toggle{
  position:fixed;
  bottom:20px;
  right:20px;
  width:56px;
  height:56px;
  border:none;
  border-radius:50%;
  cursor:pointer;
  font-size:20px;
  color:#000;
  background:linear-gradient(135deg,#00e5ff,#00ffcc);
  box-shadow:0 0 15px #00e5ff;
  transition:0.3s;
  z-index:1000;
}

.theme-toggle:hover{
  transform:scale(1.08) rotate(10deg);
}

/* LIGHT MODE */
body.light-mode{
  background:#f4f6fb;
  color:#222;
}

body.light-mode .navbar{
  background:rgba(255,255,255,0.92);
  border-bottom:1px solid rgba(0,0,0,0.08);
}

body.light-mode .nav-links a{
  color:#222;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active-link{
  color:#00a9c7;
}

body.light-mode .subjects-hero,
body.light-mode .cta-card,
body.light-mode .subject-card,
body.light-mode .info-card{
  background:white;
  color:#222;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

body.light-mode .hero-badge,
body.light-mode .topic-chip{
  background:#f3f4f8;
}

body.light-mode .footer{
  background:white;
  border-top:1px solid rgba(0,0,0,0.08);
}

body.light-mode .theme-toggle{
  background:linear-gradient(135deg,#ff2e97,#ff8c00);
  color:white;
}

body.light-mode .logo-code,
body.light-mode .logo-recall{
  text-shadow:none;
}

body.light-mode .nav-toggle{
  background:rgba(108,76,255,0.12);
}

body.light-mode .nav-toggle span{
  background:#26215f;
}

/* RESPONSIVE */
@media(max-width:950px){
  .subjects-grid-section,
  .info-grid{
    grid-template-columns:1fr;
  }

  .navbar{
    position:relative;
    align-items:center;
    gap:14px;
  }

  .logo{
    font-size:15px;
    flex:1;
    min-width:0;
  }

  .nav-toggle{
    display:inline-flex;
    flex-shrink:0;
  }

  .nav-links{
    position:absolute;
    top:calc(100% + 10px);
    left:18px;
    right:18px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:16px;
    border-radius:20px;
    background:rgba(26,17,64,0.96);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 16px 40px rgba(4, 7, 22, 0.28);
    backdrop-filter:blur(14px);
  }

  .navbar.mobile-open{
    overflow:visible;
  }

  .navbar.mobile-open .nav-links{
    display:flex;
  }

  .nav-links a{
    display:block;
    width:100%;
    padding:10px 4px;
    font-size:15px;
  }

  .login-btn{
    width:100%;
    margin-top:4px;
    padding:13px 18px;
    border-radius:14px;
  }

  body.light-mode .nav-links{
    background:rgba(255,255,255,0.97);
    border-color:rgba(108,76,255,0.12);
  }

  body.light-mode .nav-links a{
    color:#222;
  }

  body.light-mode .nav-links a:hover,
  body.light-mode .nav-links a.active-link{
    color:#00a9c7;
  }
}

@media(max-width:600px){
  .subjects-page{
    width:94%;
  }

  .logo{
    font-size:12px;
    line-height:1.5;
  }

  .cta-buttons{
    flex-direction:column;
    align-items:stretch;
  }

  .primary-btn,
  .secondary-btn{
    width:100%;
  }
}
