/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    background-image: url('image/kertas.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #2b1b11;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}   


.custom-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
    box-sizing: border-box;
    background-image: url('image/rename.png ');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #8b5a2b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left .btn-back-header {
    padding: 8px 15px;
    background: #5c3a21;
    color: #f4e1c1;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    border: 1px solid #d4af37;
    border-radius: 5px;
    transition: 0.3s;
}

.header-left .btn-back-header:hover {
    background: #8b5a2b;
}

.header-right .page-indicator {
    font-family: 'Cinzel', serif;
    color: #f4e1c1;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 1.2rem;
}


@font-face {
  font-family: 'ElegantTypewriter';
  src: url('fonts/ELEGANT TYPEWRITER Bold.ttf') format('truetype');
}

h1{
    font-family: Eleganttypewriter;
    font-size: 50px ;
}


h3, h2 {
    font-family: 'Cinzel', serif;
    color: #4a2c11;
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.4);
}

/* Halaman Index */
.index-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.title-welcome {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.title-welcome .datang {
    display: block;
    margin-left: 100px;
}

.btn-masuk {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    color: #fff;
    background: linear-gradient(145deg, #8b5a2b, #5c3a21);
    border: 2px solid #d4af37;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
}

.btn-masuk:hover {
    background: linear-gradient(145deg, #a67c00, #8b5a2b);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

.grid-cards {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    width: 100%;
    max-width: 1000px;
}

/* Card Menu home */
.menu-card {
    background: rgba(255, 248, 231, 0.85);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    padding: 30px;
    width: 250px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 8px 8px 20px rgba(0,0,0,0.5);
}

.menu-card svg {
    width: 64px;
    height: 64px;
    fill: #5c3a21;
    margin-bottom: 15px;
}

.menu-card h2 {
    margin: 10px 0;
    font-size: 1.8rem;
}   

.menu-card p {
    font-size: 1rem;
    color: #444;
}


.jalur-horizontal::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #8b5a2b, #8b5a2b 10px, transparent 10px, transparent 20px);
    z-index: -1;
}

.materi-card {
    background: #fff8e7;
    border: 3px double #5c3a21;
    padding: 20px;
    width: 180px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(139, 90, 43, 0.3), 3px 3px 10px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

.materi-card:hover {
    background: #f4e1c1;
    transform: scale(1.05);
}

.materi-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* Halaman Mater*/
.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: #5c3a21;
    color: #f4e1c1;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    border: 1px solid #d4af37;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #8b5a2b;
}

.content-box {
    margin-top: 40px;
    background: rgba(255, 248, 231, 0.9);
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    max-width: 800px;
    margin: 80px auto 40px auto;
    padding: 40px;
    box-shadow: 5px 5px 25px rgba(0,0,0,0.5);
}

.content-box img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border: 2px solid #5c3a21;
    border-radius: 5px;
    margin-bottom: 20px;
}

.content-box-sub-img {
    width: 50%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Card Anggota*/
.kelompok-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
    margin-top: 50px;
    max-width: 1200px;
}

.card {
    position: relative;
    width: 300px;
    height: 200px;
    background: linear-gradient(-45deg, #8b5a2b 0%, #3e2723 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
}

.card svg {
    width: 48px;
    fill: #f4e1c1;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card:hover {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.card__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff8e7; /* Kertas tua */
    border: 2px solid #8b5a2b;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card:hover .card__content {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
}

.card__title {
    margin: 0;
    font-size: 24px;
    color: #4a2c11;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.card__description {
    margin: 10px 0 0;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.card:hover svg {
    scale: 0;
    transform: rotate(-45deg);
}

/*kaki */
.site-footer {
    background: linear-gradient(145deg, #3e2723, #1a100a); 
    color: #d4af37; 
    text-align: center;
    padding: 50px 30px;
    border-top: 3px solid #8b5a2b;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

.site-footer p {
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Responsivitas */
@media (max-width: 768px) {
    .title-welcome { font-size: 3rem; }
    .title-welcome .datang { margin-left: 50px; }
    .jalur-horizontal::before { display: none; }
    .kelompok-grid { gap: 40px; }
}