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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
    --muted-color: #777;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

span {
    color: var(--main-color);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.navbar a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: 4rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* ===== HOME ===== */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home {
    min-height: 90vh;
    padding-top: 12rem;
    padding-bottom: 2rem;
}

.about {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 2rem;
}
/* ===== IMAGE FRAME ONLY ===== */
.home-img,
.about-img {
    position: relative;
    display: inline-block;
}


.about-img::before {
    content: '';
    position: absolute;
    top: 1.6rem;
    left: 1.6rem;
    width: 100%;
    height: 100%;
    /* border: .2rem solid var(--main-color); */
    border-radius: 1.2rem;
    z-index: 0;
    pointer-events: none;
}

.home-img img,
.about-img img {
    position: relative;
    z-index: 1;
    display: block;
    border-radius: 1.2rem;
    background: transparent;
}

.home-img img {
    width: 21vw;
    animation: floatImage 0s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-color);
    letter-spacing: .1rem;
    font-weight: 600;
}

.btn:hover {
    box-shadow: none;
}

/* ===== ABOUT ===== */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    background: var(--bg-color);
}

.about-img img {
    width: 25vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.about-tech {
    display: grid;
    grid-template-columns: repeat(2, minmax(14rem, 1fr));
    gap: 1.2rem 4rem;
    margin: 2.5rem 0 3rem;
    max-width: 45rem;
}

.about-tech-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-tech-column span {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.6rem;
    color: var(--text-color);
}

.about-tech-column i {
    font-size: 1.8rem;
    color: var(--main-color);
    min-width: 2rem;
}

/* ===== PROJECTS SHOWCASE ===== */
.projects-showcase {
    min-height: auto;
    padding: 10rem 9% 2rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.section-intro {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0 0 4rem;
    width: 100%;
}

.section-dot {
    color: var(--main-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.section-intro h2 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--main-color);
    white-space: nowrap;
}

.section-line {
    height: 1px;
    width: 100%;
    max-width: 22rem;
    background: #b8bec7;
}

.featured-projects {
    width: 100%;
}

.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.featured-project.reverse .project-image {
    order: 2;
}

.featured-project.reverse .project-content {
    order: 1;
    text-align: left;
}

.project-image {
    width: 85%;
    border-radius: 1.6rem;
    overflow: hidden;
    background: transparent;
}


.project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
}


.project-image:hover img {
    transform: scale(1.03);
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: right;
}

.project-label {
    font-size: 1.4rem;
    letter-spacing: .12rem;
    text-transform: uppercase;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 4rem;
    line-height: 1.2;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.project-description {
    background: var(--second-color);
    padding: 2.2rem;
    border-radius: 1.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-description p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
}

.project-tech {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: flex-end;
    list-style: none;
}

.featured-project.reverse .project-tech {
    justify-content: flex-start;
}

.project-tech li {
    font-size: 1.35rem;
    color: var(--muted-color);
}

.project-links {
    display: flex;
    gap: 1.4rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.featured-project.reverse .project-links {
    justify-content: flex-start;
}

.project-links a {
    color: var(--muted-color);
    font-size: 2.2rem;
    transition: .25s ease;
}

.project-links a:hover {
    color: var(--main-color);
    transform: translateY(-2px);
}

/* ===== OTHER PROJECTS ===== */
.other-projects {
    min-height: auto;
    padding: 10rem 32% 2rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.other-title {
    font-size: 3.8rem;
    text-align: center;
    color: var(--main-color);
    margin-bottom: 4rem;
}

.other-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
    max-width: 80rem;
}

.other-card {
    background: var(--second-color);
    border-radius: 1.6rem;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: .3s ease;
}

.other-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.other-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.other-card-top > i {
    font-size: 3rem;
    color: var(--main-color);
}

.other-links {
    display: flex;
    gap: 1.2rem;
}

.other-links a {
    font-size: 2rem;
    color: var(--muted-color);
    transition: .25s ease;
}

.other-links a:hover {
    color: var(--main-color);
}

.other-card h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1.2rem;
}

.other-card p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--muted-color);
    margin-bottom: 2rem;
}

.other-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.other-card ul li {
    font-size: 1.3rem;
    color: var(--muted-color);
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    min-height: auto;
    padding: 8rem 9% 10rem;
    text-align: center;
    background: var(--bg-color);
    color: var(--text-color);
}

.contact-kicker {
    font-size: 1.6rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    letter-spacing: .1rem;
}

.contact-cta h2 {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.contact-cta p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--muted-color);
}

.contact-btn {
    display: inline-block;
    padding: 1.3rem 3rem;
    border: 2px solid var(--main-color);
    border-radius: 999px;
    color: var(--main-color);
    font-size: 1.6rem;
    font-weight: 600;
    transition: .3s ease;
}

.contact-btn:hover {
    background: var(--main-color);
    color: var(--second-color);
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2rem;
    color: var(--second-color);
}

/* ===== BREAKPOINTS ===== */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header,
    .footer {
        padding-left: 3%;
        padding-right: 3%;
    }

    section,
    .projects-showcase {
        padding: 10rem 3% 2rem;
    }

    .other-projects {
        padding: 10rem 8% 2rem;
    }

    .other-grid {
        margin: 0 auto;
    }

    .contact-cta {
        padding: 8rem 3% 10rem;
    }

    .home {
        min-height: auto;
        padding-top: 11rem;
        padding-bottom: 3rem;
    }

    .about {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
        min-height: auto;
        padding-top: 11rem;
        padding-bottom: 3rem;
    }

    .home-content h3 {
        font-size: 2.3rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 50vw;
        margin-top: 4rem;
    }

    .about .about-img {
        display: none !important;
    }

    .about {
        display: block;
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .about-content {
        width: 100%;
    }

    .about-content h2 {
        text-align: left;
    }

    .about-tech {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 100%;
    }

    .section-intro {
        flex-wrap: wrap;
        margin-bottom: 4rem;
    }

    .section-line {
        max-width: 100%;
    }

    .section-intro h2 {
        font-size: 3rem;
        white-space: normal;
    }

    .featured-project {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 6rem;
    }

    .project-image {
        width: 100%;
        max-width: 52rem;
        margin: 0 auto;
    }

    .featured-project.reverse .project-image,
    .featured-project.reverse .project-content {
        order: initial;
    }

    .project-content,
    .featured-project.reverse .project-content {
        text-align: left;
    }

    .project-tech,
    .featured-project.reverse .project-tech,
    .project-links,
    .featured-project.reverse .project-links {
        justify-content: flex-start;
    }

    .project-content h3 {
        font-size: 3rem;
    }

    .other-projects {
        padding: 8rem 5% 2rem;
    }

    .other-grid {
        grid-template-columns: 1fr;
        max-width: 50rem;
        margin: 0 auto;
    }

    .contact-cta h2 {
        font-size: 3.8rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        font-size: 4.2rem;
    }

    .home-img img {
        width: 50vw;
    }

    .project-image {
        max-width: 100%;
    }

    .other-projects {
        padding: 8rem 3% 2rem;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 50vw;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}