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

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);
  --red-color: #d40700;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);

}


body::-webkit-scrollbar {
  display: none;
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fbbb4d;
  transition: background-color 0.4s ease;
  z-index: var(--z-fixed);
}

.header.navscroll {
  background: transparent;
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  background: transparent;
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--red-color);
  
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

span{
  color: var(--red-color);
}


.content{
  height: 50vw;
  padding: 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  justify-content: space-evenly;
}

.content .right img{
  margin-left: 450px;
  transition: 0.3s ease;
}

p, h2, h1{
  margin: 12px 0px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

h1 {
  font-size: 45px;
}

h3 {
  font-size: 40px;
}


.a-main {
  text-decoration: none;
  color: var(--white-color);
  background: rgb(234, 33, 2);
  padding: 10px 20px;
  border-radius: 7px;
  margin-top: 40px;
  transition: background 0.5s ease, color 0.4s ease, border 0.4s ease;
}


.a-main:hover {

  background: #fff;
  color: #000;
  border: 3px solid rgb(234, 33, 2);
}



.main {
  border-top-left-radius: 70px;
  border-top-right-radius: 70px;
  padding: 40px;
  background: #d6d5d5;
}

select {
  border: none;
  width: 400px;
  padding: 5px 30px;
  border-radius: 5px;
}

select::-webkit-scrollbar {
  display: none;
}


.section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
}

.profile-image img {
  max-width: 290px;
  border-radius: 20px;
  margin-right: 20px;
}

.description {
  flex: 1;
}

.description h2 {
  font-size: 28px;
  color: #333;
}

.description p {
  font-size: 30px;
}

.description p {
  font-size: 19px;
  font-weight: 200;
  line-height: 1.5;
  color: #666;
}

#google_element {
  width: 50%;
  position: relative; /* Untuk mengatur posisi elemen */
  display: inline-block; /* Untuk mengizinkan elemen mengambil lebar minimum yang diperlukan */
  border: none; /* Untuk menambahkan border pada elemen */
  padding: 10px; /* Untuk memberikan jarak antara konten dan border */
  border-radius: 5px; /* Untuk mengubah sudut elemen menjadi bulat */
}

.image-school img {
  margin: 0 auto;
  width: 90px;
}
.image-school {
  display: flex;
  justify-content: flex-start;

}

.image-school div {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2); /* Untuk menambahkan efek bayangan */
  text-align: center;
  background: rgb(2, 195, 234);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 20%;
  flex-direction: column;
  margin: 10px 10px;
  transition: transform 0.6s ease;
}

.image-school div:hover {
  transform: scale(1.10);
}

.image-school h4 {
  color: #fff;
  text-align: center;
  margin-top: 7px;
}

@keyframes cursorAnim {
  from {
      transform: scale(1);
  }
  to {
      transform: scale(.7);
  }
}

@keyframes cursorAnim2 {
  from {
      transform: scale(1);
  }
  to {
      transform: scale(.4);
  }
}

@keyframes cursorAnim3 {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(3);
  }
  100% {
      transform: scale(1);
      opacity: 0;
  }
}

.expand {
  animation: cursorAnim3 .5s forwards;
  border: 1px solid red;
}


.my-projects {
  margin-top: 200px;
  text-align: center;
  padding: 40px 30px;
}

.my-projects h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  text-align: center;
  border-radius: 10px;

  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project h3 {
  font-size: 18px;
  margin-top: 10px;
}

.project-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.project p {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.project a {
  text-decoration: none;
  padding: 8px 16px;
  background-color: #05cead;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.project a:hover {
  background-color: #04ad8e;
}


.experience {
  margin-top: 200px;
  text-align: center;
  padding: 40px 0;
}

.experience h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  padding: 20px;
  margin: 40px 0;
  align-items: center;
  gap: 20px;
}

.experience-item.reverse {
  grid-template-columns: 1fr 1fr;
}

.experience-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.experience-date {
  font-size: 16px;
  color: #888;
}

.experience-description {
  font-size: 16px;
  margin-top: 10px;
}

.experience-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.apaja {
  margin-top: 200px;
}


