/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: 'Montserrat', sans-serif;
  background: black;
  color: #e5e7eb;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ABOUT SECTION */
.about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 10%;
  margin: 1% 2% 0 2%;
  flex-wrap: wrap;
  background: #0f172a;
  border-radius: 20px;
  min-height: 600px;
  font-family: Arial, Helvetica, sans-serif;
  transition: background 0.3s ease;
}

.about-left {
  flex: 1;
}

.about-left h1 {
  font-size: 50px;
  margin-bottom: 10px;
  color: #38bdf8;
  transition: color 0.3s ease;
}

.about-left h2 {
  font-size: 30px;
}

.about-left h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.about-left p {
  font-size: 15px;
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: justify;
}

.skills {
  margin: 20px 0;
}

.skills i {
  font-size: 40px;
  margin-right: 8px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.skills i:hover {
  transform: translateY(-5px) scale(1.2);
  color: #38bdf8;
}

.biodata {
  margin-bottom: 10px;
}

.about-right {
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-right .foto {
  width: 500px;
  object-fit: cover;
  background: transparent;
  transition: transform 0.5s ease;
}

.about-right .foto:hover {
  transform: scale(1.05);
}

.socials {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.socials i {
  font-size: 40px;
  color: #e5e7eb;
  transition: transform 0.3s ease, color 0.3s ease;
}

.socials i:hover {
  transform: scale(1.3) rotate(5deg);
  color: #38bdf8;
}

/* PORTFOLIO SECTION */
.portfolio {
  padding: 60px 10px;
  text-align: center;
  background: black;
  border-radius: 20px;
  margin: 1% 2%;
  font-family: Arial, Helvetica, sans-serif;
  transition: background 0.3s ease;
}

.portfolio h1 {
  font-size: 30px;
  margin-bottom: 30px;
  position: relative;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  background: #0f172a;
  padding: 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #e5e7eb;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}



.card p {
  padding-top: 10px;
}

.card i {
  font-size: 60px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  background: #334155;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.card:hover i {
  transform: rotate(10deg) scale(1.2);
  color: #38bdf8;
}

/* FOOTER */
footer {
  background: #1e293b;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
  transition: background 0.3s ease;
}

footer:hover {
  background: #334155;
}

#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.cardi {
    flex: 1 1 400px;
    max-width: 500px;
    background: #1e293b;
    padding: 20px;
    border-radius: 16px;
    color: #e5e7eb;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.cardi img {
    width: 400px; 
    height: 200px; 
    object-fit:cover;
    border-radius: 12px;
}

.cardi a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cardi:hover {
    transform: translateY(-10px) scale(1);
    background: #334155;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

#back-button {
    background-color: #1e293b;
    color: #e5e7eb;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
}

#back-button:hover {
    background-color: #334155;
    transform: translateY(-2px);
}
