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

:root {
    --max-w: 480px;
    --px: 24px;
    --gap: 10px;
    --radius: 22px;
    --bg: #060606;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(110,70,220,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 60% 35% at 85% 95%, rgba(200,50,90,0.10) 0%, transparent 55%);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: rgba(255,255,255,0.95);
    min-height: 100svh;
    display: flex;
    justify-content: center;
}

/* ========================
   PAGE WRAPPER
   ======================== */
.page-wrapper {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ========================
   HERO
   ======================== */
.hero {
    position: relative;
    width: 100%;
    height: 64svh;
    max-height: 560px;
    min-height: 380px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero__photo {
    position: absolute;
    inset: 0;
    background-image: url('assets/profile.png');
    background-size: cover;
    background-position: center top;
    animation: photoBreathe 20s ease-in-out infinite alternate;
}

@keyframes photoBreathe {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        transparent 40%,
        rgba(0,0,0,0.20) 62%,
        rgba(0,0,0,0.72) 82%,
        rgba(6,6,6,1.00) 100%
    );
}

.hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 var(--px) 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.profile-name {
    font-size: clamp(24px, 6.5vw, 32px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 7px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.7);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.verified-badge svg { width: 22px; height: 22px; }

.profile-handle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.60);
    letter-spacing: 0.01em;
}

.profile-role {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ========================
   STICKY HEADER
   ======================== */
.sticky-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(6,6,6,0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-header--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sticky-header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-header__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.14);
}

.sticky-header__name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.sticky-header__name .verified-badge svg { width: 15px; height: 15px; }

/* ========================
   CONTENT
   ======================== */
.content {
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 36px;
    padding-bottom: 72px;
    animation: fadeIn 0.5s ease 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========================
   SOCIAL PILLS
   ======================== */
.socials-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 0 var(--px);
    width: 100%;
}

.social-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.18s ease;
}

.social-pill svg { width: 26px; height: 26px; flex-shrink: 0; }

.social-pill:active { transform: scale(0.84); transition-duration: 0.08s; }

/* Staggered pop on load */
.socials-row .social-pill:nth-child(1) { animation: pillPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.20s both; }
.socials-row .social-pill:nth-child(2) { animation: pillPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.27s both; }
.socials-row .social-pill:nth-child(3) { animation: pillPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.34s both; }
.socials-row .social-pill:nth-child(4) { animation: pillPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.41s both; }
.socials-row .social-pill:nth-child(5) { animation: pillPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.48s both; }
.socials-row .social-pill:nth-child(6) { animation: pillPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.55s both; }

@keyframes pillPop {
    0%   { opacity: 0; transform: scale(0.3) rotate(-12deg); }
    60%  { transform: scale(1.2) rotate(4deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ========================
   FOLLOWERS
   ======================== */
.followers-static {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.50);
    margin-bottom: 0;
    list-style: none;
    letter-spacing: 0.01em;
}

.followers-count {
    font-weight: 700;
    font-size: 13px;
    color: rgba(255,255,255,0.90);
    display: inline-block;
}

/* ========================
   NETWORK GRID
   ======================== */
.net-grid {
    width: 100%;
    padding: 22px var(--px) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

/* ── Base card ── */
.net-card {
    display: flex;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.025) 100%);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 2px 20px rgba(0,0,0,0.45);
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        border-color 0.20s ease,
        background 0.20s ease;
}

.net-card:active { transform: scale(0.96); transition-duration: 0.09s; }

/* ── Full-width card ── */
.net-card--full {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    padding: 20px 22px;
    gap: 16px;
    min-height: 86px;
}

/* ── Half-width card ── */
.net-card--half {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 18px 18px;
    min-height: 158px;
}

/* Icons */
.net-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.net-card__icon svg { width: 28px; height: 28px; }
.net-card--full .net-card__icon svg { width: 30px; height: 30px; }
.net-card--half .net-card__icon svg { width: 32px; height: 32px; }

/* Text */
.net-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.net-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.net-card--half .net-card__name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.net-card__handle {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
}

.net-card__arrow {
    width: 18px; height: 18px;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* ========================
   INSTAGRAM TOGGLE CARD
   ======================== */
.net-card--instagram {
    grid-column: span 2;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg,
        rgba(64,93,230,0.60) 0%,
        rgba(131,58,180,0.65) 25%,
        rgba(225,48,108,0.70) 55%,
        rgba(253,29,29,0.65) 78%,
        rgba(252,176,69,0.55) 100%);
    border: none;
    box-shadow: 0 4px 30px rgba(225,48,108,0.20);
}

.ig-toggle__header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 22px;
    gap: 16px;
    min-height: 86px;
    width: 100%;
}

