/* Navbar Styling */
/* =========================
   NAVBAR STYLING
========================= */
/* Navbar default (transparan) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 1.5rem;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: transparent; /* awalnya transparan */
  transition: all 0.3s ease;     /* biar mulus pas berubah */
  z-index: 1000;
  height: 80px;
}

/* Navbar ketika sudah scroll */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95); /* putih semi transparan */
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);     /* efek shadow tipis */
  backdrop-filter: blur(10px);                 /* blur modern */
}

/* Logo GESS */
.nav-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  max-width: 200px;
  animation: bounce 5s infinite;
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}


/* Container isi navbar */
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* List link navbar */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #27525a;
}

/* =========================
   HAMBURGER MENU
========================= */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {
  /* Default: sembunyikan menu */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; /* sejajar navbar */
    right: 20px;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 10px;
    gap: 1rem;
  }

  /* Saat toggle "show" → menu muncul */
  .nav-links.show {
    display: flex;
  }

  /* Tombol hamburger aktif di mobile */
  .hamburger {
    display: block;
  }
}

/* Reset dan Styling Dasar */
:root {
  --typing-duration: 3.5s;
  --typing-steps: 40;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Hero Section */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 6rem;      /* desktop padding (tetap) */
  background: transparent;
  color: #333333;
  min-height: 100vh;
  position: relative;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  padding-right: 4rem;
  position: relative;
  z-index: 5;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: 
      slideInDown 1s ease-out,
      glowText 3s ease-in-out infinite,
      floatText 5s ease-in-out infinite,
      pulseShadow 2s ease-in-out infinite;
  position: relative;
}

