/* ═══════════════════════════════════════════
   Vanessa Neiva — Bento Grid Linktree
   Style: Dark + Bento Masonry (Netflix/IG)
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ── Variables ─────────────────────────── */
:root {
    --bg: rgb(255, 255, 255);
    --bg-light: rgb(245, 245, 247);
    --bg-card: rgb(240, 240, 242);
    --accent: rgb(167, 201, 87);
    --accent-light: rgb(195, 220, 135);
    --accent-dark: rgb(120, 155, 50);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --card-radius: 18px;
    --gap: 10px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(245, 240, 242) 50%, rgb(255, 255, 255) 100%);
    background-color: var(--bg);
    color: #1a1a1a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Container ─────────────────────────── */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 14px 50px;
}

/* ── Hero Section ──────────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 0 8px;
}

.hero__avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 14px;
}

.hero__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--accent);
    box-shadow: 0 0 20px rgba(167, 201, 87, 0.25);
    transition: transform 0.35s var(--ease);
}

.hero__avatar-img:hover {
    transform: scale(1.06);
}

/* Ring animation */
.hero__avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-dark), var(--accent-light), var(--accent));
    opacity: 0.6;
    animation: spin 6s linear infinite;
    z-index: -1;
}

.hero__avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    z-index: -1;
}

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

.hero__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.hero__title {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero__bio {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.65);
    text-align: justify;
    max-width: 90%;
    margin-bottom: 8px;
    hyphens: auto;
}

.hero__socials {
    display: flex;
    gap: 10px;
}

.hero__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(167, 201, 87, 0.12);
    border: 1px solid rgba(167, 201, 87, 0.25);
    color: var(--accent-dark);
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.hero__social-link:hover {
    background: rgba(167, 201, 87, 0.25);
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.hero__social-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* ── Section Title ────────────────────── */
.section-title {
    display: none;
    /* clean Netflix look — no section title */
}

/* ═══════════════════════════════════════════
   GRID — 2 Columns Mobile, 3 Columns Desktop
   ═══════════════════════════════════════════ */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

/* ── Link Card ─────────────────────────── */
.link-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    text-decoration: none;
    color: inherit;
    display: block;
    aspect-ratio: 3 / 4;
}

/* Featured card — full grid width */
.link-card--featured {
    grid-column: 1 / -1;
    aspect-ratio: 900 / 378;
    height: auto;
}

.link-card:hover {
    transform: scale(1.04);
    z-index: 10;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.08);
}

.link-card:active {
    transform: scale(0.97);
}

/* Card Cover — fills entire card */
.link-card__cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.link-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.link-card:hover .link-card__cover img {
    transform: scale(1.08);
}

/* Gradient overlay from bottom */
.link-card__cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(30, 40, 15, 0.85) 0%,
            rgba(30, 40, 15, 0.35) 40%,
            rgba(30, 40, 15, 0.05) 70%,
            transparent 100%);
    pointer-events: none;
}

/* Card Content overlay */
.link-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    z-index: 2;
}

