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

:root {
    --primary-color: #0F4C81;
    --secondary-color: #33a6f9;
    --gray-color: #dcd9d9;
    --bg-color: #ecf0f3;
    --active-color: #88bce0;
}

html {
    scroll-behavior: smooth;
}

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

}


body {
    font-family: 'Poppins', sans-serif;


}

h1,
h2 {
    font-family: 'Saira', sans-serif;

}

h2 {
    text-align: center;
    font-size: 38px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

ul {
    list-style: none;

}

a {
    text-decoration: none;
}

/* utility classes */
.text-primary {
    color: var(--secondary-color);
}

.btn-primay {
    background-color: var(--secondary-color);
    color: #FFF;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    float: right;
}

.btn-primay:hover {
    background-color: #2986c8;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

hr {
    width: 250px;
    height: 3px;
    border: none;
    background-color: var(--secondary-color);
    margin: 5px auto 0;
}


/* header */

header {
    background-color: var(--bg-color);
    height: 100svh;

}

header .navbar {
    background-color: #FFF;
    border-bottom: 1px solid #ccc;
    position: fixed;
    width: 100%;
    z-index: 999;
}

#home #logo {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

#home #logo span {
    color: white;
}

header .navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 1.5rem 2rem;
    position: relative;
}

header .navbar nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .navbar nav ul a {
    margin: 0 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

header .navbar nav ul a:hover,
header .navbar nav ul a.active {
    color: var(--active-color);
    font-size: 22px;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle i {
    font-size: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover i {
    color: var(--secondary-color);
}

header .header-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 5rem 2rem 0;
    height: 100%;
}

/* header .header-content {

    padding-bottom: 10rem;
} */

header .header-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

header .header-content p span {
    font-weight: 700;
    font-size: 20px;
}

header .header-content h1 {
    font-size: 60px;
    color: var(--primary-color);
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
}

header .header-content .title {
    font-size: 20px;
    color: var(--primary-color);
    margin: 10px 0;
    font-weight: 500;
}

header .header-content .social {
    margin: 1rem 0 2rem;
}

header .header-content .social a i {
    font-size: 20px;
    padding: 10px;
    background-color: var(--gray-color);
    color: rgba(36, 36, 36, 0.912);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

header .header-content .name {
    color: #10344e;
}



header .header-content .social a i:hover {
    transform: scale(0.85);
}


.btn-main {
    color: beige;
    background-color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.187em;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 40px;
    transition: 0.8s ease;
}

.btn-main:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Mobile Navigation Responsive */
@media screen and (max-width:768px) {
    .mobile-menu-toggle {
        display: block;
    }

    header .navbar nav .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    header .navbar nav .nav-links.active {
        left: 0;
    }

    header .navbar nav .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    header .navbar nav .nav-links a {
        margin: 0;
        padding: 1rem;
        width: 100%;
        display: block;
        font-size: 18px;
    }
}

/* about */
#about {
    padding: 6rem 2rem;
    /* min-height: 100svh; */
}

#about .about-content {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    column-gap: 3rem;
}

#about .about-content .col-1 img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

#about .about-content .col-2 h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

#about .about-content .col-2 p {
    /* color: var(--gray-color); */
    color: #7b7474;
    margin-bottom: 20px;
}

/* skills */
#skills {
    padding: 6rem 0;
    background-color: var(--bg-color);
    min-height: 100svh;
}

/* #e6edf9 */
#skills .skills-content .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: center;
    column-gap: 3rem;
    row-gap: 3rem;
    margin-top: 2rem;
}

#skills .row .flip-card {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    perspective: 500px;
    position: relative;
    margin: 0 auto;
}

#skills .row .flip-card .face-card,
.back-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 4px 12px 40px 6px rgba(0, 0, 0, 0.09);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s ease-in-out;
    backface-visibility: hidden;
}

#skills .row .flip-card .face-card {
    transform: rotateX(0deg);
    background: whitesmoke;
    color: #7b7479;
    font-weight: 600;
}

#skills .row .flip-card .back-card {
    transform: rotateX(-180deg);
    background: hsl(212, 27%, 81%);
    color: hsl(217, 11%, 24%);
}

