@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* Variables */
:root {
  --dark-primary: #080808;
  --dark-secondary: #262626;
  --light-primary: #fff;
  --light-secondary: #f2f2f2;
  --yellow: #ffcd42;
  --red: #ffcd42;
  /* kalo warna merah pake ini #ff004f */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --text-size-sm: 0.75rem;
  --text-size-base: 1rem;
  --text-size-md: 1.25rem;
  --text-size-lg: 1.5rem;
  --text-size-xl: 3rem;
}

[data-theme="dark"] {
  --dark-primary: #fff;
  --dark-secondary: #f2f2f2;
  --light-primary: #080808;
  --light-secondary: #262626;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

[data-theme="light"] {
  --dark-primary: #080808;
  --dark-secondary: #262626;
  --light-primary: #fff;
  --light-secondary: #f2f2f2;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

[data-theme="dark"] .navbar {
  color: white; /* Atur latar belakang navbar menjadi putih dalam mode "light" */
}

[data-theme="dark"] .nav-link {
  color: white; /* Atur warna teks link menjadi warna yang sesuai dalam mode "light" */
}

[data-theme="dark"] #home {
  color: white; /* Atur warna teks menjadi putih dalam mode "light" */
}
/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--dark-primary);
  color: var(--light-primary);
  transition: background-color 0.3s ease-in-out;
}

.container {
  padding: 0 1.25rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

.btn {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: var(--light-primary);
  font-weight: var(--font-medium);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--red);
  width: fit-content;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn:hover {
  background-color: var(--red);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 4.5rem;
  padding: 0 1.25rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* #header{
	background-image: url();
} */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-align: center;
}

.logo a {
  display: block;
  text-decoration: none;
  max-width: 5rem;
}

.logo a img {
  width: 100%;
  border-radius: 0.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-item {
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--light-primary);
  font-weight: var(--font-medium);
  font-size: var(--text-size-base);
}

.nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background-color: #ffcd42;
  margin-top: 0.1rem;
  transition: width 0.3s ease-in-out;
}

.nav-link:hover {
  color: #ffcd42;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 2rem;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 0.25rem;
  margin: 0.25rem auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--light-primary);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: none;
}

.theme-icon {
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
}

.theme-icon.light {
  display: none;
}

.theme-toggle:checked + label .theme-icon.light {
  display: inline-block;
}

.theme-toggle:checked + label .theme-icon.dark {
  display: none;
}

/* Home */

/* Home */

#home {
  height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  /* background-image: url(../assets/images/blue.jpg);  */
  background-position: center;
  background-repeat: no-repeat;
}

.home-bg {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100vh;
  z-index: -1;
}
.home-text {
  display: flex;
  max-width: 25rem;
  flex-direction: column;
}

.home-text h2 {
  font-size: var(--text-size-lg);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.home-text h1 {
  font-size: var(--text-size-xl);
  font-weight: var(--font-bold);
}

/* About */

.about-container,
.skill-container,
.experience-container,
.portfolio-container,
.certificate-container,
.contact-container,
.main-project-container,
.web-design-container {
  padding-bottom: 5rem;
  display: flex;
  width: 100%;
}

.about-content h2,
.skill-container h2,
.experience-container h2,
.portfolio-container h2,
.certificate-container h2,
.contact-container h2,
.web-design-container h2,
.mobile-design-container h2,
.other-projects-container h2 {
  font-size: var(--text-size-xl);
  font-weight: var(--font-bold);
}

.about-content,
.experience-container,
.skill-container,
.portfolio-container,
.certificate-container,
.contact-container,
.main-project-container,
.web-design-container,
.mobile-design-container,
.other-projects-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: justify;
}

.about-content p,
.experience-item p {
  font-weight: var(--font-normal);
}

.list-experience,
.list-skill,
.list-portfolio,
.list-web-design,
.list-mobile-design,
.list-other-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

.experience-item,
.skill-item,
.portfolio-item,
.web-design-item,
.mobile-design-item,
.other-projects-item {
  list-style: none;
  background-color: var(--dark-secondary);
  border-radius: 0.5rem;
}

.experience-item h3,
.skill-item h3 {
  font-size: var(--text-size-md);
  font-weight: var(--font-semibold);
}

