/* ============================================
   Ana Carolina Bosso - Editorial Luxury
   Bodoni Moda + Perfected Soft Transitions
   ============================================ */

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

:root {
    --bg-dark: #3d2b24;
    --bg-card: linear-gradient(135deg, #c9b8a8 0%, #b8a494 50%, #a89282 100%);
    --card-fade: #a89282;
    --text-dark: #2a1f1a;
    --text-light: #d4c4b5;
    --text-muted: rgba(212, 196, 181, 0.7);
    --accent: #8b7355;
    --font-display: 'Bodoni Moda', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-light);
}

/* Main Layout */
.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Content Side */
.content-side {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    max-width: 620px;
    margin-left: auto;
}

/* Header - Centered */
.header {
    margin-bottom: 10px;
    text-align: center;
}

.name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--text-light);
}

.name span {
    font-style: normal;
    font-weight: 500;
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
}

.social-icons a {
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-icons svg {
    width: 22px;
    height: 22px;
}

/* Links Container */
.links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Link Cards */
.link-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border-radius: 10px;
    text-decoration: none;
    overflow: hidden;
    min-height: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Card Image with Subtle Edge Transition */
.card-image {
    width: 180px;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

/* Specific adjustment for Lampadina image to show both faces */
.card-image-lampadina img {
    object-position: center 30%;
}

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

/* Subtle edge-only transition - NO blur, just gradient at the very edge */
.image-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(168, 146, 130, 0.4) 40%,
            rgba(168, 146, 130, 0.7) 70%,
            var(--card-fade) 100%);
    pointer-events: none;
}

.card-content {
    flex: 1;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

/* Logo in cards - BIGGER and WHITE */
.logo-wrapper {
    display: flex;
    align-items: center;
    min-height: 55px;
}

.card-logo {
    max-height: 70px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.link-card:hover .card-logo {
    transform: scale(1.03);
}

.card-content p {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(42, 31, 26, 0.75);
}

/* Highlighted text with underline effect */
.card-content em {
    font-style: normal;
    background: linear-gradient(to bottom, transparent 55%, rgba(139, 115, 85, 0.35) 55%);
    padding: 0 2px;
}

/* Right Photo Side with Gradient Transition */
.photo-side {
    position: relative;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Gradient overlay that blends photo with dark background */
.photo-gradient {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(to right,
            var(--bg-dark) 0%,
            rgba(61, 43, 36, 0.95) 20%,
            rgba(61, 43, 36, 0.7) 40%,
            rgba(61, 43, 36, 0.3) 70%,
            transparent 100%);
    pointer-events: none;
}

/* ============================================
   Responsive - Mobile Version
   ============================================ */

@media (max-width: 1100px) {
    .content-side {
        padding: 50px 40px;
        max-width: 100%;
    }

    .card-image {
        width: 150px;
        min-width: 150px;
    }

    .card-logo {
        max-height: 55px;
        max-width: 180px;
    }

    .image-fade {
        width: 30px;
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .photo-side {
        order: -1;
        height: 50vh;
        min-height: 400px;
    }

    /* Fix mobile hero photo to show face and hand */
    .hero-photo {
        object-position: center top;
    }

    .photo-gradient {
        width: 100%;
        height: 25%;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top,
                var(--bg-dark) 0%,
                rgba(61, 43, 36, 0.8) 40%,
                transparent 100%);
    }

    .content-side {
        padding: 40px 30px 60px;
        text-align: center;
        justify-content: flex-start;
    }

    .header {
        margin-bottom: 0;
    }

    .logo-wrapper {
        justify-content: center;
    }

    .card-content p {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .photo-side {
        height: 50vh;
        min-height: 350px;
    }

    /* Ensure face and hand visible on smaller phones */
    .hero-photo {
        object-position: center top;
    }

    .content-side {
        padding: 30px 16px 50px;
        gap: 25px;
    }

    .name {
        font-size: 1.9rem;
    }

    .links {
        gap: 14px;
    }

    /* Keep horizontal layout on mobile - photo left, text right */
    .link-card {
        flex-direction: row;
        min-height: 110px;
        border-radius: 10px;
    }

    .card-image {
        width: 100px;
        min-width: 100px;
        height: auto;
    }

    .card-image img {
        object-position: center center;
    }

    .card-image-lampadina img {
        object-position: center 25%;
    }

    /* Horizontal fade for mobile - same as desktop */
    .image-fade {
        width: 25px;
        height: auto;
        top: 0;
        bottom: 0;
        right: 0;
        background: linear-gradient(to right,
                transparent 0%,
                rgba(168, 146, 130, 0.5) 50%,
                var(--card-fade) 100%);
    }

    .card-content {
        text-align: left;
        padding: 14px 16px;
        gap: 8px;
    }

    .card-content p {
        text-align: left;
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .card-logo {
        max-height: 40px;
        max-width: 140px;
    }

    .logo-wrapper {
        min-height: 35px;
        justify-content: flex-start;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.header {
    animation: fadeUp 0.7s ease-out;
}

.link-card {
    animation: fadeUp 0.6s ease-out backwards;
}

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

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

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

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

/* ============================================
   WhatsApp Floating Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}