/* Fonts & Colors */
@font-face {
  font-family: Lato-Regular;
  src: url(../fonts/Lato-Regular.ttf);
}
@font-face {
  font-family: Teko-Regular;
  src: url(../fonts/Teko-Regular.ttf);
}
@font-face {
  font-family: DancingScript-Bold;
  src: url(../fonts/DancingScript-Bold.ttf);
}

:root {
  --primary_color: #2d2c57;
  --secondary_color: #4a7bff;
  --tertiary_color: #4a90e2;
  --white: #fff;
  --vh: 1vh;
}

/* Elements */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #e2e2e2b5;
  font-size: 17px;
  font-family: "Lato-Regular", sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  transition: color 1s ease;
}

p {
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary_color);
  font-family: "Teko-Regular", sans-serif;
  letter-spacing: 2px;
}
ul {
  list-style: none;
}
.container {
  width: 1100px;
  margin: 0 auto;
}
.btn_center {
  margin: 0 auto;
}
.overlay {
  width: 100%;
  height: 100%;
  background-color: #00000040;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
}

/* Dark Mode */
.dark-mode {
  background: #1a1a1a;
  color: white;
}
.toggle-btn {
  cursor: pointer;
  padding: 10px 20px;
  background: #ddd;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}
/* SWITCH TOGGLE */
#nav_switch {
  padding: 7px 0 5px 0;
}
.ns_inner {
  display: flex;
  justify-content: right;
  width: 1100px;
  margin: 0 auto;
}
.switch {
  position: relative;
  width: 45px;
  height: 20px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary_color);
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  z-index: 2;
}

/* Sun/Moon icons */
.slider:after {
  content: "\f185";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 3px;
  top: 3px;
  font-size: 15px;
  color: var(--white);
  transition: all 0.4s;
}
input:checked + .slider {
  background-color: var(--white);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: var(--primary_color);
}
input:checked + .slider:after {
  content: "\f186"; /* FontAwesome moon */
  left: 5px;
  color: var(--primary_color);
}
/* Buttons */
.btn {
  display: block;
  width: max-content;
  min-width: 200px;
  background-color: #9e9e9e30;
  color: var(--primary_color);
  font-size: 20px;
  font-family: "Teko-Regular", sans-serif;
  letter-spacing: 2px;
  line-height: 1;
  padding: 10px 20px;
  text-transform: capitalize;
  text-align: center;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.btn:hover {
  background-color: var(--secondary_color);
  color: var(--primary_color);
  transform: translateY(-5px);
}
.btn_form {
  width: 100%;
  font-size: 15px;
  background-color: var(--primary_color);
  color: var(--white);
}
.btn_link {
  width: fit-content;
  min-width: -webkit-fill-available;
  min-width: max-content;
  font-size: 15px;
  background-color: var(--primary_color);
  color: var(--white);
  margin: 0 0 0 auto;
}

/* header */
header {
  width: 100%;
  height: 50px;
  position: absolute;
  z-index: 9999;
}
/* NAVBAR */
.navbar {
  width: 1100px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 120px;
  height: 50px;
  display: block;
}

/* Menu */
.menu-icon {
  background: none;
  color: var(--primary_color);
  position: relative;
  top: -24px;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.fa-minus.mi_1 {
  position: absolute;
  top: 0;
  right: 0;
}
.fa-minus.mi_2 {
  position: absolute;
  top: 9px;
  right: 0;
}
.fa-minus.mi_3 {
  position: absolute;
  top: 18px;
  right: 0;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
}
.side-menu.open {
  transform: translateX(0);
}

/* Close button */
.close-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  color: var(--primary_color);
  border: none;
  font-size: 33px;
  font-weight: 100;
  align-self: flex-end;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}
.close-btn:hover {
  transform: scale(1.2);
  color: var(--primary_color);
}
#sideMenu nav {
  display: flex;
  justify-content: center;
  text-align: center;
  height: 60%;
}

/* Menu items */
.side-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  align-items: center;
  gap: 5px;
}
.side-menu nav a {
  display: block;
  font-size: 24px;
  text-transform: capitalize;
  padding: 0;
  color: var(--primary_color);
}
.side-menu nav a:hover {
  color: var(--secondary_color);
}
.a_link {
  color: var(--primary_color);
  font-size: 20px;
  text-transform: capitalize;
}
.a_link:hover {
  color: var(--tertiary_color);
}
/* Footer in the menu */
.side-footer {
  display: grid;
  grid-gap: 5px;
}
.side-footer,
.side-footer a {
  font-size: 18px;
  color: #2c2c2c;
  margin-top: auto;
}
.side-footer a:hover {
  color: #9453ff;
}

.no-scroll {
  overflow: hidden;
}

