/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    scroll-behavior: smooth;
}

/* Fonts */
.bungee-regular {
    font-family: "Bungee", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.caveat-regular {
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.varela-regular {
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(34, 34, 34, 0.9);
}

.chara {
    height: 500px;
    width: auto;
    display: block;
    margin: 1rem auto;
    transition: transform 0.3s ease;
}

.chara:hover {
    transform: scale(1.05);
    content: url("char-hover.png");
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
}

.dumb {
    height: 200px;
    width: auto;
    transition: transform 0.3s ease;
}

.dumb:hover {
    transform: scale(1.05);
    content: url("c.png");
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 50px;
}

.about-text {
    max-width: 500px;
    text-align: justify;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
}

.logo-image {
    height: 50px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #00aaff;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: #00aaff;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.active {
    color: #00aaff;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to right, #0d47a1, #1976d2);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url("hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgb(0, 0, 0);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* full layar */
    background: rgba(0, 0, 0, 0.4);
    /* 0.4 = tingkat kegelapan (40%) */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #00aaff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0088cc;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1976d2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.card:hover {
    transform: translateY(-5px);
    color: #0088cc;
}

.cardtext {
    margin-bottom: 10px;
    text-align: center;
}

.artcard {
    width: 300px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cardlink {
    display: inline-block;
    /* biar bisa diatur lebar/hover dsb */
    color: #00aaff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.ig {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
    max-width: 400px
}

.tambah {
    margin-right: 70px;
}

.jarak {
    margin-bottom: 20px;
    display: inline-block;
}

.jarak2 {
    margin-bottom: 2px;
}

.btn {
    text-align: center;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #00aaff;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: #fff;
}

.smol {
    font-size: 12px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}