/* ============================================================
   Lins Company — Link Bio
   Style Reference: LINS COMPANY.jpg
   Theme: Dark (#080808 bg), Purple (#6632b8) accents
   ============================================================ */

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

:root {
    --bg:           #080808;
    --purple:       #6632b8;
    --purple-hover: #7a40d4;
    --purple-glow:  rgba(102, 50, 184, 0.55);
    --white:        #ffffff;
    --text-light:   rgba(255, 255, 255, 0.90);
    --text-muted:   rgba(255, 255, 255, 0.40);
    --font-brand:   'Syne', sans-serif;
    --font-brush:   'Permanent Marker', cursive;
    --font-body:    'Outfit', sans-serif;
    --radius-btn:   14px;
    --radius-logo:  28px;
    --radius-card:  18px;
}

/* ─── Base ─────────────────────────────────────────────────── */
body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 44px 20px 60px;
    overflow-x: hidden;
    position: relative;
}

/* ─── Particle canvas ───────────────────────────────────────── */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ─── Crosshatch grid overlay ──────────────────────────────── */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 38px,
            rgba(255, 255, 255, 0.038) 38px,
            rgba(255, 255, 255, 0.038) 39px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 38px,
            rgba(255, 255, 255, 0.038) 38px,
            rgba(255, 255, 255, 0.038) 39px
        );
    z-index: 0;
    pointer-events: none;
}

/* ─── Wrapper ──────────────────────────────────────────────── */
.wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    position: relative;
}

/* ─── Hero background image ─────────────────────────────────── */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Cover the top portion of the screen down to the first button */
    height: 630px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.5) saturate(0.9);
}

/* Gradient fade: transparent at top → solid #080808 at bottom (630px) */
.hero-bg-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0) 0%,
        rgba(8, 8, 8, 0) 50%,
        rgba(8, 8, 8, 0.7) 80%,
        #080808 100%
    );
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 28px;
}

/* Logo + pulse ring */
.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-logo);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;   /* allow ring to bleed outside */
    margin-bottom: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

/* Animated purple pulse ring around logo */
.logo-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: calc(var(--radius-logo) + 6px);
    border: 2px solid var(--purple);
    animation: pulseRing 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 0.10; transform: scale(1.10); }
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-logo);
}

/* Brand title */
.profile-title {
    font-family: var(--font-brand);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

/* ─── Social icons ──────────────────────────────────────────── */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
    box-shadow: 0 4px 16px rgba(102, 50, 184, 0.40);
}

.social-link:hover {
    background: var(--purple-hover);
    transform: translateY(-4px) scale(1.10);
    box-shadow: 0 8px 28px rgba(102, 50, 184, 0.60);
}

.social-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   LIVE SITE PREVIEW CARD
═══════════════════════════════════════════════════════════ */
.site-preview-wrapper {
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(102, 50, 184, 0.12);
    margin-bottom: 16px;
    background: #111;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.28s ease;
}

.site-preview-wrapper:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 36px rgba(102, 50, 184, 0.35),
        0 0 0 1.5px rgba(102, 50, 184, 0.30);
}

.link-btn-integrated {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: var(--purple);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.22s ease, color 0.22s ease;
}

.site-preview-wrapper:hover .link-btn-integrated {
    background: var(--purple-hover);
}

/* Browser chrome bar */
.browser-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.bdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.bdot-red    { background: #ff5f57; }
.bdot-yellow { background: #ffbd2e; }
.bdot-green  { background: #28c840; }

.browser-url-bar {
    flex: 1;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-url-bar svg {
    flex-shrink: 0;
    opacity: 0.55;
}

.browser-open-btn {
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.18s ease, transform 0.18s ease;
}
.browser-open-btn:hover {
    color: var(--purple-hover);
    transform: scale(1.15);
}

/* iframe viewport — now used as the clickable screenshot container */
.iframe-viewport {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0a0a0a;
    display: block;          /* it's now an <a> tag */
    text-decoration: none;
    cursor: pointer;
}

/* Real screenshot image from thum.io */
.site-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.45s ease;
}

.iframe-viewport:hover .site-screenshot-img {
    transform: scale(1.03);
}

/* Hover overlay with CTA label */
.preview-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.60) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.iframe-viewport:hover .preview-hover-overlay {
    opacity: 1;
}

.preview-cta-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: rgba(102, 50, 184, 0.88);
    border-radius: 20px;
    padding: 5px 18px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════════════════
   LINKS / BUTTONS
═══════════════════════════════════════════════════════════ */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 44px;
}

/* Base button */
.link-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: var(--purple);
    color: var(--white);
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background 0.22s ease, transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.22s ease;
    box-shadow: 0 4px 18px rgba(102, 50, 184, 0.30);
    border: none;
}