/* Menu Responsive */
#menuToggle {
  display: none;
}
.desktop-menu ul {
  display: flex;
  grid-gap: 20px;
}
/* Divider */
.divider {
  display: block;
  width: 800px;
  height: 5px;
  background-color: #9e9e9e30;
  margin: 50px auto 0 auto;
}

/* Angkongs Sect*/
#angkong {
  width: 100%;
  height: 86vh;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}
.angkong_container {
  width: 65%;
  height: 100%;
  margin: 0 auto;
}
.hi_box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.hib_inner {
  position: relative;
  width: 750px;
  height: 400px;
  background-color: #b6bac8;
  border-radius: 20px;
}
.abtme {
  width: 500px;
  position: absolute;
  bottom: -13%;
  left: 25%;
  transform: translate(0%, 0%);
  transition: transform 0.3s ease;
}

.abtme span {
  display: none;
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translate(-50%, 0%);
  font-family: "DancingScript-Bold", sans-serif;
  font-size: 40px;
  color: var(--tertiary_color);
  text-transform: capitalize;
  width: 100%;
  text-align: center;
  text-shadow: 0 0 1px var(--tertiary_color);
}
.abtme:hover > span {
  display: block;
}
.abtme:hover span::after {
  opacity: 1;
}

.abtpoopie {
  width: 220px;
  position: absolute;
  top: 5%;
  left: -18px;
  transform: translate(0%, 0%);
  transition: transform 0.3s ease;
}
.abtpoopie span {
  display: none;
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translate(-50%, 0%);
  font-family: "DancingScript-Bold", sans-serif;
  font-size: 40px;
  color: var(--tertiary_color);
  text-transform: capitalize;
  width: 100%;
  text-align: center;
  text-shadow: 0 0 1px var(--tertiary_color);
}
.abtpoopie:hover > span {
  display: block;
}

.abtme:hover,
.abtpoopie:hover,
.abtproject:hover,
.abtcontact:hover {
  transform: translateY(-7px);
}

.abtproject {
  width: 250px;
  position: absolute;
  top: -19%;
  right: -52px;
  transform: translate(0%, 0%);
  transition: transform 0.3s ease;
}
.abtproject span {
  display: none;
  position: absolute;
  top: 30%;
  left: -110%;
  transform: translate(0%, 0%);
  font-family: "DancingScript-Bold", sans-serif;
  font-size: 40px;
  color: var(--tertiary_color);
  text-transform: capitalize;
  width: 100%;
  text-align: center;
  text-shadow: 0 0 1px var(--tertiary_color);
}
.abtproject:hover > span {
  display: block;
}
.abtcontact {
  width: 250px;
  position: absolute;
  bottom: -10%;
  left: -9%;
  transform: translate(0%, 0%);
  transition: transform 0.3s ease;
}
.abtcontact span {
  display: none;
  position: absolute;
  top: -25%;
  left: -53%;
  transform: translate(0%, 0%);
  font-family: "DancingScript-Bold", sans-serif;
  font-size: 40px;
  color: var(--tertiary_color);
  text-transform: capitalize;
  width: 100%;
  text-align: center;
  text-shadow: 0 0 1px var(--tertiary_color);
}
.abtcontact:hover > span {
  display: block;
}
.abtme img,
.abtpoopie img,
.abtproject img,
.abtcontact img {
  width: 100%;
}

/* About Me Sect */
#info {
  margin: 0 0 50px 0;
  padding-top: 100px;
}
.info_inner {
  width: 700px;
  height: 450px;
  position: relative;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;

  transition: transform 0.3s ease;
  box-shadow: 0 0 10px 0 #0000002e;
}
.info_inner:hover {
  transform: translateY(-5px);
}
.info_inner img,
.box_img img {
  width: 100%;
  object-fit: cover;
}
.info_inner img {
  height: 100%;
}
.box_img img {
  display: block;
  height: 300px;
}

.info_i {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.info_i h3 {
  font-size: 25px;
  color: var(--white);
  margin-bottom: 15px;
}
.info_i h4 {
  font-size: 20px;
  color: var(--white);
}

#about_text {
  margin: 40px 0 80px 0;
}

.about_inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about_inner h3 {
  font-size: 40px;
  color: var(--primary_color);
  margin-bottom: 20px;
  text-transform: capitalize;
}

.about_inner p {
  font-size: 20px;
  line-height: 1.6;
  color: #444;
}

/* Dark Mode */
.dark-mode #about_text p {
  color: #bbb;
}

/* Education Sect */
#education {
  margin: 50px 0;
  padding: 50px 0;
}
.two_box {
  display: flex;
  grid-gap: 80px;
}
.two_each {
  flex: 1;
}
.box_img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}
.title {
  margin-bottom: 40px;
}
.title h3 {
  font-size: 40px;
  text-transform: capitalize;
}
.te_inner {
  background-color: #9e9e9e30;
  padding: 20px;
  border-radius: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px 0 #0000002e;
}
.te_inner:hover {
  transform: translateY(-5px);
}
.te_inner h4,
.project_content h4 {
  font-size: 25px;
  margin-bottom: 10px;
}
.te_inner h5 {
  font-size: 22px;
}

