/* Reset & Variables */
:root {
    --primary-color: #34db66;
    --text-color: #cecece;
    --text-color-highlight: #fff;
    --bg-color: #1a1a1a;
    --font-nunito: 'Nunito', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

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

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

/* Base Styles */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-nunito);
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

section {
    padding: 3.75rem 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
}

strong {
    font-weight: inherit;
    color: var(--primary-color);
}

h1,
h2 {
    font-size: 1.5rem;
    font-family: var(--font-montserrat);
    font-weight: 700;
    color: var(--text-color-highlight);
}

nav {
    font-weight: 800;
}

h3 {
    text-align: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--text-color-highlight);
}

input,
textarea {
    width: 100%;
    padding: 0.5rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Components & Sections */

*:focus-visible {
    outline: 2px dashed var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 30px 30px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(52, 219, 102, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

header {
    overflow: hidden;

    background: linear-gradient(to bottom,
            #292929 0%,
            #1a1a1a 100%);

    border-bottom: 1px solid;
    border-image: linear-gradient(to right, transparent, var(--primary-color), transparent) 1;
}

footer {
    overflow: hidden;

    background: linear-gradient(to bottom,
            #292929 0%,
            #1a1a1a 100%);

    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, var(--primary-color), transparent) 1;
}

.btn-primary {
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    width: 100%;
    padding: 0.75rem 1rem;
    letter-spacing: 1px;
    
    background: linear-gradient(135deg, var(--primary-color) 0%, #28a745 100%);
    color: var(--bg-color);
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(52, 219, 102, 0.2);
}

.btn-primary:hover {
    color: var(--text-color-highlight);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 0 20px var(--primary-color),
        0 0 40px rgba(52, 219, 102, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 2px 10px rgba(52, 219, 102, 0.5);
}

.container {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 28.75rem;
    margin: 1.25rem auto 0 auto;
}

.header-wrapper h1 {
    line-height: 1.6;

    position: relative;
    z-index: 1;
    color: var(--primary-color);
}

.header-wrapper h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.header-wrapper nav {
    width: 100%;
    line-height: 1.2;
}

.header-wrapper nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: space-around;
    font-size: 1.125rem;
}

.header-wrapper nav a {
    display: block;
    padding: 1.25rem 1.75rem;
    font-size: 1.125rem;

    
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.header-wrapper nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(52, 219, 102, 0.5);
}

.header-wrapper nav a:active {
    transform: scale(0.95);
}

.header-wrapper nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.header-wrapper nav a:hover::before {
    opacity: 0.4;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-wrapper>div {
    max-width: 28.75rem;
}

.hero-wrapper h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0.75rem;
}

.hero-wrapper p {
    text-align: center;
}

.hero-wrapper .btn-primary {
    margin-top: 2.25rem;
}

.hero-image-wrapper {
    margin-top: 2.25rem;
    width: 13.75rem;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.photo-frame {
    position: relative;
    z-index: 1;
}

.photo-frame picture {
    display: block;
    border-radius: 10%;
    overflow: hidden;
    border: 3px solid rgba(26, 26, 26, 0.6);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 1), 0 0 20px rgba(255, 255, 255, 0.2);
}

.photo-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10%;
    box-shadow: 0 0 20px var(--primary-color), 0 0 10px rgba(52, 219, 102, 0.5);
    z-index: 0;
    pointer-events: none;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-wrapper>div {
    max-width: 28.75rem;
}

.about-wrapper h2 {
    text-align: center;
    margin-bottom: 2.25rem;
}

.about-wrapper p:last-of-type {
    margin-bottom: 2.25rem;
}

.btn-cv {
    width: 12rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    transition: background 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    gap: 1rem;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-cv span {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cv-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
}

.cv-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(58%) sepia(72%) saturate(472%) hue-rotate(85deg) brightness(106%) contrast(87%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.btn-cv:hover {
    background: rgba(52, 219, 102, 0.05);
    border-color: rgba(52, 219, 102, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(52, 219, 102, 0.1);
}

.btn-cv:hover .cv-icon img {
    transform: translateY(-3px) scale(1.05) rotate(-3deg);
    filter: brightness(0) saturate(100%) invert(58%) sepia(72%) saturate(472%) hue-rotate(85deg) brightness(106%) contrast(87%) drop-shadow(0 0 8px rgba(52, 219, 102, 0.7));
}

.btn-cv:hover span {
    color: var(--text-color-highlight);
}

.btn-cv:active {
    transform: translateY(0);
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-wrapper>* {
    max-width: 28.75rem;
}

.projects-wrapper h2 {
    margin-bottom: 2.25rem;
}

.projects-wrapper>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

.projects-wrapper article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    min-height: 40rem;
    
    background: linear-gradient(to bottom, #262626 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.projects-wrapper article h3 {
    margin-bottom: 1rem;
}

.projects-wrapper article ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.projects-wrapper article ul li {
    color: var(--primary-color);
    background: rgba(52, 219, 102, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(52, 219, 102, 0.2);
    
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 0.25rem 0.5rem;
}

.projects-wrapper article img {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    height: auto;
    max-width: 100%;
    margin: 2rem 0;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

.contact-wrapper>* {
    max-width: 28.75rem;
}

.contact-wrapper>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

.contact-wrapper h2 {
    text-align: center;
}

.contact-wrapper>form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.form-row {
    display: flex;
    width: 100%;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    gap: 0.5rem;
}

.contact-wrapper form button {
    margin-top: 1rem;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 1.25rem auto;
    max-width: 28.75rem;
}

.footer-wrapper p {
    text-align: center;
    margin: 0 1.25rem;
}

.social-links {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.social-links a {
    padding: 0.625rem;
    
    position: relative;
    z-index: 1;
}

.icon-social {
    fill: var(--text-color);
    transition: fill 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-links a:hover::before {
    opacity: 0.4;
}

.social-links a:hover .icon-social {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(52, 219, 102, 0.5));
    transform: translateY(-3px);
}

.social-links a:active .icon-social {
    transform: translateY(0px);
}

.social-links svg {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

/* Breakpoints */

@media (min-width: 768px) {
    body {
        font-size: 1.063rem;
    }

    h1,
    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .btn-primary {
        font-size: 0.938rem;
    }

    .container {
        padding: 0 3.75rem;
    }

    .header-wrapper {
        flex-direction: row;
        max-width: 68.75rem;
        justify-content: space-between;
        margin: 1rem auto;
        padding: 0 3.75rem;
    }

    .header-wrapper nav {
        width: auto;
        line-height: 1.6;
    }

    .header-wrapper nav a {
        font-size: 1.25rem;
    }

    .hero-wrapper h2 {
        font-size: 2rem;
    }

    .hero-image-wrapper {
        width: 21.25rem;
    }

    .about-wrapper {
        gap: 3.75rem;
    }

    .btn-cv {
        margin: 0 auto;
        padding: 1.563rem 1.063rem;
        width: 12.25rem;
    }

    .btn-cv span {
        font-size: 1.063rem;
    }

    .projects-wrapper>div {
        gap: 3.75rem;
    }

    .footer-wrapper {
        flex-direction: row;
        margin: 1.375rem auto;
        max-width: 56.25rem;
        padding: 0 3.75rem;
        justify-content: space-between;
    }

    .footer-wrapper p {
        font-size: 1rem;
        text-align: unset;
        margin: 0;
    }

    .social-links {
        justify-content: right;
        gap: 2.25rem;
        width: auto;
    }

    .social-links a {
        padding: 0.875rem;
    }

}

@media (min-width: 992px) {
    .about-wrapper {
        flex-direction: row;
    }

    .about-wrapper > div {
        width: 50%;
    }

    .projects-wrapper > div {
        flex-direction: row;
        max-width: 68.75rem;
    }

    .projects-wrapper article {
        width: 50%;
    }
}

@media (min-width: 1100px) {
    body {
        font-size: 1.125rem;
    }

    h1,
    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    .btn-primary {
        font-size: 1rem;
    }

    .container {
        max-width: 68.75rem;
    }

    .header-wrapper nav a {
        font-size: 1.375rem;
    }

    .hero-wrapper {
        flex-direction: row;
        gap: 3.75rem;
    }

    .hero-wrapper h2 {
        font-size: 2.25rem;
        text-align: left;
    }

    .hero-wrapper p {
        text-align: left;
    }

    .hero-wrapper .btn-primary {
        margin-top: 3.75rem;
    }

    .hero-image-wrapper {
        width: 28.75rem;
        margin: 0;
    }

    .about-wrapper {
        flex-direction: row-reverse;
    }

    .about-wrapper>div {
        max-width: 28.75rem;
    }

    .btn-cv {
        padding: 1.625rem 1.125rem;
        width: 12.5rem;
    }

    .btn-cv span {
        font-size: 1.125rem;
    }

    .projects-wrapper>div {
        flex-direction: row;
    }

    .projects-wrapper article ul li {
        font-size: 0.688rem;
    }

    .contact-wrapper {
        flex-direction: row;
        gap: 3.75rem;
    }

    .footer-wrapper {
        max-width: 68.75rem;
    }

}