
:root {
    --header-height: 3rem;
    --font-semi: 600;

    --first-color: #00ff00;
    --second-color: #00ff00;

    --body-font: 'Courier New', Courier, monospace;
    --big-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;

    --mb1: .5rem;
    --mb2: 1rem;
    --mb3: 1.5rem;
    --mb4: 2rem;
    --mb5: 2.5rem;
    --mb6: 3rem;

    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 768px) {
    :root {
        --big-font-size: 3.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
    }
}

*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--second-color);
    background-color: #000;
}

h1, h2, p { margin: 0; }

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a { text-decoration: none; }

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

.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-top: var(--mb2);
    margin-bottom: var(--mb4);
    text-align: center;
}

    .section-title::after {
        position: absolute;
        content: '';
        width: 64px;
        height: 0.18rem;
        left: 0;
        right: 0;
        margin: auto;
        top: 2rem;
        background-color: var(--first-color);
    }

.section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.bd-grid {
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb2);
    margin-right: var(--mb2);
}

.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: #000;
    box-shadow: none;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-semi);
}

.nav-item { margin-bottom: var(--mb4); }
.nav-link { position: relative; color: var(--first-color); }
    .nav-link:hover { position: relative; }
        .nav-link:hover::after {
            position: absolute;
            content: '';
            width: 100%;
            height: 0.18rem;
            left: 0;
            top: 2rem;
            background-color: var(--first-color);
        }

.nav-logo { color: var(--first-color); }
.nav-toggle {
    color: var(--first-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    padding: 0.5rem 0;
}
.dropdown-menu .nav-link {
    display: block;
    padding: 0.5rem 1rem;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

@media screen and (max-width: 768px) {
    .dropdown-menu {
        position: static;
    }
}

.active::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 2rem;
    background-color: var(--first-color);
}

.home { height: calc(100vh - 3rem); row-gap: 1rem; }
.home-data { align-self: center; }
.home-title { font-size: var(--big-font-size); margin-bottom: var(--mb2); }
.home-subtitle {
    font-size: 1rem;
    margin-bottom: var(--mb4);
}
.home-title-color { color: var(--first-color); }
.home-social { display: flex; flex-direction: column; }
.home-social-icon {
    width: max-content;
    margin-bottom: var(--mb2);
    font-size: 1.5rem;
    color: var(--first-color);
    transition: .3s;
}

    .home-social-icon:hover { color: var(--first-color); }

.home-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 295px;
}

    .home-img img {
        width: 295px;
        height: 295px;
        border-radius: 50%;
    }

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #000;
    padding: 0.75rem 2.5rem;
    font-weight: var(--font-semi);
    border-radius: .5rem;
}

.scroll-button i {
    font-size: 2rem;
}

.scroll-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
}

    .button:hover { box-shadow: 0 10px 36px rgba(0, 0, 0, .15); }

/*ABOUT*/

.about-container { row-gap: 2rem; text-align: center; }
.about-subtitle { margin-bottom: var(--mb2); }
.about-img { justify-self: center; }
    .about-img img { width: 200px; border-radius: .5rem; }

/*SKILLS*/

.skills-container { row-gap: 2rem; text-align: center; }
.skills-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-weight: var(--font-semi);
    padding: 0.5rem 1rem;
    margin-bottom: var(--mb4);
    border-radius: .5rem;
    box-shadow: 0 4px 25px rgba(14, 36, 49, .15);
}

.skills-icon {
    font-size: 2rem;
    margin-right: var(--mb2);
    color: var(--first-color);
}

.skills-names {
    display: flex;
    align-items: center;
}

.skills-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--first-color);
    height: 0.25rem;
    border-radius: .5rem;
    z-index: var(--z-back);
}

.skills-backend { width: 95%; }
.skills-ml { width: 90%; }
.skills-database { width: 85%; }
.skills-frontend { width: 80%; }
.skills-bullets {
    text-align: left;
    margin-bottom: var(--mb4);
    line-height: 1.6;
}

/*WORK*/

.work { text-align: center; }
.work-header {
    text-align: center;
    margin-bottom: var(--mb4);
}

.work-header .section-title { margin-bottom: 0; }
.work-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.work-container::-webkit-scrollbar {
    display: none;
}

.work-wrapper { position: relative; }

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--first-color);
    font-size: 3rem;
    cursor: pointer;
    z-index: 1;
}

.scroll-arrow.left { left: var(--mb6); }
.scroll-arrow.right { right: var(--mb6); }

