/*background colors*/
:root {
  --bg: #080b18;
  --panel: #0d1023;
  --border: rgba(255, 255, 255, 0.07);
  --purple: #a020f0;
  --pink: #e020a0;
  --cyan: #20c8f0;
  --teal: #20e8b0;
  --blue: #2060f0;
  --text: #e8e8f8;
  --muted: #6070a0;
  --code-bg: #060912;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
  position: fixed;
  inset: 0;
  top: 65px;
  z-index: 10;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hidden {
  display: none !important;
}

/* ===== HOME SECTION ===== */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  .home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  background: var(--panel);
  border-radius: 20px;
  padding: 50px 80px;
  border: 1px solid rgba(160, 32, 240, 0.5);
  box-shadow: 
    0 0 20px rgba(160, 32, 240, 0.2),
    0 0 40px rgba(32, 200, 240, 0.1);
}
}

.home-badge {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(32, 200, 240, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(32, 200, 240, 0.08);
}

.home-title {
  font-family: 'Impact', sans-serif;
  font-size: 3.5rem;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.home-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.8;
}

.home-btn {
  margin-top: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid rgba(160, 32, 240, 0.4);
  background: rgba(160, 32, 240, 0.15);
  color: #d080ff;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.home-btn:hover {
  background: rgba(160, 32, 240, 0.3);
  box-shadow: 0 0 20px rgba(160, 32, 240, 0.3);
  transform: translateY(-2px);
}

/* ===== ABOUT SECTION ===== */
.about-card {
  display: flex;
  gap: 60px;
  align-items: center;
  max-width: 800px;
  width: 100%;
  background: var(--panel);
  border-radius: 20px;
  padding: 50px;
  border: 1px solid rgba(160, 32, 240, 0.5);
  box-shadow: 
    0 0 20px rgba(160, 32, 240, 0.2),
    0 0 40px rgba(32, 200, 240, 0.1);
}

.about-left {
  flex-shrink: 0;
}

.about-img-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, var(--purple), var(--pink), var(--cyan)) border-box;
  box-shadow: 0 0 30px rgba(160, 32, 240, 0.3);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-badge {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(224, 32, 160, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(224, 32, 160, 0.08);
  width: fit-content;
}

.about-name {
  font-size: 2.4rem;
  font-family: 'Courier New', monospace;
  color: var(--text);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-value {
  font-size: 0.9rem;
  color: var(--text);
}

.about-quote {
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-mark {
  font-size: 2rem;
  color: var(--cyan);
  line-height: 0.5;
  font-family: Georgia, serif;
}

.about-quote p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

.quote-source {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

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

/* body */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(160, 32, 240, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(32, 200, 240, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 50%, rgba(224, 32, 160, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

header {
  position: relative;
  z-index: 1;
  padding: 24px 36px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}



header h1 {
  flex: 1;
  font-family: 'Impact', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*layout*/

.layout {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 0;
}

.left-panel {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.output-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.code-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/*output box*/
.output-box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.output-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
}

#output {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--teal);
  white-space: pre-wrap;
  min-height: 60px;
}

/*code box*/
.code-box {
  flex: 1;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.code-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
}


#code {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--cyan);
  white-space: pre-wrap;
}



.right-panel {
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 4px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  color: var(--muted);
}

/* buttons */
.act-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-num {
  font-size: 0.6rem;
  min-width: 20px;
}

.act-btn:active {
  transform: translateX(0) scale(0.98);
}


.g1 .group-label {
  color: rgba(160, 32, 240, 0.7);
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.g1 .btn-num {
  color: rgba(160, 32, 240, 0.6);
}

.g1 .act-btn:hover {
  transform: translateX(-3px);
  background: rgba(160, 32, 240, 0.15);
  border-color: rgba(160, 32, 240, 0.4);
  box-shadow: 0 0 16px rgba(160, 32, 240, 0.2);
  color: #d080ff;
}


.g3 .group-label {
  color: rgba(32, 200, 240, 0.7);
}

.g3 .btn-num {
  color: rgba(32, 200, 240, 0.6);
}

.g3 .act-btn:hover {
  transform: translateX(-3px);
  background: rgba(32, 200, 240, 0.12);
  border-color: rgba(32, 200, 240, 0.4);
  box-shadow: 0 0 16px rgba(32, 200, 240, 0.18);
  color: #80e8ff;
}


.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}




/* Activity 10 - List items */
#list {
  margin-top: 10px;
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--teal);
  line-height: 2;
}

/* Activity 11 - Removable paragraph */
#removablePara {
  margin-top: 10px;
  color: #ff80d0;
  font-size: 0.8rem;
}

/* Activity 12 - Character counter input */
#charInput {
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #80e8ff;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  width: 100%;
  margin-top: 10px;
  outline: none;
  transition: border-color 0.2s;
}

#charInput:focus {
  border-color: rgba(32, 200, 240, 0.5);
}

#charCounter {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Activity 14 - Demo image */
#demoImage {
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  width: 70%;
  height: auto;
  object-fit: cover;
}

/* Activity 15 - To-Do list */
#todoList {
  margin-top: 10px;
  padding-left: 16px;
  font-size: 0.8rem;
  color: #d080ff;
  line-height: 2;


}

/* ===== GROUP 4 — Green ===== */
.g4 .group-label {
  color: rgba(32, 240, 160, 0.7);
}

.g4 .btn-num {
  color: rgba(32, 240, 160, 0.6);
}

.g4 .act-btn:hover {
  transform: translateX(-3px);
  background: rgba(32, 240, 160, 0.12);
  border-color: rgba(32, 240, 160, 0.4);
  box-shadow: 0 0 16px rgba(32, 240, 160, 0.18);
  color: #80ffcc;
}

/* ===== GRADE CALCULATOR ===== */
#gradeCalc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-row label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.calc-row input {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--teal);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.calc-row input:focus {
  border-color: rgba(32, 240, 160, 0.5);
}

.calc-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.calc-btns button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

#calcBtn {
  background: rgba(32, 240, 160, 0.15);
  color: #80ffcc;
  border: 1px solid rgba(32, 240, 160, 0.4);
}

#calcBtn:hover {
  background: rgba(32, 240, 160, 0.25);
}

#calcReset {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
}

#calcReset:hover {
  background: rgba(255,255,255,0.1);
}

#calcResult {
  font-size: 0.85rem;
  color: #80ffcc;
  margin-top: 6px;
  line-height: 1.8;
}


::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
