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

body {
    line-height: 1.6;
    font-size: 18px;
    color: #333;
}

header {
    background: linear-gradient(90deg, #007bff, #ff0000);
    color: #fff;
    padding: 1rem 0;
}

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

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(90deg, #007bff, #ff0000);
    color: #fff;
}

#home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: left;
}

.home-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap; /* biar responsif */
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.intro-text h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
}

.intro-text p {
  margin: 10px 0;
  font-size: 1.1rem;
  color: #eee;
}

.social-icons a {
  margin-right: 10px;
  color: white;
  font-size: 1.3rem;
}

.social-icons a {
    color: #fff;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ddd;
}

#portfolio .portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-items .item {
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem;
    padding: 1rem;
    flex: 1 1 calc(33.333% - 2rem);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    color: #fff;
    text-align: left;
    transition: transform 0.3s;
}

.portfolio-items .item:hover {
    transform: translateY(-10px);
}

.portfolio-items .item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
}

form input,
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #0056b3;
}

footer {
    background: linear-gradient(90deg, #007bff, #ff0000);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 0;
}

footer .social-icons {
    margin-top: 1rem;
}

footer .social-icons a {
    color: #fff;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

footer .social-icons a:hover {
    color: #ddd;
}
#certificates {
  padding: 3rem 1rem;
  text-align: center;
  background: linear-gradient(90deg, #007bff, #ff0000);
  color: #fff;
}

.certificate-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem;
}

.certificate-slider::-webkit-scrollbar {
  display: none; /* biar clean */
}

.cert-item {
  flex: 0 0 80%; /* tampil 1 item di layar HP */
  max-width: 500px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 1rem;
  scroll-snap-align: center;
  transition: transform 0.3s;
}

.cert-item:hover {
  transform: translateY(-8px);
}

.cert-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}
}

/* Tombol slider */
.slider-controls {
    margin-top: 1rem;
}

.slider-controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    font-size: 2rem;
    margin: 0 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.6);
}