.work-card {
    flex: 0 0 calc(33.333% - 1rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 25px rgba(14, 36, 49, .15);
    border: 1px solid var(--first-color);
    border-radius: .5rem;
    overflow: hidden;
    scroll-snap-align: start;
}
    .work-card img { width: 100%; transition: 1s; cursor: pointer; }
        .work-card img:hover { transform: scale(1.1); }

.work-card-title {
    padding: .5rem;
    color: var(--first-color);
    text-align: center;
}

.work-card-desc { padding: 0 .5rem 1rem; flex-grow: 1; }

.work-card-button {
    margin: var(--mb1) auto 1rem;
    background: none;
    border: 1px solid var(--first-color);
    color: var(--first-color);
    padding: .5rem 1rem;
    align-self: center;
    cursor: pointer;
    text-decoration: none;
}

.view-all-button {
    margin-top: 1rem;
    background: none;
    border: 1px solid var(--first-color);
    color: var(--first-color);
    padding: .5rem 1rem;
    cursor: pointer;
    display: inline-block;
}

/*CONTACT*/
.contact-input {
    width: 100%;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi);
    padding: 1rem;
    border-radius: .5rem;
    border: 1px solid var(--first-color);
    outline: none;
    margin-bottom: var(--mb4);
}

.contact-button {
    display: block;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
    margin-left: auto;
}

/*FOOTER*/

.footer {
    background-color: #000;
    color: var(--first-color);
    text-align: center;
    font-weight: var(--font-semi);
    padding: 2rem 0;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: var(--mb4);
}

.footer-social { margin-bottom: var(--mb4); }

.footer-icon {
    font-size: 1.5rem;
    color: var(--first-color);
    margin: 0 var(--mb2);
}

/* SOCIAL ICONS ANIMATION */
.social-icons {
    padding: 0;
    list-style: none;
    margin: 1em;
}

.social-icons li {
    display: inline-block;
    margin: 0.15em;
    position: relative;
    font-size: 1.2em;
}

.social-icons i {
    color: #000;
    position: absolute;
    top: 21px;
    left: 21px;
    box-shadow: none;
    -webkit-transition: all 265ms ease-out;
    transition: all 265ms ease-out;
}

.social-icons a {
    display: inline-block;
}

.social-icons a:before {
    -webkit-transform: scale(1);
    transform: scale(1);
    content: "";
    width: 60px;
    height: 60px;
    border-radius: 100%;
    display: block;
    background: var(--first-color);
    box-shadow: none;
    -webkit-transition: all 265ms ease-out;
    transition: all 265ms ease-out;
}

.social-icons a:hover:before {
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 265ms ease-in;
    transition: all 265ms ease-in;
}

.social-icons a:hover i {
    -webkit-transform: scale(2.2);
    transform: scale(2.2);
    color: var(--first-color);
    box-shadow: none;
    -webkit-transition: all 265ms ease-in;
    transition: all 265ms ease-in;
}

/*BLOG PAGE*/
.blog-container { row-gap: var(--mb4); }
.blog-container h3 { margin-bottom: var(--mb1); color: var(--first-color); }
.blog-container p { margin-bottom: var(--mb3); }
.code-block {
    background: #1e1e1e;
    color: #eee;
    padding: 1rem;
    margin-bottom: var(--mb4);
    border-radius: 0.3rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.code-block ol {
    margin: 0;
    padding-left: 1.2rem;
}

.code-block li {
    list-style-type: decimal;
    list-style-position: inside;
    white-space: pre;
    line-height: 1.5;
}

.code-block li::before {
    content: none;
}

.code-block pre { margin: 0; white-space: pre-wrap; }
/*MEDIA QUERIES*/

@media screen and (min-width: 769px) {
    body { margin: 0; }
    .section { padding-top: 4rem; padding-bottom: 3rem; }
    .section-title { margin-bottom: var(--mb6); }
        .section-title::after { width: 80px; top: 3rem; }

    .work-header { margin-bottom: var(--mb6); }

    .nav { height: calc(var(--header-height) + 1rem); }
    .nav-list { display: flex; padding-top: 0; }
    .nav-item { margin-left: var(--mb6); margin-bottom: 0; }
    .nav-toggle { display: none; }
    .nav-link { color: var(--first-color); }

    .home { height: 100vh; }
    .home-data { align-self: flex-end; }

    .home-social {
        padding-top: 0;
        padding-bottom: 2.5rem;
        flex-direction: row;
        align-self: flex-end;
    }

    .home-social-icon { margin-bottom: 0; margin-right: var(--mb4); }
    .home-img { width: 457px; height: 475px; bottom: 15%; }

    .about-container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        text-align: initial;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        align-items: flex-start;
        text-align: initial;
    }

    .about-img img { width: 300px; }


    .contact-form { width: 460px; }
    .contact-container { justify-items: center; }
}

@media screen and (min-width: 1024px) {
    .bd-grid { margin-left: auto; margin-right: auto; }
    .home-img { right: 10%; }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        background-color: #000;
        transition: .5s;
    }

    .show { right: 0; }
	
	.home-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 150px;
	}

    .home-img img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }
}