.skills{
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.skill-name{
  font-size: 18px;
  font-weight: 700;
  color: var(--black-color);
  text-transform: uppercase;
  margin: 20px 0;
}

.skill-bar{
  height: 14px;
  background: #282828;
  border-radius: 3px;
}

.skill-per{
  color: #fff;
  height: 14px;
  background: #d13639;
  border-radius: 3px;
  position: relative;
  animation: fillBars 2.5s 1;
}

.skill-per::before{
  content: attr(per);
  position: absolute;
  padding: 4px 6px;
  background: #0880f8;
  border-radius: 4px;
  font-size: 12px;
  top: -35px;
  right: 0;
  transform: translateX(50%);
}

.skill-per::after{
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #0880f8;
  top: -20px;
  right: 0;
  transform: translateX(50%) rotate(45deg);
  border-radius: 2px;
}

@keyframes fillBars{
  from{
    width: 0;
  }
  to{
    width: 100%;
  }
}


.p {
  background: #000;
}

.footer {
  border-top-left-radius: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  background-color: #2b2a2a;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer .containers {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.footer .footer-logo {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
}

.footer .footer-links li {
  margin: 5px 0;
}

.footer .footer-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.footer .footer-links a:hover {
  color: #05cead;
}

.footer .footer-social a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer .footer-social a:hover {
  color: #05cead;
}

/* Membuat tampilan menjadi responsif */
@media screen and (min-width: 768px) {
  .footer .containers {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer .footer-content {
    flex-direction: row;
    margin-bottom: 0;
  }

  .footer .footer-links ul {
    display: flex;
  }

  .footer .footer-links li {
    margin: 0 15px;
  }
}



/* Membuat tampilan menjadi responsif */
@media screen and (max-width: 768px) {
  .experience {
    padding: 30px 0;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .experience-item.reverse {
    grid-template-columns: 1fr;
  }

  .experience-image {
    order: -1;
  }
}
/* Membuat tampilan menjadi responsif */
@media screen and (max-width: 768px) {
   /* Content */
   .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: 50vw;
  }

  .content .right img {
    display: none;
  }

  h1 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }

  .a-main {
    margin-top: 20px;
  }

  .cursor {
    display: none;
  }

  .my-projects {
    padding: 30px 0;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project.reverse {
    grid-template-columns: 1fr;
  }

  .project-image {
    order: -1;
  }
   /* Description */
   .description {
    padding: 20px;
    text-align: center;
  }

  .main {
    padding: 20px;
    width: 100%;
  }
  
  .description h2 {
    font-size: 24px;
  }

  .description p {
    font-size: 10px;
  }

  select {
    width: 50%;
  }

  .image-school {
    display: flex;
    justify-content: center;
    flex-direction: column;
 
  }

  .image-school div {
    width: 100%;
  }
}



.aaaaa {
  z-index: 3;
  padding-top: 50px;
  padding-bottom: 50px;
  background: black;
  border-top-right-radius: 60px;
  border-top-left-radius: 60px;
  margin-top: 200px;
}


.container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header h2 {
  color: #FFF;
  font-weight: bold;
  font-size: 3em;
  margin-bottom: 20px;
}

.section-header p {
  color: #FFF;
}

.row  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.contact-info {
  width: 50%;
}

.contact-info-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-info-icon i {
  font-size: 30px;
  line-height: 70px;
}

.contact-info-content {
  padding: 10px;
  border-radius: 10px;
  background: #00000049;
  margin-left: 20px;
}

.contact-info-content h4 {
  color: #1da9c0;
  font-size: 1.4em;
  margin-bottom: 5px;
}

.contact-info-content p {
  color: #FFF;
  font-size: 1em;
}

.contact-form {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  width: 45%;
  padding-bottom: 20px;
  padding-top: 20px;
}

.contact-form h2 {
  font-weight: bold;
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.contact-form .input-box {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.contact-form .input-box input,
.contact-form .input-box textarea{
  width: 100%;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  resize: none;
}

.contact-form .input-box span {
  position: absolute;
  left: 0;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  pointer-events: none;
  transition: 0.5s;
  color: #666;
}

.contact-form .input-box input:focus ~ span,
.contact-form .input-box textarea:focus ~ span{
  color: #e91e63;
  font-size: 12px;
  transform: translateY(-20px);
}

.contact-form .input-box input[type="submit"]
{
  width: 100%;
  background: #00bcd4;
  color: #FFF;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
  border: 1px solid #00bcd4;
  transition: 0.5s;
}

.contact-form .input-box input[type="submit"]:hover
{
  background: #FFF;
  color: #00bcd4;
}

@media (max-width: 991px) {
  .aaaaa {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .row {
    flex-direction: column;
  }
  
  .contact-info {
    margin-bottom: 40px;
    width: 100%;
  }
  
  .contact-form {
    width: 100%;
  }
}


/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {

  .content {
    margin-bottom: 220px;
  }

  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: transparent;
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--black-color);
  background-color: transparent;
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: transparent;
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--black-color);
  background-color: rgba(255, 255, 255, 0.151);

  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color:  rgba(255, 255, 255, 0.333);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: transparent;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}