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

:root {
    --card-radius: 12px;
    --max-mobile: 430px;
}

html,
body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111;
    color: #fff;
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

/* ─── Share button ────────────────────────────────────────── */
.share-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.18s;
}
.share-btn:hover {
    transform: scale(1.12);
}
.share-btn img {
    width: 28px;
    height: 28px;
    display: block;
}

/* ─── Logo ────────────────────────────────────────────────── */
.logo-wrap {
    position: relative;
    z-index: 5;
    margin-top: clamp(60px, 12vh, 120px);
    margin-bottom: clamp(28px, 5vh, 60px);
}
.logo {
    height: clamp(36px, 6vw, 52px);
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

/* ─── Cards ───────────────────────────────────────────────── */
.cards {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 680px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0;
    padding: 7px 14px 7px 8px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.16s,
        box-shadow 0.16s;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.26);
}
.card:active {
    transform: scale(0.985);
}

.card-thumb {
    width: 44px;
    height: 44px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.card-title {
    flex: 1;
    font-family: "Instrument Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #111;
    text-align: center;
}

.card-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    color: #888;
    border-radius: 6px;
    transition: background 0.14s;
    flex-shrink: 0;
}
.card-menu-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

/* ─── Card Context Menu ───────────────────────────────────── */
.card-menu {
    position: absolute;
    z-index: 200;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 160px;
    animation: menuIn 0.14s ease;
}
.card-menu.active {
    display: flex;
}

.card-menu button {
    background: none;
    border: none;
    text-align: left;
    padding: 13px 18px;
    font-size: 14px;
    cursor: pointer;
    color: #111;
    transition: background 0.12s;
}
.card-menu button:hover {
    background: #f2f2f2;
}
.card-menu button + button {
    border-top: 1px solid #eee;
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 680px;
    padding: 28px 20px 32px;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.dev-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.dev-logo {
    height: 52px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.18s;
}
.dev-credit:hover .dev-logo {
    opacity: 1;
}

.contact-block {
    text-align: right;
}
.contact-label {
    display: block;
    font-family: "Instrument Sans", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2px;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px 6px;
}
.contact-link {
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.15s;
}
.contact-link:hover {
    opacity: 0.75;
}
.contact-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

/* ─── Share Modal ─────────────────────────────────────────── */
.share-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}
.share-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.share-modal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: var(--max-mobile);
    padding: 24px 20px 36px;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    color: #111;
}
.share-overlay.active .share-modal {
    transform: translateY(0);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 600;
}
.share-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    transition: background 0.14s;
}
.share-close:hover {
    background: #e0e0e0;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111;
    font-size: 12px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
}
.share-item:hover {
    transform: scale(1.06);
}

.share-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}
.share-icon-wrap.linkedin {
    background: #0077b5;
}
.share-icon-wrap.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.share-icon-wrap.email {
    background: #ea4335;
}
.share-icon-wrap.phone {
    background: #34c759;
}
.share-icon-wrap.whatsapp {
    background: #25d366;
}
.share-icon-wrap.copy {
    background: #636366;
}
.share-icon-wrap.copied {
    background: #34c759;
}

/* ─── Desktop enhancement ────────────────────────────────── */
@media (min-width: 600px) {
    .logo {
        height: 52px;
    }

    .cards {
        padding: 0 24px;
    }

    .card {
        padding: 10px 18px 10px 8px;
        gap: 18px;
    }

    .card-thumb {
        width: 52px;
        height: 52px;
    }

    .card-title {
        font-size: 16px;
    }

    .footer {
        padding: 36px 24px 40px;
    }

    /* On desktop, share modal becomes a centered dialog */
    .share-overlay {
        align-items: center;
    }
    .share-modal {
        border-radius: 20px;
        max-width: 400px;
        padding: 28px 24px 36px;
    }

    .share-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 12px;
    }

    .share-icon-wrap {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .share-item {
        font-size: 13px;
    }
}

@media (min-width: 900px) {
    .logo-wrap {
        margin-top: 100px;
    }
    .cards {
        max-width: 560px;
    }
    .card {
        border-radius: 0;
    }
    .footer {
        max-width: 560px;
    }
    .contact-link {
        font-size: 17px;
    }
}
