/* General styles */
body {
    background-color: #ffffff; /* Default background color */
    font-family: Arial, sans-serif; /* Basic font styling */
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ensure the body covers the full viewport height */
    display: flex;
    flex-direction: column;
}


/* Header with black background */
.header {
    background-color: rgb(0, 0, 0);
    padding: 10px 0;
    text-align: center;
    position: relative; /* Required for positioning the line correctly */
}

/* Logo styles */
.logo {
    display: block;
    margin: 0 auto;
    max-width: 400px;
    cursor: default; /* Indicate that it's clickable */
}

/* Navigation bar styles */
.navbar {
    background-color: rgb(0, 0, 0);
    padding-top: 0px;
    padding-bottom: 15px;
    text-align: center;
    position: relative; /* Required for positioning the line correctly */
}

.navbar-menu {
    display: flex; /* Use flex for alignment if needed */
    justify-content: center; /* Center align items */
    background-color: black;
}

.navbar::after {
    content: "";
    display: block;
    height: 3px; /* Thickness of the line */
    background-color: rgb(226, 226, 226); /* Line color */
    position: absolute; /* Position the line */
    bottom: 0; /* Align with the bottom of the navbar */
    left: 0; /* Align with the left of the navbar */
    width: 100%; /* Full width */
}

.verticalline {
    max-height: 60px;
}


.nav-item {
    display: inline-flex;
    align-items: center; /* Center content vertically */
    position: relative;
    margin: 0 20px; /* Space between buttons */
    padding: 10px; /* Padding around the image */
    height: 60px; /* Fixed height for alignment */
    box-sizing: border-box; /* Ensure padding and border are included in the height */
    background-color: rgb(0, 0, 0); /* Ensure black background */
}


/* Specific styles for the About Me button */
.nav-item.about-me img {
    max-width: 160px; /* Adjust the maximum width of the image */
    height: auto; /* Maintain aspect ratio */
    margin-top: 0px; /* Push the image up by 10 pixels */

}

.nav-item img {
    display: block;
    max-width: 100px; /* Adjust to match the text button width */
    height: auto; /* Maintain aspect ratio */
}

/* Hover effect for navbar items */
.nav-item:hover img {
    filter: brightness(60%); /* Reduce brightness on hover */
    transform: scale(1.04); /* Make the button slightly larger */
    transition: none;
}

/* Adjust the space between navbar and content box */
.content-wrapper {
    flex: 1; /* Ensure the wrapper fills the available space */
    background-color: #261852; /* Background color, can be changed */
    background-image: url('Assets/cityscape.webp'); /* Background image */
    background-size: cover; /* Ensure the image covers the entire area */
    background-position: top center; /* Align the image to the top and center horizontally */
    background-repeat: no-repeat; /* Prevent background image from repeating */
    background-attachment: fixed; /* Keep the background image fixed in place */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
    position: relative;
    min-height: 100vh; /* Ensure the content-wrapper covers the full viewport height */
    padding: 0; /* Remove padding to ensure the content box spans the full height */
}

/* Adjust the content box */
.content-box {
    background-image: url('Assets/custombox.webp'); /* Set custom image as background */
    background-size: 100% 100%; /* Stretch image to cover the full width and height */
    background-position: top center; /* Align the image to the top and center horizontally */
    background-repeat: no-repeat; /* Prevent background image from repeating */
    color: rgb(255, 255, 255);
    padding: 40px; /* Adjust padding as needed */
    margin: 0; /* Remove margin to fit the full height */
    max-width: 800px;
    border-radius: 0px; /* Optional: rounded corners */
    width: 100%; /* Full width */
    min-height: 100vh; /* Ensure the content box spans the full viewport height */
    position: relative; /* Use relative positioning */
    overflow: hidden; /* Hide any overflow within content box */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8); /* Darker and more pronounced shadow */

}

/* Footer styles */
.footer {
    background-color: black; /* Black background */
    color: white; /* White text color */
    text-align: center; /* Center the text */
    padding: 10px 0; /* Add padding for spacing */
    position: relative; /* Required for positioning the line */
    margin-top: 0; /* No margin needed since we use padding in content-box */
}

.footer::before {
    content: ""; /* Required for creating the line */
    display: block;
    height: 2px; /* Thickness of the line */
    background-color: white; /* Line color */
    position: absolute; /* Position the line above the footer */
    top: 0; /* Align with the top of the footer */
    left: 0; /* Align with the left of the footer */
    width: 100%; /* Full width */
}

