/* Mengimpor Font Militer 'Black Ops One' & Font Bacaan 'Montserrat' dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Montserrat:wght@400;600;700&display=swap');

/* Pengaturan Dasar */
body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
    background-color: #161a0e;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.06) 15%, transparent 16%),
        radial-gradient(rgba(255, 255, 255, 0.06) 15%, transparent 16%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #F0F0F0; 
    line-height: 1.6;
}

/* Bagian Header */
header {
    background-color: #2C3113; /* Hijau Zaitun Super Gelap */
    color: #C3B091; /* Khaki / Cokelat Pasir */
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-bottom: 3px solid #C3B091;
}

header h1 {
    margin: 0;
    font-family: 'Black Ops One', cursive, sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
}

/* Container Slider Profil */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
    padding: 20px 0;
}

.profil-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 440px;
}

/* Kartu Profil dengan Efek Transisi */
.card {
    background-color: #C3B091; /* Warna Khaki */
    color: #2C3113; /* Teks Gelap pada Kartu */
    width: 270px;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 3px solid #2C3113;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7);
    z-index: 1;
}

/* Kartu Aktif di Tengah */
.card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    z-index: 3;
}

/* Kartu Samping Kiri */
.card.prev {
    opacity: 0.4;
    transform: translateX(-220px) scale(0.85);
    z-index: 2;
}

/* Kartu Samping Kanan */
.card.next {
    opacity: 0.4;
    transform: translateX(220px) scale(0.85);
    z-index: 2;
}

.card:hover.active {
    border-color: #4B5320;
    box-shadow: 0 8px 16px rgba(0,0,0,0.7);
}

/* Tombol Navigasi Slider */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #C3B091;
    color: #2C3113;
    border: 2px solid #2C3113;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
    padding: 0;
    font-family: 'Black Ops One', cursive, sans-serif;
}

.nav-btn:hover {
    background-color: #2C3113;
    color: #C3B091;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.ikon-dekor {
    position: absolute;
    z-index: -1; 
    font-size: 35px;
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

.ikon-1 { top: 15px; left: 15px; transform: scale(0.3); }    
.ikon-2 { top: 15px; right: 15px; transform: scale(0.3); }   
.ikon-3 { bottom: 15px; left: 15px; transform: scale(0.3); } 
.ikon-4 { bottom: 15px; right: 15px; transform: scale(0.3); }

.card.active:hover .ikon-1 { top: -20px; left: -20px; opacity: 1; transform: scale(1) rotate(-15deg); }
.card.active:hover .ikon-2 { top: -20px; right: -20px; opacity: 1; transform: scale(1) rotate(15deg); }
.card.active:hover .ikon-3 { bottom: -20px; left: -20px; opacity: 1; transform: scale(1) rotate(-20deg); }
.card.active:hover .ikon-4 { bottom: -20px; right: -20px; opacity: 1; transform: scale(1) rotate(20deg); }

.card img {
    width: 110px;
    height: 135px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #4B5320;
    margin-bottom: 10px;
}

.card h3 {
    margin: 5px 0;
    color: #2C3113;
    font-family: 'Black Ops One', cursive, sans-serif;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 13px;
    margin: 5px 0;
}

.deskripsi-diri {
    text-align: left;
    background-color: #E2D7C1; 
    padding: 10px;
    border-left: 4px solid #4B5320;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 12.5px;
    color: #222;
}

.deskripsi-diri ul {
    padding-left: 20px;
    margin: 5px 0;
}

/* Bagian Tutorial Matematika */
.tutorial-section {
    background-color: #F4F1EA; 
    color: #222;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    border: 2px solid #C3B091;
}

h2.portofolio-title {
    text-align: center;
    color: #F0F0F0;
    font-family: 'Black Ops One', cursive, sans-serif;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 2px dashed #C3B091;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

h2.section-title {
    text-align: center;
    color: #2C3113;
    font-family: 'Black Ops One', cursive, sans-serif;
    letter-spacing: 1px;
    border-bottom: 3px solid #4B5320;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.tutorial-section h3 {
    font-family: 'Black Ops One', cursive, sans-serif;
    color: #2C3113;
    letter-spacing: 0.5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #C3B091;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background-color: #2C3113;
    color: #C3B091;
    font-family: 'Black Ops One', cursive, sans-serif;
    letter-spacing: 1px;
}

tr:nth-child(even) {
    background-color: #E2D7C1;
}

.interactive-box {
    background-color: #E2D7C1;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    border: 2px dashed #4B5320;
}

input[type="number"], select {
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    border: 2px solid #4B5320;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    width: 180px;
    background-color: #F4F1EA;
}

#hitung-btn {
    background-color: #4B5320;
    color: #C3B091;
    border: 2px solid #2C3113;
    padding: 12px 25px;
    font-size: 16px;
    font-family: 'Black Ops One', cursive, sans-serif;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#hitung-btn:hover {
    background-color: #2C3113;
    color: #FFF;
    transform: translateY(-2px);
}

#hasil-perhitungan {
    display: block;
    margin-top: 20px;
    font-size: 24px;
    font-family: 'Black Ops One', cursive, sans-serif;
    color: #2C3113;
    letter-spacing: 1px;
}