/* =====================================================
   THEME COLORS
===================================================== */

/* ================= DARK MODE ================= */

:root {
  --bg: #08090d;
  --bg-secondary: #11131a;

  --text: #f5f5f7;
  --text-muted: #b5b8c2;

  --card: rgba(255, 255, 255, 0.06);

  --accent: #8b5cf6;
  --accent-secondary: #3b82f6;

  --border: rgba(255, 255, 255, 0.15);

  --shadow: rgba(0, 0, 0, 0.4);
}


/* ================= LIGHT MODE ================= */

.light {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;

  --text: #171717;
  --text-muted: #5f6368;

  --card: rgba(255, 255, 255, 0.75);

  --accent: #7c3aed;
  --accent-secondary: #2563eb;

  --border: rgba(0, 0, 0, 0.1);

  --shadow: rgba(0, 0, 0, 0.12);
}


/* =====================================================
   RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: "Poppins", sans-serif;
}


/* =====================================================
   HTML
===================================================== */

html {
  scroll-behavior: smooth;
}


/* =====================================================
   BODY
===================================================== */

body {
  min-height: 100vh;

  color: var(--text);

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(139, 92, 246, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(59, 130, 246, 0.15),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--bg),
      var(--bg-secondary)
    );

  background-attachment: fixed;

  transition:
    background 0.5s ease,
    color 0.3s ease;
}


/* ================================
   PAGE TRANSITION
   (dipasang di wrapper konten, BUKAN di body,
   soalnya transform di body bikin position:fixed
   -- misal lightbox -- jadi ketarik ikut body)
================================= */

nav,
.container,
.container-about {
  opacity: 0;

  transform:
    translateY(15px);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}


/* ================================
   HALAMAN SELESAI DIMUAT
================================ */

body.page-loaded nav,
body.page-loaded .container,
body.page-loaded .container-about {
  opacity: 1;

  transform:
    translateY(0);
}


/* ================================
   SAAT PINDAH HALAMAN
================================ */

body.page-exit nav,
body.page-exit .container,
body.page-exit .container-about {
  opacity: 0;

  transform:
    translateY(-15px);

}


/* =====================================================
   LIGHT MODE BACKGROUND
===================================================== */

body.light {
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(139, 92, 246, 0.12),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(59, 130, 246, 0.10),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8f7ff 50%,
      #f4f7ff 100%
    );
}


/* =====================================================
   CONTAINER
===================================================== */

.container {
  width: 90%;
  max-width: 1100px;

  margin: auto;
}


/* =====================================================
   NAVBAR
===================================================== */

/* =====================================================
   NAVBAR STICKY
===================================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 9999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;

  padding: 15px 0;
  margin-bottom: 10px;

  background: transparent;

  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  border-bottom: 1px solid transparent;

  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}


/* =====================================================
   NAVBAR SCROLLED STATE
===================================================== */

nav.scrolled {
  background: var(--card);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid var(--border);

  box-shadow:
    0 10px 30px
    var(--shadow);
}


/* =====================================================
   NAVBAR LEFT
===================================================== */

.nav-left {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
}

.nav-left img,
.nav-left .brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-left a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}



/* =====================================================
   NAVBAR RIGHT
===================================================== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 30px;
}


/* =====================================================
   NAVBAR LINK
===================================================== */

nav a {
  position: relative;

  padding: 8px 10px;

  color: var(--text);

  text-decoration: none;

  font-size: 14px;

  transition:
    color 0.3s ease;
}


/* Underline */

nav a::after {
  content: "";

  position: absolute;

  left: 10px;
  bottom: 2px;

  width: 0;
  height: 2px;

  border-radius: 10px;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--accent-secondary)
    );

  transition:
    width 0.3s ease;
}


nav a:hover {
  color: var(--accent);
}


nav a:hover::after {
  width: calc(100% - 20px);
}


/* =====================================================
   DARK / LIGHT TOGGLE
===================================================== */

.toggle {
  margin-left: 8px;

  padding: 8px 12px;

  border:
    1px solid
    var(--border);

  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-secondary)
    );

  color: white;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.toggle:hover {
  transform: translateY(-3px);

  box-shadow:
    0 8px 25px
    rgba(124, 58, 237, 0.4);
}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.menu-toggle {
  display: none;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;

  width: 40px;
  height: 40px;

  padding: 8px;

  border:
    1px solid
    var(--border);

  border-radius: 8px;

  background: var(--card);

  color: var(--text);

  font-size: 20px;

  cursor: pointer;
}