@keyframes slideInDown {
  from {
      transform: translateY(-50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

@keyframes glowText {
  0%, 100% {
      text-shadow: 0 0 8px rgba(13, 148, 136, 0.2);
  }
  50% {
      text-shadow: 
          0 0 15px rgba(13, 148, 136, 0.3),
          0 0 20px rgba(13, 148, 136, 0.2),
          0 0 25px rgba(13, 148, 136, 0.1);
  }
}

@keyframes floatText {
  0%, 100% {
      transform: translateY(0) rotate(-1deg);
  }
  50% {
      transform: translateY(-5px) rotate(1deg);
  }
}
.static-text {
  font-size: 10rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: 
      slideInDown 1s ease-out,
      glowText 3s ease-in-out infinite,
      floatText 5s ease-in-out infinite,
      pulseShadow 2s ease-in-out infinite;
  position: relative;
}

@keyframes slideInDown {
  from {
      transform: translateY(-50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

@keyframes glowText {
  0%, 100% {
      text-shadow: 0 0 8px rgba(13, 148, 136, 0.2);
  }
  50% {
      text-shadow: 
          0 0 15px rgba(13, 148, 136, 0.3),
          0 0 20px rgba(13, 148, 136, 0.2),
          0 0 25px rgba(13, 148, 136, 0.1);
  }
}

@keyframes floatText {
  0%, 100% {
      transform: translateY(0) rotate(-1deg);
  }
  50% {
      transform: translateY(-5px) rotate(1deg);
  }
}

.hero-social-links {
    display: flex;
    gap: 1rem;
    margin: 0.1rem 0;
}

.static-text {
  font-size: 1.2rem;
  color: #333333;
  font-weight: 500;
  margin-left: -1px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@keyframes floatUI {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* === Mobile overrides === */
@media (max-width: 768px) {

  /* hero jadi stack atas-bawah, teks dulu, gambar lalu aksi */
  .hero-container {
    flex-direction: column;
    padding: 2rem 1rem;     /* padding lebih kecil di mobile */
    text-align: center;
    gap: 1.25rem;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 0.75rem;
    margin-top: 5rem;   /* turunkan teks sedikit supaya tidak terlalu dekat atas */
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-image {
    margin-top: 0;        /* hilangkan 100px pada mobile */
  }

  .hero-image img {
    max-width: 90%;
    width: 100%;
    height: auto;
  }

  /* Matikan / perkecil background bola supaya tidak overflow */
  .image-background-animation {
    display: none; /* lebih aman: sembunyikan di mobile */
  }

  /* social buttons center di mobile */
  .hero-social-links {
    justify-content: center;
    font-size: 1.15rem;
  }
}

.image-background-animation {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.image-ball {
  background: rgba(13, 148, 136, 0.1);
  position: absolute;
  border-radius: 50%;
  animation: floatImageBall 100s infinite linear;
}

@keyframes floatImageBall {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, -30px) scale(1.2);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Section Styling */
.section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
}

.about-content {
  text-align: center;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* full width, 1 kolom aja */
  }
}

.service-card {
  text-align: center;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #0d9488;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 5fr;  /* satu kolom saja */
    gap: 2rem;                 /* jarak antar card */
    padding: 0 1rem;             /* beri ruang samping agar gak menempel */
  }

  .service-card {
    max-width: 360px;   /* batasi lebar card agar nggak terlalu besar */
    margin: 0 auto;     /* center-kan tiap card */
    padding: 2rem;    /* sesuaikan padding biar pas */
  }

  .service-card img {
    max-width: 100%;    /* agar gambar sesuai lebar card */
    height: auto;
    display: block;
    margin: 0 auto;     /* agar gambar center di dalam card */
    margin-bottom: 1rem; /* jarak lebih besar di mobile */
  }
}

/* Wrapper flex */
.education-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
}

/* Gif di kiri */
.education-image img {
  max-width: 420px;
  height: auto;
  display: block;
  margin-top: 10rem;
  margin-right: 5rem;
}

/* Timeline pindah garis ke kanan */
.education-timeline {
  flex: 1;
  position: relative;
  padding-right: 30px;          /* padding ke kanan */
  border-right: 3px solid #00bcd4; /* garis di kanan */
  max-width: 600px;
}

/* Titik timeline */
.timeline-item .dot {
  position: absolute;
  right: -14px; /* geser ke kanan */
  top: -2px;
  width: 25px;
  height: 25px;
  background: #00bcd4;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 5px rgba(0, 188, 212, 0.6);
}

/* Isi konten timeline */
.timeline-item .content {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 50px;
  box-shadow: 0 3px 12px #00bcd4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-right: 1rem; /* biar ga tabrakan sama garis */
  margin-bottom: 1rem;
}

.timeline-item .content:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .education-container {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline geser ke atas gambar */
  .education-timeline {
    order: 1;
    width: 100%;
    border-right: none;            /* hilangkan garis kanan */
    border-left: 3px solid #00bcd4; /* garis pindah ke tengah */
    padding-left: 30px;
    margin-bottom: 1.5rem;
  }

  .timeline-item .dot {
    right: auto;
    left: -12px; /* titik balik ke kiri */
  }

  .timeline-item .content {
    margin-right: 0;
  }

.education-image {
    order: 2; /* gambar muncul setelah timeline */
    margin-top: 0;  /* hapus jarak berlebih */
    text-align: center;
  }

  .education-image img {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto; /* pastikan benar-benar center */
  }
}


/* Contact Form */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form button {
  background: #0d9488;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background: #0f766e;
}

/* Footer */
footer {
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
      flex-direction: column;
      padding: 2rem;
      text-align: center;
  }
  
  .hero-text {
      padding-right: 0;
      margin-bottom: 2rem;
  }

  .hero-text h1 {
      font-size: 1.8rem;
  }

  .hero-image img {
      width: 300px;
  }

  .nav-logo {
      height: 40px;
      max-width: 120px;
  }
  
  .nav-links {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
  }
  
  .section {
      padding: 3rem 1rem;
  }
}

/* Experience Section Styling */
.experience-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.experience-item {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-left: 5px solid #0d9488;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.experience-title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.experience-company {
    color: #0d9488;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-description {
    color: #4b5563;
    line-height: 1.6;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: #f3f4f6;
    color: #0d9488;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.skill-tag:hover {
    background: #e5e7eb;
}

/* Animasi Bola-bola Background */
.background-animation,
.hero-background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.hero-background-animation {
    position: absolute;
    height: 100vh;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.animated-ball {
    position: absolute;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    animation: floatBall 15s infinite linear;
    z-index: 2;
}

.hero-ball {
    background: rgba(13, 148, 136, 0.1);
}

@keyframes floatBall {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }
    50% {
        transform: translate(0, 200px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, 100px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes pulseShadow {
    0% {
        text-shadow: 0 0 4px rgba(13, 148, 136, 0.1);
    }
    50% {
        text-shadow: 
            0 0 8px rgba(13, 148, 136, 0.3),
            0 0 12px rgba(13, 148, 136, 0.2),
            0 0 16px rgba(13, 148, 136, 0.1);
    }
    100% {
        text-shadow: 0 0 4px rgba(13, 148, 136, 0.1);
    }
}

.social-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border-radius: 8px;
    text-decoration: none;
    background-color: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-button img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(13, 148, 136, 0));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-button:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 5px rgba(13, 148, 136, 0.5))
           drop-shadow(0 0 10px rgba(13, 148, 136, 0.3))
           drop-shadow(0 0 15px rgba(13, 148, 136, 0.2));
    animation: socialGlow 2s ease-in-out infinite;
}

@keyframes socialGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(13, 148, 136, 0.5))
               drop-shadow(0 0 10px rgba(13, 148, 136, 0.3))
               drop-shadow(0 0 15px rgba(13, 148, 136, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(13, 148, 136, 0.7))
               drop-shadow(0 0 15px rgba(13, 148, 136, 0.5))
               drop-shadow(0 0 20px rgba(13, 148, 136, 0.3));
    }
}

/* Responsive styling */
@media (max-width: 768px) {
    .social-buttons {
        justify-content: center;
    }
  }

/* Efek fade */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}