.link-card__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.link-card__subtitle {
    font-size: 0.48rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 2px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Badge */
.link-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transform: scale(0.6) translateY(-4px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-card:hover .link-card__badge {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.link-card__badge svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* Tag */
.link-card__tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 3;
    background: linear-gradient(135deg, #C66777 0%, #a8505f 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}

/* (featured class removed — bento uses equal cards) */

/* ── Footer ────────────────────────────── */
.footer {
    text-align: center;
    padding: 36px 0 16px;
    opacity: 0.35;
}

.footer__text {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.footer__divider {
    width: 20px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 8px;
    border-radius: 1px;
    opacity: 0.4;
}

/* ── Entrance Animations ───────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero {
    animation: fadeInUp 0.6s ease-out;
}

.hero__avatar {
    animation: scaleIn 0.5s ease-out 0.1s both;
}

.hero__name {
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.hero__title {
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.hero__bio {
    animation: fadeInUp 0.5s ease-out 0.32s both;
}

.hero__socials {
    animation: fadeInUp 0.5s ease-out 0.35s both;
}

.link-card {
    animation: scaleIn 0.5s ease-out both;
}

.link-card:nth-child(1) {
    animation-delay: 0.4s;
}

.link-card:nth-child(2) {
    animation-delay: 0.5s;
}

.link-card:nth-child(3) {
    animation-delay: 0.45s;
}

.link-card:nth-child(4) {
    animation-delay: 0.55s;
}

.link-card:nth-child(5) {
    animation-delay: 0.65s;
}

.link-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ── Shimmer loading ───────────────────── */
.link-card__cover.loading {
    background: linear-gradient(110deg, rgb(230, 230, 232) 8%, rgba(255, 255, 255, 0.6) 18%, rgb(230, 230, 232) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* ── Touch ─────────────────────────────── */
@media (hover: none) {
    .link-card:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .link-card__badge {
        display: none;
    }
}

/* ── Small phones (< 360) ──────────────── */
@media (max-width: 359px) {
    .container {
        padding: 0 8px 40px;
    }

    .links-grid {
        gap: 6px;
    }

    .link-card__label {
        font-size: 0.55rem;
    }

    .link-card__subtitle {
        font-size: 0.4rem;
    }

    .link-card__content {
        padding: 8px 7px;
    }

    .hero__name {
        font-size: 1.4rem;
    }

    .hero__bio {
        font-size: 0.75rem;
    }

    .hero__avatar {
        width: 80px;
        height: 80px;
    }

    :root {
        --card-radius: 14px;
    }
}

/* ── Medium phones (360-480) ───────────── */
@media (min-width: 360px) and (max-width: 480px) {
    .links-grid {
        gap: 8px;
    }
}

/* ── Large phones / Small tablets (481-767) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        max-width: 580px;
        padding: 0 20px 60px;
    }

    .links-grid {
        gap: 12px;
    }

    .link-card__label {
        font-size: 0.85rem;
    }

    .link-card__subtitle {
        font-size: 0.55rem;
    }

    .link-card__content {
        padding: 14px 12px;
    }

    :root {
        --card-radius: 20px;
    }
}

/* ── Tablets (768-1023) ────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 720px;
        padding: 0 28px 70px;
    }

    .hero__avatar {
        width: 130px;
        height: 130px;
        margin-bottom: 20px;
    }

    .hero__name {
        font-size: 2.2rem;
    }

    .hero__title {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .hero__bio {
        font-size: 0.95rem;
        max-width: 80%;
        margin-bottom: 10px;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .link-card__label {
        font-size: 1rem;
    }

    .link-card__subtitle {
        font-size: 0.65rem;
    }

    .link-card__content {
        padding: 18px 16px;
    }

    :root {
        --card-radius: 22px;
    }
}

/* ── Desktop (1024+) ───────────────────── */
@media (min-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 32px 80px;
    }

    .hero {
        padding: 56px 0 10px;
    }

    .hero__avatar {
        width: 140px;
        height: 140px;
        margin-bottom: 22px;
    }

    .hero__name {
        font-size: 2.6rem;
    }

    .hero__title {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .hero__bio {
        font-size: 1rem;
        max-width: 75%;
        margin-bottom: 10px;
    }



    .hero__social-link {
        width: 44px;
        height: 44px;
    }

    .hero__social-link svg {
        width: 20px;
        height: 20px;
    }

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

    .link-card__label {
        font-size: 1.15rem;
    }

    .link-card__subtitle {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .link-card__content {
        padding: 22px 20px;
    }

    .link-card__badge {
        width: 34px;
        height: 34px;
        top: 12px;
        right: 12px;
    }

    .link-card__badge svg {
        width: 16px;
        height: 16px;
    }

    .link-card__tag {
        font-size: 0.5rem;
        padding: 3px 10px;
        top: 12px;
        left: 12px;
    }

    :root {
        --card-radius: 24px;
    }
}

/* ── Social Section ────────────────────── */
.social-section {
    margin-top: 48px;
    padding: 0 4px;
}

.social-section__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Social Rows ───────────────────────── */
.social-row {
    display: flex;
    align-items: center;
    background: #f4f4f6;
    border-radius: 18px;
    padding: 16px 20px;
    text-decoration: none;
    color: #555;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.social-row:hover {
    transform: translateY(-2px);
    background: #ebebed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.social-row:active {
    transform: translateY(0);
}

.social-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    color: #7a9c37;
}

.social-row__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.social-row__text {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════
   LEAD CAPTURE MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #999;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease);
    line-height: 1;
}

.modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(167, 201, 87, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.modal__icon svg {
    width: 26px;
    height: 26px;
    fill: var(--accent);
}

.modal__icon--success {
    background: rgba(167, 201, 87, 0.15);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal__icon--success svg {
    fill: var(--accent-dark);
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.modal__title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 6px;
}

.modal__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    outline: none;
    transition: all 0.25s var(--ease);
}

.modal__field input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.modal__field input:focus {
    border-color: var(--accent);
    background: rgba(167, 201, 87, 0.04);
    box-shadow: 0 0 0 3px rgba(167, 201, 87, 0.12);
}

.modal__field input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.03);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.modal__submit {
    width: 100%;
    padding: 15px 24px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    transition: all 0.3s var(--ease);
    letter-spacing: 0.01em;
}

.modal__submit:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(167, 201, 87, 0.3);
}

.modal__submit:active {
    transform: translateY(0);
}

.modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modal__spinner {
    width: 18px;
    height: 18px;
    animation: spinLoader 0.8s linear infinite;
}

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

/* ── Modal Small Screen ────────────────── */
@media (max-width: 400px) {
    .modal {
        padding: 32px 22px 28px;
        border-radius: 20px;
    }

    .modal__title {
        font-size: 1.15rem;
    }

    .modal__desc {
        font-size: 0.8rem;
    }

    .modal__field input {
        padding: 12px 14px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .modal__submit {
        padding: 13px 20px;
        border-radius: 12px;
        font-size: 0.9rem;
    }
}

/* ── Reduced Motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}