html {
    scroll-behavior: smooth; /* Cara instan buat browser modern */
}

.project-img {
    /* Ganti baris background-image nya jadi URL web kamu */
    background-image: url('assets/hero-bg.png'); 
    background-size: cover;
    background-position: center;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #00d2ff;
    --dark: #0f172a;
    --secondary: #1e293b;
    --text: #f8fafc;
}

body {
    background-color: var(--dark);
    color: var(--text);
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 10%;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span { color: var(--primary); }

/* Tambahkan atau update bagian ini di style.css */
nav ul li a {
    position: relative;
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Animasi garis bawah pas di-hover/diklik */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after, 
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero Section */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 1rem; }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 1.2rem; color: #94a3b8; margin-bottom: 2rem; }

.btn {
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
}

.btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3); }

/* Projects Section */
#projects { padding: 5rem 10%; background: var(--secondary); }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--dark);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s;
}

.project-card:hover { transform: translateY(-10px); }

.project-img {
    height: 200px;
    background: #334155;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.project-info { padding: 1.5rem; }
.project-info h3 { margin-bottom: 0.5rem; }
.project-info p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 1.5rem; }

.link-project { color: var(--primary); text-decoration: none; font-weight: 600; }

.badge {
    background: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Footer */
footer { text-align: center; padding: 5rem 10%; }
.social-links { margin: 2rem 0; }
.social-links a { color: var(--text); margin: 0 1rem; text-decoration: none; font-size: 1.1rem; }
.social-links a:hover { color: var(--primary); }
.copy { font-size: 0.8rem; color: #475569; margin-top: 3rem; }

.project-card:hover .project-img {
    transform: scale(1.1);
    transition: 0.5s ease;
}

.project-img {
    overflow: hidden; /* Biar pas di-zoom nggak keluar jalur */
}

#typing {
    color: var(--primary); /* Biar warnanya biru/biru muda sesuai tema */
    font-weight: 600;
}

/* Animasi kursor kedap-kedip biar makin real */
.typed-cursor {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Styling Section Skills */
#skills {
    padding: 80px 10%;
    background-color: var(--dark);
    text-align: center;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: var(--secondary);
    padding: 25px;
    border-radius: 15px;
    width: 130px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.skill-card p {
    font-weight: 600;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Efek Hover: Card agak naik dan ada glow tipis */
.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.skill-card:hover p {
    color: var(--text);
}

/* Styling untuk Tombol di Kartu Project (Nomor 3) */
.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark);
    background: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px; /* Jarak ikon dan teks */
}

.btn-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

/* From Uiverse.io by satyamchaudharydev */ 
button {
  width: 140px;
  height: 56px;
  overflow: hidden;
  border: none;
  color: #fff;
  background: none;
  position: relative;
  padding-bottom: 2em;
  cursor: pointer;
}

button > div,
button > svg {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
}

button:before {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: bottom right;
  background: currentColor;
  transition: transform 0.25s ease-out;
}

button:hover:before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

button .clone > *,
button .text > * {
  opacity: 1;
  font-size: 1.3rem;
  transition: 0.2s;
  margin-left: 4px;
}

button .clone > * {
  transform: translateY(60px);
}

button:hover .clone > * {
  opacity: 1;
  transform: translateY(0px);
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

button:hover .text > * {
  opacity: 1;
  transform: translateY(-60px);
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

button:hover .clone > :nth-child(1) {
  transition-delay: 0.15s;
}

button:hover .clone > :nth-child(2) {
  transition-delay: 0.2s;
}

button:hover .clone > :nth-child(3) {
  transition-delay: 0.25s;
}

button:hover .clone > :nth-child(4) {
  transition-delay: 0.3s;
}
/* icon style and hover */
button svg {
  width: 20px;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-50deg);
  transition: 0.2s ease-out;
}

button:hover svg {
  transform: translateY(-50%) rotate(-90deg);
}
#backToTop {
  position: fixed; /* Biar melayang pas di-scroll */
  bottom: 20px;    /* Jarak dari bawah */
  right: 20px;     /* Jarak dari kanan */
  z-index: 99;     /* Biar nggak ketutupan gambar lain */
  display: none;   /* Awalnya kita sembunyiin dulu */
  color: #ffffff;  /* Lu bisa ganti pake Biru Persib lu */
}