.link-btn:hover {
    background: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102, 50, 184, 0.50);
}

.link-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 10px rgba(102, 50, 184, 0.25);
}

/* Icon inside button */
.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.90;
}

.btn-text {
    text-align: center;
}

/* ── Shimmer sweep animation on buttons ─────────────────────── */
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 80%
    );
    transform: skewX(-20deg);
    animation: shimmerSweep 3.2s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0%   { left: -100%; }
    40%, 100% { left: 160%; }
}

/* Two-column row */
.btn-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.btn-row .link-btn {
    flex: 1;
    font-size: 13px;
    padding: 16px 12px;
}

/* ═══════════════════════════════════════════════════════════
   NOSSOS CLIENTES
═══════════════════════════════════════════════════════════ */
.customers-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.customers-title {
    font-family: var(--font-brush);
    font-size: 44px;
    color: var(--purple);
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.05;
    letter-spacing: 1px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.45);
    animation: titlePulse 3s ease-in-out infinite alternate;
}

/* ─── Carousel ──────────────────────────────────────────────── */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-track-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 16px 0;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    width: 100%;
    list-style: none;
    transition: transform 0.42s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* One slide shown at a time — full width, always centered */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.polaroid-frame {
    width: 100%;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.30);
    transition: box-shadow 0.3s ease;
}

.carousel-slide.active .polaroid-frame {
    box-shadow:
        0 8px 32px rgba(102, 50, 184, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.40);
    border-color: rgba(102, 50, 184, 0.25);
}

.carousel-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

/* Arrow buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(102, 50, 184, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
}

.carousel-btn:hover {
    background: var(--purple-hover);
    transform: translateY(-50%) scale(1.10);
    box-shadow: 0 6px 20px rgba(102, 50, 184, 0.50);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.prev-btn { left: 2px; }
.next-btn { right: 2px; }

/* Dots */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--purple);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 50, 184, 0.50);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.profile-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 24px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 20px;
    width: 100%;
}

.dev-signature {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--purple);
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
═══════════════════════════════════════════════════════════ */
.pop-in {
    opacity: 0;
    transform: scale(0.82);
    animation: popIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.10s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(22px);
    animation: fadeInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.80s ease forwards;
}

/* Scroll-reveal (triggered by IntersectionObserver in JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.70s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.70s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.20s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.46s; }
.delay-5 { animation-delay: 0.54s; }
.delay-6 { animation-delay: 0.62s; }
.delay-7 { animation-delay: 0.70s; }
.delay-8 { animation-delay: 0.78s; }

@keyframes fadeIn    { to { opacity: 1; } }
@keyframes popIn     { to { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp  { to { opacity: 1; transform: translateY(0); } }

@keyframes titlePulse {
    0%   { transform: scale(1)    rotate(-1deg); }
    50%  { transform: scale(1.05) rotate(0deg); }
    100% { transform: scale(1)    rotate(1deg); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
 ═══════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
    body { padding: 32px 14px 50px; }

    .logo-container  { width: 104px; height: 104px; border-radius: 24px; }
    .profile-title   { font-size: 30px; }
    .social-link     { width: 46px; height: 46px; }
    .link-btn        { font-size: 14px; padding: 16px 18px; }
    .btn-row .link-btn { font-size: 12px; padding: 14px 10px; }
    .customers-title { font-size: 36px; }

    .prev-btn { left: -2px; }
    .next-btn { right: -2px; }

    .iframe-viewport { height: 180px; }

    .hero-bg-img {
        object-position: right top;
    }
}
