:root {
    --primary-color: #0d6efd;
    --primary-soft: #dce8ff;
    --text-dark: #101114;
    --text-gray: #5f6368;
    --background-light: #f5f7fa;
    --background-white: #ffffff;
    --border-color: #e1e5eb;
    --shadow-light: 0 8px 22px rgba(15, 23, 42, 0.07);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.6;
    padding-top: 68px;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 68px;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Container */

.container {
    max-width: 1180px;
}

/* Navbar */

.navbar {
    min-height: 68px;
    padding-top: 0;
    padding-bottom: 0;
    background-color: rgba(255, 255, 255, 0.97) !important;
    border-color: #e9ecef !important;
    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--text-dark);
    font-size: 20px;
}

.navbar-brand:hover {
    color: var(--text-dark);
}

.brand-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -2px;
    color: #000000;
}

.navbar-nav {
    gap: 12px;
}

.navbar .nav-link {
    color: #555b65;
    font-size: 14px;
    font-weight: 500;
    padding: 23px 8px;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--primary-color);
}

.navbar-code-icon {
    font-size: 20px !important;
    color: var(--text-dark) !important;
}

/* Hero */

.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    padding: 50px 0;
}

.hero-content {
    max-width: 620px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-bottom: 20px;
    color: #234471;
    background-color: var(--primary-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.hero-title {
    margin-bottom: 8px;
    color: #050505;
    font-size: clamp(34px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.hero-role {
    margin-bottom: 20px;
    color: #0667d9;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 0;
    color: #30343a;
    font-size: 16px;
    line-height: 1.75;
}

.hero-button {
    min-width: 142px;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.btn-dark {
    background-color: #050505;
    border-color: #050505;
}

.btn-dark:hover {
    background-color: #222222;
    border-color: #222222;
}

.btn-outline-secondary {
    color: #25282d;
    border-color: #abb2bc;
}

.btn-outline-secondary:hover {
    color: #ffffff;
    background-color: #25282d;
    border-color: #25282d;
}

.hero-image-wrapper {
    width: min(100%, 350px);
    margin-left: auto;
    margin-right: 30px;
    padding: 5px;
    background-color: #ffffff;
    border-radius: 13px;
    box-shadow: 0 13px 30px rgba(15, 23, 42, 0.14);
}

.hero-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
    background-color: #7ed4f4;
}

/* Section */

.section-padding {
    padding: 78px 0;
}

.section-title-wrapper {
    padding-top: 4px;
}

.section-title {
    margin-bottom: 11px;
    color: #101114;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.section-title-line {
    width: 62px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* About */
#about {
    padding-top: 65px;
    padding-bottom: 65px;
}

.about-card {
    padding: 28px 30px;
    background-color: #f7f9fc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.about-card p {
    margin-bottom: 16px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.75;
}

.about-card p:last-of-type {
    margin-bottom: 19px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    color: #294267;
    background-color: var(--primary-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Education and Tools */

.education-tools-section {
    background-color: var(--background-light);
}

.subsection-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.subsection-heading i {
    color: var(--primary-color);
    font-size: 20px;
}

.subsection-heading h2 {
    margin: 0;
    color: #101114;
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 0;
}

.education-timeline::before {
    display: none;
}

.education-item {
    position: relative;
}

.education-item::before {
    display: none;
}

.education-card {
    min-height: auto;
    padding: 20px 22px;
    background-color: #ffffff;
    border: 1px solid #e5e8ed;
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.education-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(15, 23, 42, 0.08);
}

.education-year {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    color: var(--primary-color);
    background-color: #e9f0ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.education-card h3 {
    margin-bottom: 4px;
    color: #202226;
    font-size: 19px;
    font-weight: 700;
}

.education-card p {
    margin-bottom: 0;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.tool-card {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    background-color: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.tool-card i {
    width: 34px;
    height: 34px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: #f3f7ff;
    border-radius: 5px;
    font-size: 17px;
}

.tool-card span {
    color: #292c31;
    font-size: 13px;
    font-weight: 500;
}

/* Portfolio */

.portfolio-section {
    background-color: #f1f4f8;
}

.portfolio-heading {
    margin-bottom: 34px;
}

.portfolio-heading h2 {
    margin-bottom: 4px;
    color: #101114;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.portfolio-heading p {
    margin-bottom: 0;
    color: var(--text-gray);
    font-size: 14px;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e1e5eb;
    border-radius: 11px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
}

.project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 983;
    object-fit: contain;
    object-position: top center;
    display: block;
    background-color: #eef1f5;
    border-bottom: 1px solid #e7e9ee;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 23px 25px 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.project-tags span {
    display: inline-flex;
    padding: 4px 10px;
    color: #415b82;
    background-color: #e9f0ff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.project-content h3 {
    margin-bottom: 11px;
    color: #111317;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.project-content p {
    margin-bottom: 22px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.65;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}



.project-link:hover {
    color: #004fb8;
}

.project-link i {
    transition: transform 0.2s ease;
}

.project-link:hover i {
    transform: translateX(4px);
}

/* Contact */

.contact-section {
    background-color: #f1f4f8;
    padding-top: 12px;
}

.contact-info h2 {
    margin-bottom: 17px;
    color: #101114;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.contact-info > p {
    max-width: 410px;
    margin-bottom: 33px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    color: var(--text-dark);
}

.contact-item:hover {
    color: var(--primary-color);
}

.contact-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: #deebff;
    border-radius: 8px;
    font-size: 20px;
}

.contact-item span {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
}

.contact-item strong {
    display: block;
    color: #25282d;
    font-size: 14px;
    font-weight: 650;
}



.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}


/* Footer */

.footer-section {
    padding: 24px 0;
    background-color: #ffffff;
    border-top: 1px solid #dfe3e8;
}

.footer-brand {
    color: #111317;
    font-size: 19px;
    font-weight: 750;
}

.footer-brand:hover {
    color: var(--primary-color);
}

.footer-copyright {
    margin: 0;
    color: #6a6f77;
    font-size: 12px;
}

.footer-github {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #555b65;
    font-size: 13px;
}

.footer-github:hover {
    color: var(--primary-color);
}

.footer-github i {
    color: #111317;
    font-size: 19px;
}

/* Tablet */

@media (max-width: 991.98px) {
    body {
        padding-top: 64px;
    }

    section {
        scroll-margin-top: 64px;
    }

    .navbar {
        min-height: 64px;
        padding: 10px 0;
    }

    .navbar-collapse {
        padding: 13px 0 8px;
        background-color: #ffffff;
    }

    .navbar .nav-link {
        padding: 10px 4px;
    }

    .navbar-code-icon {
        padding-bottom: 5px !important;
    }

    .hero-section {
        min-height: auto;
        padding: 75px 0;
    }

    .hero-content {
        max-width: 720px;
    }

    .hero-image-wrapper {
        width: min(100%, 360px);
        margin: 10px auto 0;
    }

    .section-padding {
        padding: 65px 0;
    }

    .section-title-wrapper {
        margin-bottom: 7px;
    }

    .contact-section {
        padding-top: 65px;
    }
}

/* Mobile */

@media (max-width: 767.98px) {
    .container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar-brand {
        font-size: 16px;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .hero-section {
        padding: 58px 0 64px;
    }

    .hero-content {
        text-align: left;
    }

    .availability-badge {
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-role {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-button {
        width: 100%;
    }

    .hero-image-wrapper {
        width: min(100%, 320px);
    }

    .section-padding {
        padding: 55px 0;
    }

    .section-title {
        font-size: 27px;
    }

    .about-card {
        padding: 22px 20px;
    }

    .about-card p {
        font-size: 14px;
    }

    .subsection-heading h2 {
        font-size: 26px;
    }

    .education-timeline {
        padding-left: 0;
        gap: 14px;
    }

    .education-card {
        padding: 18px;
    }

    .education-card h3 {
        font-size: 18px;
    }

    .portfolio-heading h2,
    .contact-info h2 {
        font-size: 27px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 21px;
    }


    .footer-content {
        text-align: center;
    }

    @media (max-width: 767.98px) {
    .education-timeline {
        padding-left: 27px;
    }

    .education-item::before {
        left: -26px;
    }

    .education-card {
        min-height: auto;
        padding: 18px;
    }

    .education-card h3 {
        font-size: 18px;
    }
}
@media (max-width: 767.98px) {
    #education {
        padding-bottom: 35px;
    }

    #portfolio {
        padding-top: 45px;
    }
}
}

/* Small Mobile */

@media (max-width: 420px) {
    .navbar-brand span {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-role {
        font-size: 23px;
    }

    .skill-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
}
.brand-logo-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

#education {
    padding-bottom: 35px;
}

#portfolio {
    padding-top: 40px;
}

.navbar .nav-link {
    position: relative;
}

.navbar .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar .nav-link[href^="#"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.navbar .nav-link[href^="#"].active::after {
    width: 24px;
}

@media (max-width: 991.98px) {
    .navbar .nav-link[href^="#"]::after {
        left: 4px;
        bottom: 5px;
        transform: none;
    }

    .navbar .nav-link[href^="#"].active::after {
        width: 30px;
    }
}

#contact.contact-section {
    min-height: auto;
    padding-top: 55px;
    padding-bottom: 55px;
}

#contact .row {
    align-items: center !important;
}

.contact-info h2 {
    margin-bottom: 12px;
}

.contact-info > p {
    max-width: 430px;
    margin-bottom: 24px;
}

.contact-list {
    gap: 12px;
}

.contact-item {
    width: 100%;
    max-width: 360px;
    padding: 11px 13px;
    background-color: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.06);
}

.contact-icon {
    width: 42px;
    height: 42px;
}




@media (max-width: 991.98px) {
    #contact.contact-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .contact-item {
        max-width: 100%;
    }
}
#contact > .container > .row {
    align-items: stretch !important;
}

#contact > .container > .row > .col-12 {
    display: flex;
}

