/* Mengubah import font untuk menggunakan Inter dan Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --text: #ffffff;
    --accent: #58a6ff;
    --card: #161b22;
    /* Font utama untuk teks body */
    --font: 'Inter', sans-serif;
    /* Font untuk heading dan elemen menonjol */
    --heading-font: 'Montserrat', sans-serif;
    --solana-card-bg: rgba(22, 27, 34, 0.8); /* Sedikit lebih gelap dari card asli, dengan transparansi */
    --solana-card-border: rgb(255, 255, 255); /* Border yang lebih menonjol */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Hapus border debugging jika tidak diperlukan lagi */
    border: px solid red;
}

body {
    /* Warna fallback jika canvas tidak dimuat */
    background: #000000; 
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
    position: relative; /* Penting: Membuat stacking context untuk body */
    z-index: 0; /* Penting: Memberi body z-index agar canvas -1 bekerja relatif padanya */
}

/* Gaya untuk canvas background */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Pastikan canvas berada di belakang semua konten */
    display: block;
    background: linear-gradient(to bottom right, #051011, #161617); /* Gradasi sebagai fallback atau dasar */
}

header {
    background: #000000;
    padding: 1em 2em;
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
    z-index: 1000; /* Pastikan header selalu di atas */
}

.nama {
    font-size: 55px;
    color: rgb(255, 255, 255);
    font-family: var(--heading-font);
    font-weight: 700;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.4em;
    color: white;
    margin-left: 50px;
    font-family: var(--heading-font);
    font-weight: 700;
}

nav h1:hover {
    color: var(--accent);
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2em;
    margin-right: 50px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

section {
    padding: 4em 2em;
    max-width: 1100px;
    margin: auto;
    position: relative;
    z-index: 1; /* Pastikan section berada di atas canvas */
    background-color: #000000; /* Penting: Beri background solid agar canvas tidak terlihat di balik section */
}

section a {
    color: white;
}

#about {
    font-family: var(--font);
    color: var(--text);
    animation: fadeInUp 1.2s ease-in-out;
    line-height: 1.8;
    text-align: justify;
    z-index: 1;
    position: relative;
    background-color: #00000058; /* Pastikan about section juga punya background */
    border-radius: 15px;
}

#about p {
text-align: justify;

}

#about h2 {
    font-family: var(--heading-font);
    color: var(--text);
    font-weight: 700;
    font-size: 30px; /* Pastikan ukuran font tetap di sini */
}

#projects {
    background-color: #060606aa; /* Warna latar belakang untuk section projects */
    border-radius: 40px;
}

#projects h2 {
    font-family: var(--heading-font);
    color: var(--text);
    margin-top: 30px;
    font-weight: 700;
    font-size: 30px; /* Pastikan ukuran font tetap di sini */
}

#hero {
    margin-top: 10px;
    background-color: transparent; /* Hero section bisa transparan jika ingin canvas terlihat di baliknya */
}

.hero-container {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 1.2s ease-in-out;
}

.intro {
    flex: 1;
    text-align: left;
    color: var(--text);
}

.intro h2 {
    font-size: 2.0rem;
    color: white;
    margin-bottom: 20px;
    font-family: var(--heading-font);
    font-weight: 700;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c9d1d9;
}

.project p {
    font-family: var(--font);
    font-size: 15px;
    color: rgb(188, 188, 188);
}

.profile {
    flex: 0 0 auto;
    text-align: center;
    min-width: 350px;
    max-width: 450px;
}

.profile img {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
    display: block;
    margin: 0 auto;
}

.intro .btn {
    display: inline-block;
    margin-top: 1em;
    padding: 0.8em 1.5em;
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    box-shadow: 0 0 10px #4d5d70bf;
}

.intro .btn:hover {
    background-color: rgb(86, 97, 121);
    color: var(--bg);
    box-shadow: 0 0 20px #1657a2;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
}

.project-list a { 
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer; 
}