/* Line at the top of the footer */
.line-image-container {
    position: absolute; /* Position the line image absolutely */
    top: 0; /* Align with the top of the footer container */
    left: 0; /* Align with the left of the footer container */
    width: 100%; /* Full width of the footer container */
    z-index: 1; /* Ensure the line is above other content */
}

.line-image {
    display: block;
    height: auto; /* Adjust height based on the image size */
    width: 100%; /* Ensure the line spans the full width */
}

/* Content box header styles */
.section-header {
    text-align: center;
    margin: 20px 0;
    font-size: 24px; /* Adjust as needed */
    color: #ffffff; /* Adjust color as needed */
}

/* Circle container */
.circle-container {
    display: flex;
    justify-content: center; /* Center align circles */
    gap: 40px; /* Increase space between circles */
    margin-bottom: 30px; /* Space below circles */
}

/* Circle styles */
.circle {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    width: 250px; /* Set a fixed width to ensure equal size */
}

/* Circle image hover effect */
.circle-img {
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Adjust size as needed */
    border-radius: 50%; /* Make the image circular */
    object-fit: cover; /* Ensure image covers the circle */
    margin-bottom: 10px; /* Space between image and text */
    transition: transform 0.3s ease; /* Smooth transition for scaling effect */
}



/* Circle text styles */
.circle-text {
    font-size: 16px; /* Adjust as needed */
    color: #ffffff; /* Adjust color as needed */
    text-align: justify; /* Justify the text */
    margin: 0 10px; /* Add margin inside the box */
    flex-grow: 1; /* Ensure the paragraph takes up available space */
    line-height: 1.5; /* Improve readability */
    display: flex;
    align-items: center; /* Vertically center the text within the paragraph box */
  

}