/* Projects Sect */
#projects {
  margin: 50px 0;
  padding: 50px 0;
}

/* Experiences Sect */
#experiences {
  margin: 50px 0;
  padding: 50px 0;
}
.sec_box {
  display: grid;
  grid-gap: 80px;
  position: relative;
  padding-left: 30px;
}
.two_box2 {
  display: flex;
  grid-gap: 50px;
}

.two_each1 {
  flex: 1;
}
.two_each2 {
  flex: 4;
}
.liner {
  position: absolute;
  width: 3px;
  height: 100%;
  background-color: #9e9e9e30;
}
.ex_title h4 {
  font-size: 23px;
}
.ex_info h5 {
  font-size: 27px;
  margin-bottom: 10px;
}
.ex_info h6 {
  font-size: 18px;
  margin-bottom: 15px;
}
.tags {
  margin-top: 20px;
}
.tags ul {
  display: flex;
  grid-gap: 20px;
}
.tags ul li {
  background-color: var(--secondary_color);
  color: var(--primary_color);
  font-size: 17px;
  padding: 5px 15px;
  text-transform: capitalize;
  border-radius: 5px;
}

.achievements-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.achievements-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.achievements-list li::before {
  content: "⭐";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  color: #f9d342;
}


/* Contact Sect */
#contact {
  margin: 50px 0;
  padding: 50px 0;
}
.contact_box {
  width: 700px;
  height: auto;
  position: relative;
  margin: 0 auto;
  padding: 40px 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--primary_color);
}
.form_header {
  text-align: center;
  margin-bottom: 40px;
}
.form_header h5 {
  font-size: 40px;
  text-transform: capitalize;
  margin-bottom: 15px;
}
.form_header p {
  font-size: 20px;
}
.form_row {
  display: flex;
  grid-gap: 15px;
}
.form_col {
  display: grid;
  width: 100%;
}
.fb_inner {
  display: grid;
  grid-gap: 20px;
}
.form_col label {
  text-transform: capitalize;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary_color);
  margin-bottom: 5px;
}
.inp {
  padding: 10px;
  border-radius: 7px;
  background-color: #ededed;
  border: 1px solid #0000001a;
  position: relative;
}
.inpta {
  height: 90px;
}
.inp::placeholder {
  font-size: 10px;
  color: var(--primary_color);
  position: absolute;
  top: 5px;
  left: 15px;
}

/* Footer Sect */
footer {
  background-color: #ededed;
  padding: 50px 0;
  margin-top: 100px;
}
.footer_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fb_each2 ul {
  display: flex;
  grid-gap: 20px;
}
.fb_each1 {
  display: flex;
  align-items: center;
  grid-gap: 20px;
}
.fb_each1 h6 {
  font-size: 20px;
}
.logo_footer {
  width: 125px;
}
.fb_each2 ul li a {
  background-color: #cecece;
  color: var(--primary_color);
  padding: 5px 15px;
  border-radius: 3px;
}

/* Scroll Cards Stack */
.spacer {
  height: 120vh;
  display: block;
} /* to allow scrolling before the stack */

/* outer tall wrapper (4 viewports tall) */
.stack-viewport {
  position: relative;
  width: 92%;
  max-width: 900px;
  margin: 0 auto 100px auto;
  height: calc(var(--vh, 1vh) * 400); /* 4 * 100vh (mobile view) */
  background: transparent;
  border-radius: 10px;
}

/* the sticky stack that stays visible while viewport scrolls */
.stack {
  position: sticky;
  top: 10vh; /* leave space for top UI — mobile-safe because uses vh var */
  height: calc(var(--vh, 1vh) * 80); /* visible card area (~80vh) */
  width: 100%;
  margin: 0 auto;
  pointer-events: auto; /* must be clickable/touchable */
}

/* stacked cards */
.card {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(-40px) scale(0.98);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.45s ease,
    box-shadow 0.25s;
  box-shadow: 0 8px 30px rgba(20, 20, 40, 0.06);
  background: white;
  display: flex;
  align-items: stretch;
}

.card img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .info {
  padding: 28px;
  width: 50%;
  color: #222;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.card p {
  margin: 0 0 70px 0;
  line-height: 1.4;
  color: #555;
}

/* active card */
.card.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 50;
  box-shadow: 0 20px 50px rgba(20, 20, 40, 0.12);
}
.card:not(.is-active) {
  z-index: 10;
  opacity: 0.6;
}
.card_info {
  position: relative;
  height: 100%;
}
.card_info span {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: "Teko-Regular", sans-serif;
  font-size: 24px;
  color: var(--primary_color);
}