#skills .row .flip-card:hover .face-card {
    transform: rotateX(180deg);
}

#skills .row .flip-card:hover .back-card {
    transform: rotateX(0deg);
}

/* Skill chips inside back-card */
#skills .back-card .skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

#skills .back-card .skill-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 8px 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: default;
}

#skills .back-card .skill-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

#skills .back-card .skill-chip i {
    font-size: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#skills .back-card .skill-chip:hover i {
    transform: scale(1.3);
    filter: drop-shadow(0 0 6px currentColor);
}

#skills .back-card .skill-chip span {
    font-size: 13px;
    font-weight: 600;
    color: hsl(217, 11%, 24%);
    white-space: nowrap;
}

/* Skills responsive */
@media screen and (max-width: 768px) {
    #skills {
        padding: 4rem 0;
    }

    #skills .skills-content .row {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    #skills .row .flip-card {
        max-width: 400px;
    }

    #skills .back-card .skill-chips {
        gap: 8px;
        padding: 15px;
    }

    #skills .back-card .skill-chip {
        padding: 6px 10px;
    }

    #skills .back-card .skill-chip i {
        font-size: 16px;
    }

    #skills .back-card .skill-chip span {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    #skills .row .flip-card {
        max-width: 100%;
    }

    #skills .back-card .skill-chip {
        padding: 5px 8px;
        gap: 5px;
    }

    #skills .back-card .skill-chip i {
        font-size: 14px;
    }

    #skills .back-card .skill-chip span {
        font-size: 11px;
    }
}

/* education */
.timeline {
    padding: 100px 15px;
}

.timeline hr {
    margin-bottom: 4rem;
}

.timeline-items {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 0;
    background-color: #2f363e88;
    left: calc(50% - 1px);
}

.timeline-items.animate::before {
    animation: moveline 6s linear forwards;
}

@keyframes moveline {
    0% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}


.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
    opacity: 0;
}

.timeline-item.animate {
    animation: movedown 1s linear forwards;
}

@keyframes movedown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.timeline-item.animate:nth-child(1) {
    animation-delay: 0.5s;
}

.timeline-item.animate:nth-child(2) {
    animation-delay: 1s;
}

.timeline-item.animate:nth-child(3) {
    animation-delay: 1.5s;
}

.timeline-item.animate:nth-child(4) {
    animation-delay: 2s;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}


.timeline-dot {
    position: absolute;
    left: calc(50% - 8px);
    top: 10px;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.date {
    margin: 6px 0 15px;
    font-size: 20px;
    font-family: 'Saira', sans-serif;
}

.timeline-content {
    background-color: #2f343e17;
    padding: 30px;
    border-radius: 8px;
}

.timeline-content h3 {
    font-family: 'Saira', sans-serif;
    margin: 0 0 10px;
    color: #252024;
}


.timeline-content p {
    font-size: 20px;
    color: #455a6c;
    line-height: 22px;
}

@media screen and (max-width:767px) {
    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }
}

/* projects */

#projects {
    background-color: var(--bg-color);
    padding: 6rem 0;
}

#projects .rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

#projects .item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.2px);
    -webkit-backdrop-filter: blur(7.2px);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#projects .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

#projects .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

#projects .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

#projects .item:hover .project-image img {
    transform: scale(1.05);
}

#projects .project-content {
    padding: 1.5rem;
}

#projects .project-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

#projects .project-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

#projects .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

#projects .tech-stack span {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

#projects .project-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

#projects .btn-github,
#projects .btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#projects .btn-github {
    background-color: #24292e;
    color: white;
}

#projects .btn-demo {
    background-color: var(--primary-color);
    color: white;
}

#projects .btn-github:hover,
#projects .btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#projects .btn-github:hover {
    background-color: #1b1f23;
}

#projects .btn-demo:hover {
    background-color: #0d3b66;
}

@media screen and (max-width: 1200px) {
    #projects .rows {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #projects .rows {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 480px) {
    #projects .project-content {
        padding: 1.25rem;
    }

    #projects .project-image {
        height: 180px;
    }

    #projects .project-content h3 {
        font-size: 1.1rem;
    }

    #projects .project-content p {
        font-size: 0.9rem;
    }

    #projects .tech-stack span {
        font-size: 0.75rem;
    }

    #projects .btn-github,
    #projects .btn-demo {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* contact */

