/* About Page Styles */

.about-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* HERO SECTION */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.about-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
    animation: fadeInUp 0.6s ease-out;
}

@media (min-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        padding: 3rem 0;
        margin-bottom: 5rem;
    }
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.about-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.about-hero-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    aspect-ratio: 1;
    object-fit: cover;
    animation: fadeInScale 0.8s ease-out;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* MORE ABOUT ME */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.more-about-me {
    margin-bottom: 4rem;
}

.identity-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.identity-step {
    padding: 1.25rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 18%, rgba(122, 20, 40, 0.14), transparent 40%),
        rgba(255, 255, 255, 0.03);
    animation: fadeInUp 0.55s ease-out both;
}

.identity-step:nth-child(2) {
    animation-delay: 0.08s;
}

.identity-step:nth-child(3) {
    animation-delay: 0.16s;
}

.identity-step h3 {
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
}

.identity-step p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    font-size: 0.98rem;
}

.about-bridge-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.about-bridge-alt {
    background: rgba(255, 255, 255, 0.04);
}

.about-bridge-alt:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* SECTION HEADERS */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* WHAT I BUILD SECTION */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.what-i-build {
    margin-bottom: 4rem;
}

.project-highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .project-highlight-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }

    .identity-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.highlight-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out both;
}

.highlight-card:nth-child(1) { animation-delay: 0s; }
.highlight-card:nth-child(2) { animation-delay: 0.1s; }
.highlight-card:nth-child(3) { animation-delay: 0.2s; }

.highlight-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-primary);
}

.highlight-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    flex: 1;
}

.card-link-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.card-link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* WHAT I'M LOOKING FOR */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.what-im-looking-for {
    margin-bottom: 4rem;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .opportunity-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
    }
}

.opportunity-card {
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out both;
}

.opportunity-card:nth-child(2) {
    animation-delay: 0.1s;
}

.opportunity-card:nth-child(3) {
    animation-delay: 0.2s;
}

.opportunity-card:hover {
    border-color: rgba(122, 20, 40, 0.5);
    box-shadow: 0 0 20px rgba(122, 20, 40, 0.15);
}

.opportunity-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
}

.opportunity-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    flex: 1;
}

.opportunity-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(122, 20, 40, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* CONTACT FORM */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.contact-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.contact-form {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--body-font);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form select option {
    background: #0d0d10;
    color: #f5f5f7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-submit {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(122, 20, 40, 0.4);
    color: var(--text-primary);
    font-family: var(--display-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-submit:hover {
    background: rgba(122, 20, 40, 0.6);
    border-color: rgba(122, 20, 40, 0.8);
    transform: translateY(-2px);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.5rem;
}

.contact-feedback.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.contact-feedback.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

body.thanks-open {
    overflow: hidden;
}

.thanks-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 2, 5, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.thanks-modal[hidden] {
    display: none !important;
}

.thanks-modal-card {
    width: min(520px, 100%);
    position: relative;
    padding: 2.4rem 2rem 2rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 50% 0%, rgba(122, 20, 40, 0.28), transparent 40%),
        linear-gradient(180deg, rgba(18, 18, 24, 0.98), rgba(8, 8, 12, 0.98));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.58), 0 0 24px rgba(122, 20, 40, 0.18);
    text-align: center;
    animation: thanks-pop-in 480ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.thanks-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.thanks-badge {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #fff7fb;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.32), rgba(122, 20, 40, 0.9));
    box-shadow: 0 0 0 10px rgba(122, 20, 40, 0.12), 0 0 24px rgba(122, 20, 40, 0.26);
    animation: thanks-badge-float 2.6s ease-in-out infinite;
}

.thanks-modal-card h2 {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.thanks-lead {
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
}

.thanks-copy {
    margin: 0 auto 1.3rem;
    max-width: 32ch;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.thanks-cta {
    min-width: 190px;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(122, 20, 40, 0.5);
    color: var(--text-primary);
    font-family: var(--display-font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.thanks-cta:hover,
.thanks-close:hover {
    transform: translateY(-1px);
}

.thanks-cta:hover {
    background: rgba(122, 20, 40, 0.68);
    border-color: rgba(122, 20, 40, 0.88);
}

@keyframes thanks-pop-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes thanks-badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ESSAY SECTION */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.essay-section {
    margin-bottom: 3rem;
}

.essay-details {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.essay-summary {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.essay-summary:hover {
    color: rgba(255, 255, 255, 0.85);
}

.essay-details[open] .essay-summary {
    margin-bottom: 1.5rem;
}

.essay-content {
    line-height: 1.8;
}

.essay-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.essay-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.essay-content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ANIMATIONS */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* RESPONSIVE */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 600px) {
    .about-main {
        padding: 1rem 0.78rem 0;
    }

    .about-hero {
        gap: 1.2rem;
        margin-bottom: 2.6rem;
        padding: 1rem 0 0.5rem;
    }

    .about-hero-content {
        gap: 1rem;
    }

    .about-title {
        font-size: clamp(2.1rem, 9vw, 2.6rem);
        line-height: 1.08;
    }

    .about-lead {
        font-size: 1.02rem;
        line-height: 1.75;
    }

    .about-hero-img {
        aspect-ratio: 1.08;
        border-radius: 14px;
    }

    .more-about-me,
    .what-i-build,
    .what-im-looking-for,
    .contact-section,
    .essay-section {
        margin-bottom: 2.75rem;
    }

    .contact-section {
        padding: 1.7rem 1rem;
        border-radius: 16px;
    }

    .section-header {
        margin-bottom: 1.35rem;
        padding-bottom: 1rem;
        text-align: left;
    }

    .section-header h2 {
        font-size: 1.72rem;
        margin-bottom: 0.55rem;
    }

    .section-subtitle {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .identity-flow,
    .project-highlight-grid,
    .opportunity-grid {
        gap: 1rem;
        margin-top: 1rem;
    }

    .identity-step,
    .highlight-card,
    .opportunity-card {
        padding: 1.05rem 1rem;
        border-radius: 14px;
    }

    .identity-step h3,
    .highlight-card h3,
    .opportunity-card h3 {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .identity-step p,
    .highlight-card p,
    .opportunity-card p {
        font-size: 1rem;
        line-height: 1.72;
    }

    .highlight-icon {
        font-size: 2rem;
    }

    .about-bridge-actions {
        margin-top: 1rem;
        gap: 0.6rem;
    }

    .card-link-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 0.9rem 1rem;
        border-radius: 999px;
        font-size: 0.95rem;
    }

    .contact-form {
        margin-top: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 1rem;
        padding: 0.88rem 0.95rem;
    }

    .essay-details {
        padding: 1.15rem 1rem;
        border-radius: 16px;
    }

    .essay-summary {
        align-items: flex-start;
        font-size: 1rem;
        line-height: 1.5;
    }

    .essay-content h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .essay-content p {
        font-size: 1rem;
        line-height: 1.86;
        margin-bottom: 1.15rem;
    }
}