/* Garis hamburger buat menu-toggle yang pake <span> (about.html, gallery.html) */
.menu-toggle span {
  display: block;

  width: 20px;
  height: 2px;

  background: var(--text);
  border-radius: 2px;

  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* =====================================================
   MOBILE / TABLET
===================================================== */

@media (max-width: 768px) {

  nav {
    position: sticky;
    top: 0;

    padding: 12px 0;
  }

  /* Tampilkan tombol ☰ */

  .menu-toggle {
    display: block;
  }

  /* Sembunyikan menu */

  .nav-right {
    display: none;

    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 220px;
    margin-right: 0; /* reset margin desktop yang bikin dropdown ke-geser kiri */

    flex-direction: column;
    align-items: stretch;

    gap: 5px;

    padding: 15px;

    border-radius: 15px;

    background:
      rgba(20, 20, 25, 0.85);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border:
      1px solid
      var(--border);

    box-shadow:
      0 20px 50px
      rgba(0, 0, 0, 0.25);
  }


  /* Menu dibuka */

  .nav-right.menu-open {
    display: flex;
  }


  .nav-right a {
    width: 100%;
    padding: 10px 12px;
  }


  nav a::after {
    display: none;
  }


  .toggle {
    width: 100%;
    margin: 5px 0 0;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

  nav {
    padding: 10px 0;
  }

  .nav-left span {
    font-size: 14px;
  }

  .nav-left img {
    width: 36px;
    height: 36px;
  }

  .nav-right {
    width: min(220px, 90vw);
  }

}

/* =====================================================
   HERO
===================================================== */


/* Hero Text */

.hero-text {
  flex: 1;
}


/* Hero Heading */

.hero-text h1 {
  font-size: 40px;

  line-height: 1.2;

  margin-bottom: 10px;
}


/* Gradient Name */

.hero-text span {
  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--accent-secondary)
    );

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;
}


/* Hero Subtitle */

.hero-text h3 {
  font-size: 20px;

  margin-top: 10px;

  color: var(--text);
}


/* Hero Paragraph */

.hero-text p {
  margin: 20px 0;

  line-height: 1.7;

  max-width: 700px;

  color: var(--text-muted);
}


/* =====================================================
   HERO BUTTONS
===================================================== */

.hero-buttons {
  display: flex;

  gap: 10px;

  flex-wrap: wrap;
}


/* =====================================================
   BUTTON
===================================================== */

.btn {
  display: inline-block;

  text-decoration: none;

  padding: 11px 24px;

  border-radius: 8px;

  cursor: pointer;

  margin-top: 10px;

  position: relative;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}


/* ================= PRIMARY BUTTON ================= */

.btn-primary {
  color: white;

  border: none;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-secondary)
    );

  box-shadow:
    0 8px 25px
    rgba(124, 58, 237, 0.25);
}


/* ================= OUTLINE BUTTON ================= */

.btn-outline {
  color: var(--text);

  border:
    1px solid
    var(--border);

  background:
    rgba(255, 255, 255, 0.03);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);
}


/* ================= BUTTON HOVER ================= */

.btn:hover {
  transform:
    translateY(-4px);

  box-shadow:
    0 12px 30px
    rgba(124, 58, 237, 0.3);
}


/* Outline Hover */

.btn-outline:hover {
  color: white;

  border-color:
    transparent;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-secondary)
    );
}


/* Button Click */

.btn:active {
  transform:
    scale(0.96);
}


/* ================= SHINE EFFECT ================= */

.btn::after {
  content: "";

  position: absolute;

  top: 0;

  left: -120%;

  width: 100%;

  height: 100%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent
    );

  transition:
    left 0.6s ease;
}


.btn:hover::after {
  left: 120%;
}


/* =====================================================
   GLASS PHOTO
===================================================== */

.photo-card {
  position: relative;

  padding: 20px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.18),
      rgba(59, 130, 246, 0.12)
    );

  border:
    1px solid
    var(--border);

  backdrop-filter:
    blur(20px);

  -webkit-backdrop-filter:
    blur(20px);

  box-shadow:
    0 20px 60px
    var(--shadow);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}


