@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap);
*,
body {
    font-family: Montserrat, sans-serif
}

*,
.navbar a {
    text-decoration: none
}

.btn,
.home-img img,
.logo,
.service-box,
.timeline-content {
    cursor: pointer
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: 0;
    scroll-behavior: smooth
}

html {
    font-size: 62.5%;
    overflow-x: hidden
}

body {
    background: #000;
    color: #fff
}

html::-webkit-scrollbar {
    width: .8rem
}

html::-webkit-scrollbar-track {
    background: #000
}

html::-webkit-scrollbar-thumb {
    background: #ba294d
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: rgba(0, 0, 0, .7);
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100
}

.btn,
.home,
.services,
.skills {
    background: #000
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: .2rem;
    color: #ba294d;
    transition: .5s
}

.logo:hover {
    color: red;
    transform: scale(1.1)
}

.navbar a {
    color: #fff;
    font-size: 1.5rem;
    margin: 4rem;
    transition: .5s;
    border-radius: 3px solid transparent
}

#menu-icons,
.btn,
.social-icons a,
span {
    color: #ba294d
}

.navbar a.active,
.navbar a:hover {
    color: #ba294d;
    border-bottom: 3px solid #ba294d
}

.btn:hover,
.social-icons a:hover {
    color: #000;
    box-shadow: 0 0 25px #ba294d
}

#menu-icons {
    font-size: 3.6rem;
    display: none
}

@media (max-width:995px) {
    #menu-icons,
    .navbar .active,
    .navbar a {
        display: block
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid #ba294d;
        border-bottom: 3px solid #ba294d;
        border-bottom-left-radius: 2rem;
        padding: 1rem 3%;
        background-color: #000;
        border-top: .1rem solid rgba(0, 0, 0, .1);
        display: none
    }
    .navbar a {
        font-size: 2rem;
        margin: 3rem 0
    }
    .navbar a.active,
    .navbar a:hover {
        padding: 1rem;
        border-radius: .5rem;
        border-bottom: .5rem solid #000
    }
}

.home-img img,
.timeline-item,
.timeline-items,
.typing-text span,
footer {
    position: relative
}

.home-img,
.home-img img,
.social-icons a {
    border-radius: 50%
}

section {
    min-height: 100vh;
    padding: 5rem 9%
}
.contact {
    min-height: auto;
    padding-bottom: 3rem;
}


.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem
}

.btn,
.footer ul li,
footer .social a {
    display: inline-block
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700
}

.home-img img {
    width: 32vw;
    box-shadow: 0 0 25px #ba294d;
    transition: .5s ease-in-out
}

img {
    width: 500px;
    height: 500px;
    top: auto;
    object-fit: center
}

.home-img img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 75px red)
}

.home-content p {
    font-size: 2rem;
    font-weight: 500
}


.hire-me {
  text-decoration: line-through;
}



.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: 0 0;
    font-size: 2rem;
    margin: 3rem 1.5rem 3rem 0;
    transition: .3s;
    border: .2rem solid #ba294d
}

.social-icons a:hover {
    background: #ba294d;
    transform: scale(1.3) translateY(-5px)
}

.btn {
    padding: 1rem 2.8rem;
    border-radius: 4rem;
    font-size: 1.6rem;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .3s;
    border: .2rem solid #ba294d
}

.btn:hover {
    transform: scale(1.03);
    background-color: #ba294d;
    filter: drop-shadow(0 0 10px red)
}

.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-height: 100px
}

@media(max-width:1000px) {
    .home {
        gap: 4rem
    }
}

@media(max-width:995px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem
    }
    .home .home-content h3 {
        font-size: 2.5rem
    }
    .home .home-content h1 {
        font-size: 5rem
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem
    }
}

.contact h2,
.services h2,
.skills h2,
.timeline-section h2 {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem
}

.service-box {
    background-color: #ba294d;
    height: 300px;
    border-radius: 3rem;
    transition: .3s
}

.service-box:hover {
    background: 0 0;
    color: #ba294d;
    transform: scale(1.03);
    border: 1px solid #ba294d
}

.service-box .service-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: center;
    align-items: center;
    padding: 5em
}

.service-info h4 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem
}

.service-info p {
    font-size: 1.2rem;
    font-weight: 400;
    max-height: 100px;
    margin: auto
}

@media (max-width:991px) {
    section {
        padding: 10rem 3% 2rem
    }
    .services {
        padding-bottom: 7rem
    }
}

@media (max-width:895px) {
    .services h2 {
        margin: 3rem
    }
    .services-container {
        grid-template-columns: repeat(1, 1fr)
    }
}