.contact-info {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

.contact-list {
    flex: 1;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
}

.contact-item {
    width: 100%;
    max-width: 360px;
    min-height: 0;
    padding: 10px 14px;
}



@media (max-width: 991.98px) {
    .contact-info {
        padding-right: 0;
    }

    .contact-list {
        display: flex;
        flex-direction: column;
    }

    .contact-item {
        max-width: 100%;
        min-height: 70px;
    }

    
}

.contact-form-card {
    width: 100%;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.contact-form-card form {
    width: 100%;
}

.contact-form-card .row {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

.form-group {
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: #24272c;
    font-size: 13px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    color: #202328;
    background-color: #f8fafc;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #8a929e;
}

.form-control:hover {
    border-color: #aeb7c3;
}

.form-control:focus {
    color: #202328;
    background-color: #ffffff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

textarea.form-control {
    min-height: 135px;
    max-height: 220px;
    resize: vertical;
}

.contact-submit-button {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.invalid-feedback {
    margin-top: 5px;
    color: #dc3545;
    font-size: 12px;
}

.was-validated .form-control:invalid {
    background-image: none;
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    background-image: none;
    border-color: #198754;
}

@media (max-width: 767.98px) {
    .contact-form-card {
        padding: 20px;
    }

    textarea.form-control {
        min-height: 120px;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 68px;
    }

    .navbar {
        min-height: 68px;
        padding: 8px 0;
    }

    .navbar .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .navbar-brand {
        max-width: calc(100% - 55px);
        gap: 8px !important;
        font-size: 15px;
        white-space: nowrap;
    }

    .brand-logo-image {
        width: 28px;
        height: 28px;
    }

    .navbar-toggler {
        padding: 4px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .hero-section .row {
        --bs-gutter-y: 32px;
    }

    .availability-badge {
        margin-bottom: 16px;
        padding: 5px 12px;
        font-size: 11px;
    }

    .hero-title {
        margin-bottom: 10px;
        font-size: 29px;
        line-height: 1.12;
        letter-spacing: -0.8px;
    }

    .hero-role {
        margin-bottom: 16px;
        font-size: 24px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-content .d-flex {
        gap: 12px !important;
        margin-top: 24px !important;
    }

    .hero-button {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
    }

    .hero-image-wrapper {
        width: min(100%, 260px);
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .hero-image-wrapper {
        width: min(100%, 245px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-bottom: 38px;
    }

    #about {
        padding-top: 45px;
    }
}

@media (max-width: 575.98px) {
    section {
        scroll-margin-top: 82px;
    }

    .navbar-collapse {
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        margin-top: 8px;
        padding: 6px 0 10px;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar .nav-link {
        padding: 9px 4px;
    }

    .navbar .nav-link[href^="#"]::after {
        bottom: 3px;
    }

    .section-padding {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .subsection-heading {
        margin-bottom: 18px;
    }

    .subsection-heading h2 {
        font-size: 25px;
    }

    .tool-card {
        min-height: 58px;
        padding: 12px 14px;
    }

    .tool-card i {
        width: 38px;
        height: 38px;
    }

    .project-content {
        padding: 18px;
    }

    .project-content h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    .project-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
    }

    .contact-item {
        min-height: 68px;
        padding: 10px 12px;
    }

    .contact-form-card {
        padding: 18px;
    }

    .footer-section {
        padding: 28px 0;
    }
}