#contact {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

#contact .contact-cards {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

#contact .contact-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.02);
}

#contact .contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(51, 166, 249, 0.3);
}

#contact .contact-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

#contact .contact-card:hover i {
    transform: scale(1.2);
}

#contact .contact-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#contact .contact-card p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

#contact .contact-card a {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

#contact .contact-card a:hover {
    color: var(--secondary-color);
}

#contact .contact-card a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

#contact .contact-card a:hover::after {
    visibility: visible;
    width: 100%;
}

/* experience */
#experience {
    padding: 6rem 0;
    /* background-color: var(--bg-color); */
}

.progress-container {
    text-align: center;
    margin: 30px 0;
}

#progressbar {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    color: lightgrey;
}

#progressbar li {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    position: relative;
}

#progressbar li.active {
    color: #1c7f98;
    font-size: 20px;
}

.progress {
    height: 10px;
    background-color: lightgray;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: #67a1e3;
    width: 0;
    height: 100%;
    transition: width 0.4s ease-in-out;
}

.step-container fieldset {
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-bottom: 20px;
    position: relative;
    display: none;
}

.step-container fieldset:first-of-type {
    display: block;
}

h3 {
    margin-top: 20px;
    text-align: center;
}

.step-container p {
    text-align: start;
    padding: 1.5rem;
}

.step-container {
    text-align: center;
}

.exp-list {
    text-align: justify;
    display: inline-block;
    padding-left: 2rem;
}

.exp-list li {
    padding: 0 1.5rem;
    list-style-type: disc;
}

.next-step,
.previous-step {
    width: 100px;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px 10px 0px;
    float: right;
}

.next-step {
    background: #2f6e8d;
}

.previous-step {
    background: #616161;
}

.next-step:hover,
.next-step:focus {
    background-color: #1c475df3;
}

.previous-step:hover,
.previous-step:focus {
    background-color: #4d4d4d;
}

.text {
    font-weight: normal;
}

.finish {
    text-align: center;
}

/* footer */
#footer {
    background-color: #fff;
    color: var(--primary-color);
    padding: 0;
    margin-top: 5rem;
    border-top: 3px solid var(--secondary-color);
}

#footer .footer_container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

#footer .footer_content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    align-items: start;
}

#footer .footer_section {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

#footer .footer_about h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

#footer .footer_about p {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

#footer .footer_about .tagline {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.5rem;
}

#footer .footer_section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

#footer .footer_section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

#footer .footer_links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

#footer .footer_links ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    opacity: 0.8;
}

#footer .footer_links ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
    padding-left: 0.3rem;
}

#footer .social_footer {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

#footer .social_footer .social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

#footer .social_footer .social-icon i {
    font-size: 18px;
}

#footer .social_footer .social-icon:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 166, 249, 0.3);
}

#footer .footer_divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-color), transparent);
    margin: 2rem 0;
}

#footer .footer_bottom {
    padding: 1.5rem 0;
    text-align: center;
}

#footer .footer_bottom p {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin: 0;
    opacity: 0.75;
}

#footer .footer_bottom .designer {
    color: var(--secondary-color);
    font-weight: 600;
}





/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4082ec;
    /* Pink color - change to match your theme */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: none;
    /* Hidden by default */
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background-color: #154085;
    /* Darker pink on hover */
    transform: translateY(-3px);
}




















/* for all divece */
/* Existing CSS remains the same until the media queries */

/* Responsive Media Queries */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 900px;
    }

    header .header-content img {
        max-width: 400px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 750px;
    }

    header .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }

    header .header-content img {
        display: none;
    }

    #about .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #about .about-content .col-1 img {
        margin: 0 auto;
    }

    #skills .skills-content .row {
        grid-template-columns: 1fr;
        column-gap: 2rem;
        row-gap: 2rem;
    }

    #skills .row .flip-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    #projects .rows {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    #about,
    #skills,
    #projects,
    #contact,
    #experience {
        padding: 4rem 0;
    }

    #skills .row .flip-card {
        aspect-ratio: auto;
        height: 450px;
    }

    #skills .row .flip-card .back-card {
        font-size: 16px;
    }

    header .header-content h1 {
        font-size: 48px;
    }

    .navbar nav ul {
        flex-wrap: wrap;
    }

    .navbar nav ul a {
        font-size: 16px;
        margin: 0 10px;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }

    #footer .footer_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    #footer .footer_section h4 {
        font-size: 1rem;
    }

    #footer .footer_section h4::after {
        width: 30px;
    }
}

