/* Import Google Font */
:root {
    --maroon: #800020;
    --dark-maroon: #5c0018;
    --gray: #3a3a3a;
    --light-gray: #e0e0e0;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/city light.png'); /* Pastikan path gambar benar */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15; /* Sesuaikan transparansi */
  z-index: -1; /* Letakkan di belakang konten */
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--maroon);
    color: white;
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--dark-maroon);
}

.banner-img {
  height: 400px;
  background-image: url('../assets/banner.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin: 20px;
}

main section {
    background-color: white;
    border-left: 5px solid var(--maroon);
    padding: 60px 20px;
    text-align: center;
    margin: 20px auto;
    border-radius: 12px;
    max-width: 900px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

main section:nth-child(even) {
  background-color: var(--light-gray);
  border-left: 5px solid var(--gray);
}

main section header h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 20px;
  color: var(--maroon);
}

.section-content {
  font-size: 18px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: var(--gray);
  color: white;
  margin-top: 40px;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 15px 0;
  border: 3px solid #ddd;
}

.about-me {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ccc;
  margin-bottom: 20px;
}

.about-me h3 {
  font-size: 24px;
  margin: 10px 0 5px;
  font-weight: 700;
  text-align: center;
}

.about-me .bio {
  max-width: 600px;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: #444;
}

.about-me .subtitle {
  font-size: 16px;
  color: gray;
  margin-bottom: 15px;
  text-align: center;
}

.section-content a {
  color: var(--maroon);
  border-bottom: 2px solid var(--maroon);  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.section-content a:hover {
  color: var(--dark-maroon);
  border-bottom: 2px solid #0056b3;
}

.portfolio-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.portfolio-card {
  background-color: white;
  border: 1px solid #e0e0e0;  
  border-radius: 12px;
  border-top: 3px solid var(--maroon);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 280px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(128, 0, 32, 0.2);
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card-title {
  font-size: 20px;
  margin: 10px 0;
  color: #2c3e50;
}

.card-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.card-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #800020; /* Maroon */
  color: white !important; /* Pastikan teks putih */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: background-color 0.3s;
  border: 2px solid transparent;
}


.card-link:hover {
  background-color: #5c0018; /* Maroon lebih gelap */
  border-color: #3a3a3a; /* Abu-abu */
}

.contact-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-top: 5px;
  border-color: var(--maroon);
  outline: none;
}

.contact-form input[type="radio"] {
  margin-right: 5px;
}

.contact-form button {
  padding: 12px;
  border: none;
  background-color: #2c3e50;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #34495e;
}

.contact-result {
  border: 1px solid #ccc;
  padding: 20px;
  max-width: 400px;
  font-size: 16px;
  border-radius: 10px;
  background-color: #ecf0f1;
  width: 100%;
}

.gender-options {
  display: flex;
  gap: 20px;
  margin-top: 5px;
  justify-content: center;
}

.gender-options label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 5px;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  justify-content: center;
}

.social-icons a {
  text-decoration: none;
  color: black;
  font-size: 24px;
}

.social-icons img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1); 
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.5);
}

footer p {
background-color: #800000;
color: #ecf0f1;
text-align: center;
padding: 20px 0;
font-size: 14px;
margin-top: 40px;
border-top: 1px solid #3e5a72;
}

.banner-slideshow {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner-slide {
    display: none;
    animation: fade 1.5s ease-in-out;
}

    .banner-slide img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

/* Navigation Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translate(-50);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
     background-color: rgba(0,0,0,0.8);
}

/* Tetap pertahankan animasi fade */
@keyframes fade {
    from {
        opacity: .6
    }

    to {
        opacity: 1
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.about-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Tech Stack Styles */
.tech-stack {
    margin-top: 3rem;
    text-align: center;
}

.tech-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

    .tech-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background-color: var(--accent-color);
    }

.techbox-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 800px;
}

.tech-icon {
    width: 70px;
    height: 70px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

    .tech-icon img {
        width: 100%;
        height: auto;
        object-fit: contain;
        transition: var(--transition);
    }

    .tech-icon:hover {
        transform: translateY(-5px) scale(1.05);
        background-color: var(--primary-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

        .tech-icon:hover img {
            filter: brightness(0) invert(1);
        }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .about-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .techbox-container {
        gap: 1rem;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        padding: 8px;
    }
}

/* Portfolio Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-container {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--gray);
    border: 1px solid #e0e0e0;
}

    .project-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .project-container h3 {
        padding: 1.5rem 1.5rem 0;
        font-size: 1.3rem;
        color: var(--maroon);
        text-align: center;
    }

.gallery-container {
    padding: 0 1.5rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
}

.galleries {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

    .galleries img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.project-container:hover .galleries img {
    transform: scale(1.05);
}

.tech-stack-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.img-container {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .img-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

.project-container:hover .img-container {
    background-color: var(--maroon);
}

    .project-container:hover .img-container img {
        filter: brightness(0) invert(1);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-container h3 {
        font-size: 1.2rem;
    }

    .img-container {
        width: 35px;
        height: 35px;
        padding: 6px;
    }
}

html {
  scroll-behavior: smooth;
}