/* ══════════════════════
   CUSTOM PROPERTIES
══════════════════════ */
:root {
    --card: #FAFAF6;
    --ink: #1C1B18;
    --accent: #BF4E30;
    --accent-light: #F5E4DE;
    --muted: #837F76;
    --border: #DDD8CE;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --radius-card: 24px;
}

/* ══════════════════════
   RESET
══════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════
   BODY & BACKGROUND
══════════════════════ */
body {
    background-color: #1E3028;
    background-image:
        radial-gradient(ellipse at 75% 20%, rgba(80, 160, 110, 0.14) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    font-family: var(--font-body);
    color: var(--ink);
}

/* ══════════════════════
   CARD CONTAINER
══════════════════════ */
.container {
    background: var(--card);
    border-radius: var(--radius-card);
    width: 90%;
    max-width: 940px;
    padding: 48px 56px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(191, 78, 48, 0.12);
    animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both,
        float 5s ease-in-out 0.65s infinite;
}

/* ── Entrance animation ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating animation with layered shadow depth ── */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.05),
            0 8px 16px rgba(0, 0, 0, 0.07),
            0 20px 40px rgba(0, 0, 0, 0.09);
    }

    50% {
        transform: translateY(-14px);
        box-shadow:
            0 8px 16px rgba(0, 0, 0, 0.04),
            0 24px 48px rgba(0, 0, 0, 0.08),
            0 48px 90px rgba(0, 0, 0, 0.11);
    }
}

/* ══════════════════════
   PILL LABEL ("About Me" / "Toolbox")
══════════════════════ */
.about-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 32px;
}

/* ══════════════════════
   MAIN 2-COLUMN GRID
══════════════════════ */
.main-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 52px;
    align-items: start;
}

/* ══════════════════════
   LEFT COLUMN
══════════════════════ */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.name-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name {
    font-family: var(--font-display);
    font-size: 4.8rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.0;
    letter-spacing: -0.02em;
}

.location {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* Bio */
.bio {
    font-size: 0.93rem;
    color: #4A4640;
    line-height: 1.8;
    border-left: 3px solid var(--accent);
    padding-left: 18px;
}

.bio em {
    font-style: italic;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.15em;
}

/* Section headings (education, skills, contact) */
.education h2,
.skills h2,
.contact-card h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Education */
.edu-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.edu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edu-year {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    margin-top: 3px;
    flex-shrink: 0;
}

.edu-item strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}

.edu-item p {
    font-size: 0.82rem;
    color: var(--muted);
}

/* Skills */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    background: #F0EDE6;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 15px;
    cursor: default;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease,
        background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ══════════════════════
   RIGHT COLUMN
══════════════════════ */
.right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: sticky;
    top: 40px;
}

/* Profile photo with spinning dashed ring */
.photo-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.photo-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    opacity: 0.45;
    animation: spin 22s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    position: relative;
    z-index: 1;
}

/* Contact card */
.contact-card {
    width: 100%;
    background: #F3EEE5;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid var(--border);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.contact-icon {
    width: 15px;
    height: 15px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-list a {
    font-size: 0.83rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-list a:hover {
    color: var(--accent);
}

/* Resume download button */
.resume-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 100px;
    border: 2px solid var(--accent);
    transition: background 0.2s ease, color 0.2s ease;
}

.resume-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.resume-btn:hover {
    background: transparent;
    color: var(--accent);
}

/* ══════════════════════
   TOOLBOX CARD
══════════════════════ */
.software-card {
    margin-top: 24px;
    /* Slightly out of phase with the main card for a layered floating effect */
    animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both,
        float 6.5s ease-in-out 1.4s infinite;
}

.software-header {
    margin-bottom: 28px;
}

.software-heading {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.software-sub {
    font-size: 0.88rem;
    color: var(--muted);
}

/* Tool grid — 3 columns desktop, 2 on mobile */
.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 12px;
}

.tool-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}


/* Layout spans */

/* Google Workspace — wide */
.tool-card:nth-child(7) {
    grid-column: span 2;
}

/* Figma — tall */
.tool-card:nth-child(11) {
    grid-row: span 2;
}

/* WordPress — wide */
.tool-card:nth-child(12) {
    grid-column: span 2;
}