/* invisible markers (used by intersection observer) */
.stack-marker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* small footer spacer */
.after {
  height: 120vh;
}
/* FIX: ensure only active card is fully visible */
.stack .card {
  opacity: 0;
}

/* active card always full opacity */
.stack .card.is-active {
  opacity: 1 !important;
}

/* non-active cards always hidden */
.stack .card:not(.is-active) {
  opacity: 1 !important;
}

.card_info h5 {
  font-size: 35px;
  margin-bottom: 20px;
}
/* When the last card is active at the end, keep it visible */
/* .stack .card.is-last-active {
  opacity: 1 !important;
  position: relative !important;
  transform: none !important;
  z-index: 10 !important;
} */

/* basics for testing on small screens */
@media (max-width: 700px) {
  .card {
    flex-direction: column;
  }
  .card img {
    width: 100%;
    height: 27vh;
  }
  .card .info {
    width: 100%;
    height: 100%;
    padding: 15px;
  }
}

/* Dark Mode Colors */
.dark-mode p,
.dark-mode .title_pp p {
  color: #909090;
}
.dark-mode #nav_switch {
  padding: 7px 0 5px 0;
}
.dark-mode .a_link,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: var(--secondary_color);
}

.dark-mode .btn {
  background-color: var(--primary_color);
  color: var(--white);
}
.dark-mode footer {
  background-color: #242424;
  color: var(--primary_color);
}
.dark-mode .hib_inner,
.dark-mode .inp {
  background-color: #3a3a3a;
}
.dark-mode .stack .card {
  background-color: #1a1a1a;
  border: 3px solid var(--primary_color);
}
.dark-mode .side-menu {
  background: var(--primary_color);
}
.dark-mode .menu-icon,
.dark-mode .side-menu nav a,
.dark-mode .side-footer,
.dark-mode .side-footer a,
.dark-mode .close-btn,
.dark-mode .inp::placeholder,
.dark-mode footer p {
  color: var(--white);
}

/* Individual Project Page */
#page_content {
  margin-top: 150px;
}
.project_vid {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 100px;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px 0 #0000002e;
}
.project_vid:hover {
  transform: translateY(-5px);
}
.project_vid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 45px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.play-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}
.yt-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.yt-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pr_img_1,
.pr_img_2,
.pr_img_3 {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px 0 #0000002e;
}
.two_boxes {
  display: flex;
  grid-gap: 40px;
  margin-bottom: 80px;
}
.two_eachp {
  flex: 1;
}
.two_eachp div {
  display: grid;
  grid-gap: 40px;
}
.pr_img_1 {
  height: 400px;
}
.pr_img_2 {
  height: 400px;
}
.pr_img_3 {
  height: 840px;
}
.pr_img_1:hover,
.pr_img_2:hover,
.pr_img_3:hover {
  transform: translateY(-5px);
}
.title_project_page {
  text-align: center;
}
#form-message {
  margin-top: 10px;
  text-align: center;
  font-size: 20px;
  color: #4caf50;
}
.back-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.back-inline {
  font-size: 20px;
  font-family: "Teko-Regular", sans-serif;
  color: var(--primary_color);
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.3s ease;
}

.back-inline:hover {
  color: var(--tertiary_color);
}

/* Dark Mode */
.dark-mode .back-inline {
  color: var(--secondary_color);
}
.dark-mode .back-inline:hover {
  color: var(--tertiary_color);
}

/* Projects Page */
.title_pp h3 {
  text-align: center;
}
.title_pp p {
  font-size: 25px;
  color: var(--primary_color);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Filter Buttons */
#tagFilters {
  display: flex;
  justify-content: center;
  grid-gap: 5px;
  width: max-content;
  margin: 0 auto 70px auto;
  padding: 5px 10px;
  background-color: var(--primary_color);
  border-radius: 12px;
}
.tag-btn {
  background-color: #ffffff00;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  padding: 7px 16px;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: 0.3s;
}
.tag-btn.active {
  background: var(--white);
  color: var(--primary_color);
}

/* Cards layout */
.cards-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.project_card {
  width: 46%;
  overflow: hidden;
}

.project_content {
  padding: 15px;
  flex: 1;
}

.project_card p {
  margin: 0 0 12px;
}

.project_tags {
  padding: 10px 15px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #666;
}

/* Pagination */
#pagination {
  margin-top: 60px;
  text-align: center;
}
.page-btn {
  padding: 8px 14px;
  margin: 0 5px;
  border: none;
  background: #cecece;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.2s;
}
.page-btn.active {
  background: var(--primary_color);
  color: var(--white);
}
.two_eachp div h5 {
  font-size: 30px;
  text-transform: capitalize;
}
