/*  import google fonts */
@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, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* custom scroll bar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: crimson;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a00000;
}

/* all similar content styling codes */
section{
    padding: 100px 0;
}
.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}
.about, .projects, .skills, .teams, .contact, footer{
    font-family: 'Poppins', sans-serif;
}
.about .about-content,
.projects .serv-content,
.skills .skills-content,
.contact .contact-content{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
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;
}
.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;
}
.navbar .menu li a.active {
    color: crimson;
}
.navbar.sticky .menu li a.active {
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

/* 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;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    background: #050505;
    font-family: 'Ubuntu', sans-serif;
    overflow: hidden;
    position: relative;
}
.home .max-width {
    width: 100%;
    display: flex;
    position: relative;
    z-index: 1;
}
.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.home-content {
    width: 55%;
    padding-left: 0;
    padding-right: 40px;
    margin-left: -30px;
    margin-top: -80px;
    position: relative;
    z-index: 1;
}
.home-image {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-right: -140px;
    position: relative;
    z-index: 1;
}
.home-image img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
}
.home .home-content .text-1 {
    font-size: 24px;
    color: #aaa;
    margin-bottom: 6px;
}
.home .home-content .text-2 {
    font-size: 72px;
    font-weight: 600;
    margin-left: -3px;
    line-height: 1.1;
    margin-bottom: 10px;
    white-space: nowrap;
}
.home .home-content .text-3 {
    font-size: 42px;
    margin: 5px 0;
}
.home .home-content .text-3 span {
    color: crimson;
    font-weight: 500;
}
.home .home-content .text-4 {
    font-size: 15px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

/* === HOME ACTIONS: Hire Me + Social Icons === */
.home-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.home-actions .btn-hire {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 18px;
    padding: 12px 36px;
    font-weight: 400;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
    text-decoration: none;
}
.home-actions .btn-hire:hover {
    color: crimson;
    background: none;
}

.home-actions .social-icons {
    display: flex;
    gap: 10px;
}

.home-actions .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid crimson;
    border-radius: 6px;
    color: crimson;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.home-actions .social-icons a:hover {
    background: crimson;
    color: #fff;
}

/* about section styling */
.about .title::after {
    content: "who i am";
}
.about .about-content {
    display: flex;
    flex-wrap: nowrap;
    /* align-items: center; */
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}
.about .about-content .left {
    width: 40%;
    flex-shrink: 0;
    background: transparent;
}
.about .about-content .left img {
    height: 450px;
    width: 100%;
    object-fit: cover;
    object-position: center 40%;
    border-radius: 12px;
}
.about .about-content .right {
    width: 55%;
    flex-shrink: 0;
}
.about .about-content .right .text {
    font-size: 22px;
    font-weight: 1000;
    margin-bottom: 16px;
    color: #111;
}
.about .about-content .right .text span {
    color: crimson;
}
.about .about-content .right p {
    text-align: justify;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
    font-weight: 400;
}
.about .about-content .right a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 28px;
    margin-top: 10px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}
.about .about-content .right a:hover {
    color: crimson;
    background: none;
}


/* projects section styling */
.projects {
    color: #fff;
    background: #111;
}
.projects .title::before {
    background: #fff;
}
.projects .title::after {
    background: #111;
    content: "what i've built";
}
.projects .projects-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.projects .project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}
.projects .project-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projects .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: crimson;
}
.projects .project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.projects .project-header .text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.projects .project-links {
    position: relative;
    z-index: 2;
}
.projects .project-links a {
    margin-left: 12px;
    font-size: 18px;
    color: #aaa;
    transition: color 0.3s ease;
}
.projects .project-links a:hover {
    color: crimson;
}
.projects .project-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 16px;
}
.projects .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.projects .tech-stack span {
    background: #333;
    color: #ccc;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}
.projects .project-card:hover .tech-stack span {
    background: #3a0a0a;
    color: #ff6b6b;
}
.projects .title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.projects .project-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #3a0a0a;
    color: #ff6b6b;
    letter-spacing: 0.5px;
}
/* card overlay */
.projects .project-card {
    position: relative; /* tambahkan ini */
    overflow: hidden;   /* tambahkan ini */
}
.projects .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    padding: 24px;
}
.projects .card-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.projects .card-overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}
.projects .card-overlay-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.projects .card-overlay-buttons a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.projects .btn-demo {
    background: crimson;
    color: #fff;
    border: 2px solid crimson;
}
.projects .btn-demo:hover {
    background: none;
    color: crimson;
}
.projects .btn-github {
    background: none;
    color: #ccc;
    border: 2px solid #444;
}
.projects .btn-github:hover {
    border-color: crimson;
    color: crimson;
}
.projects .btn-publication {
    background: none;
    color: #ccc;
    border: 2px solid #444;
}
.projects .btn-publication:hover {
    border-color: crimson;
    color: crimson;
}
.projects .card-overlay-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.projects .card-overlay-close:hover {
    color: crimson;
}
.projects .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
}

