@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

section {
    padding: 100px 0;
}

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

.about, .services, .skills, .teams, .contact, footer {
    font-family: 'Poppins', sans-serif;
}

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

.services .serv-content {
    align-items: stretch;
}

.skills .skills-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

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

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

section .title::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: crimson;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}

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

.navbar.sticky, .navbar.solid-bg {
    padding: 15px 0;
    background: #111;
}

.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 {
    color: crimson;
    transition: all 0.3s ease;
}

.navbar.sticky .logo a span, .navbar.solid-bg .logo a span {
    color: #fff;
}

.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, .navbar .menu li a.active {
    color: crimson;
}

.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

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

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

.scroll-up-btn.show:hover {
    filter: brightness(90%);
}

.home {
    display: flex;
    background: url("images/banner.jpg") no-repeat center;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
}

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

.home .max-width .row {
    margin-right: 0;
}

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

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-3 {
    font-size: 40px;
    margin: 5px 0;
}

.home .home-content .text-3 span {
    color: crimson;
    font-weight: 500;
}

.home .home-content a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    font-weight: 400;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.home .home-content a:hover {
    color: crimson;
    background: none;
}

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

.about.home-about {
    padding-bottom: 50px;
}

.about .title::after {
    content: "who i am";
    background: #fff;
}

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

.about .about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 6px;
}

.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 {
    color: crimson;
}

.about .about-content .right p {
    text-align: justify;
    color: #333;
}

.mt-10 {
    margin-top: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.about .about-content .right a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.about .about-content .right a:hover {
    color: crimson;
    background: none;
}

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

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

.services .title::after {
    background: #111;
    content: "what i provide";
}

.services .serv-content .card {
    width: calc(33% - 20px);
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 50px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.services .serv-content .card:hover {
    background: crimson;
}

.services .serv-content .card .box {
    transition: all 0.3s ease;
}

.services .serv-content .card:hover .box {
    transform: scale(1.05);
}

.services .serv-content .card i {
    font-size: 50px;
    color: crimson;
    transition: color 0.3s ease;
}

.services .serv-content .card:hover i {
    color: #fff;
}

.services .serv-content .card .text {
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

.services.education .title::after {
    content: "my journey";
}

.education-card {
    cursor: default !important;
}

.education-card:hover {
    background: #222;
}

.education-card:hover .year {
    color: #fff !important;
}

.education-card .year {
    color: crimson;
    font-weight: bold;
    margin-bottom: 5px;
}

.education-card .desc {
    font-size: 14px;
    margin-top: 5px;
    color: #ccc;
}

.services.projects .title {
    color: #fff !important;
}

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

.services.projects .title::after {
    background: #111;
    content: "recent work";
}

.view-all-btn-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    background: crimson;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid crimson;
}

.view-all-btn:hover {
    background: transparent;
    color: crimson;
}

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

.skills .title::after {
    content: "what i know";
    background: #fff;
}

.skill-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #111;
    text-align: center;
    width: 100%;
}

.skill-section {
    width: 100%;
    margin-bottom: 50px;
    text-align: center;
}

.soft-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background: #fff;
    color: #111;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    border-left: 4px solid crimson;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid #eee;
}