.ig-toggle__chevron {
    width: 20px; height: 20px;
    color: rgba(255,255,255,0.80);
    flex-shrink: 0;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.net-card--instagram.ig-open .ig-toggle__chevron { transform: rotate(180deg); }

.ig-toggle__photos {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.50s cubic-bezier(0.16, 1, 0.3, 1);
}

.net-card--instagram.ig-open .ig-toggle__photos { max-height: 620px; }

.ig-card__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.ig-card__post {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    position: relative;
}

.ig-card__post img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.ig-card__post::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.25s ease;
}

/* ========================
   BRAND CARDS — glass tints
   ======================== */

/* TikTok */
.net-card--tiktok {
    background: linear-gradient(145deg, rgba(254,44,85,0.15) 0%, rgba(37,244,238,0.08) 100%);
    border-color: rgba(254,44,85,0.18);
}
.net-card--tiktok::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(254,44,85,0.18) 0%, transparent 50%),
        radial-gradient(circle at 15% 80%, rgba(37,244,238,0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* Facebook */
.net-card--facebook {
    background: linear-gradient(145deg, rgba(24,119,242,0.35) 0%, rgba(24,119,242,0.12) 100%);
    border-color: rgba(24,119,242,0.28);
}

/* YouTube */
.net-card--youtube {
    background: linear-gradient(145deg, rgba(255,0,0,0.28) 0%, rgba(255,0,0,0.08) 100%);
    border-color: rgba(255,0,0,0.22);
}

/* Discord */
.net-card--discord {
    background: linear-gradient(145deg, rgba(88,101,242,0.38) 0%, rgba(88,101,242,0.12) 100%);
    border-color: rgba(88,101,242,0.30);
}

/* Threads */
.net-card--threads {
    background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(255,255,255,0.10);
}

/* X */
.net-card--x {
    background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(255,255,255,0.12);
}

/* LinkedIn */
.net-card--linkedin {
    background: linear-gradient(145deg, rgba(10,102,194,0.38) 0%, rgba(10,102,194,0.12) 100%);
    border-color: rgba(10,102,194,0.30);
}

/* Portfolio */
.net-card--portfolio {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    padding: 26px 24px;
    gap: 18px;
    min-height: 96px;
    background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 40px rgba(0,0,0,0.30);
}

.net-card__name--lg { font-size: 17px; font-weight: 800; }

/* ========================
   VIDEO REEL CARD
   ======================== */
.net-card--reel {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 4px 32px rgba(0,0,0,0.60);
    cursor: default;
}

.net-card--reel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel__bottom {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    pointer-events: none;
}

.reel__mute-btn {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.52);
    border: 1px solid rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.90);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.20s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), border-color 0.20s ease;
}

.reel__mute-btn:active { transform: scale(0.86); transition-duration: 0.08s; }

.reel__mute-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.reel__icon-muted { display: block; }
.reel__icon-sound  { display: none; }
.reel__mute-btn.reel-unmuted .reel__icon-muted { display: none; }
.reel__mute-btn.reel-unmuted .reel__icon-sound  { display: block; }

/* ========================
   CARD SCROLL-REVEAL
   JS adds .card-revealed
   ======================== */
