/* Reset */
@font-face { 
    font-family: "tiny";
    src: url(fonts/TINY5x3-80.otf) format('opentype');
}

@font-face { 
    font-family: "trezybec";
    src: url(fonts/Trezybec.ttf) format('truetype');
}

@font-face { 
    font-family: "enjoy-please";
    src: url("assets/enjoyplease2-Regular.otf") format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-appearance: none; /* Disable the default iOS Safari button styling */
    appearance: none;
    
}

/* Body Styling */
.body, html {
    height: 100%;
    overflow: hidden;
    font-family: "meursault-variable", serif;
    font-variation-settings: "wght" 500, "wdth" 100;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #EBECE8;
}

/* Container */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    will-change: transform;
}

/* Additional Troubleshooting */ .left-content, .image-box-red, .right-section, .image-box-content img { overflow: hidden; }

/* Consistent Box Sizing */ *, *::before, *::after { box-sizing: border-box; }


/* Container styling */
.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Full width of the parent container */
    padding: 20px;
    box-sizing: border-box;
}

.image-box-black {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Full width of the parent container */
    padding: 20px;
    box-sizing: border-box;
    background-color: #0b0b0b;
    border-radius: 5px;
}

.image-box-red {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Full width of the parent container */
    padding: 20px;
    box-sizing: border-box;
    background-color: #e80707;
    border-radius: 5px;
}

.image-box-produced-product {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Full width of the parent container */
    padding: 20px;
    box-sizing: border-box;
    background-image: url('assets/image-box-content-static-bg.webp'); /* Correct path to your local image */
    background-size: cover; /* Cover the entire area while maintaining aspect ratio */
    background-position: center; /* Center the background image */
    border-radius: 5px;
    background-repeat: no-repeat; /* Ensure the image doesn't repeat */
}


.image-box-content {
    display: flex;
    flex-wrap: wrap; /* Wrap images into multiple rows */
    gap: 15px; /* Space between images */
    justify-content: center;
    align-items: center;
    max-width: 100%; /* Restrict to the container width */
}

.image-box-content-bdb-bookmark{
    display: flex;
    flex-wrap: wrap; /* Wrap images into multiple rows */
    gap: 15px; /* Space between images */
    justify-content: center;
    align-items: center;
}


.image-box-content-static {
    display: flex;
    flex-wrap: wrap; /* Wrap images into multiple rows */
    gap: 15px; /* Space between images */
    justify-content: center;
    align-items: center;
}

.image-box-content-static img {
    width: auto; 
    height: auto;
    max-height: 400px; /* Limit the height */
    max-width: 100%; /* Ensure it doesn't exceed container width */
    object-fit: contain; /* Maintain aspect ratio */
}


/* Styling for images with column setup */
.image-box-content img {
    flex: 1 1 calc(25% - 15px); /* 4 columns on desktop with space between images */
    max-width: calc(25% - 15px); /* Ensure each image is 25% width minus the gap */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Scale the image to cover the space while maintaining aspect ratio */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring effect timing function */
}

.image-box-content img.tilt-hover {
    transform: scale(1.2) rotate(var(--random-angle)); /* Apply rotation using a CSS variable */
}

/* Responsive adjustments with media queries */
@media (max-width: 1024px) {
    /* For tablets: 3 columns */
    .image-box-content img {
        flex: 1 1 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }
}

