/* ===============================
   GLOBAL RESET & BASE
==================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a0a0a, #111 60%, #0d1e25);
  color: #00ff99;
  font-family: "Fira Code", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ===============================
   TERMINAL WINDOW
==================================*/
.terminal {
  background-color: #111;
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Window Bar */
.window-bar {
  background-color: #222;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
}

.dot {
  height: 14px;
  width: 14px;
  border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

/* ===============================
   TERMINAL CONTENT
==================================*/
.terminal-content {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cmd {
  color: #4fc3f7;
  margin: 14px 0 10px;
  text-align: center;
}

h1 {
  color: #fff;
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #bbb;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: center;
}

.about {
  color: #d8fbe2;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 700px;
  text-align: center;
  margin-bottom: 1.3rem;
}

.output {
  color: #aef7c1;
  margin-top: 0.8rem;
  font-style: italic;
  text-align: center;
}

.highlight { color: #00ff99; font-weight: 600; }
.blue { color: #4fc3f7; }

/* ===============================
   NAVIGATION BAR
==================================*/
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2rem 0;
}

.nav span {
  background-color: #062f26;
  border: 1px solid #00ff99;
  padding: 8px 16px;
  border-radius: 8px;
  color: #00ff99;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.nav span.active,
.nav span:hover {
  background-color: #00ff99;
  color: #0d0d0d;
}

/* ===============================
   PAGE VISIBILITY ANIMATION
==================================*/
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}
.page.active {
  display: block;
}

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

/* ===============================
   SKILLS SECTION
==================================*/
.skills-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2rem 0 2.5rem 0;
}

.skills-nav .tab {
  background-color: #1b1f24;
  border: 1px solid #2b2f33;
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.skills-nav .tab.active,
.skills-nav .tab:hover {
  background-color: #00ff99;
  color: #0d0d0d;
}

.skills-group {
  display: none;
  text-align: center;
}
.skills-group.active {
  display: block;
}

.skills-group h3 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.bubble-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.bubble-container span {
  background-color: #152028;
  border: 1px solid #2b2f33;
  color: #cbd5e1;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.95rem;
  transition: 0.2s;
}

.bubble-container span:hover {
  background-color: #00ff99;
  color: #0d0d0d;
}

/* ===============================
   PROJECTS SECTION
==================================*/
.section-title {
  font-size: 2rem;
  color: #00ff99;
  margin-bottom: 2rem;
  border-bottom: 1px solid #00ff99;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.project-card {
  background-color: #151515;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 150, 0.15);
}

.project-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.project-title {
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.project-status {
  color: #ffbd2e;
  font-weight: 600;
  font-size: 1rem;
}

.project-description {
  color: #d8fbe2;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  text-align: center;
}

.stack {
  margin-bottom: 2rem;
}

.stack-title {
  color: #4fc3f7;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}

.stack-list {
  color: #b8f8ca;
  list-style-type: square;
  margin-left: 2rem;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.project-details {
  color: #aef7c1;
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: center;
}

.project-card strong {
  color: #00ff99;
}

/* ===============================
   BOOKS SECTION
==================================*/
.book-card {
  background-color: #151515;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 150, 0.15);
}

.book-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.book-title {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.book-author {
  color: #4fc3f7;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.book-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: center;
}

.book-cover {
  width: 160px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #2b2f33;
  box-shadow: 0 0 10px rgba(0, 255, 150, 0.08);
  flex-shrink: 0;
}

.book-description {
  color: #c8f5d8;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 700px;
}

/* ===============================
   RESPONSIVE DESIGN
==================================*/
@media (max-width: 768px) {
  .terminal {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .terminal-content {
    padding: 18px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .about {
    font-size: 0.95rem;
  }

  .nav span {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .skills-nav .tab {
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .book-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 220px;
    margin-bottom: 1rem;
  }

  .book-title {
    font-size: 1.4rem;
  }

  .book-description {
    font-size: 0.95rem;
  }
}
