/* CSS */
@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;
}

/* custom scroll bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: crimson;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d11a3a;
}

/* all similar content styling codes */
section {
    padding: 100px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.about,
.education,
.skills,
.experience,
.projects,
.contact,
footer {
    font-family: 'Poppins', sans-serif;
}

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 styling */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
}

.navbar.sticky {
    padding: 15px 0;
    background: crimson;
}

.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 {
    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 {
    color: crimson;
}

.navbar.sticky .menu li a:hover {
    color: #fff;
}

/* menu btn styling */
.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:hover {
    filter: brightness(90%);
}

/* home section styling */
.home {
    display: flex;
    background: url("images/bg.jpg") no-repeat center;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.home .max-width {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
}

.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.hire-me {
    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.hire-me:hover {
    color: crimson;
    background: none;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    color: #fff;
    font-size: 25px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: crimson;
    transform: translateY(-5px);
}

/* about section styling */
.about .title::after {
    content: "who i am";
}

.about .about-content .left {
    width: 45%;
}

.about .about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius:6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about .about-content .right {
    width: 55%;
    padding-left: 30px;
}

.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;
    margin-bottom: 20px;
}

.contact-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    font-size: 20px;
    color: crimson;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.btn:hover {
    color: crimson;
    background: none;
}

/* education section styling */
.education .title::after {
    content: "my education";
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: crimson;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid crimson;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left-timeline {
    left: 0;
}

.right-timeline {
    left: 50%;
}

.right-timeline::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: crimson;
    margin-bottom: 10px;
}

.timeline-content .date {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
    display: block;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: crimson;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    top: 15px;
    z-index: 1;
}

.left-timeline .timeline-icon {
    right: -25px;
}

.right-timeline .timeline-icon {
    left: -25px;
}

/* skills section styling */
.skills .title::after {
    content: "what i know";
}

.skills-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 30px;
    color: crimson;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.soft-skills {
    margin-bottom: 30px;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.soft-skill-item i {
    font-size: 20px;
    color: crimson;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.certifications {
    margin-top: 30px;
    margin-bottom: 15px;
}

.certification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cert-item i {
    font-size: 18px;
    color: crimson;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

/* experience section styling */
.experience .title::after {
    content: "my experience";
}

.exp-item {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.exp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.exp-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.exp-icon {
    width: 60px;
    height: 60px;
    background: crimson;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 25px;
    margin-right: 20px;
    flex-shrink: 0;
}

.exp-title h3 {
    color: #333;
    margin-bottom: 5px;
}

.exp-title p {
    color: #666;
    font-style: italic;
}

.exp-details ul {
    list-style: none;
}

.exp-details ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.exp-details ul li i {
    color: crimson;
    position: absolute;
    left: 0;
    top: 5px;
}

.workshops {
    margin-top: 50px;
}

.workshops-title {
    font-size: 25px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.workshops-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: crimson;
}

.workshop-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.workshop-item i {
    font-size: 20px;
    color: crimson;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

/* projects section styling */
.projects .title::after {
    content: "what i created";
}

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: crimson;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 25px;
    margin-bottom: 20px;
}

.project-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
}

.project-info .tech {
    color: crimson;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.project-info p {
    color: #666;
    line-height: 1.6;
}

/* contact section styling */
.contact .title::after {
    content: "get in touch";
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact .column.left {
    flex: 1;
    min-width: 300px;
}

.contact .column.right {
    flex: 1;
    min-width: 300px;
}

.contact .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 20px;
}

.contact .icons .row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact .icons .row i {
    font-size: 25px;
    color: crimson;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.contact .icons .row .info .head {
    font-weight: 500;
    color: #333;
}

.contact .icons .row .info .sub-title {
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: crimson;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #333;
    transform: translateY(-5px);
}

.contact form .fields {
    display: flex;
    gap: 15px;
}

.contact form .field,
.contact form .fields .field {
    height: 45px;
    width: 100%;
    margin-bottom: 15px;
}

.contact form .textarea {
    height: 80px;
    width: 100%;
}

.contact form .field input,
.contact form .textarea textarea {
    height: 100%;
    width: 100%;
    border: 1px solid lightgrey;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact form .field input:focus,
.contact form .textarea textarea:focus {
    border-color: crimson;
}

.contact form .textarea textarea {
    padding-top: 10px;
    resize: none;
}

.contact form .button-area {
    display: flex;
    align-items: center;
}

.contact form .button-area button {
    color: #fff;
    display: block;
    width: 160px !important;
    height: 45px;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    flex-wrap: nowrap;
    background: crimson;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.contact form .button-area button:hover {
    color: crimson;
    background: none;
}

/* footer section styling */
footer {
    background: #111;
    padding: 20px 23px;
    color: #fff;
    text-align: center;
}

footer span a {
    color: crimson;
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}

/* responsive media query start */
@media (max-width: 1300px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .left-timeline::after,
    .right-timeline::after {
        left: 18px;
    }

    .left-timeline .timeline-icon,
    .right-timeline .timeline-icon {
        left: 0;
    }
}

@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%;
        padding-left: 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-content {
        grid-template-columns: 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;
    }
}

@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;
    }

    .contact form .fields {
        flex-direction: column;
    }

    .contact form .name,
    .contact form .email {
        margin: 0;
    }

    .scroll-up-btn {
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 35px;
        font-size: 23px;
        line-height: 38px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}