@media (max-width: 768px) {
    /* For smaller tablets or large mobile screens: 2 columns */
    .image-box-content img {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    /* For mobile: 2 columns */
    .image-box-content {
        gap: 10px; /* Less gap between images on mobile */
    }
    
    .image-box-content img {
        flex: 1 1 calc(50% - 10px); /* Two columns on mobile */
        max-width: calc(50% - 10px);
    }
}



/* Left Section (70% Width) */
.left-section {
    width: 70%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-left: 0.5rem;
}


.header-text {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping for small screens */
    font-size: 1.25rem;
    font-family: "indivisible", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: 1.3;
    color: #484848;
    padding-top: 0.5rem;
}

.section {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for small screens */
    gap: 0.5rem; /* Add gap between buttons */
    width: 100%; /* Full width to make it responsive */
}

/* Default clickable text styling */
.clickable-text {
    color: #d1d1d1; /* Default color */
    text-align: center;
    text-decoration: none; /* Remove underline */
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease; /* Smooth transition for color and font-style */
    font-family: "trezybec";
    font-style: normal;
    padding: 0.5rem 1rem; /* Add padding for better button size */
    white-space: nowrap; /* Prevent text from breaking into two lines */
}

/* Hover state */
.clickable-text:hover {
    color: #484848; /* Hover color */
    
}

/* Active state */
.clickable-text.active {
    color: #484848; /* Active color */
    
}

/* Hover state */
.clickable-text-button:hover {
    border: 2px solid #484848; /* Hover color */
    padding-right: 2rem;
    padding-left: 2rem;
}

/* Active state */
.clickable-text-button.active {
    border: 2px solid #484848; /* Active color */
    padding-right: 2rem;
    padding-left: 2rem;
}

.clickable-text-button {
    border: 2px solid #c0c0c0; /* Add border width, style, and color */
    background: rgba(181, 180, 180, 0.264); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect */
    border-radius: 50px;
    padding: 0.25rem 0.25rem;
    padding-top: 0.5rem;
    display: inline-flex; /* Make the button fit the width of the text */
    justify-content: center; /* Center the text horizontally */
    align-items: center; /* Center the text vertically */
    transition: border 0.3s ease, padding-right 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding-left 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .clickable-text-button {
        padding: 0.25rem 0.6rem; /* Adjust padding for smaller buttons */
        padding-top: 0.5rem;
    }

    .clickable-text {
        font-size: 0.85rem; /* Adjust font size for smaller buttons */
    }

    .header-text {
        font-size: 1rem; /* Adjust header text size */
    }
}




#brand-identity{
    margin-top: -2 rem;
}

.title-content {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.title-content-text {
    padding-top: 0.5rem;
    font-size: 1.5rem;
    
    
}

.text-content {
    font-size: 1.2rem;

}

.left-header { 
    padding: 1rem; 
    padding-top: 1.5rem; 
    padding-bottom: 0rem; 
    position: sticky; /* Make header sticky */
    top: 0; 
    background: linear-gradient(to bottom, #ECEDE8 25%, rgba(255, 255, 255, 0) 80%); 
    z-index: 1000; /* Ensure header stays on top */ 
}

.left-header h1 {
    font-size: 3rem;
    font-weight: normal;
}

.left-header nav a {
    text-decoration: none;
    color: #342a1e;
    font-weight: lighter;
}

.left-header nav a:hover {
    color: #342a1e2b;
}

.left-content {
    padding: 1rem;
}


.left-content img {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;

}

.left-content p {
    font-size: 1rem;
    color: #453825;
    margin-top: 0.5rem;
}

/* Style for the description section */
.text-content {
    overflow: hidden;
    height: 0;
    transition: height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    opacity: 0;
    display: flex;
}

.left-paragraph {
    padding-right: 0.5rem;
    font-size: 1rem;
}

.right-paragraph {
    padding-left: 0.5rem;
    font-size: 1rem;
}

/* When the description is open */
.text-content.open {
    height: auto;
    opacity: 0.6;
}

/* Style for the toggle button */
.toggle-button {
    background-color: transparent;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    margin-right: 10px;
    top: 50%;
    -webkit-appearance: none; /* Disable the default iOS Safari button styling */
    appearance: none;
}
  
  
  @keyframes showPopUp {
    0% {
      visibility: visible;
      opacity: 0;
      transform: translateX(-50%) scale(0) rotate(0deg);
    }
    60% {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) scale(1.2) rotate(10deg);
    }
    80% {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) scale(0.9) rotate(-5deg);
    }
    100% {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) scale(1) rotate(0deg);
    }
  }
  
  @keyframes hidePopUp {
    0% {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) scale(1) rotate(0deg);
    }
    100% {
      visibility: hidden;
      opacity: 0;
      transform: translateX(-50%) scale(0) rotate(0deg);
    }
  }
  
  
  
  .logo-container {
    position: relative;
    display: inline-block;
  }
  
  #logo {
    width: auto;
    height: 130px;
    cursor: pointer;
  }
  
  .pop-up {
    width: 100px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding-bottom: 20px;
    position: absolute;
    top: 55%; /* Position below the logo */
    left: 95%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    font-family: "tiny";
    font-size: 50px;
  }
  
  .logo-container:hover .pop-up {
    animation: showPopUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, hidePopUp 0.3s 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  
  @keyframes springyEffect {
    0% {
      transform: scale(0.87);
    }
    60% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  
  
  
  

  #logo:active { 
    transform: scale(0.90); 
}

/* For smaller screens */
@media (max-width: 979px) {
    #logo {
        width: auto; /* Adjust size for smaller screens */
        height: 75px;
    }
}