.tool-logo-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default logo size */
.tool-logo {
    max-width: 100px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Logo sizes — in card order */

/* VS Code */
.tool-card:nth-child(1) .tool-logo {
    max-width: 62px;
    max-height: 62px;
}

/* GitHub */
.tool-card:nth-child(2) .tool-logo {
    max-width: 72px;
    max-height: 72px;
}

/* Notion */
.tool-card:nth-child(3) .tool-logo {
    max-width: 130px;
    max-height: 60px;
}

/* Canva uses the default size (nth-child(4)) */

/* Google Analytics */
.tool-card:nth-child(5) .tool-logo {
    max-width: 170px;
    max-height: 70px;
}

/* Asana */
.tool-card:nth-child(6) .tool-logo {
    max-width: 130px;
    max-height: 60px;
}

/* Google Workspace */
.tool-card:nth-child(7) .tool-logo {
    max-width: 190px;
    max-height: 64px;
}

/* Salesforce */
.tool-card:nth-child(8) .tool-logo {
    max-width: 160px;
    max-height: 64px;
}

/* SEMrush */
.tool-card:nth-child(9) .tool-logo {
    max-width: 180px;
    max-height: 90px;
}

/* Claude */
.tool-card:nth-child(10) .tool-logo {
    max-width: 130px;
    max-height: 130px;
}

/* Figma */
.tool-card:nth-child(11) .tool-logo {
    max-width: 100px;
    max-height: 100px;
}

/* WordPress */
.tool-card:nth-child(12) .tool-logo {
    max-width: 200px;
    max-height: 70px;
}

/* Wix uses the default size (nth-child(13)) */


.tool-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.tool-info span {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ══════════════════════
   RESPONSIVE ( ≤ 700px )
══════════════════════ */
@media (max-width: 700px) {

    .container {
        padding: 32px 24px;
    }

    /* Stack to single column */
    .main-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Photo above bio on mobile */
    .right-col {
        order: -1;
        position: static;
    }

    .photo-wrap {
        width: 160px;
        height: 160px;
    }

    .name {
        font-size: 3.4rem;
    }

    .software-card {
        margin-top: 16px;
    }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 100px;
    }

    .tool-card:nth-child(7),
    .tool-card:nth-child(11),
    .tool-card:nth-child(12) {
        grid-row: span 1;
        grid-column: span 1;
    }
}

/* ══════════════════════
   CURSOR GLOW
══════════════════════ */
.cursor-glow {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 190, 0.7) 0%, rgba(255, 210, 160, 0.2) 50%, transparent 70%);
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}


/* ══════════════════════
   TYPEWRITER
══════════════════════ */
.typewriter {
    font-size: 0.85rem;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.04em;
    min-height: 1.4em;
    margin-top: 4px;
}

/* Blinking cursor while typing */
.typewriter::after {
    content: '|';
    color: var(--accent);
    margin-left: 1px;
    animation: blink 0.7s infinite;
}

/* Hide cursor once done */
.typewriter.done::after {
    display: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ══════════════════════
   SCROLL REVEAL
══════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.tag.tag-hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* ══════════════════════
   PROJECTS CARD
══════════════════════ */
.projects-card {
    margin-top: 24px;
    animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both,
        float 7s ease-in-out 1.8s infinite;
}

.projects-header {
    margin-bottom: 28px;
}

.projects-heading {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.projects-sub {
    font-size: 0.88rem;
    color: var(--muted);
}

/* Grid — single wide card now, becomes 
   multi-column when more projects added */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Individual project card */
.project-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    background: #F5F1EA;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* Screenshot */
.project-img-wrap {
    position: relative;
    overflow: hidden;
    height: 260px;
    margin: 12px 0 12px 12px;
    border-radius: 10px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

/* "Full Build" badge on image */
.project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 100px;
    padding: 4px 12px;
}

/* Project details */
.project-details {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
}

.project-desc {
    font-size: 0.85rem;
    color: #4A4640;
    line-height: 1.75;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 100px;
    padding: 3px 12px;
}

/* Live site link */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.project-link:hover {
    gap: 10px;
    opacity: 0.8;
}

.project-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ══════════════════════
   RESPONSIVE — projects
══════════════════════ */
@media (max-width: 700px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-img-wrap {
        height: 200px;
    }

    .project-details {
        padding: 0 16px 20px;
    }

    .projects-card {
        margin-top: 16px;
    }
}

/* ══════════════════════
   SCROLL PROGRESS BAR
══════════════════════ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #E8886A);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ══════════════════════
   BACK TO TOP BUTTON
══════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(191, 78, 48, 0.35);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 999;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.back-to-top:hover {
    background: #A3401F;
    transform: translateY(-2px);
}

/* Visible state — toggled by JS */
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 700px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* ══════════════════════
   SECONDARY PROJECT CARDS
══════════════════════ */
.projects-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Secondary cards — vertical layout (image on top) */
.project-card--secondary {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
}

.project-card--secondary .project-img-wrap {
    height: 200px;
    margin: 12px 12px 0 12px;
}

.project-card--secondary .project-details {
    padding: 16px 20px 20px;
}

.project-no-link {
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 4px;
}

/* Responsive — stack secondary cards on mobile */
@media (max-width: 700px) {
    .projects-secondary {
        grid-template-columns: 1fr;
    }

    .project-card--secondary .project-img-wrap {
        height: 180px;
        margin: 10px 10px 0 10px;
    }
}