@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bonbon&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
}

main {
    display: flex;
    height: 100%;
    width: 100%;
    font-family: Poppins;
}

aside {
    width: 180px;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 1.1rem;
    background-color: #212529;
    backdrop-filter: blur(20px);
}

.Links {
    display: flex;
    flex-direction: column;
    margin: auto;
}

aside li {
    list-style-type: none;
    display: flex;
    padding: 20px;
    gap: 10px;
    color: white;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition-duration: 0.2s;
}

aside li:hover {
    color: #80ed99;
}

aside li::after {
    position: absolute;
    width: 100%;
    left: 0px;
    height: 1px;
    background: linear-gradient(to left, transparent, #ffffff24, transparent);
    content: '';
    bottom: 0px;
}

aside li i {
    font-size: 1.3rem;
}
.activeLink{
    color:#80ed99
}
.mySwiper {

    flex: 1;
    height: 100%;
}

.home-slide {
    color: white;
    display: flex;
    background-color: #343a40;
}

.HomeContent {
    margin: auto 0px;
    flex: 1;
    height: auto;
    
    padding: 100px;
    user-select: none;
}

.SideImg {
    width: 24%;


    margin: auto 10px;
    margin-right: 100px;
    position: relative;
}

.SideImg img {
    width: 100%;
    border-radius: 10px;
}

.SideImg .top-right-corner,
.bottom-left-corner {
    position: absolute;
}

.bottom-left-corner {
    left: -50px;
    bottom: -50px;
    rotate: -90deg;
}

.top-right-corner {
    right: -50px;
    top: -50px;
    rotate: 90deg;
}

.hr1 {
    width: 150px;
    height: 10px;
    border: none;
    background: #80ed99;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.hr2 {
    width: 10px;
    height: 120px;
    border-bottom-left-radius: 3px;

    background: #80ed99;
    border: none;
    border-bottom-right-radius: 3px;
}

.HomeContent h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.HomeContent h2 {
    font-size: 2.3em;
    margin-bottom: 10px;
    font-weight: 600;

}

.HomeContent h1 .stylized-name {
    font-weight: 700;
    color: #80ed99;
}

.proffesions {
    color: #85f69f;
}

.HomeContent .heroline {
    font-size: 1.5rem;
    font-weight: 300;
    padding-right:50px;
}

.buttonGroup {
    display: flex;
    padding: 10px 0px;
    margin-top: 10px;
}

.buttonGroup button ,.primary{
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 5px;
    cursor: pointer;
    background-color: #1d8637;
    color: white;
    border-radius: 5px;
}

.slide-help {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-weight: 400;
    z-index: 100;
    left: 0%;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.2rem;
}



.mySwiper {
    width: 90vw;
    height: 120vh;
    overflow: hidden;
    background-color: #343a40;
}

.swiper-slide {
    width: 100%;

    background-color: #343a40;
    height: 100%;
}

.about-us {
    width:100%;
    height:100%;

    padding: 100px;
    color: white;
}

.heading {
    padding: 20px 10px;
    font-size: 2.5rem;
    color: #80ed99;
}

.about-us h3 {
    padding: 10px;

}

.aboutme-deatils {
    padding: 20px;
    font-weight: 300;
}

.about-me-divison {
    display: flex;
}

.about-me-table {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(2, 50%);
}

.about-me-table li {
    padding: 20px;
    position: relative;
}

.about-me-table li::after {
    position: absolute;
    width: 100%;
    left: 0px;
    height: 1px;
    background: linear-gradient(to left, transparent, #ffffff77, transparent);
    content: '';
    bottom: 0px;
}

.about-me-table span {
    color: #80ed99;
    font-weight: bold;
    margin-right: 5px;
}

.about-me-table .buttonGroup {
    grid-column: 1/span 2;
    justify-content: center;
    padding: 50px;
    flex: 1;
}

.skill-bar {
    width: calc(40% - 20px);
}

.skill-bar li {
    width: 100%;
    padding: 10px;
}

.skill-bar p {
    color: #80ed99;
    font-weight: bold;
    margin: 10px;
}

.skill-bar .bar {
    width: 100%;
    height: 15px;
    background-color: #272c30;
    border-radius: 20px;

}

.active-bar {
    background-color: #80ed99;
    height: 100%;
    width: auto;
    border-radius: 20px;
}

.services {
    color: white;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;          /* was: 100px calc(50% - 50px) ... */
    gap: 20px;
    padding: 60px;
    overflow-y: auto;
    align-content: start;
}

.services .service {
    margin: 0;                          /* gap handles spacing now */
}

.services .heading {
    grid-column: 1/span 3;
}

.services .service {
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.437);
    border-radius: 5px;
    margin: 20px;
    backdrop-filter: blur(10px);
    flex-direction: column;

    transition-duration: 0.25s;
}

.services .service i {
    font-size: 3rem;
    color:#80ed99
}

.services .service .service-icon {
    padding: 0px 50px;
    border-radius: 5px;
    margin: 0px auto;
}
.service h2{
    color:#80ed99
}
.service:hover {
    background-color: #80ed99;
    color: #176d2d
}
.service:hover h2,.service:hover i{
    color: #176d2d
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    padding: 60px;
    overflow-y: auto;
    align-content: start;
}

.gallery .heading {
    grid-column: 1 / -1;
}

.gallery .project {
    background: #212529;
    border-radius: 20px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery .project:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gallery .project:hover .project-caption {
    color: #80ed99;
}

.project-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 15px;
    background: #111;
}

.gallery .project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.35s ease;
}