/* Right Section (Sidebar) */
.right-section {
    width: 30%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #ecede800;
    z-index: 10;
}




.right-header {
    padding: 1rem;
    padding-bottom: 0rem;
    padding-top: 1.5rem;
}

.right-header h2 {
    font-size: 3rem;
    font-weight: normal;
    color: #0b0b0b;
    line-height: 1;
}

.right-content {
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.right-content-float{
    padding: 0.5rem;
    background-color: #ECEDE8;
    border-radius: 5px;
    background-image: repeating-linear-gradient(0deg, #333333, #333333 4px, transparent 4px, transparent 10px, #333333 10px), repeating-linear-gradient(90deg, #333333, #333333 4px, transparent 4px, transparent 10px, #333333 10px), repeating-linear-gradient(180deg, #333333, #333333 4px, transparent 4px, transparent 10px, #333333 10px), repeating-linear-gradient(270deg, #333333, #333333 4px, transparent 4px, transparent 10px, #333333 10px);
    background-size: 2px 100%, 100% 2px, 2px 100% , 100% 2px;
    background-position: 0 0, 0 0, 100% 0, 0 100%;
    background-repeat: no-repeat;
}

.right-content-bg{
    padding: 0.5rem;
    border: none;
}

.right-content p, .right-content .news {
    font-size: 0.85rem;
    line-height: 1.25;
    color: #676767;
}

.address {
    font-size: 2rem;
    padding-bottom: 1rem;
    padding-top: 2rem;
    text-align: left;
    line-height: 1.3;
    color: #676767;
    border-top: 1px solid #c0c0c0; /* Add border width, style, and color */
}

.address a {
    text-decoration: none !important;
    display: inline-block; /* Needed for the transform property to work */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth transition */
}

.address a:hover {
    transform: translateX(20px); /* Move to the right by 5px */
    transform:skew(20px)
}


.hook p{
    font-size: 1.5rem;
    padding-bottom: 1rem;
    text-align: left;
    font-family: "indivisible", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    color: #0b0b0b;
}

.self-portrait {
    padding-bottom: 1rem;
}


.self-portrait img {
    max-width: 35%; /* Adjust this value to make the image smaller */
    height: auto;
    display: block;
    object-fit: contain; /* Ensures the image is contained within the container */
    margin-left: 2rem;
    filter: grayscale(100%);
    position: relative;
}


.hafidz {
    color: #c0c0c000;
}


.about p{
    font-size: 0.85rem; /* Adjust font size */
    color: #444; /* Change text color */
    line-height: 1.4; /* Adjust line height */
    margin-bottom: 0.75rem;
}

.first-paragraph{
    font-size: 0.85rem; /* Adjust font size */
    color: #444; /* Change text color */
    line-height: 1.4; /* Adjust line height */
    margin-bottom: 0.25rem;
    margin-left: 2rem;
    text-align: justify;
}

.about {
    padding-bottom: 1rem;
    color: #676767;
    border-bottom: 1px solid #c0c0c0; /* Add border width, style, and color */
}




.right-content a {
    color: #a3a3a3;
}

.right-content .news {
    margin-top: 1rem;
}

.right-content .news h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.experience {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.other-experience {
    padding-bottom: 1rem;
}

.recognition {
    padding-bottom: 1rem;
    border-bottom: 1px solid #c0c0c0; /* Add border width, style, and color */
}

.recognition p{
    padding-bottom: 0.5rem;
}

.other-experience p{
    padding-bottom: 0.5rem;
}

.experience h3{
    font-size: 1.25rem;
    text-align: left;
    font-family: "indivisible", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding-bottom: 0.25rem;
}

.experience p strong{
    font-size: 1.15rem;
    text-align: left;
    font-family: "meursault-variable", serif;
    font-variation-settings: "wght" 500, "wdth" 100;
    font-style: normal;
    line-height: 1.15;
}

.other-experience h3{
    font-size: 1.25rem;
    text-align: left;
    font-family: "indivisible", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding-bottom: 0.25rem;
}
.other-experience p strong{
    font-size: 1.15rem;
    text-align: left;
    font-family: "meursault-variable", serif;
    font-variation-settings: "wght" 500, "wdth" 100;
    font-style: normal;
    line-height: 1.15;
}

.recognition h3{
    font-size: 1.25rem;
    text-align: left;
    font-family: "indivisible", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding-bottom: 0.25rem;
}
.recognition p strong{
    font-size: 1.15rem;
    text-align: left;
    font-family: "meursault-variable", serif;
    font-variation-settings: "wght" 500, "wdth" 100;
    font-style: normal;
    line-height: 1.15;
}

.about-me {
    padding-bottom: 1rem;
    border-bottom: 1px solid #c0c0c0; /* Add border width, style, and color */
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-evenly;
    
    
}

.journal-1{
    flex-grow: 1;
    font-size: 1.5rem;
    text-align: center;
    font-family: "gardein", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding: 1rem;
    padding-top: 1.2rem;
    background-color: #183eff;
    border-radius: 50px;
    color: #0B0B0B;
    border: #C0C0C0 solid 1px;
}
.journal-2{
    flex-grow: 1;
    font-size: 1.5rem;
    text-align: center;
    font-family: "gardein", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding: 1rem;
    padding-top: 1.2rem;
    background-color: #dcdcdc00;
    border-radius: 50px;
    color: #0B0B0B;
    border: #C0C0C0 solid 1px;
}
.journal-3{
    flex-grow: 1;
    font-size: 1.5rem;
    text-align: center;
    font-family: "gardein", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding: 1rem;
    padding-top: 1.2rem;
    background-color: #dcdcdc00;
    border-radius: 50px;
    color: #0B0B0B;
    border: #C0C0C0 solid 1px;
}
.journal-4{
    flex-grow: 1;
    font-size: 1.5rem;
    text-align: center;
    font-family: "gardein", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding: 1rem;
    padding-top: 1.2rem;
    background-color: #dcdcdc00;
    border-radius: 50px;
    color: #0B0B0B;
    border: #C0C0C0 solid 1px;
}
.journal-5{
    flex-grow: 1;
    font-size: 1.5rem;
    text-align: center;
    font-family: "gardein", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    padding: 1rem;
    padding-top: 1.2rem;
    background-color: #dcdcdc00;
    border-radius: 50px;
    color: #0B0B0B;
    border: #C0C0C0 solid 1px;
}


.left-header, .right-header {
    position: sticky;
    top: 0;
    background-color: transparent; /* Ensures it doesn't blend with content as you scroll */
    z-index: 10; /* Ensures it stays on top of other content */
}

.copyright {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    position: relative;
    bottom: 0;
    bottom: env(safe-area-inset-bottom);
}

.text-content-footer {
    font-size: 3rem;
    font-family: "tiny";
    line-height: 0.7;
    color: #b0b0b0;
}


/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none; /* Adjust display to your needs, like flex if needed */
    position: fixed;
    top: 5px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth animation for transform and right properties */
    -webkit-appearance: none; /* Disable the default iOS Safari button styling */
    appearance: none;
}

/* Responsive Sidebar on Small Screens */
@media (max-width: 875px) {
    .right-section {
        position: fixed;
        width: 70%;
        right: 0;
        top: 0;
        height: 100vh;
        transform: translateX(100%);
    }
    .sidebar-toggle {
        display: block;
        font-size: 4rem;
    }
    .left-section {
        width: 100%;
    }

}

@media (max-width: 1080px) {
    .hook p {
        font-size: 1.25rem; /* Adjust font size for better readability */
    }

}

.sidebar-toggle.active {
    transform: rotate(45deg); /* Rotate the button */
    right: calc(70% + 20px); /* Adjust position when sidebar is open */
}





/* Scroll Styling */
.left-section::-webkit-scrollbar,
.right-section::-webkit-scrollbar {
    width: 4px;
}

.left-section::-webkit-scrollbar-thumb,
.right-section::-webkit-scrollbar-thumb {
    background-color: #dedede00;
    border-radius: 4px;
}

.left-section::-webkit-scrollbar-track,
.right-section::-webkit-scrollbar-track {
    background-color: #ff000000;
}