/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    /* Fix horizontal scroll */
}

/* preloader */
#preloader {
    background: #000 url(images/3.gif) no-repeat center center;
    height: 100vh;
    background-size: 65%;
    width: 100%;
    position: fixed;
    z-index: 2000;
    /* High z-index to stay above everything else */
}

/* Navbar */
.navbar {
    z-index: 1000;
    width: 100%;
}

.solid-nav {
    background-image: linear-gradient(to bottom, #000000, #330040, #5d0076);
    transition: background-color 0.5s ease-in-out;
}

.offcanvas-title {
    color: #fff;
}

#ali {
    background-image: linear-gradient(to bottom, #000000, #330040, #5d0076);
}

#ali2 {
    background-color: black;
}

.nav-item {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: bold;
}

#waheed {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke="rgb(255, 207, 60)" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
    border: 0 !important;
}

.navbar-toggler:focus,
.navbar-toggler {
    border: 0 !important;
    box-shadow: none !important;
}

#nav-link {
    color: #fff;
}

#nav-link:hover {
    color: #FFD142;
    transition: 0.5s;
    width: 32%;
    border-bottom: 3px solid #FFD142;
}


/* Video background */
.video-container {
    position: relative;
    height: 95vh;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Content over video */
.video-head2 {
    font-size: 24px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.auto-type {
    color: #fff724;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: xx-large;
}

.video-heading {
    color: #fff;
    font-size: 36px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-shadow: 0 2px 2px rgba(167, 12, 12, 0.5);
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    height: 100%;
}

.content .container {
    max-width: 800px;
    padding: 20px;
}

.glow {
    font-size: 65px;
    color: #fff;
    animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
    }
}

#btn-1 {
    width: 150px;
    height: 60px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-image: linear-gradient(to right, #000000, #330040, #5d0076);
    border: 4px solid white;
    border-radius: 50px;
    transition: 0.5s;
    cursor: pointer;
}

#btn-1:hover {
    background-image: linear-gradient(to left, #000000, #330040, #5d0076);
}


/* About section */




#fl-1 {
    background-color: #E7E9F0;
}

.sectionheading {
    color: #330040;
    text-align: center;
    padding-top: 5%;
    text-transform: uppercase;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
}

#mypic {
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
    width: 100%;
    max-width: 550px;
    margin-bottom: 60px;

}

.about-info {
    margin-top: 8%;
    font-size: 20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    color: black;
}


/* skills */

#fl-6 {
    background-color: #fff;
}

.logo-set {
    max-width: 80px;
    /* Set a fixed max width for the images */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    margin-top: 8%;
    /* Remove unnecessary margins */
}

#row-5 {
    text-align: center;
    margin-bottom: 5%;
}






/* call section  */
#fl-8 {
    background-image: url(Images/chicago.jpg);
    height: 400px;
    background-size: 100% 100%;
    background-blend-mode: darken;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#fl-8-mid {
    background-color: rgba(0, 3, 15, 0.8);
    height: 400px;
}

#content-call {
    padding-top: 7%;
}

.btn-4 {
    width: 180px;
    height: 250px;
    border-radius: 25px;
    background: none;
    color: white;
    border: 4px solid white;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 22px;
    text-decoration: none;
    margin-top: 20px;
    padding: 6px 1% 6px 1%;
}

.btn-4:hover {
    background: #47B2E4;
    color: white;
    border: 4px solid #47B2E4;
}

/* projects section starts */

#fl-5 {
    background-color: #E7E9F0;
}

/* General styles for the portfolio section */
.portfolio-section {
    padding: 50px 0;
    text-align: center;
}

/* Portfolio item container */
.portfolio-item {
    width: 100%;
    height: 450px;
    /* Updated height to 450px */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 12px rgba(21, 20, 20, 0.856);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    /* Start hidden */
    transform: translateY(30px);
    /* Start with a slight downward offset */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Animation transition */
}

/* Image style: Full height of the long image */
.portfolio-item img {
    width: 100%;
    height: auto;
    transform: translateY(0);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth scroll */
}

.remote {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    margin: 0;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.811);
    padding-top: 3%;
    border-radius: 20px 20px 5px 5px;
    opacity: 1;
    transform: translateY(55%);
    transition: 0.5s;
}