/* skills section styling */
.skills .title::after {
    content: "what i know";
}
.skills .skills-desc {
    text-align: center;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px auto;
}
.skills .skills-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.skills .skill-category {
    width: 100%;
}
.skills .category-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: crimson;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.skills .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.skills .skill-tags span {
    background: #f4f4f4;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: default;
}
.skills .skill-tags span:hover {
    background: crimson;
    color: #fff;
    border-color: crimson;
}

/* experience & education section styling */
.experience {
    color: #fff;
    background: #111;
}
.experience .title::before {
    background: #fff;
}
.experience .title::after {
    background: #111;
    content: "my journey";
}
.experience .experience-content {
    position: relative;
    padding-left: 30px;
}
.experience .experience-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
}
.experience .timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.experience .timeline-item:last-child {
    margin-bottom: 0;
}
.experience .timeline-dot {
    position: absolute;
    left: -38px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: crimson;
    border: 3px solid #111;
    outline: 2px solid crimson;
}
.experience .timeline-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.3s ease;
}
.experience .timeline-card:hover {
    border-color: crimson;
}
.experience .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.experience .timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.experience .timeline-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: crimson;
    background: rgba(220, 20, 60, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    white-space: nowrap;
}
.experience .timeline-badge.education {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.experience .timeline-company {
    font-size: 14px;
    color: crimson;
    font-weight: 500;
    margin-bottom: 10px;
}
.experience .timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
.experience .timeline-meta span {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.experience .timeline-meta i {
    font-size: 12px;
    color: #666;
}
.experience .timeline-list {
    padding-left: 18px;
    margin-bottom: 16px;
}
.experience .timeline-list li {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 6px;
}
.experience .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.experience .skill-tags span {
    background: #333;
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #444;
}

/* certifications section styling */
.certifications {
    background: #fff;
    color: #333;
    padding: 100px 0;
}
.certifications .title::after {
    content: "my credentials";
    background: #fff;
}
.certifications .title::before {
    background: #333;
}
.certifications .cert-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.certifications .cert-card {
    border: 3px solid #444;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.certifications .cert-card:hover {
    border-color: crimson;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.15);
    transform: translateY(-5px);
}

/* preview image area */
.certifications .cert-preview {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #fff;
}
.certifications .cert-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}
.certifications .cert-card:hover .cert-preview img {
    transform: scale(1.05);
}
.certifications .cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(220, 20, 60, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.certifications .cert-card:hover .cert-overlay {
    opacity: 1;
}
.certifications .cert-overlay a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: 2px solid #fff;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.certifications .cert-overlay a:hover {
    background: #fff;
    color: crimson;
}
/* info area */
.certifications .cert-info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    background: #111;
}
.certifications .cert-icon {
    font-size: 20px;
    color: crimson;
    margin-bottom: 4px;
}
.certifications .cert-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.certifications .cert-issuer {
    font-size: 13px;
    color: crimson;
    font-weight: 500;
}
.certifications .cert-year {
    font-size: 12px;
    color: #888;
}

/* responsive */
@media (max-width: 900px) {
    .certifications .cert-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .certifications .cert-content {
        grid-template-columns: 1fr;
    }
}