.skill-item:hover {
    background: crimson;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hard-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.h-skill-item {
    background: #fff;
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.h-skill-item:hover {
    border-color: crimson;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.h-skill-item i {
    font-size: 45px;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.h-skill-item:hover i {
    color: crimson;
}

.h-skill-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.h-skill-info span {
    font-size: 14px;
    background: #f1f1f1;
    padding: 4px 12px;
    border-radius: 20px;
    color: #666;
    font-weight: 500;
    display: inline-block;
}

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

.contact .title::after {
    content: "get in touch";
    background: #fff;
}

.contact .title::before {
    background: #111;
}

.contact .contact-content {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.contact .contact-content .column.center {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.contact .contact-content .text {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.contact .contact-content p {
    margin-bottom: 40px;
    font-size: 18px;
    color: #333;
}

.contact .contact-content .icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact .contact-content .row {
    display: flex;
    align-items: center;
    background: #222;
    padding: 20px 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid #333;
    color: #fff;
}

.contact .contact-content .row:hover {
    background: crimson;
    transform: translateY(-5px);
    border-color: crimson;
}

.contact .contact-content .row i {
    font-size: 30px;
    color: crimson;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.contact .contact-content .row:hover i {
    color: #fff;
}

.contact .contact-content .info .head {
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}

.contact .contact-content .info .sub-title {
    color: #bbb;
    font-size: 14px;
}

.contact .contact-content .row:hover .info .sub-title {
    color: #f1f1f1;
}

.stats {
    background: #111;
    color: white;
    padding: 50px 0;
}

.stats .stats-content {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 50px;
}

.stats .stat-box h1 {
    font-size: 60px;
    color: crimson;
    margin-bottom: 5px;
}

.stats .stat-box p {
    font-size: 20px;
    font-weight: 500;
}

.card-project {
    width: 100%;
    background: #222;
    border-radius: 6px;
    margin-bottom: 25px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    height: 100%;
}

.card-project .box {
    display: flex;
    align-items: center;
    color: #fff;
    transition: all 0.3s ease;
}

.card-project .icon-wrapper {
    min-width: 80px;
    text-align: center;
    margin-right: 30px;
}

.card-project .icon-wrapper i {
    font-size: 50px;
    color: crimson;
    transition: color 0.3s ease;
}

.card-project .text-content {
    flex: 1;
    text-align: left;
}

.card-project .project-title {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-project p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-project .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-project .tags span {
    font-size: 13px;
    background: #333;
    border: 1px solid crimson;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-project:hover {
    background: crimson;
    transform: translateY(-5px);
}

.card-project:hover .box,
.card-project:hover .icon-wrapper i {
    color: #fff;
}

.card-project:hover .tags span {
    border-color: #fff;
    background: #333;
    color: #fff;
}

.card-project .tags span:hover {
    background: #fff !important;
    color: crimson !important;
    border-color: #fff !important;
    transform: scale(1.1);
}

.project-details {
    color: #fff;
    background: #111;
    min-height: 100vh;
}

.back-btn-container {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-block;
    color: crimson;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back i {
    margin-right: 8px;
}

.btn-back:hover {
    color: #fff;
    text-decoration: none;
}

.project-header {
    text-align: left;
    margin-bottom: 40px;
}

.p-title {
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Ubuntu', sans-serif;
}

.p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.p-tags span {
    background: #222;
    border: 1px solid crimson;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
}

.p-desc p {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    color: #ccc;
}

.divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 40px 0;
}

.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.showcase-item h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    color: crimson;
    font-family: 'Ubuntu', sans-serif;
    border-left: 4px solid #fff;
    padding-left: 15px;
}

.showcase-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid #333;
    transition: transform 0.3s ease;
}

.showcase-item img:hover {
    border-color: crimson;
}

.showcase-item p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
}

footer {
    background: #111;
    padding: 15px 23px;
    color: #fff;
    text-align: center;
}

footer span a {
    color: crimson;
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}

@media (max-width: 1104px) {
    .about .about-content .left img {
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }
}

@media (max-width: 947px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }
    .menu-btn i.active:before {
        content: "\f00d";
    }
    .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;
    }
    .navbar .menu.active {
        left: 0;
    }
    .navbar .menu li {
        display: block;
    }
    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }
    .home .home-content .text-2 {
        font-size: 70px;
    }
    .home .home-content .text-3 {
        font-size: 35px;
    }
    .home .home-content a {
        font-size: 23px;
        padding: 10px 30px;
    }
    .max-width {
        max-width: 930px;
    }
    .about .about-content .column {
        width: 100%;
    }
    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }
    .about .about-content .right {
        flex: 100%;
    }
    .services .serv-content .card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .p-title {
        font-size: 35px;
    }
    .p-desc p {
        font-size: 16px;
    }
    .showcase-item h3 {
        font-size: 22px;
    }
}

@media (max-width: 700px) {
    .card-project .box {
        flex-direction: column;
        text-align: center;
    }
    .card-project .icon-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .card-project .text-content {
        text-align: center;
    }
    .card-project .tags {
        justify-content: center;
    }
    .hard-skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 690px) {
    .max-width {
        padding: 0 23px;
    }
    .home .home-content .text-2 {
        font-size: 60px;
    }
    .home .home-content .text-3 {
        font-size: 32px;
    }
    .home .home-content a {
        font-size: 20px;
    }
    .services .serv-content .card {
        width: 100%;
    }
    .stats .stats-content {
        flex-direction: column;
        gap: 30px;
    }
    .contact .contact-content .row {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2 {
        font-size: 50px;
    }
    .home .home-content .text-3 {
        font-size: 27px;
    }
    .about .about-content .right .text,
    .skills .skills-content .left .text {
        font-size: 19px;
    }
    .scroll-up-btn {
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 35px;
        font-size: 23px;
        line-height: 38px;
    }
}