/* Photo Card Hover */

.photo-card:hover {
  transform:
    translateY(-8px);

  box-shadow:
    0 25px 70px
    rgba(124, 58, 237, 0.25);
}


/* Photo */

.photo-card img {
  width: 220px;

  display: block;

  border-radius: 18px;

  object-fit: cover;
}


/* =====================================================
   SECTIONS
===================================================== */

section {
  margin-top: 80px;

  scroll-margin-top: 30px;
}


section h2 {
  font-size: 30px;

  margin-bottom: 15px;
}


section p {
  color: var(--text-muted);

  line-height: 1.7;
}


/* =====================================================
   PROJECTS
===================================================== */

.cards {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(250px, 1fr)
    );

  gap: 20px;

  margin-top: 25px;
}


/* =====================================================
   PROJECT CARD
===================================================== */

.card {
  background:
    linear-gradient(
      135deg,
      var(--card),
      rgba(255, 255, 255, 0.02)
    );

  padding: 15px;

  border-radius: 16px;

  border:
    1px solid
    var(--border);

  backdrop-filter:
    blur(15px);

  -webkit-backdrop-filter:
    blur(15px);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* Project Card Hover */

.card:hover {
  transform:
    translateY(-8px);

  border-color:
    rgba(139, 92, 246, 0.4);

  box-shadow:
    0 20px 40px
    var(--shadow);
}


/* Project Image */

.card img {
  width: 100%;

  display: block;

  border-radius: 12px;

  margin-bottom: 15px;

  transition:
    transform 0.3s ease;
}


/* Project Image Hover */

.card:hover img {
  transform:
    scale(1.05);
}


/* Project Title */

.card h3 {
  margin-bottom: 8px;
}


/* Project Description */

.card p {
  margin-top: 8px;

  line-height: 1.6;
}


/* =====================================================
   PROJECT TAGS
===================================================== */

.tags {
  margin-top: 10px;
}


.tags span {
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-secondary)
    );

  color: white;

  padding: 4px 8px;

  margin:
    5px 5px 0 0;

  display: inline-block;

  border-radius: 6px;

  font-size: 12px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.tags span:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 5px 15px
    rgba(124, 58, 237, 0.3);
}


/* =====================================================
   CONTACT / SOCIAL LINKS
===================================================== */

#contact {
  text-align: center;

  padding: 60px 0;
}


/* Contact Description */

#contact > p {
  max-width: 600px;

  margin:
    0 auto 30px;

  color:
    var(--text-muted);

  line-height: 1.7;
}


/* Social Links Container */

.contact-links {
  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 15px;

  margin-top: 30px;
}


/* Social Link */

.social-link {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 12px 18px;

  border-radius: 10px;

  text-decoration: none;

  color: var(--text);

  background:
    rgba(255, 255, 255, 0.04);

  border:
    1px solid
    var(--border);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}


/* Social Icon */

.social-icon {
  display: flex;

  justify-content: center;

  align-items: center;

  width: 32px;

  height: 32px;

  border-radius: 8px;

  color: white;

  font-size: 14px;

  font-weight: 600;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-secondary)
    );

  transition:
    transform 0.3s ease;
}


/* Hover */

.social-link:hover {
  transform:
    translateY(-5px);

  color:
    var(--accent);

  border-color:
    rgba(139, 92, 246, 0.5);

  background:
    rgba(139, 92, 246, 0.08);

  box-shadow:
    0 10px 30px
    rgba(124, 58, 237, 0.2);
}


/* Icon Hover */

.social-link:hover .social-icon {
  transform:
    rotate(-5deg)
    scale(1.1);
}


/* Click */

.social-link:active {
  transform:
    scale(0.96);
}

/* =====================================================
   SCROLL ANIMATION
===================================================== */

.fade {
  opacity: 0;

  transform:
    translateY(20px);

  transition:
    opacity 1s ease,
    transform 1s ease;
}


.fade.show {
  opacity: 1;

  transform:
    translateY(0);
}


