/* =========================================================
   Sofía García — Portfolio
   Palette: warm paper, ink navy, coral, teal, gold
   Display: 'Gasoek One'  |  Body/UI: 'Montserrat'
   Signature motif: camera-viewfinder corner frame
   ========================================================= */

:root {
    --paper: #FAF7F1;
    --paper-warm: #FDEEE1;
    --paper-cool: #E9F5F1;
    --paper-deep: #F1E9DA;
    --ink: #1E2129;
    --ink-soft: #5B5F6B;
    --coral: #FF5B4C;
    --coral-dark: #E14535;
    --teal: #15978A;
    --teal-soft: rgba(21, 151, 138, 0.1);
    --gold: #FFC94A;
    --card: #FFFFFF;
    --border: rgba(30, 33, 41, 0.1);
    --shadow: 0 10px 30px rgba(30, 33, 41, 0.08);
    --shadow-lift: 0 20px 40px rgba(255, 91, 76, 0.18);
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Gasoek One', 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--coral);
    display: inline-block;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper) 45%, var(--paper-cool) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 91, 76, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(21, 151, 138, 0.14) 0%, transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(255, 201, 74, 0.16) 0%, transparent 40%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--paper));
    z-index: 1;
}

.hero h1,
.hero .subtitle,
.hero-buttons,
.hero-eyebrow {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--ink);
    word-wrap: break-word;
    max-width: 100%;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.12s forwards;
}

.hero .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
    word-wrap: break-word;
    max-width: 100%;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.24s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.36s forwards;
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow, .hero h1, .hero .subtitle, .hero-buttons {
        animation: none;
        opacity: 1;
    }
}

.cta-button {
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--coral);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 91, 76, 0.3);
}

.cta-button:hover {
    background-color: var(--coral-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-lift);
}

.cta-button .play-icon {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
    flex-shrink: 0;
}

.cta-button-outline {
    background-color: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: none;
}

.cta-button-outline:hover {
    background-color: var(--ink);
    color: var(--paper);
}

/* =========================================================
   Corner-frame signature motif (viewfinder brackets)
   ========================================================= */
.corner-frame {
    position: relative;
}

.corner-frame::before {
    content: '';
    position: absolute;
    inset: 10px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
    transition: inset 0.3s ease, opacity 0.3s ease;
    background:
        linear-gradient(var(--coral), var(--coral)) top left / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral)) top left / 3px 22px no-repeat,
        linear-gradient(var(--coral), var(--coral)) top right / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral)) top right / 3px 22px no-repeat,
        linear-gradient(var(--coral), var(--coral)) bottom left / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral)) bottom left / 3px 22px no-repeat,
        linear-gradient(var(--coral), var(--coral)) bottom right / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral)) bottom right / 3px 22px no-repeat;
}

.corner-frame:hover::before {
    inset: 16px;
    opacity: 1;
}

/* =========================================================
   Intro / About Section
   ========================================================= */
.intro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    background: transparent;
}

.intro-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: var(--card);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.intro-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    background: var(--paper);

    transform: scale(1.5);
    transform-origin: center center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--teal-soft);
    border-radius: 10px;
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-item span:last-child {
    word-break: break-all;
    min-width: 0;
}

.contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.intro-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.intro-about h3 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: var(--ink);
    word-wrap: break-word;
}

.intro-about p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    word-wrap: break-word;
    margin-bottom: 0.75rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.intro-section {
    min-width: 0;
}

.intro-section h4 {
    font-family: 'Gasoek One', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--coral);
    word-wrap: break-word;
}

.intro-list {
    list-style: none;
    padding: 0;
}

.intro-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--ink-soft);
    word-wrap: break-word;
}

.intro-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

.education-text {
    color: var(--ink-soft);
    line-height: 1.8;
    word-wrap: break-word;
}

.education-text strong {
    color: var(--ink);
    display: block;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.intro-software {
    min-width: 0;
}

.intro-software h4 {
    font-family: 'Gasoek One', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--coral);
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.software-tag {
    padding: 0.5rem 1rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.software-tag:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   Portfolio Categories Section
   ========================================================= */
.portfolio {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    background: transparent;
    position: relative;
    text-align: center;
}

.portfolio .eyebrow {
    justify-content: center;
}

.portfolio h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--ink);
    word-wrap: break-word;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.category-card {
    aspect-ratio: 1;
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 91, 76, 0.06) 0%, rgba(21, 151, 138, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 91, 76, 0.3);
}

.category-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.category-content span.category-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.category-content h3 {
    font-size: 1.9rem;
    color: var(--ink);
    line-height: 1.25;
    word-wrap: break-word;
    hyphens: auto;
}

/* =========================================================
   Contact Section
   ========================================================= */
.contact {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 8rem 2rem;
    text-align: center;
    background: transparent;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 201, 74, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact .eyebrow {
    justify-content: center;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--ink);
    position: relative;
    z-index: 1;
    word-wrap: break-word;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-link {
    padding: 1rem 2rem;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.contact-link:hover {
    background: var(--coral);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.contact-email-copy {
    appearance: none;
    -webkit-appearance: none;

    border: none;
    margin: 0;

    font-family: inherit;
    line-height: inherit;

    cursor: pointer;
}

.email-copy-wrapper {
    position: relative;
    display: inline-flex;
}

/* =========================================================
   Language Switch
   ========================================================= */
.language-switch {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 0.85rem;
    white-space: nowrap;
}

.language-switch:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .intro-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .intro-left {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .profile-photo {
        width: 180px;
        flex-shrink: 0;
    }

    .contact-info {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .cta-button {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
    }

    .intro {
        padding: 3rem 1rem;
    }

    .intro-container {
        padding: 1.5rem;
        gap: 2rem;
    }

    .intro-left {
        flex-direction: column;
    }

    .profile-photo {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .contact-item {
        font-size: 0.8rem;
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .contact-icon {
        font-size: 1rem;
    }

    .intro-about h3 {
        font-size: 1.6rem;
    }

    .intro-about p {
        font-size: 0.95rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-section h4 {
        font-size: 1.15rem;
    }

    .intro-list li {
        font-size: 0.9rem;
    }

    .education-text {
        font-size: 0.9rem;
    }

    .software-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .portfolio {
        padding: 3rem 1rem;
    }

    .portfolio h2 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1.5rem;
    }

    .category-card {
        aspect-ratio: 16/10;
    }

    .category-content {
        padding: 1.5rem;
    }

    .category-content h3 {
        font-size: 1.5rem;
    }

    .contact {
        padding: 3rem 1rem 5rem 1rem;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-links {
        gap: 1rem;
    }

    .contact-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .language-switch {
        top: 1rem;
        right: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .intro-container {
        padding: 1rem;
    }

    .intro-about h3 {
        font-size: 1.4rem;
    }

    .intro-about p {
        font-size: 0.85rem;
    }

    .category-content h3 {
        font-size: 1.3rem;
    }

    .contact h2 {
        font-size: 1.7rem;
    }
}

.email-copy-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.contact-email-copy {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
}

/* Message displayed after copying */
.email-copy-message {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.65rem);

    padding: 0.45rem 0.75rem;

    border-radius: 8px;
    background: var(--ink);
    color: var(--paper);

    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, 6px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.email-copy-message::after {
    content: '';

    position: absolute;
    top: 100%;
    left: 50%;

    border: 5px solid transparent;
    border-top-color: var(--ink);

    transform: translateX(-50%);
}

.email-copy-message.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}