.remote:hover {
    transform: translateY(0%);
    transition: 0.5s all 0.3s ease-in-out;
}

.remote-head {
    margin-bottom: 7%;
    font-size: 20px;
    color: #fff;
}

.remote-link {
    background-image: linear-gradient(to left, #000000, #330040, #5d0076);
    color: #fff;
    text-decoration: none;
    width: auto;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: 2px solid #fff;
    border-radius: 4px;
    margin-bottom: 1%;
}

.remote-link:hover {
    color: #fff;
}

/* Hover effect: scroll the image down */
.portfolio-item:hover img {
    transform: translateY(calc(-100% + 450px));
    /* Adjusted for new height */
}

/* Animation effect */
.animate {
    opacity: 1;
    /* Make visible */
    transform: translateY(0);
    /* Move to original position */
}
@media (max-width: 900px) {
    .remote-head {
        margin-bottom: 10%;
        
    }
}
/* Responsive Design */
@media (max-width: 767px) {
    .portfolio-item {
        height: 300px;
        /* Smaller height for smaller screens */
    }

    .portfolio-item:hover img {
        transform: translateY(calc(-100% + 300px));
        /* Adjust image scroll for smaller height */
    }

    .remote-head {
        font-size: 16px;
        /* Adjust text size for smaller screens */
    }

    .remote-link {
        width: auto;
        font-size: 18px;
    }

}

@media (max-width: 575px) {
    .portfolio-item {
        height: 300px;
        /* Smaller height for very small screens like iPhone 5s */
    }

    .remote-link {
        width: auto;
        font-size: 16px;
        margin-bottom: 2%;
    }

    .portfolio-item:hover img {
        transform: translateY(calc(-100% + 300px));
        /* Adjust image scroll for smaller height */
    }

    .remote-head {
        font-size: 14px;
        /* Smaller font size */
    }
}

@media (min-width: 3000px) {
    .portfolio-item {
        height: 700px;
        /* Larger height for large screens */
    }

    .portfolio-item:hover img {
        transform: translateY(calc(-100% + 700px));
        /* Adjust image scroll for larger height */
    }

    .remote-head {
        font-size: 28px;
        /* Larger font size for large screens */
    }
}

/* Spacing between items for smaller screens */
#knife {
    margin-bottom: 5%;
}

/* projects section ends */


/* Contact section */
#fl-2 {
    background-color: #fff;
}

#row-2 {
    margin-top: 5%;
    padding-bottom: 5%;
    height: auto;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    width: 100%;
    height: 482px;
    max-width: 550px;
    margin: auto;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
}

.contact-form h2 {
    font-weight: bold;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.contact-form .input-box {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.contact-form .input-box input,
.contact-form .input-box textarea {
    width: 100%;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    resize: none;
}

.contact-form .input-box span {
    position: absolute;
    left: 0;
    padding: 5px 0;
    font-size: 16px;
    margin: 10px 0;
    pointer-events: none;
    transition: 0.5s;
    color: #666;
}

.contact-form .input-box input:focus~span,
.contact-form .input-box textarea:focus~span,
.contact-form .input-box input.not-empty~span,
.contact-form .input-box textarea.not-empty~span {
    color: #e91e63;
    font-size: 12px;
    transform: translateY(-20px);
}

.contact-form .input-box input[type="submit"] {
    width: 100%;
    background: #00bcd4;
    color: #FFF;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    border: 1px solid #00bcd4;
    transition: 0.5s;
}

.contact-form .input-box input[type="submit"]:hover {
    background: #FFF;
    color: #00bcd4;
}

.contact-content {
    background-color: #fff;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    margin: auto;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
}

#icon-d {
    display: inline-block;
    padding-left: 5%;
    font-weight: bold;
}

#icon-dali {
    display: inline-block;
    padding-left: 5%;
    font-weight: bold;
}

/* footer */
#fl-3 {
    width: 100%;
    text-align: center;
    padding-top: 15px;
    color: #E7E9F0;
    background-image: linear-gradient(to top, #000000, #000000, #330040, #330040, #5d0076);
}

#ft-link {
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold auto;
    color: #fff;
    margin-left: 2%;
    justify-content: space-between;
}