@media (max-width:768px){

    nav{
        padding:12px 18px;
    }

    /* tombol hamburger muncul */

    .menu-toggle{
        display:flex;
    }

    /* menu mobile ikut definisi utama di atas (.nav-right / .nav-right.menu-open) */

    body.light .nav-right{
        background:rgba(255,255,255,.95);
    }

    .toggle{
        width:100%;
        margin-top:10px;
        margin-left:0;
    }

    /* HERO */

.hero{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;

    padding-top: 120px;
    padding-bottom: 60px;
  }

.hero-text{
    width:100%;
    align-items:center;
    text-align:center;
  }

.hero-text h1{
    font-size:38px;
  }

.hero-text h3{
    font-size:22px;
  }

.hero-text p{
    max-width:100%;
    font-size:16px;
    line-height:1.8;
  }

.hero-buttons{
    justify-content:center;
    flex-wrap:wrap;
  }

.photo-card{
    order:-1;
  }

.photo-card img{
    width:220px;
  }




/* ==========================================
   ABOUT PAGE MOBILE - FULL CENTER FIX
========================================== */

/* 1. RESET CONTAINER UTAMA */
.container-about {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 2. PAGE WRAPPER */
.about-page {
    width: 100% !important;
    padding-top: 120px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Paksa seluruh section ke tengah */
}

/* 3. HEADER ("// 01 About Me") */
.about-header {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 35px !important;
}

.about-header .section-number {
    font-size: 13px !important;
    color: var(--accent, #a855f7) !important;
    letter-spacing: 3px !important;
    font-weight: 600 !important;
}

.about-header h1 {
    font-size: 36px !important;
    margin: 8px 0 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.about-header p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--text-muted, #94a3b8) !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* 4. CONTENT WRAPPER (FOTO & TEKS) */
.about-content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important; /* Susun ke bawah */
    align-items: center !important;      /* KUNCI: Membuat Foto & Teks Pas di Tengah */
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
}

/* 5. FOTO PROFIL (BINGKAI GRADIENT) */
.about-image {
    width: 100% !important;
    max-width: 280px !important; /* Lebar bingkai pas di layar HP */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;   /* Posisikan bingkai di tengah halaman */
    
    padding: 12px !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(59, 130, 246, 0.4)) !important;
    border-radius: 28px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
}

.about-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    display: block !important;
}

/* 6. TEKS DESKRIPSI */
.about-text {
    width: 100% !important;
    max-width: 360px !important; /* Mengunci lebar teks agar seimbang dengan foto */
    margin: 0 auto !important;   /* Posisikan blok teks di tengah */
    text-align: center !important;
}

.about-text h2 {
    font-size: 26px !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}

.about-text p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
    color: var(--text-muted, #cbd5e1) !important;
    text-align: left !important;
}

/* 7. SKILLS SECTION */
.about-skills {
    width: 100% !important;
    margin-bottom: 60px !important;
}

.about-skills h2 {
    text-align: center !important;
    font-size: 24px !important;
    margin-bottom: 25px !important;
}

.skill-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* 1 kolom membentang rapi */
    gap: 16px !important;
    width: 100% !important;
}

.skill-card {
    padding: 20px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left !important; /* Isi kartu skill tetap enak dibaca kalau rata kiri */
}
}
/* ============================================
   HERO
============================================ */

.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:70px;

    padding-top:60px;
    padding-bottom:100px;

    flex-wrap:nowrap;
}

/* ================= LEFT ================= */

.hero-text{
    flex:1;

    display:flex;
    flex-direction:column;
    align-items:flex-start;

    text-align:left;
}

.hero-text h1{
    font-size:52px;
    margin-bottom:8px;
    line-height:1.2;
}

.hero-text h3{
    font-size:24px;
    margin-bottom:20px;
    color:var(--text);
}

.hero-text p{
    font-size:17px;
    line-height:1.8;

    color:var(--text-muted);

    max-width:650px;

    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:15px;
}

/* ================= RIGHT ================= */

.photo-card{

    flex-shrink:0;

    display:flex;
    justify-content:center;
    align-items:center;
}

.photo-card img{

    width:320px;
    border-radius:20px;
}
/* =====================================================
   RESPONSIVE - SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

  .container {
    width: 90%;
  }


  /* Navbar */

  .nav-left {
    flex-direction: column;
  }


  .nav-right {
    flex-direction: column;

    width: min(240px, calc(100vw - 40px));
    margin-right: 0;
  }


  nav a {
    margin: 5px 0;
  }


  .toggle {
    margin-left: 0;

    margin-top: 5px;
  }


  /* Hero */

  .hero-text h1 {
    font-size: 28px;
  }


  .hero-text h3 {
    font-size: 18px;
  }


  /* Buttons */

  .hero-buttons {
    flex-direction: column;

    width: 100%;
  }


  .btn {
    width: 100%;

    text-align: center;
  }


  /* Sections */

  section h2 {
    font-size: 26px;
  }


  /* Photo */

  .photo-card img {
    width: 160px;
  }

}