/* contact section styling */
.contact {
    background: #111;
    color: #fff;
}
.contact .icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.contact .contact-content .row .info {
    margin-left: 10px;
}
.contact .title::before {
    background: #fff;
}
.contact .title::after {
    content: "get in touch";
    background: #111;
}
.contact .contact-content .column {
    width: calc(50% - 30px);
}
.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}
.contact .contact-content .left p {
    text-align: justify;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 10px;
}
.contact .contact-content .left .icons {
    margin: 10px 0;
}
.contact .contact-content .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact-content .row i {
    font-size: 25px;
    color: crimson;
    width: 25px;
    text-align: center;
}
.contact .contact-content .info .head {
    font-weight: 500;
    font-size: 14px;
    color: #ccc;
}
.contact .contact-content .info .sub-title {
    color: #888;
    font-size: 14px;
}
.contact .contact-content .info .sub-title a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact .contact-content .info .sub-title a:hover {
    color: crimson;
}

/* form styling */
.contact .right form .fields {
    display: flex;
}
.contact .right form .field,
.contact .right form .fields .field {
    height: 45px;
    width: 100%;
    margin-bottom: 15px;
}
.contact .right form .textarea {
    height: 80px;
    width: 100%;
}
.contact .right form .name {
    margin-right: 10px;
}
.contact .right form .field input,
.contact .right form .textarea textarea {
    height: 100%;
    width: 100%;
    border: 1px solid #333;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: #222;
    transition: all 0.3s ease;
}
.contact .right form .field input::placeholder,
.contact .right form .textarea textarea::placeholder {
    color: #666;
}
.contact .right form .field input:focus,
.contact .right form .textarea textarea:focus {
    border-color: crimson;
}
.contact .right form .textarea textarea {
    padding-top: 10px;
    resize: none;
}
.contact .right form {
    width: 100%;
    box-sizing: border-box;
}
.contact .right form .button-area {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.contact .right form .button-area button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: crimson;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 12px 20px;
    border: 2px solid crimson;
    white-space: nowrap;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact .right form .button-area button:hover {
    background: none;
    color: crimson;
}

/* footer section styling */
footer{
    background: crimson;
    padding: 15px 23px;
    color: #fff;
    text-align: center;
}
footer span a{
    color: #111;
    text-decoration: none;
}
footer span a:hover{
    text-decoration: underline;
}
/* counter styling */
.counter-container {
    display: flex;
    gap: 24px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.counter-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}
.counter-number {
    font-size: 32px;
    font-weight: 700;
    color: crimson;
    font-family: 'Raleway', sans-serif;
}
.counter-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1104px) {
    .home-image img {
        display: none;
    }
    .about .about-content .left {
        display: none;
    }
    .about .about-content .right {
        width: 100%;
        flex-shrink: unset;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }
    .home-content{
        margin-top: -40px;
        margin-left: 10px;
    }
    .home .home-content .text-1{
        font-size: 20px;
    }
    .home .home-content .text-2{
        font-size: 62px;
    }
    .home .home-content .text-1{
        font-size: 32px;
    }
    .home .home-content .text-1{
        font-size: 18px;
    }
}

@media (max-width: 947px) {
    .navbar .max-width {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .max-width {
        max-width: 100%;
        padding: 0 50px;
    }
    .menu-btn {
        display: block;
        z-index: 999;
        position: static;
        right: unset;
    }
    .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-content {
        width: 100%;
        margin-top: -5px;
        margin-left: -10px;
    }
    .home .home-content .text-1 {
        font-size: 20px;
    }
    .home .home-content .text-2 {
        font-size: 60px;
        white-space: normal;
    }
    .home .home-content .text-3 {
        font-size: 30px;
    }
    .home .home-content .text-4 {
        font-size: 12px;
    }
    .home .home-content a {
        font-size: 23px;
        padding: 10px 30px;
    }
    .about .about-content .left {
        display: none;
    }
    .about .about-content .right {
        width: 100%;
        flex-shrink: unset;
    }
    .projects .projects-content {
        grid-template-columns: 1fr;
    }
    .projects .project-card:last-child:nth-child(odd) {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }
    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }
    .experience .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .experience .timeline-meta {
        flex-direction: column;
        gap: 6px;
    }
    .certifications .cert-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact .contact-content .column {
        width: 100%;
    }
    .contact .right form .fields {
        flex-direction: column;
    }
    .contact .right form .name {
        margin-right: 0;
    }
}