#ft-link:hover {
    color: #FFD142;
    transition: 0.5s;
    border-bottom: 3px solid #FFD142;
}

.icons {
    margin-bottom: 3%;
}

#icon-space {
    margin-left: 12px;
}


/* footer section ended */



/* Media Queries for responsiveness */
@media (max-width: 991px) {

    .contact-form,
    .contact-content {
        margin: 20px auto;
        width: 100%;
        height: auto;
    }

    #call-heading {
        padding-top: 12%;
    }

    #map {
        width: 100% !important;
        height: auto;
    }
}

@media (max-width: 769px) {
    .content {
        flex-direction: column;
        padding: 20px;
    }

    .video-head2 {
        font-size: 20px;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    }

    .video-heading {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    .auto-type {
        font-size: large;
    }

    .video-container {
        padding-top: 15%;
        position: relative;
        height: 75vh;
        overflow: hidden;
    }

    .glow {
        font-size: 45px;
    }

    #btn-1 {
        width: 125px;
        height: 50px;
        font-size: 14px;
    }

    #mypic {
        margin: 4%;
        width: 80%;
    }

    #skillbar-img {
        margin: 4%;
        width: 80%;
    }

    .about-info {
        margin-top: 5%;
        font-size: 16px;
    }

    .skills {
        font-size: 14px;
    }

    #call-heading {
        padding-top: 16%;
    }

    .contact-form {
        padding: 20px;
        height: auto;
    }

    #icon-d {
        padding-left: 3%;
        font-weight: 600;
    }

    #icon-dali {
        padding-left: 2%;
        font-weight: bold;
        font-size: small;
    }

    .contact-form h2 {
        font-size: 1.5em;
    }

    .contact-form .input-box input,
    .contact-form .input-box textarea {
        font-size: 14px;
    }

    .contact-form .input-box input[type="submit"] {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .video-heading {
        font-size: 24px;
    }

    h2 {
        font-size: 16px;
    }

    .video-head2 {
        font-size: 16px;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    }

    .auto-type {
        font-size: large;
    }

    .video-container {
        padding-top: 20%;
        position: relative;
        height: 70vh;
        overflow: hidden;
    }

    .glow {
        font-size: 35px;
    }

    .about-info {
        margin-top: 8%;
        font-size: 12px;
    }

    .btn-4 {
        width: 180px;
        height: 250px;
        padding: 6px 1% 6px 1%;
    }

    #call-heading {
        padding-top: 19%;
    }

    #icon-d {
        padding-left: 3%;
        font-weight: bold;
        font-size: small;
    }

    #icon-dali {
        padding-left: 2%;
        font-weight: bold;
        font-size: xx-small;
    }

    .contact-form h2 {
        font-size: 1.2em;
        height: auto;
    }

    .contact-form .input-box input,
    .contact-form .input-box textarea {
        font-size: 12px;
    }

    .contact-form .input-box input[type="submit"] {
        font-size: 14px;
    }
}

@media only screen and (max-width: 1280px) {
    #mypic {
        margin-top: 4%;
        width: 85%;
    }

    #skillbar-img {
        margin: 2%;
        width: 95%;
    }

    #map {
        width: 100% !important;
    }
}

@media (max-width: 1024px) {
    #mypic {
        margin-top: 6%;
        /* width: 95%; */
    }

    .about-info {
        margin-top: 8%;
        font-size: 16px;
    }

    #map {
        width: 100% !important;
        height: 223px;
    }

    #skillbar-img {
        margin: 2%;
        width: 95%;
    }
}

@media only screen and (min-width: 1024px) {
    .about-info {
        margin-top: 10%;
        font-size: 16px;
    }

}

@media (min-width: 1280px) and (max-width: 3000px) {
    .about-info {
        margin-top: 5%;
        font-size: 18px;
    }
}

/* Custom width for the offcanvas menu */
@media (min-width: 1200px) {
    .offcanvas-start {
        width: 20% !important;
        /* xl and above: 20% width */
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .offcanvas-start {
        width: 25% !important;
        /* lg: 25% width */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .offcanvas-start {
        width: 30% !important;
        /* md: 30% width */
    }
}

@media (max-width: 767.98px) {
    .offcanvas-start {
        width: 75% !important;
        /* sm and below: 75% width */
    }
}