* {
    box-sizing: border-box;
}

:root {
    --page-bg: #edf3f6;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --text-main: #162033;
    --text-soft: #5b6b7f;
    --border-soft: #d6e0e8;
    --accent: #0f766e;
    --accent-dark: #134e4a;
    --focus-ring: rgba(15, 118, 110, 0.18);
    --shadow-soft: 0 18px 36px rgba(22, 32, 51, 0.08);
    --shadow-card: 0 16px 30px rgba(22, 32, 51, 0.1);
}

body {
    margin: 0;
    /* font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif; */
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28rem),
        linear-gradient(180deg, #f8fbfc 0%, var(--page-bg) 100%);
}

.site-header,
.site-footer {
    width: 100%;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
}

p {
    margin: 0;
    color: var(--text-soft);
}

.site-header {
    padding: 0;
}

.page-content {
    width: 100%;
    margin: 0;
    padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
    flex: 1;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border-soft);
    background-color: var(--surface);
    box-shadow: var(--shadow-soft);
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo-mark {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.375rem 0.5rem;
    color: var(--accent-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 0 8px rgba(15, 118, 110, 0.22);
}

.site-logo-cursor {
    display: inline-block;
    width: 0.58em;
    height: 1.1em;
    margin: 0 0.08em 0 0.14em;
    background-color: var(--accent);
    box-shadow: 0 0 8px rgba(15, 118, 110, 0.22);
    animation: logo-cursor-blink 1.05s steps(1, end) infinite;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    border: 1px solid transparent;
    line-height: 1.2;
    color: var(--text-soft);
    background-color: var(--surface-strong);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #ffffff;
    background-color: var(--accent);
    transform: translateY(-1px);
}

.nav-link-current {
    color: #ffffff;
    background-color: var(--accent-dark);
}

.hero-section {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(15, 118, 110, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-section,
.all-projects,
.featured-projects,
.project-showcase,
.contact-section {
    margin-top: 1.5rem;
}

.contact-section {
    display: flex;
    justify-content: center;
}

.home-hero {
    padding: 1.5rem;
}

.hero-layout {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 0.9rem;
}

h1 {
    font-size: clamp(2.0rem, 4vw, 3.0rem);
}

.hero-role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.hero-media {
    justify-self: center;
    
    width: min(100%, 20rem);
}

.hero-image {
    display: block;
    aspect-ratio: 1 / 1;
    width: 70%;
    margin: auto;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.all-projects,
.featured-projects {
    padding: 1.5rem;
    border-top: 1px solid rgba(22, 32, 51, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
}

.contact-form {
    border: 1px solid var(--border-soft);
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    width: 80vw;
}

.site-footer {
    padding-bottom: 1.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(22, 32, 51, 0.12);
    color: var(--text-soft);
}

.footer-copy {
    font-size: 0.95rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(22, 32, 51, 0.1);
    background-color: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #ffffff;
    background-color: var(--accent);
    transform: translateY(-1px);
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.footer-icon-linkedin-dark {
    background-color: var(--accent-dark);
    color: #ffffff;
}

.section-heading {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.search-input-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    width: min(100%, 30rem);
    border: 1px solid var(--border-soft);
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0.625rem 1.375rem rgba(22, 32, 51, 0.06);
}

.search-icon {
    padding: 0 0 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 0.625rem;
    border: 0;
    font: inherit;
    color: var(--text-main);
    background-color: transparent;
}

.search-input::placeholder {
    color: var(--text-soft);
}

.search-input:focus {
    outline: none;
}

.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

.section-heading h2,
.hero-section h2,
.project-card-content h2,
.project-card-content h3,
.contact-form h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-link,
.project-button,
.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-link {
    justify-self: start;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-strong);
    color: var(--text-main);
}

.section-link:hover,
.section-link:focus-visible {
    color: #ffffff;
    background-color: var(--accent);
    transform: translateY(-1px);
}

.project-grid {
    display: grid;
    gap: 1.25rem;
}

.project-card {
    display: grid;
    grid-template-rows: auto 1fr;
    width: min(100%, 24rem);
    justify-self: center;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-strong);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(31, 41, 51, 0.14);
}

.project-card-media {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: start;
}

.project-card-image {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.project-badge {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: end;
    max-width: min(11rem, calc(100% - 1.5rem));
    margin: 0.75rem 0 0 0;
    padding: 0.375rem 0.5rem 0.375rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 248, 247, 0.9) 100%);
    color: var(--accent-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-align: right;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(22, 32, 51, 0.08);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10% 50%);
}

.project-card-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    padding: 1.375rem;
}

.project-card-content h2,
.project-card-content h3 {
    font-size: 1.45rem;
}

.project-button,
.form-button {
    justify-self: start;
    border: 0;
    background-color: var(--accent-dark);
    color: #ffffff;
    cursor: pointer;
}

.project-button:hover,
.project-button:focus-visible,
.form-button:hover,
.form-button:focus-visible {
    background-color: var(--accent);
    transform: translateY(-1px);
}

/* .contact-form {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    width: 60vw;
} */

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label {
    font-weight: 700;
    color: var(--text-main);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-soft);
    font: inherit;
    color: var(--text-main);
    background-color: var(--surface-strong);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 10rem;
}

.form-status {
    min-height: 1.5rem;
    font-weight: 600;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
    background-color: #fcfeff;
}

.search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
}

.no-results {
    margin-top: 1rem;
    color: var(--text-soft);
    font-weight: 600;
}


@media (min-width: 700px) {
    .site-header {
        padding-top: 1rem;
    }

    .site-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-list {
        justify-content: flex-end;
    }

    .site-logo-mark {
        font-size: 1.2rem;
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-section {
        padding: 2rem;
    }

    .home-hero {
        padding: 2.5rem;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.5fr);
        gap: 2rem;
    }

    .hero-media {
        justify-self: end;
        width: min(100%, 24rem);
    }

    .all-projects,
    .featured-projects,
    .contact-form {
        padding: 2rem;
    }

    .contact-form {
        width: 60vw;
    }

    .section-heading {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .section-link {
        justify-self: end;
    }

    .search-box {
        justify-items: end;
    }

    .search-label {
        width: min(100%, 30rem);
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card {
        width: 100%;
    }
}

@keyframes logo-cursor-blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (min-width: 980px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