@media (max-width: 768px) {

    /* ===== GLOBAL ===== */
    section .title::after {
        position: absolute;
        bottom: -4px;
        left: 49%;
        font-size: 13px;
        color: crimson;
        padding: 0 5px;
        background: #fff;
        transform: translateX(-50%);
    }

    /* ===== NAVBAR ===== */
    .navbar .logo a {
        font-size: 20px;
        font-weight: 600;
    }
    .menu-btn {
        display: block;
        z-index: 999;
        position: absolute;
        right: 80px;
    }

    /* ===== HOME ===== */
    .home-image {
        display: none;
    }
    .home-content {
        width: 100%;
        padding: 20px;
        text-align: center;
        margin-left: 0;
        margin-top: 0;
    }
    .home-actions {
        justify-content: center;
    }
    .home .home-content .text-1 {
        font-size: 18px;
    }
    .home .home-content .text-2 {
        font-size: 36px;
        white-space: normal;
    }
    .home .home-content .text-3 {
        font-size: 18px;
    }
    .home .home-content .text-4 {
        font-size: 8px;
    }
    .home .home-content a {
        font-size: 16px;
        padding: 10px 24px;
    }

    /* ===== ABOUT ===== */
    .about {
        padding-top: 120px;
    }
    .about .about-content {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }
    .about .about-content .right .text {
        font-size: 18px;
    }
    .about .about-content .right p {
        font-size: 13px;
    }
    .about .about-content .right a {
        display: inline-block;
        text-align: center;
        width: fit-content;
        margin: 10px 0 0 0;
    }

    /* ===== COUNTER ===== */
    .counter-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 16px 0;
    }
    .counter-number {
        font-size: 26px;
    }
    .counter-label {
        font-size: 11px;
    }

    /* ===== PROJECTS ===== */
    .projects .projects-content {
        grid-template-columns: 1fr;
    }
    .projects .project-card:last-child:nth-child(odd) {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }
    .projects .project-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }
    .projects .project-header .text {
        flex: 1;
    }
    .projects .project-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    /* ===== SKILLS ===== */
    .skills .skills-desc {
        text-align: left;
        margin-bottom: 28px;
    }
    .skills .skill-tags {
        gap: 6px;
    }
    .skills .skill-tags span {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* ===== EXPERIENCE ===== */
    .experience .experience-content {
        padding-left: 24px;
    }
    .experience .timeline-dot {
        left: -32px;
    }
    .experience .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .experience .timeline-meta {
        flex-direction: column;
        gap: 6px;
    }

    /* ===== CERTIFICATIONS ===== */
    .certifications .cert-content {
        grid-template-columns: 1fr;
    }

    /* ===== CONTACT ===== */
    .contact .contact-content .column {
        width: 100%;
    }
    .contact .right form .fields {
        flex-direction: column;
    }
    .contact .right form .name {
        margin-right: 0;
    }
}