.net-card.card-revealed {
    animation: revealUp 0.60s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================
   HOVER — mouse/trackpad only
   ======================== */
@media (hover: hover) {
    .net-card:hover {
        transform: translateY(-5px) scale(1.02);
        background: linear-gradient(145deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.05) 100%);
        border-color: rgba(255,255,255,0.16);
        box-shadow: 0 22px 55px rgba(0,0,0,0.55);
    }

    .net-card:hover .net-card__arrow {
        transform: translate(2px, -2px);
        color: rgba(255,255,255,0.80);
    }

    .social-pill:hover {
        transform: translateY(-4px) scale(1.14);
        background: rgba(255,255,255,0.06);
    }

    .net-card--instagram:hover {
        box-shadow: 0 22px 60px rgba(225,48,108,0.38);
        border-color: rgba(255,255,255,0.14);
    }

    .net-card--tiktok:hover {
        box-shadow: 0 22px 55px rgba(254,44,85,0.25), 0 22px 55px rgba(37,244,238,0.12);
    }

    .net-card--facebook:hover { box-shadow: 0 22px 55px rgba(24,119,242,0.35); }
    .net-card--youtube:hover  { box-shadow: 0 22px 55px rgba(255,0,0,0.30); }
    .net-card--discord:hover  { box-shadow: 0 22px 55px rgba(88,101,242,0.38); }
    .net-card--linkedin:hover { box-shadow: 0 22px 55px rgba(10,102,194,0.35); }

    .net-card--portfolio:hover {
        box-shadow: 0 22px 55px rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.26);
    }

    .net-card--reel:hover {
        transform: none;
        box-shadow: 0 8px 44px rgba(0,0,0,0.65);
        border-color: rgba(255,255,255,0.16);
    }

    .reel__mute-btn:hover {
        background: rgba(255,255,255,0.18);
        border-color: rgba(255,255,255,0.32);
        transform: scale(1.12);
    }

    .ig-card__post:hover img { transform: scale(1.08); }
    .ig-card__post:hover::after { background: rgba(0,0,0,0.15); }
}

/* ========================
   TOUCH — feedback sin hover
   ======================== */
@media (hover: none) {
    .net-card:active {
        transform: scale(0.95);
        filter: brightness(0.88);
        transition-duration: 0.08s;
    }

    .net-card--reel:active { transform: none; filter: none; }

    .social-pill:active {
        transform: scale(0.80);
        transition-duration: 0.08s;
    }

    .reel__mute-btn:active {
        background: rgba(255,255,255,0.22);
        transform: scale(0.86);
    }

    .ig-card__post:active::after { background: rgba(0,0,0,0.18); }
}

/* ========================
   SMALL MOBILE ≤ 360px
   ======================== */
@media (max-width: 360px) {
    :root { --px: 16px; }
    .social-pill svg { width: 22px; height: 22px; }
    .profile-name { font-size: 22px; }
    .net-card--half { min-height: 138px; }
}

/* ========================
   TABLET ≥ 600px
   ======================== */
@media (min-width: 600px) {
    :root {
        --max-w: 540px;
        --px: 28px;
        --gap: 12px;
    }

    .hero { height: 55svh; max-height: 500px; }

    .net-card--full  { min-height: 92px; }
    .net-card--half  { min-height: 168px; }
}

/* ========================
   DESKTOP ≥ 900px
   ======================== */
@media (min-width: 900px) {
    :root {
        --max-w: 620px;
        --px: 36px;
        --gap: 14px;
        --radius: 24px;
    }

    .hero { height: 52svh; max-height: 520px; }

    .net-card--full  { min-height: 96px; }
    .net-card--half  { min-height: 176px; }

    .net-card--half .net-card__icon svg { width: 36px; height: 36px; }
    .net-card--full .net-card__icon svg { width: 32px; height: 32px; }

    .net-card--half .net-card__name { font-size: 18px; }
}
