@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Open+Sans:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

/* Logo */
.logo img {
    height: 50px;
}

/* Navigation Menu */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links li a.active {
    font-weight: 700;
}

.nav-links li a:hover {
    font-weight: 700;
}

/* Font Defaults */
body {
    margin: 0;
    padding: 0;
    font-family: 'Baloo Thambi 2', cursive;
    background: linear-gradient(to right, #f1f1eb, #e4e4d9);
    color: #1f1f1f;
}


/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 40px;
    background: linear-gradient(to right, #f3f3f3, #e2e2e2);
    gap: 60px;
    flex-wrap: wrap;
  }
  
  .hero-image {
    position: relative;
    flex: 1;
    z-index: 2;
    max-width: 450px;
    animation: slideInRightToLeft 1.2s ease-out both;
  }

  @keyframes slideInRightToLeft {
    from {
      opacity: 0;
      transform: translateX(100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .image-wrapper {
    position: relative;
    width: 100%;
  }
  
  .img1, .img2 {
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .img1 {
    position: absolute;
    z-index: 1;
    width: 311px;
    height: 371px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .img2 {
    position: relative;
    top: 150px;
    left: 200px;
    z-index: 2;
    width: 311px;
    height: 371px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  
  .date {
    position: absolute;
    bottom: -100px;
    left: 35px;
    color: #1e3b30;
    font-weight: 500;
    font-size: 30px;
    font-style: italic;
  }
  
  .hero-content {
    width: 50%;
    color: #333;
  }
  
  h1 {
    font-size: 4.0rem;
    font-weight: 500;
    margin-bottom: 0px;
    font-weight: bold;
    color: #222;
    position: absolute;
    left: 400px;
  }
  
  .subtitle {
    font-family: 'Bigshot One', cursive;
    font-size: 3.7rem;     
    color: #555;            
    margin-bottom: 30px;
    margin-top: 30px;
    letter-spacing: 6px;    
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }
  
  
  .color-accent {
    color: #606c38; 
  }
  
  .hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
  }
  
  .about {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .about.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Untuk menyembunyikan awalnya */
  .hidden {
    display: none;
  }
  

/* Education Section */
.education-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 90px;
    margin-bottom: 0;
    margin-left: 40px;
    margin-right: 40px;
    font-family: 'Poppins', sans-serif;
  }
  
  .education-left, .education-right {
    width: 50%;
  }
  
  /* Bagian Education */
  .education-box {
    background-color: #f5f5f5;
    border-radius: 25px;
    padding:5px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  
  .education-item .bullet {
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 7px;
  }
  
  .year {
    font-weight: 600;
    margin-bottom: 2px;
  }
  
  .school {
    font-weight: bold;
  }
  
  /* Bagian Hobby */
  .hobby-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .hobby-item {
    display: flex;
    align-items: center;
    background-color: #e7e7e7;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 1.2rem;
    width: fit-content;
    gap: 10px;
  }
  
  .hobby-icon {
    font-size: 1.2rem;
    background-color: #fff;
    padding: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }  

  .hobby-box {
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 30px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

/* Experience Section */
.experience {
    margin-top: 2%;
    margin-bottom: 50px;
    padding: 5px 40px;
    text-align: center;
  }
  
  .experience h2 {
    font-family: 'Basley', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
  }
  
  .experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  
  .experience-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 350px; 
  }
  
  .experience-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
  }
  
  .experience-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    font-weight: 600;
    padding: 12px;
    font-size: 1rem;
    text-align: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
/* Activities Section */
.activities-section {
  padding: 0px 40px;
  text-align: center;
}

.activities-section h2 {
  font-family: 'Basley', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 300px;
  gap: 15px;
}

.activity-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.activity-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-title {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
  background-color: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 6px;
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

/* Hover scale for image and cards */
.experience-item:hover,
.activity-item:hover,
.education-item:hover,
.hobby-item:hover {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

/* Delay for staggered animation effect */
.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }

/* Optional: Smooth scroll effect */
html {
  scroll-behavior: smooth;
}


/* Footer Section */
footer {
  background-color: #ffffff;
  padding: 30px 6%;
  font-family: 'Playfair Display', serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

/* LOGO + ICON */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 140px; 
  margin-bottom: 15px;
}

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

/* NAVIGASI */
.footer-nav-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 6px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

/* KONTAK */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
}

.contact-item i {
  margin-right: 10px;
  color: #2f2f2f;
}

/* COPYRIGHT */
.copyright {
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: #5e6650;
}

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

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }
}
