:root {
    /* --accent-color: rgb(249, 107, 55); */
    --accent-color: #5B9C24;
    /* --accent-color: #399e49; */
}

* {
    box-sizing: border-box;
}

img {
    max-inline-size: 100%;
    display: block;
}

body {
    color: #333;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.wrapper {
    max-inline-size: 600px;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
    flex: 1;
}

.footer {
    text-align: center;
    font-size: 0.95rem;
    margin: 6rem 0 2rem 0;
}

a {
    color: var(--accent-color);
    text-decoration: underline;
}

strong {
    color: #555;
    font-weight: 600;
}

.nav-title {
    /* font-weight: bold; */
    /* margin: 0; */
    font-family: 'Caveat Brush', 'Inter', sans-serif;
    font-size: 1.75rem;
    color: #555;
}

.nav-title a {
    text-decoration: none;
    color: inherit;
}

.nav-title a:hover,
.nav-title a:focus-visible {
    color: var(--accent-color);
    /* color: #5B9C24; */
    /* color: #399e49; */
}

header {
    display: flex;
    justify-content: space-between;
    margin-block-end: 4rem;
}

.primary-navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0.5rem;
    /* font-size: 1.1rem; */
}

.primary-navbar a {
    text-decoration: none;
    color: inherit;
}

.primary-navbar a:hover,
.primary-navbar a:focus-visible {
    color: var(--accent-color);
    /* color: #5B9C24; */
    /* color: #399e49; */
}

.hero-intro {
    margin-block: 3rem;
    /* text-align: center; */
}

.flip-container {
    perspective: 1000px;
    width: 135px;
    height: 135px;
    margin-block-end: 1rem;
    cursor: pointer;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
}

.front img,
.back img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    display: block;
}

.back {
    transform: rotateY(180deg);
}

.hero-intro h1 {
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 1.75rem;
    font-weight: 500;
}

.hero-intro p {
    color: #777;
    /* font-style: italic; */
    font-size: 1.05rem;
    margin-block-start: 0rem;
    margin-block-end: 0.5rem;
    font-weight: 400;
}

.tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: #999;
    margin-block-start: 0.75rem;
    margin-inline-start: 0.15rem;
    opacity: 0.85;
}

.tagline:hover {
    color: #777;
}

#typewriter {
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
}

#cursor {
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-weight: bold;
    animation: blink 0.5s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.content-section {
    display: grid;


    &> :first-child {
        align-self: start;
        text-align: left;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.9rem;
        font-weight: 400;
        color: #777;
    }

    @media (width > 600px) {
        grid-template-columns: 1.5fr 7fr;
        gap: 1rem;


    }
}

.content-section h2 {
    font-size: 1rem;
    color: #333;
    font-weight: 300;
    /* border: red 1px solid; */
}


.content-section p {
    margin-block-start: 0.75rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
}

.contact-links p {
    margin: 0.75rem 0;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    width: fit-content;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: var(--accent-color);
}

.email-wrapper {
    margin: 0.75rem 0;
    position: relative;
}

.email-modal {
    display: none;
    position: absolute;
    top: auto;
    bottom: 140%;
    left: 0;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    width: 400px;
    z-index: 1000;
}

.email-modal.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-modal label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #555;
    gap: 0.35rem;
}

.email-modal input,
.email-modal textarea {
    padding: 0.6rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: border-color 0.2s, background-color 0.2s;
}

.email-modal input:focus,
.email-modal textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
}

.email-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #aaa;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .email-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 2rem 1.5rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    .email-modal.show {
        animation: slideUpMobile 0.3s ease-out;
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}