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

:root {
    --bg-dark: #311C23;
    --bg-mid: #623745;
    --card: #6b3f4c;
    --accent-green: #1C312A;
    --accent-mint: #53937E;
    --accent-gold: #DEB866;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(180deg, var(--bg-mid), var(--bg-dark));
    color: white;
}

/* Top Bar */
.top-bar {
    background: var(--accent-green);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-items {
    display: flex;
    gap: 32px;
}

.top-bar a,
.top-bar a:link,
.top-bar a:visited {
    color: white;
    text-decoration: none;
}

.top-bar a:hover,
.top-bar a:active {
    color: white;
}

.nav-item {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    opacity: 0.85;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    left: 0;
    width: 100%;
}

/* CTA */
.projects-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 8px 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.projects-btn span {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

.projects-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Portfolio */
.container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 40px 32px;

    /* (3) Center main content block */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Keep sections from stretching weirdly when container is flex */
.profile-section,
.portfolio,
.contact-section {
    width: 100%;
}

/* (2) Green border + Times New Roman for title */
.title-bordered {
    display: inline-block;
    font-family: "Times New Roman", Times, serif;
    border: 2px solid var(--accent-mint);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
}

/* Ensure profile section stays nice */
.profile-section {
    text-align: center;
	margin-bottom: 3rem;
}

/* Small separation between subtitle and bio text */
.subtitle {
    margin: 0.5rem 0 1rem;
    opacity: 0.9;
}

.subtitle-lg {
    font-size: 1.1rem;
}

/* Section title stays centered */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Project cards */
.project-card {
    position: relative;
    background: var(--accent-green);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s ease,
        color 0.35s ease;

    /* (5) Center header + paragraph text in each card */
    text-align: center;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
    box-shadow:
        0 0 0 1px var(--accent-gold),
        0 12px 30px rgba(28, 49, 42, 0.55);
}

.project-card:hover h3,
.project-card:hover p {
    color: #ffffff;
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.project-status {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-gold);
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* (4) Full-card empty button overlay:
   - button covers the card
   - button is visually "nothing"
   - card keeps all styles/hover effects
*/
.project-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: transparent;
    cursor: pointer;
    border-radius: 16px;

    /* remove any default button styling */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* Make keyboard focus visible on the CARD (not the button) */
.project-card:focus-within {
    border-color: var(--accent-gold);
    box-shadow:
        0 0 0 2px var(--accent-gold),
        0 10px 26px rgba(28, 49, 42, 0.6);
}

/* (6) Bigger gap between project cards and contact */
.contact-section {
    margin-top: 80px;
}

/* Help Wanted form & prototype layout */
.help-form {
    max-width: 720px;
    margin: 0 auto;
}

.apply-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.apply-copy {
    flex: 1;
    max-width: 520px;
}

.apply-projects {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.roles-title {
    margin-top: 32px;
    margin-bottom: 16px;
    text-align: left;
}

.roles-grid .project-card {
    text-align: left;
}

.expectations-grid .project-card {
    text-align: left;
}

.doc-pill {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    color: #ffffff;
}

.project-card:hover .doc-pill {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.google-form-embed {
    max-width: 900px;
    margin: 0 auto;
}

.google-form-embed iframe {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px 24px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    opacity: 0.85;
}

.form-field input,
.form-field textarea {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 10px 12px;
    background: rgba(0,0,0,0.16);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    opacity: 0.6;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-submit-btn {
    margin-top: 8px;
}

/* (7) Social links grid */
.social-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    justify-content: center;
    max-width: 760px; /* prevents taking whole page */
    margin: 0 auto;
}

/* Card base */
.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    background: var(--accent-green);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* Big top cards */
.social-card--primary {
    grid-column: span 1;
    padding: 18px 18px;
}

/* Make the first row bigger by spanning columns on wider screens */
@media (min-width: 760px) {
    .social-card--primary:first-child {
        grid-column: 1 / 2;
    }
    .social-card--primary:nth-child(2) {
        grid-column: 2 / 3;
    }
}

/* Icon pill */
.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--accent-gold);
    flex: 0 0 auto;
}

.social-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.social-title {
    font-weight: 700;
    line-height: 1.1;
}

.social-handle {
    font-size: 0.85rem;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer */
.site-footer {
    padding: 24px 0 18px;
    text-align: center;
    opacity: 0.45;
}

.site-version {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =============================
   Mobile Optimization
   ============================= */

@media (max-width: 900px) {
    .top-bar-inner {
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav-items {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 24px;
        padding-top: 10px;
    }

    .apply-layout {
        flex-direction: column;
    }

    .roles-title {
        text-align: center;
    }
}

@media (max-width: 760px) {
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .social-card--primary {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .top-bar-inner {
        padding: 16px 20px;
    }

    .brand {
        font-size: 1rem;
    }

    .projects-btn {
        padding: 10px 12px;
    }

    .container {
        padding: 32px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 24px;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }
}
