@font-face {
    font-family: "Poppins";
    font-weight: 300;
    src: url("fonts/Poppins_300Light.ttf") format("truetype");
}
@font-face {
    font-family: "Poppins";
    font-weight: 400;
    src: url("fonts/Poppins_400Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Poppins";
    font-weight: 500;
    src: url("fonts/Poppins_500Medium.ttf") format("truetype");
}
@font-face {
    font-family: "Poppins";
    font-weight: 600;
    src: url("fonts/Poppins_600SemiBold.ttf") format("truetype");
}
@font-face {
    font-family: "Poppins";
    font-weight: 700;
    src: url("fonts/Poppins_700Bold.ttf") format("truetype");
}

:root {
    --primary: #0060af;
    --secondary: #0060af;
    --black: #374151;
    --grey: #f5f5f5;
    --white: #ecf0f3;
    --border: #999999aa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    background: var(--white);
    color: var(--black);
}

a {
    text-decoration: none;
    color: inherit;
}
b {
    font-weight: 600;
    font-size: 25px;
}
button {
    font-family: inherit;
    cursor: pointer;
}

.section {
    padding: 0 20px;
    scroll-margin-top: 90px;
}

.title {
    font-size: 25px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 15px 0;
    text-align: center;
}
.title.text-left {
    text-align: left;
}

.section-text {
    font-size: 16px;
    line-height: 25px;
    color: var(--black);
    font-weight: 500;
    max-width: 720px;
    margin: 8px auto 20px;
    text-align: center;
}
.text-left ~ .section-text,
.contact-col .section-text {
    text-align: left;
    margin-left: 0;
}

@media (min-width: 640px) {
    .title {
        font-size: 30px;
    }
    .section-text {
        font-size: 20px;
        line-height: 30px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eaeaeaaa;
}

.logo-icon {
    height: 33px;
    width: 60px;
    object-fit: cover;
    margin-right: 16px;
}

.menu-btn {
    display: flex;
    background: none;
    border: none;
    font-size: 34px;
    color: var(--secondary);
    padding: 0;
    margin-right: 10px;
}

.desktop-nav {
    display: none;
}
.desktop-only {
    display: none;
}

.nav-link {
    color: var(--secondary);
    font-size: 20px;
    font-weight: 300;
    margin-right: 20px;
}

@media (min-width: 1024px) {
    .site-header {
        padding: 30px 60px;
    }
    .menu-btn {
        display: none;
    }
    .desktop-nav {
        display: flex;
        align-items: center;
    }
    .desktop-only {
        display: block;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 50;
    display: none;
}
.mobile-overlay.open {
    display: block;
}

.mobile-panel {
    width: 80%;
    max-width: 380px;
    min-height: 100%;
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideIn 0.35s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-logo {
    height: 140px;
    width: 90%;
    object-fit: contain;
}
.mobile-name {
    width: 200px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 10px 0 0;
}

.mobile-nav {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-link {
    font-size: 20px;
    line-height: 30px;
    color: var(--secondary);
    text-transform: capitalize;
    margin-top: 20px;
}

.mobile-power {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 30px;
    color: var(--black);
    font-size: 12px;
    font-weight: 300;
    align-self: flex-start;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.text-greet {
    font-size: 30px;
    line-height: 38px;
    color: var(--black);
    font-weight: 600;
    margin: 0 0 5px;
}
.text-name {
    font-size: 30px;
    line-height: 38px;
    color: var(--secondary);
    font-weight: 700;
    margin: 0 0 5px;
}
.text-desc {
    font-size: 18px;
    line-height: 24px;
    color: var(--black);
    font-weight: 600;
    max-width: 850px;
    margin: 0 0 5px;
}

@media (min-width: 480px) {
    .text-greet,
    .text-name {
        font-size: 34px;
        line-height: 40px;
        margin-bottom: 10px;
    }
    .text-desc {
        font-size: 20px;
        line-height: 30px;
    }
}
@media (min-width: 768px) {
    .text-greet {
        font-size: 36px;
        line-height: 54px;
        margin-bottom: 0;
    }
    .text-name {
        font-size: 48px;
        line-height: 72px;
        margin-bottom: 0;
    }
    .text-desc {
        font-size: 30px;
        line-height: 45px;
        margin-bottom: 0;
    }
}

.btn-row {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 100px;
}
@media (min-width: 480px) {
    .btn-row {
        margin-top: 30px;
    }
}
@media (min-width: 768px) {
    .btn-row {
        margin-top: 40px;
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: var(--primary);
    color: var(--white);
    width: 168px;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid #eaeaeaaa;
    font-weight: 300;
    font-size: 16px;
}
.btn i {
    font-size: 20px;
}

.btn-linkedin-outline {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
    margin-left: 10px;
}

@media (min-width: 1024px) {
    .btn {
        width: 190px;
        font-size: 24px;
    }
    .btn-linkedin-outline {
        margin-left: 28px;
    }
}

.profile-section {
    padding-top: 40px;
}
.profile-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}
.profile-text {
    max-width: 500px;
}
.profile-img img {
    width: 320px;
    max-width: 100%;
    object-fit: contain;
}
@media (min-width: 480px) {
    .profile-img img {
        width: 600px;
    }
}

.skills-section {
    margin-top: 40px;
    text-align: center;
}
.skill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1100px;
    margin: 20px auto 0;
}
.skill-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #eaeaeaaa;
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.skill-box img {
    width: 24px;
    height: 24px;
}
.skill-box span {
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
}
@media (min-width: 480px) {
    .skill-box img {
        width: 32px;
        height: 32px;
    }
}

.projects-section {
    margin-bottom: 60px;
    text-align: center;
}
.box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.project-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
@media (min-width: 640px) {
    .project-card {
        padding: 30px;
        width: 45%;
    }
}
.project-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .project-card img {
        height: 350px;
    }
}
.project-card .p-title {
    font-size: 14px;
    font-weight: 700;
    margin: 15px 0 5px;
}
.project-card .p-desc {
    font-size: 12px;
    line-height: 18px;
    color: var(--black);
    white-space: pre-line;
}
@media (min-width: 768px) {
    .project-card .p-title {
        font-size: 16px;
    }
    .project-card .p-desc {
        font-size: 14px;
    }
}

.open-sourcery-section {
    padding-top: 20px;
    text-align: center;
}
.opensource-row {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.opensource-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.library-card {
    width: 85%;
    max-width: 500px;
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: left;
}
@media (min-width: 480px) {
    .library-card {
        width: 400px;
    }
}
.library-card .lib-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin: 0 0 5px;
}
.library-card .lib-desc {
    font-size: 12px;
    margin: 0 0 10px;
}
.lib-btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.lib-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 2px;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.lib-btn-github {
    background: #fff;
    color: var(--black);
}
.lib-btn-demo {
    background: var(--black);
    color: #fff;
}

.contact-section {
    margin-top: 60px;
    padding-bottom: 30px;
}
.contact-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0 0;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-col {
    flex: 1;
    min-width: 100%;
    margin-bottom: 30px;
}
@media (min-width: 1024px) {
    .contact-col {
        min-width: 45%;
        margin-bottom: 100px;
    }
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    background: var(--white);
    border: 1px solid #eaeaeaaa;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.2px;
    font-size: 16px;
}
@media (min-width: 768px) {
    .btn-contact {
        width: 40%;
    }
}

.mail-box {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #eaeaea;
    overflow: hidden;
}
.mail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--white);
    color: var(--secondary);
    border-radius: 20px 20px 0 0;
}
.mail-footer {
    border-radius: 0 0 20px 20px;
    justify-content: space-between;
}
.input-container {
    border-bottom: 1px solid var(--border);
    padding: 10px 15px;
    background: var(--white);
}
.text-input,
.text-input-area {
    width: 100%;
    border: none;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    resize: none;
}
.text-input-area {
    min-height: 160px;
    margin-bottom: 10px;
}
.text-input:focus,
.text-input-area:focus {
    outline: 2px solid var(--primary);
}

.icon-btn {
    background: none;
    border: none;
    color: lightcoral;
    font-size: 20px;
}
.send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
}
.send-btn:disabled {
    border-color: var(--border);
    color: var(--border);
    cursor: not-allowed;
}

.power-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 300;
}

.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    animation: none;
}
.reveal.in-view {
    animation: lightSpeedIn 0.6s ease forwards;
}
.reveal-1.in-view {
    animation-delay: 0.05s;
}
.reveal-2.in-view {
    animation-delay: 0.12s;
}
.reveal-3.in-view {
    animation-delay: 0.2s;
}
.reveal-4.in-view {
    animation-delay: 0.28s;
}

.reveal-left.in-view {
    animation: lightSpeedIn 0.6s ease forwards;
}
.reveal-right.in-view {
    animation: lightSpeedInRight 0.6s ease forwards;
}

@keyframes lightSpeedIn {
    from {
        opacity: 0;
        transform: translateX(-60px) skewX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }
}
@keyframes lightSpeedInRight {
    from {
        opacity: 0;
        transform: translateX(60px) skewX(10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }
}
