/* 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);
}

/* Web Website Section */
.web_website {
    width: 100%;
    height: 750px;
    overflow: hidden;
    position: relative;
    transition: margin-top 0.5s ease; /* Smooth margin transition */
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease; /* Smooth sliding effect */
}

#web_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 2s ease-in-out;
    z-index: 1; /* Ensure image is behind the navbar */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.writing {
    color: white;
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 40%;
    padding: 20px;
    z-index: 2; /* Ensure writing is on top */
    text-align: left;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#ajayendra_name {
    font-size: 4rem;
}

#some_text {
    font-size: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #ajayendra_name {
        font-size: calc(2vw + 1.5rem);
    }

    #some_text {
        font-size: calc(2.0vw + 1.2rem);
    }

    .extra_box {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    #ajayendra_name {
        font-size: calc(3vw + 1rem);
    }

    #some_text {
        font-size: calc(1.8vw + 0.8rem);
    }

    .extra_box {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #ajayendra_name {
        font-size: calc(2.5vw + 0.8rem);
    }

    #some_text {
        font-size: calc(2.5vw + 0.6rem);
    }

    .extra_box {
        font-size: 0.9rem;
    }
}

footer {
    background-color: rgb(220, 241, 250);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}
