@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@300;400;600;700&display=swap');

html {
    min-height: 100%;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    padding: 40px 20px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    color: #222;
    max-width: 660px;
    min-height: 100%;
}

h1,
h2,
h3 {
    font-weight: 300;
}

h2 {
    margin-bottom: -10px;
    font-size: 30px;
}

p {
    font-family: 'Crimson Text', serif;
    font-size: 17px;
    line-height: 145%;
}

a,
.button,
.social>a>img {
    -webkit-transition: all .1s linear;
    -moz-transition: all .1s linear;
    -o-transition: all .1s linear;
    -ms-transition: all .1s linear;
    transition: all .1s linear;
}

.profile-pic>img {
    -webkit-transition: all .5s linear;
    -moz-transition: all .5s linear;
    -o-transition: all .5s linear;
    -ms-transition: all .5s linear;
    transition: all .5s linear;
}

a {
    color: #0f73aa;
    border-bottom: 1px dotted #0f73aa;
    text-decoration: none;
}

a:hover {
    color: #c0392b;
    border-bottom: 1px solid #c0392b;
}

.button {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0px 1.35em;
    background-color: rgba(0, 0, 0, 0.05);
    border: 0;
    border-radius: 5px;
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 11px;
}

.button:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border: 0;
    color: #000;
}

.profile {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.profile-pic>img {
    width: 120px;
    border-radius: 100%;
    margin-right: 10px;
}

.profile-text {
    margin: 10px;
}

.profile-text>h1 {
    line-height: 0;
    font-family: 'Crimson Text', serif;
    font-weight: 500;
    color: black;
    font-size: 36px;
    text-transform: none;
}

.profile-text>h3 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12pt;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.social>a {
    border: 0;
}

.social>a+a {
    margin-left: 8px;
}

.social>a>img {
    height: 24px;
    border: 0;
    filter: opacity(100%);
    -webkit-filter: opacity(100%);
}

.social>a>img:hover {
    filter: opacity(50%);
    -webkit-filter: opacity(50%);
}

.pub {
    font-family: 'Crimson Text', serif;
    font-weight: 700;
}

.project-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
}

.project-img>img {
    height: 100px;
    padding-left: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 20px 0;
    background: #feffff;
    margin: 20px -20px 0;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.contact-header {
    background: #6895ad;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.contact-header h2 {
    font-size: 22px;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-header h4 {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.contact-body {
    padding: 20px;
}

.contact-form-gmail {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.form-field {
    position: relative;
}

.form-field.full-width {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #979797;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
    font-size: 14px;
    background: white;
    color: #222;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #94c9e6;
    box-shadow: 0 0 0 2px rgba(15, 115, 170, 0.1);
}

.form-input::placeholder {
    color: #6b7280;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: 'Crimson Text', serif;
}

.contact-actions {
    margin-top: 15px;
}

.btn-contact {
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Crimson Text', serif;
}

.btn-send {
    background: #6895ad;
    color: white;
}

.btn-send:hover {
    background: #94c9e6;
}

.btn-send svg {
    width: 14px;
    height: 14px;
}

#status-message {
    padding: 8px;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
}

#status-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#status-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Remove link styling from headings */
h1 a,
h2 a,
h3 a,
h1 a:hover,
h2 a:hover,
h3 a:hover {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
}

@media screen and (max-width: 540px) {
    .profile {
        flex-direction: column;
        margin-bottom: 0;
    }

    .profile-pic,
    .profile-text {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .project-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-img>img {
        height: 200px;
        padding-left: 20px;
    }

    /* Mobile responsive for contact form */
    .contact {
        margin: 20px -15px 0;
        padding: 15px 0;
    }

    .contact-container {
        margin: 0 15px;
    }

    .contact-header {
        padding: 12px 15px;
    }

    .contact-header h2 {
        font-size: 20px;
    }

    .contact-header h4 {
        font-size: 13px;
    }

    .contact-body {
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn-contact {
        width: 100%;
        justify-content: center;
    }
}