/* =====================================================
   MULTI PAGE - ABOUT
===================================================== */

.about-page,
.gallery-page {
  padding-top: 80px;
  padding-bottom: 80px;
}

.about-header,
.gallery-header {
  margin-bottom: 70px;
}

.section-number {
  display: block;

  color: var(--accent);

  font-family: monospace;

  font-size: 16px;

  letter-spacing: 4px;

  margin-bottom: 30px;
}

.about-header h1,
.gallery-header h1 {
  font-size: clamp(50px, 8vw, 100px);

  line-height: 1;

  margin-bottom: 25px;

  background:
    linear-gradient(
      90deg,
      var(--text),
      var(--accent)
    );

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

.about-header p,
.gallery-header p {
  max-width: 600px;

  color: var(--text-muted);

  line-height: 1.7;
}


/* =====================================================
   ABOUT CONTENT
===================================================== */

.about-content {
  display: grid;

  grid-template-columns:
    0.8fr 1.2fr;

  gap: 60px;

  align-items: center;
}

.about-image {
  flex: 0 0 260px;

  width: 260px;

  padding: 15px;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-secondary)
    );

  box-shadow:
    0 20px 60px
    var(--shadow);
}

.about-image img {
  width: 100%;

  height: 320px;

  display: block;

  object-fit: cover;

  border-radius: 15px;
}

.about-text h2 {
  font-size: 35px;

  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}


/* =====================================================
   ABOUT SKILLS
===================================================== */

.about-skills {
  margin-top: 100px;
}

.about-skills h2 {
  margin-bottom: 30px;
}

.skill-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}

.skill-card {
  padding: 25px;

  border-radius: 15px;

  background:
    var(--card);

  border:
    1px solid
    var(--border);

  backdrop-filter:
    blur(15px);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-card:hover {
  transform:
    translateY(-8px);

  border-color:
    var(--accent);

  box-shadow:
    0 15px 40px
    var(--shadow);
}

.skill-card h3 {
  margin-bottom: 10px;

  color: var(--accent);
}


/* ================= GALLERY ================= */

.gallery-section {
    padding: 80px 0;
}

.gallery-header {
    margin-bottom: 60px;
}

.section-number {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 4px;
}

.gallery-header h1 {
    font-size: clamp(50px, 8vw, 100px);
    margin-top: 30px;
}


/* ================= TABS ================= */

.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
}

.gallery-tab {
    padding: 16px 45px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--card);
    color: var(--text);

    cursor: pointer;

    font-size: 14px;
    letter-spacing: 3px;

    transition: 0.3s ease;
}

.gallery-tab:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-secondary)
        );

    color: white;
}

.gallery-tab.active {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-secondary)
        );

    color: white;
}


/* ================= GALLERY GRID ================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 28px;
}


/* ================= HIDE GALLERY ================= */

.gallery-content {
    display: none;
}

.gallery-content.active {
    display: grid;
}


/* ================= GALLERY ITEM ================= */

.gallery-item {
    overflow: hidden;

    border-radius: 16px;

    border:
        1px solid
        var(--border);

    background:
        var(--card);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px
        var(--shadow);
}


.gallery-item img {
    width: 100%;

    height: 300px;

    display: block;

    object-fit: cover;

    cursor: pointer;

    transition:
        transform 0.5s ease;
}


.gallery-item:hover img {
    transform: scale(1.05);
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .gallery-tabs {
        flex-direction: column;
    }

    .gallery-tab {
        width: 100%;
    }

    .gallery-item img {
        height: 240px;
    }

}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-toggle:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-secondary)
        );

    color: white;
}

/* ==========================================
   EXPERIENCE SECTION & ANIMATIONS
========================================== */

