* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  height: fit-content;
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  display: flex;
  padding: 30px 0;
  justify-content: center;
  align-items: center;
}

/* Video background */
.back-vid {
  position: fixed; /* tetap di latar belakang saat scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
@media (max-aspect-ratio: 16/9) {
  .back-vid {
    width: auto;
    height: 100%;
  }
}

@media (min-aspect-ratio: 16/9) {
  .back-vid {
    width: 100%;
    height: auto;
  }
}

.main-section {
  width: 90%;
  height: 90%;
  background-color: #4ad0ee1b;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 5px 5px 20px 1px #4acfee;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  flex-wrap: wrap;
}

nav h1 {
  color: white;
  font-size: 30px;
  font-weight: 900;
}

nav ul {
  list-style: none;
  display: flex;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: 0.2s;
  padding: 0px 25px;
}

nav a:hover,
.active {
  color: #4acfee;
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.hero {
  display: flex;
  align-items: center;
  height: 70%;
  padding: 0 10%;
  color: white;
  justify-content: space-between;
}

.hero h1 {
  font-size: 60px;
}

.hero h2 {
  margin-top: 20px;
  font-size: 30px;
  text-transform: uppercase;
  background: linear-gradient(to right, #d8dada, #4acfee);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: turquoise;
  animation: animate-gradient 2.5s linear infinite;
}

.hero p {
  max-width: 450px;
  margin-top: 7px;
  margin-bottom: 20px;
}

@keyframes animate-gradient {
  to {
    background-position: 200%;
  }
}

.buttons {
  display: flex;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #4acfee;
  border-radius: 40px;
  box-shadow: 0 0 10px #4acfee;
  font-size: 16px;
  font-weight: 900;
  color: rgb(33, 31, 31);
  cursor: pointer;
  margin-right: 15px;
  transition: 0.3s;
  text-wrap: nowrap;
}

.btn:hover {
  background-color: transparent;
  box-shadow: none;
  color: #4acfee;
}

.ul-icons {
  display: flex;
  align-items: center;
}

.ul-icons li {
  list-style: none;
  margin-left: 10px;
}

.ul-icons a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #4acfee;
  border-radius: 50%;
  font-size: 20px;
  color: #4acfee;
  text-decoration: none;
  margin: 0 7px;
  transition: 0.3s;
}

.ul-icons a:hover {
  background: #4acfee;
  color: black;
  box-shadow: 0 0 10px #4acfee;
}

.hero-img {
  width: 400px;
  height: 400px;
  background-color: none;
  position: relative;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 10px #4acfee;
  transition: 0.5s;
}

.hero-img:hover {
  box-shadow: 0 0 25px #4acfee;
}

.hero-img img {
  position: absolute;
  width: 85%;
  mix-blend-mode: lighten;
}

.info-sec {
  display: flex;
  width: 100%;
  gap: 20px;
  padding: 0 10%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.info-card {
  display: flex;
  width: 100%;
  align-items: center;
  max-width: fit-content;
}

.info-sec h1 {
  font-size: 55px;
  text-transform: uppercase;
  background: linear-gradient(to right, #d8dada, #4acfee);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: aqua;
  animation: animate-gradient 2.5s;
  margin-right: 10px;
}

.info-sec p {
  color: white;
  font-size: 20px;
}

/* Large screen tweaks */
@media (min-width: 1220px) {
  body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;

    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* hanya horizontal yang disembunyikan */
    overflow-y: auto; /* aktifkan scroll vertikal */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .info-sec {
    margin-top: 30px;
  }
}

/* Small screen responsive styling */
@media (max-width: 980px) {
  body {
    height: fit-content;
    overflow: auto;
  }

  .buttons {
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    width: 300px;
    height: 300px;
    margin: 20px 0;
  }
}

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

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #4ad0ee1b;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px #4acfee;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    text-align: center;
    padding: 10px 0;
  }

  nav a {
    padding: 10px;
    font-size: 18px;
  }
}

/* card skill */
.skills-section {
  padding: 60px 10%;
  background-color: rgba(22, 84, 107, 0.5);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
}

.skills-title {
  font-size: 32px;
  margin-bottom: 40px;
  text-transform: capitalize;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

.skill-card {
  background-color: rgba(8, 156, 210, 0.1);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 220px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #4acfee;
}

.skill-card i {
  font-size: 48px;
  color: white;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 18px;
  color: white;
}

/*Project*/
.projects-section {
  padding: 60px 10%;
  background-color: rgba(22, 84, 107, 0.5);
  color: white;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-info {
  opacity: 1;
}

.project-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.project-info p {
  margin-bottom: 20px;
  font-size: 18px;
}

.demo-btn {
  background: linear-gradient(to right, #00ff99, #00ccff);
  color: black;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.demo-btn:hover {
  background: white;
}

/*Contact*/
* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: url("https://images.unsplash.com/photo-1534791547706-47c4b5d3ab63?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80")
    no-repeat center center fixed;
  background-size: cover;
  color: white;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 50px;
  padding: 60px 30px;
}

.card {
  background-color: #2b2d42;
  border-radius: 20px;
  padding: 35px;
  width: 450px;
  max-width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.left-card {
  text-align: center;
}

.profile-img {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.job-title {
  color: #ccc;
  font-weight: 400;
  font-size: 1.1rem;
  margin: 5px 0;
}

.desc {
  font-size: 1rem;
  margin: 15px 0 20px;
  line-height: 1.5;
}

.connect-title {
  margin-top: 25px;
  font-weight: bold;
  font-size: 1rem;
}

.social-icons a img {
  width: 40px;
  margin: 12px;
  transition: transform 0.2s ease;
}
.social-icons a:hover img {
  transform: scale(1.1);
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 28px;
  margin: 12px 0;
  border-radius: 10px;
  border: none;
  background-color: #edf2f4;
  color: black;
  font-size: 1rem;
}

.form-card .row {
  display: flex;
  gap: 15px;
}

.form-card .row input {
  flex: 1;
}

.form-card button {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  background: linear-gradient(to right, #00b894, #00cec9);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-card button:hover {
  background: linear-gradient(to right, #00cec9, #00b894);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
  }

  .card {
    width: 100%;
  }

  .form-card .row {
    flex-direction: column;
  }
}
