@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Grotesk:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: auto;
}

html {
    font-size: 100%;
    scroll-padding-top: 60px;
    scroll-behavior: smooth;
}

body {
    background-color: #181A1F;
}

body.menu-open {
    overflow: hidden;
}

/*
    Main near black: #181A1F

*/

h1, h2, h3 {
    font-family: 'Space Grotesk', serif;
}

body, p, li {
    font-family: 'Inter', sans-serif;
}

#wrapper {
    width: 100%;
    margin: 0 auto;
}

#heading {
    position: relative;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 20px;
    height: auto;

    background-color: rgba(24, 26, 31, 0.75);
    backdrop-filter: blur(8px);
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.05);*/

    transition: background-color 0.3s ease;
}

.js #heading{
    position: sticky;
    padding: 0 20px;
}

#heading .heading-inner {
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: space-between;

}

.js #heading .heading-inner {
    height: 60px;
    flex-direction: row;
}

#heading h1 {
    color: #FFFFFF;
}

#site-nav {
    display: block;
    position: static;
    width: auto;
    text-align: center;
}

#site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

#hamburger {
    display: none;
}

.js #hamburger {
    display: block;
}

.js #site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 9;
}

.js #site-nav.open {
    display: block;
    background-color: #121417;
}

.js #site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

#site-nav li {
    list-style: none;
}

#site-nav li a {
    text-decoration: none;
    color: #FFFFFF;
}

#site-nav li a:hover {
    color: #DB2B39;
}

#hamburger button {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #696e80;
}

#hamburger svg {
    width: 24px;
    height: 24px;
}

#hamburger .line {
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-box: fill-box;
    transform-origin: center;
}

#hamburger.open .top {
    transform: translateY(6px) rotate(45deg);
}

#hamburger.open .middle {
    opacity: 0;
}

#hamburger.open .bottom {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 767px) {
    .js #site-nav {
        position: fixed;
        inset: 0;
        top: 60px;
        width: 100%;
        height: 100vh;
        background-color: #181A1F;

        display: none;
        z-index: 999;

        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .js #site-nav.open {
        display: flex;
    }

    .js #site-nav ul {
        gap: 24px;
    }

    .js #site-nav a {
        font-size: 1.25rem;
    }

}

@media (min-width: 768px) {

    .js #hamburger {
        display: none;
    }

    .js #site-nav {
        position: relative;
        display: block;
        width: auto;
        top: 0;
    }

    .js #site-nav ul {
        flex-direction: row;
        padding: 0;
    }

    #projects {
        padding: 0;

    }
}

#home {
    height: calc(100vh - 60px);
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

#home .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.geometric {
    position: relative;
    width: 100%;
}

.pattern-one::before {
    content: '';
    position: absolute;
    inset: 0;

    --s: 32px; /* control the size*/
    --c1: #DB2B39;
    --c2: #181A1F;

    --_g: radial-gradient(calc(var(--s) / 2), var(--c1) 97%, #0000);
    background: var(--_g), var(--_g) calc(2 * var(--s)) calc(2 * var(--s)),
    repeating-conic-gradient(from 45deg, #0000 0 25%, var(--c2) 0 50%) calc(-.707 * var(--s)) calc(-.707 * var(--s)),
    repeating-linear-gradient(135deg, var(--c1) calc(var(--s) / -2) calc(var(--s) / 2), var(--c2) 0 calc(2.328 * var(--s)));
    background-size: calc(4 * var(--s)) calc(4 * var(--s));
    filter: blur(3px);
    transform: scale(1.1);
    z-index: 1;
    opacity: 0.85;
}

.pattern-two::before {

    content: '';
    position: absolute;
    inset: 0;

    --s: 64px; /* control the size*/
    --c1: #DB2B39;
    --c2: #181A1F;

    --_l: #0000 46%, var(--c1) 47% 53%, #0000 54%;
    background: radial-gradient(100% 100% at 100% 100%, var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100% at 0 0, var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100%, #0000 22%, var(--c1) 23% 29%, #0000 30% 34%, var(--c1) 35% 41%, #0000 42%),
    var(--c2);
    background-size: calc(var(--s) * 2) calc(var(--s) * 2);
    filter: blur(3px);
    transform: scale(1.1);
    z-index: 1;
    opacity: 0.85;
}

.geometric::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.85) 80%
    );
    z-index: 1;
    pointer-events: none;

}