/* 1. Samakan padding & max-width container dengan Projects */
.experience-page {
    width: 100%;
    /* Pakai max-width dan padding yang sama persis seperti Projects */
    max-width: 1200px; /* Sesuaikan angka ini jika container Projects kamu beda (misal 1100px / 1280px) */
    margin: 0 auto;    /* Ini menjaga agar batas kiri container atas & bawah lurus sama */
    padding: 60px 20px; /* Samakan padding kiri/kanan dengan section Projects */
    box-sizing: border-box;
}

/* 2. Header & List menempel di batas paling kiri container */
.experience-header {
    text-align: left !important;
    margin-bottom: 35px;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.experience-list {
    width: 100%;
    padding-left: 0 !important;
    margin-left: 0 !important;

    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 3. Pastikan item pertama (angka 1) menempel di ujung paling kiri */
.exp-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-left: 0 !important;
    margin-bottom: 30px; /* fallback kalau browser lama gak support gap di flex */
}

/* Lingkaran Nomor (Neon Ungu) */
.exp-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: #ffffff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Glassmorphism Card + Hover Animation */
.exp-card {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exp-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15);
}

.exp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 16px;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.3px;
    word-spacing: 2px;
}

.exp-badge {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-family: monospace;
    font-weight: 600;
}

.role-title {
    color: var(--accent-secondary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

.exp-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* Skill Tags */
.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-tags span {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
    transition: all 0.3s ease;
}

.exp-card:hover .exp-tags span {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.08);
    color: var(--text);
}

/* Animasi Fade-In */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .experience-page {
        padding-top: 110px;
    }

    .experience-header h1 {
        font-size: 36px;
    }

    .exp-item {
        gap: 12px;
    }

    .exp-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
        margin-top: 12px;
    }

    .exp-card {
        padding: 20px;
    }

    .exp-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .company-name {
        font-size: 19px;
    }
}

/* =====================================================
   LIGHTBOX (Project Image Viewer)
===================================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;

  align-items: center;
  justify-content: center;

  background: rgba(5, 5, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;

  border-radius: 14px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);

  object-fit: contain;

  animation: lightboxFade 0.25s ease;
}

.lightbox-caption {
  color: #fff;
  font-size: 15px;
  opacity: 0.8;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  top: 24px;
  right: 24px;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);

  width: 52px;
  height: 52px;

  border-radius: 50%;
  font-size: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@keyframes lightboxFade {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 22px;
    top: 14px;
    right: 14px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* =====================================================
   PAGE LOADER (spinner pas pindah halaman)
===================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--bg);

  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-spinner {
  width: 46px;
  height: 46px;

  border: 3px solid var(--border);
  border-top-color: var(--accent);

  border-radius: 50%;

  animation: page-loader-spin 0.8s linear infinite;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  margin-top: 80px;

  border-top: 1px solid var(--border);

  background: var(--card);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;

  padding: 60px 40px 40px;

  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col a,
.footer-col span {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-secondary)
    );

  color: #fff;
  font-size: 14px;
  font-weight: 700;

  margin-bottom: 0;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);

  padding: 20px 40px;

  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 50px 24px 30px;
    gap: 30px;
  }
}


/* =====================================================
   TOOLS / SOFTWARE MARQUEE
===================================================== */

.tools-section {
  padding: 60px 0;
  text-align: center;
}

.tools-section h2 {
  margin-bottom: 40px;
}

.marquee {
  width: 100%;
  overflow: hidden;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 18px;

  width: max-content;

  animation: marquee-scroll 25s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;

  padding: 14px 22px;

  border-radius: 14px;

  background: var(--card);
  border: 1px solid var(--border);

  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;

  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tool-badge:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.tool-logo {
  width: 34px;
  height: 34px;

  padding: 6px;
  box-sizing: border-box;

  object-fit: contain;

  flex-shrink: 0;

  background: #fff;
  border-radius: 8px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .tool-badge {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* =====================================================
   TERMINAL BRAND (navbar) — Ubuntu Mono + blinking cursor
===================================================== */

.terminal-brand {
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.blink-cursor {
  display: inline-block;
  animation: blink-cursor-anim 1s steps(1) infinite;
  color: var(--accent);
}

/* Pas lagi ngetik, cursor solid dulu (gak kedip) */
.blink-cursor.typing {
  animation: none;
  opacity: 1;
}

@keyframes blink-cursor-anim {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

.terminal-brand .typed-text {
    font-family: 'Ubuntu Mono', monospace;
}