.about-container {
  justify-content: center;
  flex-wrap: wrap;
  gap: 7.5rem;
}

.about-img {
  max-width: 25%;
  width: 100%;
  height: 18.75rem;
  /* background-color: var(--light-secondary); */
  border-radius: 50%;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-content {
  max-width: 60%;
  width: 100%;
}

.about-content p {
  font-size: var(--text-size-base);
}

.about-content .btn {
  margin-top: 1.5rem;
}

.experience-item {
  width: 100%;
  max-width: 30%;
  padding: 1.25rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.experience-item:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.experience-item h3 {
  margin-bottom: 0.5rem;
}

.experience-item h4 {
  font-size: var(--text-size-sm);
  font-weight: var(--font-medium);
  margin-bottom: 0.5rem;
}

.experience-item p {
  font-size: var(--text-size-sm);
}

.skill-item {
  width: 100%;
  max-width: 30%;
  padding: 1rem 1.5rem;
  text-align: center;
}

/* flip card */

.containerflip {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 15px;
  margin: 0 auto;
  padding: 15px;
}

.card {
  position: relative;
  width: 100%;
  height: 400px;
  background: #fff;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  color: #080808;
  font-size: smaller;
}

.card .face {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .face.face1 {
  box-sizing: border-box;
  padding: 20px;
}

.card .face.face1 h2 {
  margin: 0;
  padding: 0;
}

.card .face.face1 .content {
  font-size: 1.2em;
  margin: 0;
  padding: 0 0 1em 0;
  font-weight: 500;
  text-align: justify;
}

.card .face.face2 {
  background: #111;
  transition: 0.5s;
}

.card:nth-child(1) .face.face2 {
  /* background: linear-gradient(45deg, #3503ad, #f7308c); */
  background-color: #262626;
  border-radius: 15px;
}

.card:nth-child(2) .face.face2 {
  /* background: linear-gradient(45deg, #ccff00, #09afff); */
  border-radius: 15px;
  background: #262626;
}

.card:nth-child(3) .face.face2 {
  /* background: linear-gradient(45deg, #e91e63, #ffeb3b); */
  background: #262626;
  border-radius: 15px;
}

.card:hover .face.face2 {
  height: 60px;
  border-radius: 0 0 15px 15px;
}

.card .face.face2:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px 0 0 15px;
}

.card .face.face2 h2 {
  margin: 0;
  padding: 0;
  font-size: 10em;
  color: #fff;
  transition: 0.5s;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card:hover .face.face2 h2 {
  font-size: 2em;
}

/* Portfolio */

.portfolio-container .btn {
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  width: 100%;
  max-width: 22.5rem;
  height: 28.125rem;
  max-height: 28.125rem;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .text-layer {
  width: 100%;
  height: 0;
  border-radius: 0.5rem;
  background-color: var(--dark-secondary);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-direction: column;
  padding: 0 2.5rem;
  text-align: center;
  transition: height 0.3s ease-in-out;
  text-align: justify;
}

.portfolio-item:hover .text-layer {
  height: 100%;
}

.portfolio-item .text-layer h3 {
  font-size: var(--text-size-lg);
  font-weight: var(--font-semibold);
}

.portfolio-item .text-layer p {
  font-size: var(--text-size-base);
}

.portfolio-item .text-layer a {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  padding: 0.5rem;
  background-color: var(--red);
  text-decoration: none;
  color: var(--light-primary);
}

.portfolio-item .text-layer a ion-icon {
  font-size: 1.5rem;
}

/* Certificate */

.splide__slide {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splide__slide iframe {
  max-width: 31.25rem;
  width: 100%;
  height: 25rem;
  border-radius: 0.5rem;
  border: none;
}

/* Contact */

.contact-content {
  display: flex;
  justify-content: space-between;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item ion-icon {
  font-size: 2rem;
  color: var(--red);
}

.contact-item a {
  color: var(--light-primary);
  font-weight: var(--font-medium);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--red);
}

.social-media {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.social-media-item {
  list-style: none;
  max-width: 3rem;
  width: 100%;
}

.social-media-item a {
  display: block;
  color: var(--light-primary);
}

.social-media-item a ion-icon {
  font-size: 1.5rem;
}

.contact-form {
  max-width: 60%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form .form-input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.25rem;
  font-size: var(--text-size-base);
  color: var(--light-primary);
  background-color: var(--dark-secondary);
}

.contact-form textarea.form-input {
  resize: none;
  height: 10rem;
  font-family: "Montserrat", sans-serif;
}

.contact-form .form-input:focus {
  outline: none;
}

.contact-form .btn {
  margin: 0 auto;
  background-color: transparent;
}

.contact-form .btn:hover {
  background-color: var(--red);
}

/* Footer */

.footer {
  padding: 2rem 1.25rem;
  background-color: var(--dark-secondary);
}

.footer p {
  font-size: var(--text-size-sm);
  font-weight: var(--font-medium);
  text-align: center;
}

/* Page:portfolio.html */

.main-text {
  text-align: center;
  margin-bottom: 2rem;
}

.main-text h1 {
  font-size: var(--text-size-xl);
  font-weight: var(--font-bold);
}

.main-text p {
  font-size: var(--text-size-base);
}

.main-project-list {
  display: flex;
  background-color: var(--dark-secondary);
  border-radius: 1.25rem;
  justify-content: center;
  width: 90vw;
  max-width: 1200px;
  gap: 1.25rem;
  overflow: hidden;
  padding: 0.75rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.main-project-panel {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex: 0.25;
  position: relative;
  list-style: none;
  border-radius: 1.5rem;
  min-height: 70vh;

  cursor: pointer;
  color: var(--dark-primary);
  transition: all 0.5s ease-in-out;
}

.main-project-panel h3 {
  font-size: var(--text-size-lg);
  font-weight: var(--font-bold);
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.main-project-panel.active {
  flex: 5;
}

.main-project-panel.active h3 {
  opacity: 1;
}

.web-design-item {
  max-width: 50%;
  width: 100%;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem;
}

.web-design-item iframe,
.other-projects-item iframe {
  border-radius: 0.5rem;
  max-width: 100%;
  width: 100%;
  height: 25rem;
  border: none;
}

.web-design-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.web-design-text h3 {
  font-size: var(--text-size-lg);
  font-weight: var(--font-bold);
}

.web-design-text p {
  font-size: var(--text-size-base);
}

.web-design-text a {
  margin: 0 auto;
  font-weight: var(--font-medium);
}

.mobile-design-item {
  text-align: center;
  padding: 1.25rem;
}

.mobile-design-item img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
}

.mobile-design-item h3 {
  font-size: var(--text-size-lg);
  font-weight: var(--font-bold);
  margin-top: 1rem;
}

.other-projects-item {
  max-width: 50rem;
  width: 100%;
  height: 25rem;
}

/* styles.css  profile*/
.about-img {
  position: relative;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* tambahan buat text animasi  */
/* Membuat keyframes untuk animasi ketikan */
@keyframes typing {
  0% {
    width: 0;
  }
  25% {
    width: 0;
  }
  50% {
    width: 50%;
  }
  75% {
    width: 75%;
  }
  100% {
    width: 100%;
  }
}

/* Membuat keyframes untuk animasi nama "Rendy Vincent" */
@keyframes typing-name {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Media Queries */

@media screen and (max-width: 992px) {
  .about-img {
    max-width: 30%;
    width: 100%;
    height: 100%;
  }

  .about-content {
    max-width: 70%;
  }

  .about-content p {
    text-align: justify;
  }

  .list-experience,
  .list-skill,
  .list-portfolio {
    justify-content: center;
  }

  .experience-item,
  .skill-item,
  .portfolio-item {
    max-width: 35%;
  }

  .portfolio-item {
    height: 20rem;
    max-height: 20rem;
  }

  .portfolio-item .text-layer {
    border-radius: 0;
  }

  .portfolio-item .text-layer h3 {
    font-size: var(--text-size-md);
  }

  .portfolio-item .text-layer p {
    font-size: var(--text-size-sm);
  }

  .portfolio-item .text-layer a {
    width: 3rem;
    height: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-secondary);
  }

  .nav-menu {
    position: fixed;
    top: 4.5rem;
    right: -100%;
    width: 100%;
    max-width: 300px;
    flex-direction: column;
    align-items: center;
    background-color: var(--dark-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .home-text {
    max-width: 100%;
    text-align: center;
  }

  .about-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .about-img {
    max-width: 60%;
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .about-content {
    max-width: 100%;
  }

  .about-content p {
    text-align: justify;
  }

  .about-content .btn {
    margin: 0 auto;
  }

  .list-experience,
  .list-skill,
  .list-portfolio {
    justify-content: flex-start;
  }

  .experience-item,
  .skill-item,
  .portfolio-item {
    max-width: 100%;
    width: 100%;
  }

  .portfolio-item {
    height: 18.75rem;
    max-height: 18.75rem;
  }

  .portfolio-item .text-layer h3 {
    font-size: var(--text-size-md);
  }

  .portfolio-item .text-layer p {
    font-size: var(--text-size-sm);
  }

  .portfolio-item .text-layer a {
    width: 3rem;
    height: 3rem;
  }

  .contact-content {
    flex-direction: column;
    gap: 2.5rem;
  }

  .contact-info {
    gap: 1rem;
  }

  .contact-form {
    max-width: 100%;
    width: 100%;
  }

  .contact-form .form-input {
    padding: 1rem 1.5rem;
  }

  .contact-form textarea.form-input {
    height: 15rem;
  }

  .contact-form .btn {
    width: 100%;
  }

  .footer {
    padding: 2.5rem 0;
  }

  .footer p {
    font-size: var(--text-size-base);
  }

  .main-project-list {
    width: 100%;
  }

  .main-project-panel {
    flex: 0.5;
  }

  .main-project-panel h3 {
    font-size: var(--text-size-lg);
  }

  .web-design-item {
    max-width: 100%;
  }

  .web-design-item iframe,
  .other-projects-item iframe {
    height: 20rem;
  }

  .web-design-text h3 {
    font-size: var(--text-size-md);
  }

  .web-design-text p {
    font-size: var(--text-size-sm);
  }

  .web-design-text a {
    margin: 0 auto;
    font-weight: var(--font-medium);
  }

  .mobile-design-item {
    padding: 1rem;
  }

  .mobile-design-item h3 {
    font-size: var(--text-size-md);
  }

  .other-projects-item {
    max-width: 100%;
    height: 20rem;
  }
}

@media screen and (max-width: 576px) {
  section {
    padding: 2.5rem 0;
  }

  .home-text {
    max-width: 100%;
    text-align: center;
  }

  .home-text h2 {
    font-size: var(--text-size-md);
  }

  .about-container {
    gap: 1.5rem;
  }

  .about-img {
    max-width: 50%;
    width: 100%;
    height: 100%;
  }

  .about-content h2,
  .experience-container h2,
  .skill-container h2,
  .portfolio-container h2,
  .certificate-container h2,
  .contact-container h2 {
    font-size: var(--text-size-lg);
  }

  .list-experience,
  .list-skill,
  .list-portfolio {
    gap: 1.5rem;
  }

  .portfolio-item {
    height: 15rem;
    max-height: 15rem;
  }

  .portfolio-item .text-layer h3 {
    font-size: var(--text-size-md);
  }

  .portfolio-item .text-layer p {
    font-size: var(--text-size-sm);
  }

  .portfolio-item .text-layer a {
    width: 2.5rem;
    height: 2.5rem;
  }

  .contact-content {
    gap: 1.5rem;
  }

  .contact-form textarea.form-input {
    height: 15rem;
  }

  .footer p {
    font-size: var(--text-size-sm);
  }

  .web-design-item iframe,
  .other-projects-item iframe {
    height: 15rem;
  }

  .web-design-text h3 {
    font-size: var(--text-size-md);
  }

  .web-design-text p {
    font-size: var(--text-size-sm);
  }

  .web-design-text a {
    margin: 0 auto;
    font-weight: var(--font-medium);
  }

  .mobile-design-item {
    padding: 1rem;
  }

  .mobile-design-item h3 {
    font-size: var(--text-size-md);
  }

  .other-projects-item {
    max-width: 100%;
    height: 15rem;
  }
}
