/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

:root {
    --bg-color:#483248;
    --secont-bg-color: #000080;
    --text-color: black;
    --main-color: #5D3FD3;
    --backup-color: #FFFFF0;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
    color: var(--text-color);
    background: linear-gradient(to bottom, #1e2456, #4b2b88, #2e115d);
}


/* Navbar Styles */
header {
    position: fixed; /* Navbar fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 10%;
    background: rgba(250, 249, 246);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.navbar {
    display: flex;
    gap: 2rem; /* Space between nav items */
}

.navbar a {
    font-size: 1.8rem;
    color: black;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}


.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.navbar a.active {
    border-bottom: 3px solid var(--main-color);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Card Section: Halaman Kedua */
.hal-kedua {
    margin-top: 120px; /* Memberi ruang untuk navbar */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grid responsif */
    gap: 0.5rem; /* Jarak antar card */
    padding: 2rem;
    justify-items: center; /* Pusatkan card secara horizontal */
    align-items: start; /* Card tetap diatur dari atas */
}

/* Card Styles */
.card-container {
    position: relative;
    display: block;
    width: 200px; /* Card lebar tetap */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Hilangkan underline pada link */
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Proporsi gambar terjaga */
    transition: transform 0.3s ease; /* Efek zoom */
}

/* Overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Default tinggi overlay */
    background: linear-gradient(90deg, #6b33c8, #5a86ff);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease;
}

/* Teks Overlay */
.card-text {
    text-align: center;
    color: #fff;
}

.card-text h2 {
    font-size: 1.6rem;
    margin: 0;
}

.card-text p {
    font-size: 1.2rem;
    margin: 0;
}

/* Hover Effects */
.card-container:hover {
    transform: scale(1.05); /* Zoom in effect */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

.card-container:hover .card img {
    transform: scale(1.1); /* Zoom pada gambar */
}

.card-container:hover .card-overlay {
    height: 100%;
    background: linear-gradient(135deg, #7a4cdb, #3e86ff);
    opacity: 1;
}

/* Slider Container */


.image-slide {
    margin-top: 100px;
    background: linear-gradient(to bottom, #1a1d45, #3e2f70, #120e33);
}


.slider {
    position: relative;
    width: 100%; /* Slider full width */
    max-width: 800px; /* Maksimal lebar */
    margin: auto; /* Center slider */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Slides Wrapper */
  .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  /* Single Slide */
  .slide {
    min-width: 100%; /* Slide memenuhi seluruh lebar */
    height: 400px;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Navigation Buttons */
  button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
  }
  
  button.prev {
    left: 10px;
  }
  
  button.next {
    right: 10px;
  }
  
  button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  