.gallery .project:hover img {
    transform: scale(1.08);
}

.project-caption {
    font-size: 0.95rem;
    font-weight: 300;
    padding: 15px 12px;
    line-height: 1.2;
    flex: 1;
    transition: color 0.25s ease;
}


.contactMe {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: auto;          /* was: 80px calc(25% - 20px) x4 */
    gap: 10px;
    padding: 60px;
    overflow-y: auto;
    align-content: start;
    position: relative;
}

.contactMe h1 {
    grid-column: 1/span 3;
    font-size:2.5rem;
    padding:30px;
}

.contactMe form {
    grid-area: 2/2/ span 5/span 2;
}

.contactinfo {
    display: flex;
    flex-direction: column;
    padding: 10px;
    color: white;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.contactinfo i {
    padding: 10px;
    font-size: 2.5rem;
    color: #80ed99;
    margin: 20px auto;
}

.contactinfo h3 {
    color: #80ed99;
}

.contactMe form {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    padding: 20px;
    height: fit-content;
    color: white;
}

.contactMe form h2 {
    grid-column: 1/span 2;
    padding: 20px;
    display: flex;
}

.contactMe form input {
    padding: 15px;
    border-radius: 10px;
    margin: 20px;
    font-size: 1.1rem;
    border: none;
    color: white;
    background-color: #212529;

}

.contactMe form input:focus {
    border: 1px solid #85f69f;
    outline: none;

}

.contactMe form textarea {
    width: calc(100% - 40px);

    grid-column: 1/span 2;
    margin: 20px;
    padding: 20px;
    font-size: 1.1rem;
    border-radius: 10px;
    resize: none;
    border:none;
    border: none;
    color:white;
    background-color: #212529;
}

.contactMe form textarea:focus {
    border: 1px solid #85f69f !important;
}
.contactMe button{
    grid-column: 1/span 2;
    margin:20px auto ;

}
footer{
    position: relative;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 200;
    font-size: 0.8rem;
    margin-top: 20px;
}
footer li{
    padding:10px;
}
form h2 .SocialLinks{
    padding:5px;
    width:fit-content;
    margin-left:auto;
    margin-right:10px;
    background-color: #212529;
    border-radius: 30px;
}
form h2 .SocialLinks i{
    padding:10px;
    border-radius: 50%;
    transition-duration: 0.25s;
}
form h2 .SocialLinks i:hover{
    background-color: #176d2d;
}
.about-us{
    overflow: auto;
}
@media (max-width: 1000px) {
    html, body {
        overflow-x: hidden;
        height: 100%;
    }

    main {
        flex-direction: column;
        height: 100dvh;
    }

    /* Sidebar -> top bar */
    aside {
        width: 100%;
        height: 100px;
        flex-shrink: 0;
    }

    .Links {
        flex-direction: row;
        margin: 20px;
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        font-size: 0.85rem;
    }

    aside li {
        flex-direction: column;
        padding: 10px 6px;
        gap: 4px;
        flex: 1;
        justify-content: center;
    }

    aside li p { white-space: nowrap; }
    aside li i  { font-size: 1.1rem; }
    aside li::after { display: none; }

    .mySwiper {
        width: 100%;
        height: auto;
        flex: 1;
        min-height: 0;
    }

    /* Let every slide scroll instead of clipping */
    .swiper-slide {
        overflow-y: auto;
        height: 100%;
    }

    /* Kill the fixed grid rows everywhere */
    .services,
    .gallery,
    .contactMe {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        padding: 25px 18px 0px;
        height: auto;
    }

    .heading { font-size: 1.8rem; padding: 10px 0; }

    /* Home */
    .home-slide {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }

    .HomeContent { padding: 70px 20px; margin: 0; }
    .HomeContent h1 { font-size: 1.7em; }
    .HomeContent h2 { font-size: 1.2em; }
    .HomeContent .heroline { font-size: 1rem; padding-right: 0; }

    .SideImg {
        width: 55%;
        margin: 0px auto 40px ;
        margin-right: auto;
    }

    .top-right-corner, .bottom-left-corner { display: none; }
    .buttonGroup { justify-content: center; flex-wrap: wrap; }
    .slide-help { display: none; }

    /* About */
    .about-us { padding: 25px 18px 60px; height: auto; }
    .aboutme-deatils { padding: 10px 0; font-size: 0.95rem; }
    .about-me-divison { flex-direction: column; }
    .about-me-table { width: 100%; grid-template-columns: 1fr; }
    .about-me-table li { padding: 12px 0; }
    .skill-bar { width: 100%; margin-top: 20px; }

    /* Services */
    .services .service { margin: 8px 0; }
    .services .service .service-icon { padding: 0; margin: 10px auto; }

    /* Gallery */
    .gallery .project { margin-bottom: 15px; }
    .project-img-wrap { height: 180px; }

    /* Contact */
    .contactinfo { padding: 15px 0; }
    .contactinfo i { margin: 10px auto; font-size: 2rem; }
    .contactMe form { display: flex; flex-direction: column; width: 100%; padding: 0; }
    .contactMe form h2 { flex-direction: column; gap: 12px; padding: 15px 0; }
    .contactMe form .SocialLinks { margin: 0 auto; }
    .contactMe form input,
    .contactMe form textarea { width: 100%; margin: 8px 0; }
    .contactMe button { margin: 15px auto; }

    footer { position: relative; margin-top: 10px; }
}