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

html,
body {
    height: 100%;
}

html {
    background-color: #ffffff;
}

body {
    background-color: #ffffff;
    font-family: "Poppins", sans-serif;
}

nav {
    height: 70px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #eef0f5;
}

h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #3b82e8;
}

h5 {
    color: #3b82e8;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

h1 {
    color: black;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 50px;
    line-height: 1.15;
    margin-bottom: 18px;
}

h3 {
    color: black;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 30px;
    margin-bottom: 30px;
}

h3::after {
    content: "";
    display: block;
    width: 2ch;
    height: 4px;
    margin-top: 5px;
    background-color: #3b82e8;
}

span {
    color: black;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

span-1 {
    display: inline-block;
    color: #5a6478;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 20px;
    font-size: 14px;
}

span-2 {
    display: inline-block;
    color: black;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 15px;
}

span-3 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #f5f5f5;
}

span-4 {
    display: inline-block;
    color: #b6bcd6;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 20px;
    font-size: 13px;
}

.links {
    display: flex;
    gap: 30px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    background-color: #1d283c;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.links a {
    text-decoration: none;
    color: black;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 15px;
}

.links a:hover {
    text-decoration: underline;
    text-decoration-color: #3b82e8;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.nav-cta:hover {
    background: #1f4fc4;
}

button {
    color: white;
    background: #3b82e8;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
}

.but {
    color: #ffffff;
    background: #3b82e8;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
    transition: background .15s ease;
}

.but:hover {
    background: #1f4fc4;
}

.btn {
    color: #3b82e8;
    background: #ffffff;
    border: 1.5px solid #3b82e8;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
    transition: background .15s ease;
}

.btn:hover {
    background: #eaf0ff;
}

.container {
    background-color: #ffffff;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 5%;
}

.main {
    overflow: hidden;
    overflow: #1d283c;
    padding-bottom: 60px;
}

.main section {
    padding: 60px 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 70px 0 60px !important;
    background: radial-gradient(60% 90% at 75% 40%, #eaf1ff 0%, rgba(234, 241, 255, 0) 70%);
}

.hero-text {
    flex: 0 0 50%;
    max-width: 460px;
}

.hero-img {
    flex: 0 0 42%;
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 26px 0 24px;
    flex-wrap: wrap;
}

.socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.socials a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.socials a:nth-child(2) img {
    width: 34px;
    height: 34px;
}

.socials a:nth-child(3) img {
    width: 24px;
    height: 24px;
}

.socials a:nth-child(4) img {
    width:24px;
    height: 24px;
}

.about-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.about-row>p {
    flex: 0 0 46%;
    width: 46%;
    padding-right: 24px;
}

.about-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    padding: 0 18px;
    flex: 1;
    border-left: 1px solid #e6e9f2;
}

.about-icons img {
    display: block;
    margin: 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.about-icons span-2 {
    display: block;
    width: 100%;
    text-align: center;
}

.about-icons span-1 {
    display: block;
    width: 100%;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 23, 43, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(18, 23, 43, .10);
}

.project-media {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 18px 20px 22px;
}

.project-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 6px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.project,
.projects,
.projectss {
    color: #3b82e8;
    background: #eaf0ff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: default;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
}

.skills-list {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.skill-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 55px;
}

.skill-icons img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.skill-icons span-1 {
    white-space: nowrap;
    text-align: center;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: #f4f6fb;
    border-radius: 16px;
    padding: 30px 34px;
}

.contact-row p {
    margin: 0;
    max-width: 480px;
}

footer {
    background-color: #1d283c;
}

.footer {
    background-color: #1d283c;
    padding: 40px 0;
    margin-top: 0;
    clear: both;
}

.footer-social {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-brand h2 {
    margin: 0;
}

.footer-brand p {
    margin-top: 4px;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
}

.footer-copyright {
    display: block;
}

.footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.footer-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icons img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.footer-icons a:nth-child(2) img {
    width: 34px;
    height: 34px;
}

.footer-icons a:nth-child(3) img {
    width: 24px;
    height: 24px;
}

.footer-icons a:nth-child(4) img {
    width: 24px;
    height: 24px;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    nav {
        position: relative;
        padding: 0 5%;
    }

    .links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 5%;
        background-color: #fff;
        border-bottom: 1px solid #eef0f5;
        box-shadow: 0 12px 24px rgba(18, 23, 43, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }

    .links a {
        padding: 14px 0;
        border-bottom: 1px solid #eef0f5;
    }

    .links a:last-child {
        border-bottom: 0;
    }

    .links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        flex-direction: column-reverse;
        text-align: left;
    }

    .hero-text,
    .hero-img {
        flex: none;
        max-width: 100%;
    }

    h1 {
        font-size: 36px;
    }

    .main section {
        padding: 44px 0;
    }

    .hero {
        padding: 48px 0 44px !important;
    }

    .hero-img {
        max-width: 320px;
    }

    .contact-row {
        padding: 24px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions>a {
        width: min(100%, 320px);
    }

    .hero-actions button {
        width: 100%;
    }

    .about-row {
        flex-direction: column;
    }

    .about-row>p {
        flex: none;
        width: 100%;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .about-icons {
        border-left: none;
        border-top: 1px solid #e6e9f2;
        padding: 16px 0 0;
        align-items: flex-start;
        text-align: left;
    }

    .about-icons img {
        margin: 0;
    }

    .about-icons span-1,
    .about-icons span-2 {
        text-align: left;
    }

    .footer-social {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .footer-right {
        align-items: center;
    }
}