@media screen and (max-width: 576px) {
    h2 {
        font-size: 32px;
    }

    header .header-content h1 {
        font-size: 36px;
    }

    .btn-main {
        padding: 0.8em 1.5em;
    }

    #projects .rows {
        grid-template-columns: 1fr;
    }

    #projects .rows .item img {
        width: 100%;
        height: auto;
    }

    .header-content .social a i {
        font-size: 16px;
        padding: 8px;
    }

    #footer {
        margin-top: 3rem;
    }

    #footer .footer_content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    #footer .footer_section {
        text-align: center;
    }

    #footer .footer_section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    #footer .footer_links ul {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    #footer .footer_links ul li a {
        font-size: 0.8rem;
    }

    #footer .social_footer {
        justify-content: center;
    }

    #footer .social_footer .social-icon {
        width: 38px;
        height: 38px;
    }

    #footer .social_footer .social-icon i {
        font-size: 16px;
    }

    .progress-container {
        overflow-x: auto;
        padding: 0 1rem;
    }

    #progressbar {
        min-width: 100%;
        width: max-content;
        padding: 0 1rem;
    }

    #progressbar li {
        font-size: 11px;
        min-width: 100px;
    }
}

@media screen and (max-width: 480px) {
    h2 {
        font-size: 28px;
    }

    header .header-content h1 {
        font-size: 32px;
    }

    .navbar nav ul a {
        margin: 0 5px;
        font-size: 14px;
    }

    #about .about-content .col-1 img {
        width: 100%;
    }

    .date {
        font-size: 16px;
    }

    .timeline-content h3 {
        font-size: 20px;
    }

    .timeline-content p {
        font-size: 16px;
    }

    #contact .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #contact .contact-card {
        padding: 1.5rem 1rem;
    }

    .btn-primay,
    .btn-main {
        font-size: 12px;
    }
}

/* Very small devices (phones, 360px and down) */
@media screen and (max-width: 360px) {
    header .header-content h1 {
        font-size: 28px;
    }

    .header-content .title {
        font-size: 16px;
    }

    .navbar nav ul a {
        margin: 0 3px;
        font-size: 12px;
    }

    #footer {
        margin-top: 2rem;
    }

    #footer .footer_container {
        padding: 0 1rem;
    }

    #footer .footer_content {
        gap: 1rem;
        padding: 1.5rem 0;
    }

    #footer .footer_section {
        padding: 0;
    }

    #footer .footer_about h3 {
        font-size: 1.1rem;
    }

    #footer .footer_about p {
        font-size: 0.8rem;
    }

    #footer .footer_section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    #footer .footer_section h4::after {
        width: 25px;
    }

    #footer .footer_links ul {
        gap: 0.4rem;
    }

    #footer .footer_links ul li a {
        font-size: 0.75rem;
    }

    #footer .social_footer .social-icon {
        width: 35px;
        height: 35px;
    }

    #footer .social_footer .social-icon i {
        font-size: 15px;
    }

    #footer .footer_bottom p {
        font-size: 0.7rem;
    }
}

/* Landscape orientation for mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    header {
        height: auto;
        padding-bottom: 3rem;
    }

    .header-content {
        padding-top: 7rem !important;
    }

    .navbar nav ul a {
        margin: 0 5px;
        font-size: 14px;
    }
}

/* Tablet portrait */
@media screen and (min-width: 768px) and (max-width: 992px) and (orientation: portrait) {
    header .header-content {
        padding-top: 10rem;
    }

    #about .about-content {
        grid-template-columns: 1fr;
    }

    #about .about-content .col-1 img {
        width: 70%;
        margin: 0 auto;
    }
}

/* Adjustments for very large screens */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    header .header-content img {
        max-width: 600px;
    }
}