.project-list a:hover .project {
    transform: translateY(-5px); 
    box-shadow: 0 6px 25px rgba(88, 166, 255, 0.25);
}

.project {
    background-color: var(--solana-card-bg);
    padding: 1.5em;
    border-radius: 12px;
    border: 1px solid var(--solana-card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: white;
    object-fit: contain;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 1.2em;
}

.project h3 {
    font-family: var(--heading-font);
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5em;
    padding-left: 15px;
    position: relative;
}

.project h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background-color: var(--accent);
    border-radius: 2px;
}

.project p {
    font-family: var(--font);
    font-size: 1em;
    color: #c9d1d9;
    margin-bottom: 1em;
}

footer {
    text-align: center;
    padding: 2em;
    border-top: 1px solid #30363d;
    margin-top: 4em;
    color: var(--text);
    background-color: #000000; /* Pastikan footer juga punya background */
}

.social-links {
    font-size: 20px;
    align-items: center;
    display: flex;
    padding-left: 4px;
    justify-content: space-between;
    gap: 5em;
    margin-top: 50px;
}

.aws-icon {
    filter: brightness(8.0);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatTilted {
    0%   { transform: translateY(0) rotate(-15deg); }
    50%  { transform: translateY(-10px) rotate(-15deg); }
    100% { transform: translateY(0) rotate(-15deg); }
}

.btn1, .btn2, .btn3 {
    width: 30px;
    height: auto;
    transition: all 0.3s ease;
}

.btn1:hover, .btn2:hover, .btn3:hover {
    background-color: rgba(137, 137, 137, 0.179);
    border-radius: 12px;
    transform: scale(1.1);
}

.btn4 {
    width: 80px;
    height: auto;
    position: fixed;
    bottom: 50px;
    right: 50px;
    opacity: 0.8;
    transform: rotate(-15deg);
    animation: floatTilted 3.2s ease-in-out infinite;
    z-index: 100;
}























/* Desktop styles */
@media (min-width: 1024px) {
    .kotakbiasa {
        display: block;
        z-index: 0;
        background-color: rgba(35, 35, 35, 0.941);
        width: 90%;
        max-width: 1100px;
        height: 195px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 10px;
        animation: fadeInUp 1.2s ease-in-out;
    }

    #about {
        margin-top: 200px;
    }
}

/* Tablet styles */
@media (max-width: 1023px) and (min-width: 769px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .profile img {
        width: 300px;
    }

    .nama {
        font-size: 35px;
    }

    nav h1 {
        margin-left: 20px;
    }

    nav ul {
        margin-right: 20px;
        gap: 1.5em;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .intro {
        text-align: center;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    .nama {
        font-size: 28px;
    }

    .profile {
        margin-top: 20px;
    }

    .profile img {
        width: 250px;
        max-width: 90%;
    }

    nav {
        padding: 0 10px;
    }

    nav h1 {
        font-size: 1.2em;
        margin-left: 10px;
    }

    nav ul {
        gap: 1em;
        margin-right: 10px;
    }

    .btn1, .btn2, .btn3 {
        width: 25px;
    }

    section {
        padding: 2em 1em;
    }

    .intro .btn {
        padding: 0.6em 1.2em;
        font-size: 0.9rem;
    }

    .btn4 {
        width: 50px;
        bottom: 20px;
        right: 20px;
    }

    .aws-icon {
        width: 30px;
        right: 15px;
    }

    #about {
        text-align: left;
    }

    #projects h2 {
        margin-top: 30px;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .nama {
        font-size: 22px;
    }

    .intro h2 {
        font-size: 1.3rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .profile img {
        width: 200px;
    }

    nav h1 {
        font-size: 1rem;
        margin-left: 5px;
    }

    nav ul {
        margin-right: 5px;
    }

    .btn1, .btn2, .btn3 {
        width: 20px;
    }

    section {
        padding: 1.5em 0.8em;
    }
}