@media (max-width: 480px) {

    /* ===== GLOBAL ===== */
    section {
        padding: 90px 0;
    }
    section .title {
        font-size: 32px;
        margin-bottom: 50px;
    }

    /* ===== NAVBAR ===== */
    .menu-btn {
        position: absolute;
        right: 20px;
    }

    /* ===== HOME ===== */
    .home-actions {
        justify-content: center;
    }
    .home .home-content .text-1 {
        font-size: 18px;
    }
    .home .home-content .text-2 {
        font-size: 46px;
    }
    .home .home-content .text-3 {
        font-size: 24px;
    }
    .home .home-content a {
        font-size: 16px;
    }

    /* ===== ABOUT ===== */
    .about .about-content {
        gap: 0px;
    }
    .about .about-content .right .text {
        font-size: 17px;
    }
    .about .about-content .right p {
        font-size: 12px;
    }
    .about .about-content .right a {
        margin: 35px auto 0 auto;
    }

    /* ===== PROJECTS ===== */
    .projects .project-card {
        padding: 18px;
    }
    .projects .project-header {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .projects .project-header .text {
        font-size: 16px;
        flex: 1;
        min-width: 0;
    }
    .projects .title-group {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .projects .project-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
        margin-left: auto;
        padding-left: 8px;
    }
    .projects .project-card p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .projects .tech-stack span {
        font-size: 11px;
        padding: 3px 9px;
    }
    .projects .project-badge {
        font-size: 11px;
        padding: 2px 9px;
    }
    .projects .card-overlay h3 {
        font-size: 15px;
    }
    .projects .card-overlay-buttons a {
        font-size: 13px;
    }

    /* ===== SKILLS ===== */
    .skills .skills-desc {
        font-size: 13px;
    }
    .skills .skill-tags span {
        font-size: 11px;
    }

    /* ===== EXPERIENCE ===== */
    .experience .timeline-title {
        font-size: 16px;
    }
    .experience .timeline-badge {
        font-size: 9px;
    }
    .experience .timeline-company {
        font-size: 12px;
    }
    .experience .timeline-meta span {
        font-size: 11px;
    }
    .experience .timeline-list li {
        font-size: 11px;
    }
    .experience .skill-tags span {
        font-size: 10px;
    }

    /* ===== CONTACT ===== */
    .contact .contact-content .text {
        font-size: 20px;
    }
    .contact .contact-content .left p {
        font-size: 13px;
    }
    .contact .icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .contact .icons .info .head {
        font-size: 12px;
    }
    .contact .icons .info .sub-title {
        font-size: 12px;
        word-break: break-all;
    }

    /* ===== FOOTER ===== */
    footer {
        font-size: 11px;
    }
}

@media (max-width: 360px) {

    /* ===== GLOBAL ===== */
    section {
        padding: 85px 0;
    }
    section .title {
        font-size: 28px;
        margin-bottom: 45px;
    }
    section .title::before {
        width: 170px;
    }

    /* ===== NAVBAR ===== */
    .menu-btn {
        position: absolute;
        right: 20px;
    }
    .navbar .menu {
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .navbar .menu li {
        display: block;
        width: 100%;
        text-align: center;
    }
    .navbar .menu li a {
        display: inline-block;
        font-size: 16px;
        margin: 6px 0;
        padding: 4px 0;
    }

    /* ===== HOME ===== */
    .home .home-content .text-1 {
        font-size: 16px;
    }
    .home .home-content .text-2 {
        font-size: 40px;
    }
    .home .home-content .text-3 {
        font-size: 20px;
    }
    .home .home-content a {
        font-size: 20px;
    }

    /* ===== ABOUT ===== */
    .about {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .about .about-content {
        gap: 0px;
    }
    .about .about-content .right .text,
    .skills .skills-content .left .text {
        font-size: 15px;
    }
    .about .about-content .right p {
        font-size: 10px;
    }
    .about .about-content .right a {
        margin: 35px auto 0 auto;
    }

    /* ===== PROJECTS ===== */
    .projects .project-card {
        padding: 16px;
    }
    .projects .project-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
    .projects .project-header .text {
        font-size: 15px;
    }
    .projects .project-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .projects .project-card .project-links a[title="Publication"] {
        display: none;
    }
    .projects .project-card p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .projects .tech-stack span {
        font-size: 10px;
        padding: 3px 8px;
    }
    .projects .title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .projects .project-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    .projects .card-overlay {
        padding: 16px;
        gap: 8px;
    }
    .projects .card-overlay h3 {
        font-size: 14px;
    }
    .projects .card-overlay-buttons {
        flex-direction: column;
        width: 100%;
    }
    .projects .card-overlay-buttons a {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* ===== SKILLS ===== */
    .skills .skills-desc {
        font-size: 15px;
    }
    .skills .skill-tags span {
        font-size: 10px;
    }

    /* ===== EXPERIENCE ===== */
    .experience .timeline-title {
        font-size: 15px;
    }
    .experience .timeline-badge {
        font-size: 8px;
    }
    .experience .timeline-company {
        font-size: 11px;
    }
    .experience .timeline-meta span {
        font-size: 10px;
    }
    .experience .timeline-list li {
        font-size: 10px;
    }
    .experience .skill-tags span {
        font-size: 9px;
    }

    /* ===== CONTACT ===== */
    .contact .contact-content .text {
        font-size: 18px;
    }
    .contact .contact-content .left p {
        font-size: 12px;
        margin-bottom: 30px;
    }
    .contact .icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .contact .icons .row {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    .contact .icons .row i {
        font-size: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    .contact .icons .info .head {
        font-size: 11px;
        font-weight: 600;
    }
    .contact .icons .info .sub-title {
        font-size: 11px;
        word-break: break-all;
    }

    /* ===== FOOTER ===== */
    footer {
        font-size: 10px;
    }
}
