* {
  padding: 0;
  margin: 0;
  border: none;
  outline: 0;
  text-decoration: none;
  color: white;
}

body {
  background-color: rgb(6, 7, 12);
  font-family: inter;
  background-image: url(background-img.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
  padding: 0 10%;
}

/* Header */
#header, nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  z-index: 1;
}

.nav-item {
  font-size: 1.2rem;
  font-weight: 500;
  margin-left: 60px;
  transition: color 0.12s, transform 0.12s;
}

nav .active {
  color: #3FA2F6;
}

.nav-item:hover {
  color: #3FA2F6;
}

.nav-item:active {
  transform: scale(1.1);
}

/* logo */
.logo {
  font-size: 2rem;
  font-weight: 800;
}
/* ===== CONTACT SECTION ===== */
#contact {
  padding: 0 0 120px;
  text-align: center;
}

.contact-container h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-container p {
  font-size: 1.1rem;
  color: lightgray;
  margin-bottom: 40px;
}

/* ICONS */
.contact-social {
  justify-content: center;
  gap: 30px;
}

.contact-social i {
  font-size: 1.5rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-social i:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #3FA2F6;
}

/* ===== PROJECT SECTION ===== */
#project {
  padding: 120px 0;
  text-align: center;
}

#project h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 1.1rem;
  color: lightgray;
  margin-bottom: 60px;
}

/* GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* CARD */
.project-card {
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(63,162,246,0.3);
}

/* IMAGE */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}


/* CONTENT */
.project-info {
  padding: 25px;
  text-align: left;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #3FA2F6;
}

.project-info p {
  font-size: 1rem;
  color: lightgray;
  margin-bottom: 20px;
}

/* BUTTON */
.project-btn {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid #3FA2F6;
  border-radius: 6px;
  color: #3FA2F6;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.project-btn:hover {
  background-color: #3FA2F6;
  color: black;
}


/* ===== ABOUT SECTION ===== */
#about {
  padding: 120px 0 40px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* IMAGE */
.about-image {
  height: 420px;
  border-radius: 25px;
  background-image: url("background-img6.png"); /* bisa diganti foto */
  background-size:  115%;
  background-position: center 30%;
  box-shadow: 0 0 40px rgba(63, 162, 246, 0.25);
}

/* CONTENT */
.about-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.about-content h4 {
  font-size: 1.4rem;
  color: #3FA2F6;
  margin-bottom: 30px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: lightgray;
  margin-bottom: 25px;
}

/* BUTTON */
.about-btn {
  background-color: #3FA2F6;
  color: black;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.about-btn:hover {
  background-color: transparent;
  color: #3FA2F6;
  border: 2px solid #3FA2F6;
  transform: translateY(-2px);
}

/* Hero-section */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
/* Left */
.hero-left {
  display: flex;
  align-items: center;
  padding-top: 150px;
  z-index: 1;
}

h1{
  font-size: 4rem;
  font-weight: 800;
  padding: 25px 0;
}

h3 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #3FA2F6;
  padding-bottom: 40px;
}

p {
  font-size: 1.2rem;
  color: lightgray;
  line-height: 1.5;
  padding-bottom: 50px;
}

.cta-1 {
  display: inline-flex;      /* PENTING */
  align-items: center;
  justify-content: center;

  color: black;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 0;
  width: 200px;
  border-radius: 8px;
  background-color: #3FA2F6;
  border: none;
  cursor: pointer;
}

/* button
.cta button {
  color: black;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 0;
  width: 200px;
  border:none;
  border-radius: 8px;
  margin-right: 50px;
  background-color: #3FA2F6;
  margin-bottom: 180px;
  transition: background-color 0.12s, border 0.12s, color 0.21s, padding 0.12s;
}
.cta-1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.cta .cta-1:hover {
  background-color: transparent;
  color: #3FA2F6;
  border: 2px solid #3FA2F6;
  padding: 13px 0;
}

.cta .cta-2:hover {
  background-color: #3fa1f6;
  color: #000000;
}

.cta-2 {
  background-color: transparent;
  color: #3FA2F6;
  border: 2px solid #3FA2F6;
  padding: 13px 0;
}
  .cta {
    margin-bottom: 35px;
  } */


.social-icon {
    margin-top: 25px;
}

.social-icon{
  padding-bottom: 50px;
}

.social-icon i {
font-size: 1.2rem;
color: #3FA2F6;
border: 1px solid #3FA2F6;
border-radius: 50px;
padding: 8px;
height: 25px;
width: 25px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.12s, box-shadow 0.12s;
cursor: pointer;

}

.social-icon i:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px #3FA2F6;
}

/* Right section */

.hero-right {
  transition: background-color 3s, box-shadow 3s;
  cursor: pointer;
}
.hero-right:hover {
  background-color: rgba(6, 7, 12, 0.705);
  box-shadow: 
    0 0 20px rgb(6, 7, 12),
    0 0 50px rgb(6, 7, 12),
    0 0 100px rgb(6, 7, 12),
    0 0 200px rgb(6, 7, 12);
}

/* Animations */
@keyframes fadeIn {
  from{
    transform: translateY(40px);
    opacity: 0;
  }
  to{
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInTop {
  from{
    transform: translateY(-100%);
    opacity: 0;
  }
  to{
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes backgroundZoom {
  from{
    background-size: 80%;
  }
  to{
    background-size: 100%;
  }
}




/* Apply Animations */
h1 {
  animation: fadeIn 1.2s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

h3 {
  animation: fadeIn 1.4s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

p {
  animation: fadeIn 1.6s ease-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}
button {
  animation: fadeIn 1.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

.social-icon {
  display: flex;
  flex-direction: row; /* FIX PENTING */
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
  padding-bottom: 50px;
}

.nav-item,
.left-section {
  animation: fadeInTop 1s ease-in forwards;
  opacity: 0;
}

body {
  animation: backgroundZoom 3s ease-in forwards;
}
@media (max-width: 768px) {

  body {
    
    min-height: 100vh;
    background-image: url("background-img.png");
    background-size: 120% auto;
    background-position: right center;
  }

  /* HEADER */
  #header {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-item {
    margin: 10px 15px;
    font-size: 1rem;
  }
@media (max-width: 768px) {
  #project {
    padding: 80px 0;
  }

  #project h2 {
    font-size: 2.2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-card img {
    height: 180px;
  }

  #about {
    padding: 80px 0;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    height: 260px;
  }

  .about-content h2 {
    font-size: 2.2rem;
  }

  .about-content h4 {
    font-size: 1.2rem;
  }

}

  /* HERO */
  #hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: 1;
    height: 260px;
    margin-top: 40px;
    border-radius: 20px;
    background-image: url("background-img3.png");
    background-size:  110%; /* lebih besar agar crop terlihat */
    background-position: center 10%;
    min-height: 60vh;
  }

  .hero-left {
    order: 2;
    padding-top: 40px;
    text-align: center;
    justify-content: center;
  }

  h1 { font-size: 2.4rem; }
  h3 { font-size: 1.6rem; }
  p  { font-size: 1rem; }

  /* BUTTON MOBILE */
  .cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px; /* JARAK KE ICON */
  }

  .cta button {
    width: 100%;
    max-width: 260px;
    margin-right: 0;
    margin-bottom: 0; /* NETRALISIR 180px */
  }

  /* SOCIAL ICON MOBILE */
  .social-icon {
    justify-content: center;
    margin-top: 25px;
  }
}



