* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(#00193d, #003077);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.main-bar {
    height: 90px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #020f22;

    nav ul {
        display: flex;
        gap: 30px;
    }

    nav ul li a {
        color: white;
        font-weight: 600;
        transition: .4s;
    }

    nav ul li a:hover {
        color: rgb(151, 151, 151);
    }
}

.logo {
    font-size: 35px;
    font-weight: 800;
    color: white;
}

.btn {
    height: 43px;
    width: 160px;
    background: transparent;
    color: white;
    font-size: 1em;
    font-weight: 600;
    border: 1px solid white;
    border-radius: 15px;
    transition: .5s ease;
    cursor: pointer;
    margin-left: 20px;
}

.btn:hover {
    background: #025c98;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    height: 100%;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.584);
    z-index: 10;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 50px;
    padding: 10px 15px 0 30px;
}

.sidebar nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar nav ul li {
    border-bottom: 2px solid white;
}

.sidebar nav ul li a {
    color: white;
    font-weight: 600;
    font-size: 1em;
}

.slide-in-blurred-top {
    -webkit-animation: slide-in-blurred-top .4s ease-out both;
    animation: slide-in-blurred-top .4s ease-out both
}

@-webkit-keyframes slide-in-blurred-top {
    0% {
        -webkit-transform: translateY(-1000px) scaleY(2.5) scaleX(.2);
        transform: translateY(-1000px) scaleY(2.5) scaleX(.2);
        -webkit-transform-origin: 50% 0;
        transform-origin: 50% 0;
        -webkit-filter: blur(40px);
        filter: blur(40px);
        opacity: 0
    }

    100% {
        -webkit-transform: translateY(0) scaleY(1) scaleX(1);
        transform: translateY(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1
    }
}

@keyframes slide-in-blurred-top {
    0% {
        -webkit-transform: translateY(-1000px) scaleY(2.5) scaleX(.2);
        transform: translateY(-1000px) scaleY(2.5) scaleX(.2);
        -webkit-transform-origin: 50% 0;
        transform-origin: 50% 0;
        -webkit-filter: blur(40px);
        filter: blur(40px);
        opacity: 0
    }

    100% {
        -webkit-transform: translateY(0) scaleY(1) scaleX(1);
        transform: translateY(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1
    }
}

.none {
    display: none;
}

.menu-small {
    margin-bottom: 15px;
}

.logo1 {
    margin-left: 260px;
    margin-top: 30px;

    img {
        height: 20px;
    }
}

.first_section {
    height: auto;
    padding: 0 0 10vh 0;
}

.first-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

.image img {
    height: 310px;
    width: 310px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 50px;
    margin-bottom: 50px;
}

.text-flex {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-bar {
    height: 38px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: #0D79C1;
    font-size: 1.1em;
}

.text {
    text-align: center;
}

.text h2 {
    font-size: 76px;
    color: white;
}

.text p {
    font-size: 1.7em;
    color: white;
    width: 430px;
}

.btn1 {
    height: 45px;
    width: 130px;
    background: #0D79C1;
    color: white;
    font-size: 1em;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    margin-top: 50px;
    transition: .4s ease;
    cursor: pointer;

}

.btn1:hover {
    background: #025c98;
}

.scroll {
    height: 15vh;
    background: #00193d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroller {
    max-width: 80%;

}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6rem;

    img {
        height: 60px;
    }
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg,
            transparent,
            white 40%,
            white 60%,
            transparent);
    mask: linear-gradient(90deg, transparent, white 40%, white 60%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 10s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.skills {
    height: auto;
    padding: 10vh 0 15vh 0;
}

.about-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 130px;
    width: 100%;
}



.about-image img {

    height: 460px;
    object-fit: contain;
}


.projects {
    height: auto;
    padding: 10vh 0 10vh 0;
    text-align: center;
    color: white;

    h3 {
        font-size: 40px;
        font-weight: 700;
        margin-bottom: 30px;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 auto;
    width: 80%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    pointer-events: auto;
    transition: 50s ease;
}

.gallery-item:hover .gallery-info {
    display: flex;
    transition: 50s ease;

}

span {
    color: #0D79C1;
}

.gallery-info {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    backdrop-filter: blur(10px);
    background: rgba(32, 32, 168, 0.803);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;

    transition: 50s ease;

    h4 {
        font-size: 25px;
        font-weight: 700;
    }


}

.green {
    background: rgba(36, 233, 36, 0.664);
    color: white;
    font-weight: 600;

    .btn2 {
        margin-top: 20px;
        height: 44px;
        width: 125px;
        border: 2px solid white;
        border-radius: 10px;
        transition: .4s ease;
    }

    .btn2:hover {
        background:
            rgb(31, 135, 15);
        color: white;

    }


}

.blue {
    background: rgba(55, 55, 253, 0.681);
    color: white;
    font-weight: 600;

    .btn2 {
        margin-top: 20px;
        height: 44px;
        width: 125px;
        border: 2px solid white;
        border-radius: 10px;
        transition: .4s ease;
    }

    .btn2:hover {
        background:
            rgb(20, 20, 195);
        color: white;

    }


}

.ash {
    background: rgba(102, 102, 102, 0.621);
    color: white;
    font-weight: 600;

    .btn2 {
        margin-top: 20px;
        height: 44px;
        width: 125px;
        border: 2px solid white;
        border-radius: 10px;
        transition: .4s ease;
    }

    .btn2:hover {
        background:
            rgb(68, 68, 68);
        color: white;

    }


}

.pink {
    background: rgba(249, 88, 217, 0.719);
    color: white;
    font-weight: 600;

    .btn2 {
        margin-top: 20px;
        height: 44px;
        width: 125px;
        border: 2px solid white;
        border-radius: 10px;
        transition: .4s ease;
    }

    .btn2:hover {
        background:
            rgb(188, 2, 150);
        color: white;

    }


}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.contact {
    height: auto;
    padding: 10vh 0 10vh 0;
}

.contact-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    width: 100%;
    flex-wrap: wrap;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: 45%;
    text-align: left;
    color: white;
}

.contact-text h4 {
    font-size: 50px;
    font-weight: 800;
    color: white;

}

.contact-text p {
    font-size: 1.2em;
    color: white;
    line-height: 40px;
}

.call {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.call img {
    height: 40px;
}

.out-touch {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.out-touch img {
    height: 35px;
}

.index {
    position: fixed;
    bottom: 70px;
    right: 50px;
    z-index: 100;
}



@media (max-width: 930px) {
    .none {
        display: block;
    }

    .no-sidebar {
        display: none;
    }
}

@media screen and (max-width:880px) {


    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .text-flex {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text-bar {
        text-align: center;
    }


    .btn {
        margin-top: 20px;
    }

    .btn1 {
        margin-top: 20px;
    }

    .first_section {
        margin-top: 30px;
        padding: 0 0 40vh 0;

    }

    .first-flex {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px;


    }

    .image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image img {
        height: 310px;
        width: 300px;
        border-radius: 50%;
        margin-top: 20px;
    }

    .text {
        text-align: center;
    }

    .text p {
        font-size: 1.2em;
    }

    .text h2 {
        font-size: 30px;
        font-weight: 700;
    }

    .text-bar {
        height: 38px;
        width: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        background: #0D79C1;
        font-size: 1.1em;
    }


    .about-flex {
        margin: 10px 0;
        flex-direction: column;
        gap: 20px;
        width: auto;
    }

    .about-text {
        width: 75%;
    }

    .about-text h4 {
        font-size: 40px;
        color: white;
        font-weight: 700;

        span {
            color: #0D79C1;
        }
    }

    .about-text p {
        font-size: 1.2em;
        color: white;
        line-height: 40px;
    }
.about-image img {
    height: 250px;
}

.projects {
    padding: 10vh 0 10vh 0;
    text-align: center;
    color: white;

    h3 {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 20px;
    }
}

}



/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-text {
        width: 80%;
    }

    .contact-text h2 {
        font-size: 30px;
        color: white;
        font-weight: 700;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}


@media (max-width: 480px) {
    .contact-text h2 {
        font-size: 20px;
    }

    .contact-text p {
        font-size: 1em;
        color: white;
        line-height: 30px;
    }

    .gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 15px;
    }

    .about-flex {
        margin: 10px 0;
        flex-direction: column;
        gap: 20px;
    }

    .about-text {
        width: 90%;
    }

    .about-text h4 {
        font-size: 40px;
        color: white;
        font-weight: 700;

        span {
            color: #0D79C1;
        }
    }

    .about-image {
        
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-text p {
        font-size: 1.2em;
        color: white;
        line-height: 40px;
    }
}