/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  background: #f5f5f5;
  color: #222;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.preloader-text {
  font-size: 4rem;
  color: white;
  animation: preloaderAnim 1.5s ease forwards;
}
@keyframes preloaderAnim {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Navbar */
header {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: bold;
  font-size: 1.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  background: url('img/ty.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-content h1 {
  font-size: 3rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* Section */
.section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.section p, .timeline {
  font-size: 1rem;
  line-height: 1.7;
}
.timeline li {
  margin-bottom: 0.8rem;
}

/* Footer */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 2rem;
}
footer h2 {
  margin-bottom: 1rem;
}
footer .socials a {
  margin: 0 1rem;
  color: #fff;
  text-decoration: none;
}
footer .socials a:hover {
  text-decoration: underline;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: white;
    width: 200px;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .burger {
    display: block;
  }
}

/* Hobbies Section */
.hobbies-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}
.section-description {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Hobbies Gallery */
.hobbies-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.hobby-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hobby-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.hobby-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.hobby-info {
  padding: 15px;
  text-align: left;
}
.hobby-info h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #222;
}
.hobby-info p {
  font-size: 14px;
  color: #555;
}

/* Experience Section */
.experience-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.experience-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.experience-card:hover {
  transform: translateY(-8px);
}
.experience-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.experience-info {
  padding: 1rem;
}
.experience-tag {
  display: inline-block;
  margin-top: 0.5rem;
  background: #f3f3f3;
  color: #333;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Footer Extended */
.footer {
  background-color: #0f0f0f;
  color: #f0f0f0;
  padding: 4rem 2rem 2rem;
  font-size: 0.95rem;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #ffffff;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 0.5rem;
}
.footer-section a {
  text-decoration: none;
  color: #bbbbbb;
  transition: color 0.3s ease;
}
.footer-section a:hover {
  color: #ffffff;
}
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #999;
}

/* === Updated Life Roadmap === */
.roadmap-section {
  padding: 4rem 2rem;
  background: #0d0d0d;
  color: #f0f0f0;
}
.roadmap-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: #fff;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.timeline-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.4s ease;
  position: relative;
}
.timeline-content,
.timeline-image {
  flex: 1 1 45%;
  padding: 1rem;
  transition: all 0.4s ease;
}
.timeline-content {
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
.timeline-content h3 {
  font-size: 1.8rem;
  color: #f7b500;
}
.timeline-content p {
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.6;
  color: #ccc;
}
.timeline-image {
  height: 220px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
  }
  .timeline-content,
  .timeline-image {
    flex: 1 1 100%;
  }
}
/* Burger menu */
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: #111827;
    width: 200px;
    padding: 1rem;
    display: none;
    border-radius: 8px;
  }
  .nav-links.active {
    display: flex;
  }
  .burger {
    display: block;
  }
}
/* Burger menu */
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    background: #111827;
    width: 200px;
    padding: 1rem;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .nav-links.active {
    display: flex;
  }
  .burger {
    display: block;
  }
  .nav-links li {
    margin: 0.5rem 0;
  }
  .nav-links a {
    color: #d1d5db;
    font-size: 1rem;
  }
  .nav-links a:hover {
    color: #3b82f6;
  }
}
/* Navbar fix */
header {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #111;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

/* Burger menu default hidden */
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #111; /* ganti jadi hitam biar keliatan */
  cursor: pointer;
  z-index: 1100;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: white;
    width: 220px;
    padding: 1rem;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .nav-links li {
    margin: 0.8rem 0;
  }

  .nav-links a {
    color: #222;
    font-size: 1rem;
  }

  .nav-links a:hover {
    color: #000000;
  }
}
.experience-link {
  text-align: center;
  margin: 1rem 0;
}

.experience-btn {
  display: inline-block;
  background-color: #000000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.experience-btn:hover {
  background-color: #000000;
}