/* Animation on hover for BOTH profile + logo together */
.circle:hover .circle-img,
.circle:hover .hakzophobiclogo,
.circle:hover .notsophobiclogo {
    transform: scale(1.1);
    filter: brightness(80%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Reset them normally */
.circle-img,
.hakzophobiclogo,
.notsophobiclogo {
    transition: transform 0.3s ease, filter 0.3s ease;
}



.hakzophobiclogo {
    width: auto; /* Maintain the original width */
    height: auto; /* Maintain the original height */
    max-width: 80%; /* Ensure it fits within the container */
    margin-top: 15px; /* Add some space between the paragraph and the image */
}

.notsophobiclogo {
    width: auto; /* Maintain the original width */
    height: auto; /* Maintain the original height */
    max-width: 70%; /* Ensure it fits within the container */
    margin-top: 0px; /* Add some space between the paragraph and the image */
}

.hakzophobiclogo:hover, .notsophobiclogo:hover {
    transform: scale(1.1); /* Slightly enlarge the image on hover */
    filter: brightness(60%); /* Reduce brightness on hover */
}

.circle-text {
    padding-top: 20px; /* Add space between the image and text */
}

/* Container for social media icons */
.social-icons {
    text-align: center; /* Center-align the icons within the container */
    display: grid; /* Use grid for layout */
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    row-gap: 40px; /* Adjust the gap between rows */
    margin-top: 70px; /* Add space above the icons */
    margin-bottom: 60px; /* Add space below the icons */
}

.gif {
    display: block;
    margin: 0px auto;
    max-width: 300px;
}

/* Style for individual social media icons */
.social-icons img {
    width: 80px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
    margin: 0 40px; /* Space between each image */
    display: inline-block; /* Align images horizontally */
}

/* Hover effect for social media icons */
.social-icons img:hover {
    filter: brightness(60%); /* Lower brightness on hover */
    transform: scale(1.1); /* Slightly enlarge the image */
    transition: none;
}

/* Adjust the Youtube Channels header image */
.youtube-header-image {
    max-width: 80%; /* Make the image slightly smaller */
    display: block; /* Ensure it's treated as a block element */
    margin: 70px auto 50px auto; /* Add margin above to create space */
}

/* Adjust the Socials header image */
.socials-header-image {
    max-width: 70%; /* Make the image slightly smaller */
    display: block; /* Ensure it's treated as a block element */
    
}

/* Style for Twitter, Insta, and Kofi images */
.twitter, .insta, .kofi, .bluesky, .ng {
    width: 50px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
    margin: 0 10px; /* Space between each image */
    display: inline-block; /* Align images horizontally */
}

@media (max-width: 768px) {
    .logo {
        max-width: 350px;
    }

    .navbar {
        background-color: black; /* Ensure black background for mobile devices */
    }

    .nav-item {
        margin: 0 15px; /* Increase margin for better spacing */
        padding: 10px; /* Increase padding to make buttons larger */
        border: none; /* Remove default border */
        outline: none; /* Remove default outline */
        box-shadow: none; /* Remove default shadow */
    }

    .nav-item img {
        max-width: 120px; /* Adjust size for tablets */
    }

    .navbar::after {
        content: "";
        display: block;
        height: 2px; /* Thickness of the line */
        background-color: white; /* Line color */
        position: absolute; /* Position the line */
        bottom: 0; /* Align with the bottom of the navbar */
        left: 0; /* Align with the left of the navbar */
        width: 100%; /* Full width */
    }

    .content-box {
        padding: 20px; /* Smaller padding for tablets */
        max-width: 90%;
        width: calc(100% - 100px); /* Adjust for tablet margins */
        min-height: 100vh; /* Ensure the content box spans the full viewport height */
        padding-bottom: 100px; /* Add padding below content box for smaller screens */
    }

    .circle-container {
        flex-direction: column; /* Stack circles vertically */
        gap: 20px; /* Reduce the space between circles */
    }

    .circle {
        width: 100%; /* Ensure the circle takes up full width */
        max-width: 300px; /* Optional: Set a max-width for better presentation */
        margin: 0 auto; /* Center the circle container */
    }

    .circle-img {
        width: 140px; /* Adjust size as needed */
        height: 140px; /* Adjust size as needed */
    }

    .short-line {
        margin-top: 90px; /* Adjust this value to move the line further down */
    }
    /* Adjust the Socials header image */
    .socials-header-image {
        max-width: 70%; /* Make the image slightly smaller */
        display: block; /* Ensure it's treated as a block element */
        margin: 50px auto 0px auto; /* Center the image and add padding below */
    }

    /* Social media icons two-column layout for mobile */
    .social-icons {
        display: grid; /* Use grid for layout */
        grid-template-columns: repeat(2, 1fr); /* Two equal columns */
        gap: 20px; /* Adjust spacing between icons */
        justify-content: center; /* Center the grid */
        margin-top: 60px; /* Optional: Add space above the icons */
        margin-bottom: 5px; /* Optional: Add space below the icons */
    }

    /* Make the fifth icon occupy the first column in the third row */
    .social-icons > :nth-child(5) {
        grid-column: 1 / 2; /* Place the last icon in the first column */
    }


    /* Style for individual social media icons */
    .social-icons img {
        width: 90px; /* Adjust size as needed */
        height: auto; /* Maintain aspect ratio */
        margin: 10px 0; /* Space between each image vertically */
    }
    }




@media (max-width: 480px) {
    .logo {
        max-width: 300px;
    }

    .navbar {
        background-color: black; /* Ensure black background for mobile devices */
    }

    .nav-item {
        margin: 0 10px; /* Increase margin for better spacing */
        padding: 8px; /* Increase padding to make buttons larger */
        border: none; /* Remove default border */
        outline: none; /* Remove default outline */
        box-shadow: none; /* Remove default shadow */
    }

    .nav-item img {
        max-width: 100px; /* Adjust size for mobile devices */
    }

    .content-box {
        padding: 15px; /* Smaller padding for mobile devices */
        max-width: 95%;
        width: calc(100% - 50px); /* Adjust for mobile margins */
        min-height: 145vh; /* Ensure the content box spans the full viewport height */
        padding-bottom: 100px; /* Add padding below content box for smaller screens */
    }
    .circle-container {
        flex-direction: column; /* Stack circles vertically */
        gap: 15px; /* Reduce the space between circles */
    }

    .circle {
        width: 100%; /* Ensure the circle takes up full width */
        max-width: 250px; /* Optional: Set a max-width for better presentation */
        margin: 0 auto; /* Center the circle container */
    }

    .circle-img {
        width: 120px; /* Adjust size as needed */
        height: 120px; /* Adjust size as needed */
    }

    .circle-text {
        margin-top: 8px; /* Add space between the image and text */
    }
}

    /* Adjust the Socials header image */
    .socials-header-image {
        max-width: 70%; /* Make the image slightly smaller */
        display: block; /* Ensure it's treated as a block element */
        margin: 50px auto 0px auto; /* Center the image and add padding below */
    }