.hero-text {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0 20px;
}

#home h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1;
}

#home h1 .soft {
    font-weight: 500;
    opacity: 0.5;
}

#home h1 .accent {
    display: inline-block;
    border-bottom: 4px solid #DB2B39;
}

#home h2 {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.85;
}

.accentText {
    color: #DB2B39;
}

.accentText2 {
    color: #F3A712;
}

#cta-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.cta-button {
    padding: 10px 18px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.15s ease;
}

.cta-button:hover {
    cursor: pointer;
}

.cta-button:active {
    transform: translateY(0);
}

.filled {
    border:2px solid #DB2B39;
    background-color: #DB2B39;
    color: #FFFFFF;
}
.filled:hover {
    background-color: transparent;
    color: #DB2B39;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 43, 57, 0.35);
}

.outlined {
    border:2px solid #DB2B39;
    background-color: transparent;
    color: #DB2B39;
}

.outlined:hover {
    background-color: transparent;
    color: #FFFFFF;
}

#skills-brief {
    width: 100%;
    height: auto;
    background-color: #24262D;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#skills-brief span {
    padding: 20px;
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #40434e;
}

#container {
}

#about-me {
    width: 100%;
    height: auto;
    padding: 80px 10px 10px 10px;
}

#about-me p {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.about-me {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.about-me .intro {
    font-size: 1.3rem;
    line-height: 1.5;
}

.about-me .approach {
    opacity: 0.75;
    padding-bottom: 30px;
    line-height: 1.7;
}

.about-me .invite {
    line-height: 1.5;
}

#recent-work {
    width: 100%;
    height: auto;
    background-color: #1C1F26;
    padding: 60px 0;
}

#recent-work > h1,
#about-me > h1,
#contact > h1 {
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 72px 0;
}

#projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: center;
    justify-content: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.project-card {
    background-color: #292b33;
    padding: 10px;
    overflow: hidden;
    max-width: 360px;
}

.project-card img {
    display: block;
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    object-fit: cover;
}

.project-card .project-image {
    position: relative;
}

.project-card .project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, .35),
            rgba(0, 0, 0, 0)
    );
    z-index: 900;
}

.project-card .meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card .meta h1 {
    font-size: 1rem;
    text-align: left;
    color: #FFFFFF;
}

.project-card .meta p {
    font-size: 1rem;
    text-align: left;
    color: #FFFFFF;
}

.project-card .languages {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    font-family: 'JetBrains Mono', sans-serif;
}

.project-card .languages > span {
    color: #545866;
    padding: 5px;
    border: 1px solid #40434e;
    font-size: .875rem;
    text-align: center;
    flex: 1 1 auto;
    opacity: 0.5;
}

.project-card .links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.project-card .links > a {
    flex: 1;
    text-decoration: none;
    color: #FFFFFF;
    padding: 10px;
    border: 2px solid #DB2B39;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.project-card .links .material-icons {
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(1px);
}

.project-card .links > a:hover {
    background-color: #DB2B39;
}

#contact {
    background-color: #15171D;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 120px 10px 60px 10px;
}

#contact .contact-intro {
    color: #FFFFFF;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 24px;
}

#contact .contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    max-width: 420px;
    padding: 32px;

    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

#contact .contact-form label {
    display: block;
    margin-bottom: 4px;
    color: #FFFFFF;
    font-size: 0.875rem;
    opacity: .7;
}

#contact .contact-form input,
#contact .contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #22252B;
    border: 1px solid #40434e;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

#contact .contact-form textarea {
    min-height: 125px;
}

#contact .contact-form input:hover,
#contact .contact-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
    outline: none;
    border-color: #DB2B39;
}

#contact .contact-form button {
    margin-top: 36px;
    border: 2px solid #DB2B39;
    background-color: transparent;
    padding: 12px 0;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

#contact .contact-form button:hover {
    background-color: #DB2B39;
}

#contact .contact-form .contact-reassurance {
    text-align: center;
    color: #FFFFFF;
    margin-top: 14px;
    font-size: 0.875rem;
    opacity: 0.25;
}

#footer {
    width: 100%;
    height: 40px;
    background-color: #121417;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;

}
