/* Basic reset */
* {
    font-family: 'Parisienne', cursive;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.navbar {
    height: 80px; /* Adjusted height */
    display: flex;
    align-items: center;
    background-color: rgb(220, 241, 250);
    padding: 0 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    z-index: 1000; /* Ensure navbar is on top */
}

.navbar:hover {
    background-color: rgb(200, 230, 250);
}

.navbar-brand img {
    height: 60px;
    margin-right: 20px;
    margin-left: 100px; /* Add a default left margin */
    transition: transform 0.3s ease, margin-left 0.3s ease; /* Add transition for margin-left */
}

@media (max-width: 1200px) {
    .navbar-brand img {
        margin-left: 15px; /* Adjust left margin for smaller screens */
    }
}

@media (max-width: 992px) {
    .navbar-brand img {
        margin-left: 10px; /* Adjust left margin for even smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        margin-left: 5px; /* Adjust left margin for smallest screens */
    }
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"%3E%3Cpath stroke="currentColor" stroke-width="2" d="M5 7h20M5 15h20M5 23h20" /%3E%3C/svg%3E');
}

/* Style for the collapsible navbar menu */
.navbar-collapse {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
}

/* Ensure that the menu items are hidden by default */
.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 10px; /* Space between items */
}

.navbar-nav .nav-item {
    margin: 0;
}

.navbar-nav .nav-link {
    display: block;
    text-decoration: none;
}

.extra_box {
    height: 60px;
    width: 120px; /* Adjusted width */
    border-radius: 10%; /* Rounded corners on the left */
    background-color: rgb(220, 241, 250);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
    color: black; /* Ensure text color is visible */
    z-index: 1001; /* Ensure extra_box is on top */
}

.extra_box:hover {
    border: 2px solid black;
    background-color: aqua;
    opacity: 100%;
    border-radius: 10%;
    transform: scale(1.05);
}

footer {
    background-color: rgb(220, 241, 250);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.extra_space {
    height: 50px;
    background-color: rgb(220, 241, 250);
}

/* Container for project boxes to handle alignment */
/* Keyframes */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Container for project boxes */
.projects_things, .projects_things_2, .projects_things_3, .projects_things_4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    background-color: rgb(220, 241, 250);
}

/* Project box */
.project_box, .project_box_2, .project_box_3, .project_box_4 {
    position: relative;
    width: 100%;
    max-width: calc(50% - 160px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    background-color: #fff;
    opacity: 0;
    animation: slideIn 1s ease-out forwards;
}

.project_box img, .project_box_2 img, .project_box_3 img, .project_box_4 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.overlay_top, .overlay_top_2, .overlay_top_3, .overlay_top_4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease, background 0.4s ease;
    border-bottom: 2px solid white;
}

.project_box:hover .overlay_top, .project_box_2:hover .overlay_top_2, .project_box_3:hover .overlay_top_3, .project_box_4:hover .overlay_top_4 {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.9);
}

/* Overlay bottom */
.overlay_bottom, .overlay_bottom_2, .overlay_bottom_3, .overlay_bottom_4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.4s ease, background 0.4s ease;
    border-top: 2px solid white;
}

.project_box:hover .overlay_bottom, .project_box_2:hover .overlay_bottom_2, .project_box_3:hover .overlay_bottom_3, .project_box_4:hover .overlay_bottom_4 {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.9);
}

/* Skills and links styles */
.skills h1, .skills_2 h1, .skills_3 h1, .skills_4 h1 {
    font-size: var(--font-size-large);
    margin: 0;
    text-align: center;
}

.skills_box, .skills_box_2, .skills_box_3, .skills_box_4 {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.links, .links_2, .links_3, .links_4 {
    height: 50px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.link, .link_2, .link_3, .link_4 {
    margin-right: 20px;
}

.link:hover, .link_2:hover, .link_3:hover, .link_4:hover {
    border: 2px solid white;
    height: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    width: 100px;
}

.box, .box_2, .box3, .box3_2, .box_3, .box3_3, .box_4, .box3_4 {
    background: #fff;
    color: #000;
    padding: 10px 13px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0.1%;

}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .project_box, .project_box_2, .project_box_3, .project_box_4 {
        max-width: calc(50% - 120px);
    }
}

@media (max-width: 768px) {
    .project_box, .project_box_2, .project_box_3, .project_box_4 {
        max-width: calc(100% - 120px);
        margin: 10px;
        margin-left: 60px;
        margin-right: 60px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        margin-left: 10px; /* Adjust left margin for smallest screens */
    }

    .project_box, .project_box_2, .project_box_3, .project_box_4 {
        max-width: calc(100% - 40px); /* Adjust width to fit smaller screens */
        margin-left: 20px; /* Adjust margin for smaller screens */
        margin-right: 20px; /* Adjust margin for smaller screens */
    }

    .extra_box {
        width: 80px; /* Further adjust width for extra boxes */
        font-size: 0.9rem; /* Further adjust font size */
    }

    .skills h1, .skills_2 h1, .skills_3 h1, .skills_4 h1 {
        font-size: 1.1rem; /* Adjust font size for smaller screens */
    }

    .box, .box_2, .box_3, .box_4 {
        font-size: 0.5rem; /* Adjust font size for smaller screens */
        padding: 8px 10px; /* Adjust padding for smaller boxes */
    }

    .box3, .box3_2, .box3_3, .box3_4 {
        font-size: 0.5rem; /* Adjust font size for smaller boxes */
    }

    .links, .links_2, .links_3, .links_4 {
        height: 40px; /* Adjust height for smaller screens */
    }

    .link, .link_2, .link_3, .link_4 {
        margin-right: 10px; /* Adjust margin for smaller screens */
    }
}



/* Animation for overlay content */
.project_box:hover .skills h1 {
    transform: translateY(0); /* Move into view on hover */
}

.project_box:hover .box, .box_2, .box_3, .box_4 {
    transform: translateY(0); /* Move into view on hover */
    opacity: 1; /* Fade in on hover */
}

.project_box:hover .box3, .box3_2, .box3_3, .box3_4 {
    transform: translateY(0); /* Move into view on hover */
    opacity: 1; /* Fade in on hover */
}

/* Responsive adjustments for extra boxes */
@media (max-width: 768px) {
    .extra_box {
        width: 100px; /* Adjust width for smaller screens */
        font-size: 1rem; /* Adjust font size */
    }
}

@media (max-width: 576px) {
    .extra_box {
        width: 80px; /* Further adjust width */
        font-size: 0.9rem; /* Further adjust font size */
    }
}

/* Container and styles for full background coverage */
.web-development-container {
    display: flex;
    justify-content: center; /* Center align the header horizontally */
    align-items: center; /* Center align the header vertically */
    height: 100vh; /* Full viewport height */
    background: #f0f8ff; /* Background color for container */
    border: 2px solid black; /* Border for container */
}

/* Web Development Header Styles */
.web-development-header {
    text-align: center; /* Center align the text */
    padding: 20px; /* Padding inside the header */
    background-color: rgb(220, 241, 250);
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
    border: 2px solid black; /* Border for header */
}

.web-development-header:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.web-development-header h2 {
    font-size: 36px; /* Font size */
    color: #333; /* Text color */
    font-family: 'Arial', sans-serif; /* Font family */
    font-weight: bold; /* Bold text */
    text-transform: uppercase; /* Uppercase text */
    letter-spacing: 2px; /* Spacing between letters */
    margin: 0; /* Remove default margin */
}
