
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a1f1f;
  color: #fcffff;
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  cursor: none;
}


#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
}


.slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.footer {
  margin-top: auto;
  padding: 1rem 0;
  color: #025f5f;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}

.source-link {
  color: #03696d;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.source-link:hover {
  color: #16867d;
}




.full-screen {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
  padding: 2rem;
}

.hero-content {
  max-width: 600px;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #0a555a;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

#subtitle {
  font-size: 1.2rem;
  color: #7a7e7a;
  margin-bottom: 1.5rem;
}

.nav-links a {
  color: #494949;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.nav-links a:hover {
  border-color: #494949;
}

/* Sections */
.slide {
  padding: 4rem 2rem;
  min-height: 100vh;
  background-color:transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide h2 {
  font-size: 2rem;
  color: #676967;
  margin-bottom: 1rem;
}

.skills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skills li {
  background: #4e4e4e;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 6px #53555333;
}

/* Project Card */
.project-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
}




.project-card h3 {
  margin-top: 0;
  color: #8e968e;
}

.project-card a {
  display: inline-block;
  margin-right: 1rem;
  margin-top: 0.5rem;
  color: #6d6d6d;
  text-decoration: none;
  border-bottom: 1px dashed #055569;
}

.project-card a:hover {
  color: #034e61;
  border-color: #044252;
}


.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.project-card {
  background-color: rgba(11, 72, 77, 0.95);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(66, 66, 66, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  width: 350px;   
  height: 350px;  
  font-size: 0.8rem;
}




.slider-container {
  height: 100vh;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}


.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(85, 85, 85, 0.4);
}

.project-image {
  width: 100%;
  height: 60%; /* top 60% */
  object-fit: contain;
  background-color: rgba;
  padding: 6px;
  box-sizing: border-box;
}

.project-body {
  height: 40%; /* bottom 40% */
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;   /* <== ALLOW scrolling down! */
  font-family: sans-serif;
  height: auto;
}


.project-title {
  font-size: 1rem;
  margin: 0;
  color: #5a635a;
}

.project-desc {
  font-size: 0.7rem;
  color: #c6c9c6;
  line-height: 1.1;
  flex-grow: 1;
  margin-top: 4px;
}

.project-tags span {
  font-size: 0.6rem;
  padding: 2px 6px;
  background: #577c81;
  border-radius: 5px;
}

.project-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 6px;
}

.project-links a {
  font-size: 0.7rem;
  padding: 4px 8px;
  text-decoration: none;
  background-color: #7a807a;
  color: #0b444e;
  border-radius: 4px;
  border: 1px dashed #08494b;
  transition: all 0.2s;
}

.project-links a:hover {
  background-color: #0f7272;
  border-style: solid;
  color: #fff;
}



.book-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(11, 72, 77, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(11, 72, 77, 0.95);
  max-width: 800px;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.book-cover {
  width: 150px;
  height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #094242;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.book-content {
  flex: 1;
  color: #6a8181;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.book-content h3 {
  margin: 0;
  color: #3c99a0;
}

.book-link {
  align-self: flex-start;
  background-color: #696e6e;
  color: #083746;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  border: 1px dashed #144b6b;
  font-weight: bold;
  transition: all 0.2s;
}

.book-link:hover {
  background-color: #0e5966;
  color: white;
  border-style: solid;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.icon-link {
  color: #1b8375;
  font-size: 2rem;
  transition: transform 0.3s, color 0.3s;
}

.icon-link:hover {
  transform: scale(1.2);
  color: #0af7ff;
}

#contact {
height: 100vh;
}

.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.book-card-square {
  width: 250px;
  height: 350px;
  background-color: rgba(11, 72, 77, 0.95);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(66, 66, 66, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 1rem;
  text-align: center;
}

.book-card-square:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(85, 85, 85, 0.4);
}

.book-card-square img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 2px solid #057f83;
}

.book-info h3 {
  color: #baffba;
  margin: 0.5rem 0 0.3rem;
  font-size: 1.1rem;
}

.book-info p {
  font-size: 0.8rem;
  color: #c6cfc6;
  flex-grow: 1;
  margin-bottom: 0.8rem;
}

.book-info a {
  display: inline-block;
  font-size: 0.75rem;
  padding: 6px 10px;
  background-color: #7a807a;
  color: #0b444e;
  border-radius: 4px;
  border: 1px dashed #08494b;
  text-decoration: none;
  transition: all 0.2s;
}

.book-info a:hover {
  background-color: #0f7272;
  color: #fff;
  border-style: solid;
}




.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}


.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #00ffff; 
  border-radius: 50%;
}


.cursor-ring {
  width: 32px;
  height: 32px;
  border: 2px solid #00ffff;
  border-radius: 50%;
  transition: top 0.12s ease, left 0.12s ease;
  opacity: 0.6;
}

.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80px;
  height: 40px;
  background: linear-gradient(145deg, #1e1e1e, #2c2c2c);
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3), inset 0 1px 4px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 0 12px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 18px;
  color: #ffc;
  z-index: 2;
  pointer-events: none;
}

.switch .ball {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 34px;
  height: 34px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.5);
  transition: transform 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

#theme-toggle {
  display: none;
}

#theme-toggle:checked + .switch .ball {
  transform: translateX(62px);
  background-color: #ffe680;
  box-shadow: 0 4px 12px rgba(255, 255, 0, 0.5);
}

body.light-mode .switch {
  background: linear-gradient(145deg, #d2d2d2, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode {
  background-color: #f4f4f4;
  color: #121212;
}

body.light-mode .slide {
  background-color: #ffffff20;
}

body.light-mode .project-card,
body.light-mode .book-card {
  background-color: #ffffffcc;
  color: #111;
}

body.light-mode .project-title,
body.light-mode .book-content h3 {
  color: #222;
}

body.light-mode .project-desc {
  color: #444;
}

body.light-mode .source-link {
  color: #1e4e4e;
}

.dot-nav {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.dot-nav .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #bbb;
  display: block;
  transition: background-color 0.3s ease;
}

.dot-nav .dot.active {
  background-color: #00ffff; /* Highlight color */
  box-shadow: 0 0 8px #00ffff;
}

.shooting-star-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10;
  padding: 12px 20px;
  font-size: 16px;
  background: #111;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}
.shooting-star-button:hover {
  background: #333;
}

.comet-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #16a599;
  color: rgb(39, 38, 38);
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s, color 0.3s;
}

body.light-mode .comet-btn {
  background: #ddd;
  color: #000;
}
