body, .txthero, .navbar-brand, .card-title, .card-text, .carousel-caption, h2 {
    font-family: 'Montserrat', sans-serif;
}

.rubik-bubbles {
    font-family: 'Rubik Bubbles', sans-serif;
}


h1{
    font-weight: 1000;
}


.navbar.bg-body-tertiary {
    margin: 0.5rem;
    background-color: #131313;
}

.navbar-nav .nav-link {
    color: #ffffff; /* White color for navbar links */
}

.navbar-nav .nav-link:hover {
    color: #cccccc; /* Light gray on hover */
}

.custom-navbar {
    background: linear-gradient(135deg, #bd80b8, #5b8184); /* Gradient background */
    top: 0;
    z-index: 5000;
  }


.intro-text{
    color: #232323;
}


/* Fullscreen Video Background */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 30px;
    overflow: hidden;
}

.back-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.txthero {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: larger;
    color: white;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
}

  
  
  
  /* Removed text shadow for better visibility */
  


.float-right {
    float: right;
  }
  


.carousel-item {
    height: 400px; /* Set a fixed height for the carousel items */
    width: 100%;
    margin-top: 0;

}

.carousel-item img {
    width: 100%;      /* Make sure images cover the carousel width */
    height: 100%;     /* Fill the height of the carousel item */
    object-fit: cover; /* Maintain aspect ratio while filling space */
}

.custom-card {
    width: 320px; /* Set a fixed width for square shape */
    height: 370px; /* Set the same height as width for square shape */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition */
    cursor: pointer; /* Change cursor to pointer */
    overflow: hidden; /* Ensure content doesn't overflow */
    margin: 0 auto; /* Center the card */
    margin-top: 1.5rem;
    background-color: #5B8184; /* Set the desired background color */
    color: white; /* Change text color for better readability */
    display: flex; /* Enable flex for centering elements */
    flex-direction: column; /* Align items vertically */
    justify-content: center; /* Center the content vertically */
    align-items: center; /* Center the content horizontally */
}

.card-body {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center text */
}
.card-img-top {
    border-radius: 10px; /* Optional: Add some border-radius for softer corners */
    width: 100%; /* Make the image fill the card width */
    height: auto; /* Set to auto to maintain aspect ratio */
    max-height: 190px; /* Set a max height to limit the image size */
    object-fit: cover; /* Use 'cover' to fill the area without distortion */
    margin: 10px auto; /* Center the image */
}

.custom-card:hover {
    transform: translateY(-10px); /* Lift the card up on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.btn-primary btn-lg{
    align-items: center;
}

.carousel-caption {
    color: #333 !important; /* Ubah warna teks menjadi hitam */
}


.modal-image-large {
    width: 80%; /* Adjust width as needed, or specify height */
    max-width: 600px; /* Optional max width */
    margin: 0 auto; /* Center image */
  }
  

  /* Styling for Details button */
.card .btn-primary {
    background-color: #333; /* Set background color to #333 */
    border-color: #333; /* Match border color */
  }
  
  .card .btn-primary:hover {
    background-color: #1a1a1a; /* Darken slightly on hover */
    border-color: #1a1a1a; /* Match border color */
  }
  

h5{
    font-weight: 1000;
}



.carousel-control-prev,
.carousel-control-next {
    position: absolute; /* Keeps the controls within the carousel */
    top: 50%; /* Centers the controls vertically */
    transform: translateY(-50%); /* Centers the controls exactly in the middle */
    width: 40px; /* Adjust button width */
    height: 40px; /* Adjust button height */
    background-color: rgba(0, 0, 0, 0.5); /* Optional: black semi-transparent background */
    border-radius: 50%; /* Optional: makes the buttons circular */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black; /* Set icon color to black */
    width: 20px; /* Adjust width to fit inside the button */
    height: 20px; /* Adjust height */
    background-size: 100%; /* Ensures icon fills the button */
    border-radius: 50%; /* Optional: round icon */
}

.carousel-control-prev {
    left: 30px; /* Adjust this value to add spacing from the left */
}

.carousel-control-next {
    right: 30px; /* Adjust this value to add spacing from the right */
}


/* If you want to change the button border as well */
.carousel-control-prev,
.carousel-control-next {
    border: 0px solid black; /* Optional: add a border if desired */
}


.custom-button {
    background-color: #333; /* Change to desired background color */
    color: white; /* Change text color */
}
.div-skills {
    text-align: center;
    font-weight: 90;
    
}

h1.hard-skills { /* Adjust the selector based on your HTML structure */
    color: #5B8184;
    font-family: 'Rubik Bubbles', sans-serif; /* Fallback to sans-serif if the font fails to load */
    align-items: center;
    margin-top: 1rem;
}

.carousel-container {
    position: relative; /* Ensures .featured-designs is positioned relative to this container */
    padding-top: 20px; /* Adjust padding as needed */
}

.featured-designs {
    position: relative; /* Change to relative positioning */
    color: #5B8184;
    font-family: 'Rubik Bubbles', cursive;
    font-size: 2.5em; /* Adjust size if needed */
    text-align: center;
    margin-top: 1rem; /* Adds spacing above the carousel */
}

.carouselslide{
    margin-top: 10rem;

}

/* About me */
.aboutmetitle {
    margin-top: 3rem;
    text-align: center;
  }

 
  .about-section {
    align-self: center;
    display: flex;
    align-items: center; /* Aligns content vertically */
    gap: 20px; /* Adds space between image and description */
  }
  
  .about-image {
    width: 300px; /* Adjust size as needed */
    height: auto;
    border-radius: 8px; /* Optional: rounds the corners of the image */
  }
  
  .about-description {
    font-size: 1em; /* Adjust font size */
    color: #333; /* Adjust text color */
  }
  
  .nav-item-margin {
    margin: 15px; /* Adjust the margin as needed */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== RESPONSIVE / MOBILE ===== */

/* Tablet and below */
@media (max-width: 991px) {
    .hero {
        min-height: 70vh;
        padding-top: 70px;
    }

    .txthero h1 {
        font-size: 1.6rem;
    }

    .txthero h5 {
        font-size: 0.95rem;
    }

    .carousel-item {
        height: 280px;
    }

    .featured-designs {
        font-size: 1.8em;
    }

    h1.hard-skills {
        margin-top: 1.5rem;
    }

    .about-section {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-image {
        width: 250px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero {
        min-height: 60vh;
        padding-top: 60px;
    }

    .txthero {
        padding: 0 15px;
    }

    .txthero h1 {
        font-size: 1.3rem;
    }

    .txthero h5 {
        font-size: 0.85rem;
    }

    .txthero .img-fluid {
        max-width: 95% !important;
    }

    .carousel-item {
        height: 200px;
    }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }

    .featured-designs {
        font-size: 1.4em;
    }

    .pulsate-text {
        font-size: 0.9em;
    }

    .custom-card {
        width: 280px;
        height: auto;
        min-height: 300px;
        margin-top: 1rem;
    }

    .card-img-top {
        max-height: 150px;
    }

    h1.hard-skills {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 200px;
    }

    .aboutmetitle {
        margin-top: 1.5rem;
    }

    .modal-image-large {
        width: 95%;
    }

    /* Override cm margins on mobile */
    [style*="margin"][style*="cm"] {
        margin: 1rem !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }

    .txthero h1 {
        font-size: 1.1rem;
    }

    .carousel-item {
        height: 160px;
    }

    .custom-card {
        width: 90%;
        max-width: 280px;
    }

    .featured-designs {
        font-size: 1.2em;
    }
}

/* Ensure images and videos never overflow on any screen */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

