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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    border-radius: 12px;
    background: linear-gradient(135deg, #041d3d, #fff, crimson);
}

section {
    padding: 100px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: "Ubuntu", sans-serif;
}

section .title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #1e3551;
    transform: translateX(-50%);
}


/* Navbar */

.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    font-family: "Ubuntu", sans-serif;
    transition: all 0.3s ease;
}

.navbar.sticky {
    padding: 15px 0;
    background: #1e3551;
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo a span {
    background: linear-gradient(135deg, #041d3d, #fff, crimson);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar.sticky .logo a span {
    background: none;
    -webkit-text-fill-color: #fff;
}

.navbar .menu {
    margin: 0;
    padding: 0;
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: #d1d9e6;
}

.menu-btn {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1001;
}

.menu-btn i.active:before {
    content: "\f00d";
}


/* Scroll Up */

.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: #1e3551;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}


/* Home */

.home {
    display: flex;
    background: url("https://images.unsplash.com/photo-1516721306533-364eee523197") no-repeat center;
    height: 100vh;
    min-height: 500px;
    color: #fff;
    background-size: cover;
    background-attachment: fixed;
    font-family: "Ubuntu", sans-serif;
}

.home .max-width {
    width: 100%;
    display: flex;
    align-items: center;
}

.home .home-content .text-1 {
    font-size: 27px;
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    line-height: 1.1;
}

.home .home-content .text-3 {
    font-size: 40px;
    margin: 8px 0;
    line-height: 1.2;
}

.home .home-content .text-3 span {
    background: linear-gradient(135deg, #041d3d, #fff, crimson);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.home .home-content a {
    display: inline-block;
    background: #1e3551;
    color: #fff;
    font-size: 24px;
    padding: 12px 32px;
    margin-top: 20px;
    border-radius: 8px;
    border: 2px solid #1e3551;
    transition: all 0.3s ease;
}

.home .home-content a:hover {
    color: #1e3551;
    background: #fff;
}


/* About */

.about {
    background: radial-gradient(#e1efff, white);
}

.about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about .title::after {
    content: "Who I Am";
    position: absolute;
    bottom: -14px;
    left: 50%;
    font-size: 18px;
    color: #1e3551;
    padding: 0 8px;
    background: radial-gradient(#e1efff, white);
    transform: translateX(-50%);
}

.about .about-content .left {
    width: 45%;
}

.about .about-content .left img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.about .about-content .right {
    width: 55%;
}

.about .about-content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .text span {
    background: linear-gradient(135deg, #041d3d, #fff, crimson);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about .about-content .right p {
    text-align: justify;
    line-height: 1.8;
}

.about .about-content .right a {
    display: inline-block;
    background: #1e3551;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 24px;
    margin-top: 20px;
    border-radius: 8px;
    border: 2px solid #1e3551;
}


/* Services */

.services {
    color: #fff;
    background: #111;
}

.services .title::before {
    background: #fff;
}

.services .title::after {
    content: "What I Do";
    position: absolute;
    bottom: -14px;
    left: 50%;
    font-size: 18px;
    color: #fff;
    padding: 0 8px;
    background: #111;
    transform: translateX(-50%);
}

.services .serv-content,
.projects .serv-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.services .serv-content .card,
.projects .card {
    background: #222;
    text-align: center;
    border-radius: 12px;
    padding: 35px 25px;
    transition: all 0.3s ease;
}

.services .serv-content .card {
    width: calc(33.333% - 14px);
}

.projects .card {
    width: calc(50% - 10px);
}

.services .serv-content .card:hover,
.projects .card:hover {
    background: #1e3551;
    transform: translateY(-5px);
}

.services .serv-content .card .box i,
.projects .card i {
    font-size: 42px;
    margin-bottom: 15px;
    color: #fff;
}

.services .serv-content .card .text,
.projects .card .text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.services .serv-content .card p,
.projects .card p {
    line-height: 1.7;
}


/* Skills */

.skills {
    background: radial-gradient(#e1efff, white);
}

.skills .title::after {
    content: "What I Know";
    position: absolute;
    bottom: -14px;
    left: 50%;
    font-size: 18px;
    color: #1e3551;
    padding: 0 8px;
    background: radial-gradient(#e1efff, white);
    transform: translateX(-50%);
}

.skills .skills-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skills .skills-content .column {
    width: calc(50% - 30px);
}

.skills .skills-content .left .text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.skills .skills-content .left p {
    text-align: justify;
    line-height: 1.8;
}

.skills .skills-content .left a {
    display: inline-block;
    background: #1e3551;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 18px;
    margin-top: 20px;
    border-radius: 8px;
    border: 2px solid #1e3551;
}

.intern,
.project {
    list-style: none;
    margin-bottom: 8px;
    line-height: 1.7;
}

.intern::before,
.project::before {
    content: "✪ ";
    color: #1e3551;
}

.skills .skills-content .right .bars {
    margin-bottom: 18px;
}

.skills .skills-content .right .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skills .skills-content .right .info span {
    font-size: 18px;
    font-weight: 500;
}

.skills .skills-content .right .line {
    height: 6px;
    width: 100%;
    background: lightgrey;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skills .skills-content .right .line::before {
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: #1e3551;
    border-radius: 6px;
}

.skills-content .right .csharp::before {
    width: 80%;
}

.skills-content .right .html::before {
    width: 85%;
}

.skills-content .right .css::before {
    width: 80%;
}

.skills-content .right .js::before {
    width: 70%;
}

.skills-content .right .python::before {
    width: 70%;
}

.skills-content .right .problem-solving::before {
    width: 85%;
}


/* Projects */

.projects {
    color: #fff;
    background: #111;
}

.projects .title::before {
    background: #fff;
}

.projects .title::after {
    content: "My Apps";
    position: absolute;
    bottom: -14px;
    left: 50%;
    font-size: 18px;
    color: #fff;
    padding: 0 8px;
    background: #111;
    transform: translateX(-50%);
}

.projects .card a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: #fff;
    color: #1e3551;
    border-radius: 8px;
    font-weight: 600;
}


/* Contact */

.contact {
    background: radial-gradient(#e1efff, white);
}

.contact .title::after {
    content: "Get In Touch";
    position: absolute;
    bottom: -14px;
    left: 50%;
    font-size: 18px;
    color: #1e3551;
    padding: 0 8px;
    background: radial-gradient(#e1efff, white);
    transform: translateX(-50%);
}

.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.contact .contact-content .column {
    width: calc(50% - 20px);
}

.contact .contact-content .text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact-content .left p {
    text-align: justify;
    line-height: 1.8;
}

.contact .contact-content .left .icons {
    margin-top: 20px;
}

.contact .contact-content .row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.contact .contact-content .row i {
    font-size: 22px;
    color: #1e3551;
    min-width: 30px;
}

.contact .contact-content .row .info {
    margin-left: 20px;
}

.contact .right form .fields {
    display: flex;
    gap: 15px;
}

.contact .right form .field,
.contact .right form .fields .field {
    width: 100%;
    margin-bottom: 15px;
}

.contact .right form .field input,
.contact .right form .textarea textarea {
    width: 100%;
    border: 1px solid lightgrey;
    border-radius: 8px;
    outline: none;
    padding: 12px 15px;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
}

.contact .right form .textarea textarea {
    min-height: 140px;
    resize: none;
}

.contact .right form .button-area button {
    color: #fff;
    width: 170px;
    height: 48px;
    border: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    background: #1e3551;
}


/* Social */

.social-menu {
    margin-top: 20px;
}

.social-menu ul {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.social-menu ul li {
    list-style: none;
}

.social-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1e3551;
    color: #fff;
}

.fa-brands,
.fa-solid {
    color: #fff;
}


/* Footer */

footer {
    background: #111;
    padding: 12px 16px;
    color: #aaa;
    text-align: center;
}

footer span a {
    color: #6f9ed4;
}


/* Responsive */

@media (max-width: 991px) {
    .max-width {
        padding: 0 40px;
    }
    .services .serv-content .card,
    .projects .card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 947px) {
    .menu-btn {
        display: block;
    }
    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    .navbar .menu.active {
        left: 0;
    }
    .navbar .menu li {
        display: block;
    }
    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 28px;
    }
    .home .home-content .text-2 {
        font-size: 60px;
    }
    .home .home-content .text-3 {
        font-size: 32px;
    }
    .about .about-content .left,
    .about .about-content .right,
    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
    }
    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .max-width {
        padding: 0 20px;
    }
    .home {
        background-attachment: scroll;
    }
    .home .home-content .text-2 {
        font-size: 48px;
    }
    .home .home-content .text-3 {
        font-size: 26px;
    }
    .home .home-content a {
        font-size: 20px;
        padding: 10px 24px;
    }
    .services .serv-content .card,
    .projects .card {
        width: 100%;
    }
    .contact .right form .fields {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 500px) {
    section {
        padding: 80px 0;
    }
    section .title {
        font-size: 32px;
    }
    .navbar .logo a {
        font-size: 28px;
    }
    .home .home-content .text-1 {
        font-size: 22px;
    }
    .home .home-content .text-2 {
        font-size: 42px;
    }
    .home .home-content .text-3 {
        font-size: 22px;
    }
    .about .about-content .left img {
        height: 280px;
        max-width: 280px;
    }
    .navbar .menu li a {
        font-size: 24px;
    }
}