.skills .container {
    background: #771b32;
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    width: 70%;
    margin: 2rem auto auto
}

.skills .container .row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    flex-wrap: wrap;
    gap: 1.8rem
}

.skills .container .bar {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 1rem;
    background: #000;
    transition: .3s;
    cursor: pointer
}

.skills .container .bar:hover {
    box-shadow: 0 4px 10px red
}

.info img {
    float: left;
    width: 100px;
    height: 100px;
    object-fit: cover
}

.skills .container .bar .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem
}

.skills .container .bar .info span {
    font-size: 2rem;
    font-weight: 500;
    margin-left: .5rem
}

@media screen and (max-width:600px) {
    .skills .container {
        margin: 5px 0 0;
        padding: 0;
        width: 100%
    }
    .skills .container .row {
        grid-template-columns: repeat(2, 1fr);
        margin: 1rem;
        padding: 2rem .2rem
    }
}

.timeline-section {
    min-height: 100vh;
    padding: 100px 15px;
    background: #000
}

.timeline-items {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap
}

.timeline-items::before {
    content: " ";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: #ba294d;
    left: calc(50% - 1px)
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%
}

.timeline-item:last-child {
    margin-bottom: 0
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right
}

.timeline-item:nth-child(2n) {
    padding-left: calc(50% + 30px)
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: #ba294d;
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 6px 0 15px
}

.timeline-content {
    background-color: #ba294d;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 30px;
    border-radius: 1rem;
    transition: .3s
}

.timeline-content:hover {
    transform: scale(1.05)
}

.timeline-content h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px;
    text-transform: capitalize;
    font-weight: 500
}

.timeline-content p {
    color: #fff;
    opacity: .8;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px
}

.projects .heading {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.projects-box {
    background: #161616;
    border: 2px solid #ba294d;
    border-radius: 2rem;
    padding: 3rem;
    transition: .3s ease;
}

.projects-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(186, 41, 77, .5);
}

.projects-info a {
    color: #ba294d;
    text-decoration: none;
}

.projects-info a:hover {
    color: #ff154c;
}

.projects-info h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.projects-info p {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.6;
}



.contact {
    background-color: #000
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto 3rem;
    text-align: center
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: #fff;
    background: #161616;
    border-radius: .8rem;
    border: 2px solid #ff154c;
    margin: 1rem 0;
    resize: none
}

.contact form .btn {
    margin-top: 2rem
}

footer {
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: #100f0f
}

.footer .social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-bottom: 25px;
    color: #ba294d;
}

.footer .social a {
    display: inline-flex;
    width: 46px;
    height: 46px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    font-size: 25px;
    color: #ba294d;
    border: 2px solid #ba294d;
    border-radius: 50%;
    transition: .3s ease-in-out;
}

.footer .social a:hover {
    background: #000;
    box-shadow: 0 0 25px #ba294d;
    transform: scale(1.2) translateY(-10px);
    color: #ff154c;
}


.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center
}

.footer ul li a {
    color: #fff;
    border-bottom: 3px solid transparent;
    transition: .3s
}

.footer ul li a:hover {
    border-bottom: 3px solid #fff
}

.footer ul li {
    display: inline-block;
    padding: 0 15px
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: #fff
}

@media(max-width:1200px) {
    html {
        font-size: 55%
    }
    .home-circle-1 {
        bottom: 20rem;
        width: 30vw;
        height: 30vw
    }
    .home-circle-2 {
        top: 20rem;
        width: 30vw;
        height: 30vw
    }
}

@media (max-width: 895px) {
    #menu-icon,
    .navbar a,
    .navbar.active {
        display: block;
    }

    .navbar a {
        font-size: 2rem;
        color: white;
        margin: 2rem 0;
        padding: 1rem 2rem;
        text-align: center;
        font-weight: 600;
        border: 2px solid #ba294d;
        border-radius: 4rem;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .navbar a:hover {
        background-color: #ba294d;
        color: white;
    }

    .navbar {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        padding: 1rem;
        background: #fff;
        border-left: 2px solid #ff154c;
        border-bottom: 2px solid #ff154c;
        border-bottom-left-radius: 2rem;
        display: none;
        z-index: 1;
    }

    .services {
        flex-direction: column;
        gap: 2rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
    }

    .timeline-item:nth-child(2n),
    .timeline-item:nth-child(odd) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }
}

/* Footer alignment — outside the media query */
.footer .social,
.footer ul {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .social {
    gap: 2rem;
}

.footer ul {
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
}

.footer ul li {
    padding: 0;
}
