/* ============================================================
   HERO SECTION
   Hero section styles with responsive design
   ============================================================ */

.hero-section {
    background-color: var(--home-bg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2xl);
}

/* Hero Container */
.hero {
    max-width: 420px;
    padding: var(--spacing-3xl) var(--spacing-xl);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0 auto;
}

/* Socials */
.hero-socials {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: 5px;
    justify-content: center;
}

/* Mobile variant - visible only on mobile */
.hero-socials--mobile {
    display: flex;
}

/* Desktop variant - visible only on desktop/tablet */
.hero-socials--desktop {
    display: none;
    margin-bottom: 0;
}

.hero-socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.hero-socials a:hover {
    background: rgba(255,255,255,0.15);
}

/* Language */
.hero-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.hero-lang .lang {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.hero-lang .lang.active {
    color: var(--accent);
}

.hero-lang .lang:hover {
    color: var(--text-secondary);
}

.hero-lang .flag {
    font-size: var(--text-base);
}

/* Hero Language Switcher - Mobile Only */
.nav-lang-hero {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 8px;
    justify-content: center;
    width: 100%;
    margin-left: 6px;
}

.nav-lang-hero .lang {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 8px;
    transition: all var(--transition-fast);
}

.nav-lang-hero .lang:hover {
    color: var(--accent);
}

.nav-lang-hero .lang.active {
    color: var(--accent);
}

.nav-lang-hero .lang img {
    width: var(--img-sm);
    height: var(--img-sm);
    border-radius: var(--radius-full);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-lang-hero .lang:hover img,
.nav-lang-hero .lang.active img {
    opacity: 1;
}

/* Status */
.hero-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 4px 4px;
    background: rgba(60,255,143,0.15);
    color: var(--success);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    margin: 0 auto var(--spacing-2xl) auto;
    width: 90px;
}


.hero-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--success);
    box-shadow: 0 0 10px rgba(60,255,143,0.9);
}

/* Hero Content Container */
.hero-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Hero Image Container */
.hero-image-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
}

/* Hero Image */
.hero-image {
    transition: 0.6s ease-in-out;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: fadeInImage 0.6s ease-in-out forwards;
}

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

/* Greeting */
.hero-greeting {
    display: flex;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-lg);
    width: fit-content;
}

/* Title */
.hero-title {
    font-size: 48px;
    line-height: 1.08;
    margin: 0 0 var(--spacing-md);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
}

/* Role */
.hero-role {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

/* Actions container (left column in desktop) */
.hero-actions {
    display: flex;
    flex-direction: column;
}

/* Buttons container */
.hero-actions-buttons {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: var(--spacing-xs);
    justify-content: center;
    height: 100%
}

.link-cv {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-cv:hover {
    text-decoration: underline;
}

.link-cv .download-icon {
    width: var(--img-xs);
    height: var(--img-xs);
}

.btn-chat {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn-chat .whatsapp-icon {
    fill: var(--accent);
    width: var(--img-sm);
    height: var(--img-sm);
}

.btn-chat:hover {
    background: var(--accent);
    color: #fff;
}

.btn-chat:hover img {
    filter: brightness(0) invert(1);
}

.btn-chat:hover .whatsapp-icon {
    fill: #fff;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet (768px - 1600px) */
@media (min-width: 768px) {
    /* Hide mobile variant on tablet/desktop */
    .hero-socials--mobile {
        display: none;
    }

    /* Show desktop variant on tablet/desktop */
    .hero-socials--desktop {
        display: flex;
    }

    .hero {
        padding: var(--spacing-4xl) var(--spacing-3xl);
    }

    /* Tablet layout - simpler, still uses 3-column but more compact */
    .hero-content {
        display: flex;
        justify-content:center;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-content .hero-container {
        width: 600px;
        max-width: 400px;
        height: 400px;
        justify-content: center;
    }

    .hero-actions {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-center {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
    }

    .hero-right {
        flex: 0 0 auto;
    }

    .hero-socials--desktop {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .hero {
        padding: var(--spacing-4xl) var(--spacing-3xl);
    }

    /* Tablet layout - simpler, still uses 3-column but more compact */
    .hero-content {
        display: flex;
        justify-content:center;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-content .hero-container {
        width: 600px;
        max-width: 400px;
        height: 400px;
        justify-content: center;
    }

    .hero-actions {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-center {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
    }

    .hero-right {
        flex: 0 0 auto;
    }

    .hero-socials--desktop {
        flex-direction: row;
        gap: 14px;
    }

    .hero-title {
        font-size: 56px;
        margin-bottom: var(--spacing-lg);
    }

    .hero-role {
        font-size: var(--text-lg);
    }

    /* Hide lang and status on tablet/desktop (they appear in the menu) */
    .hero-lang,
    .hero-status,
    .nav-lang-hero {
        display: none;
    }

    /* Hero Image - Tablet */
    .hero-image {
        margin: 0;
    }

    .hero-image-container {
        width: 100%;
        max-width: 350px;
        overflow: visible;
    }
}

/* Desktop (> 1024px) */
@media (min-width: 1600) {
    .hero {
        padding: 80px 60px;
        max-width: var(--container-3xl);
    }

    /* Desktop 3-column layout */
    .hero-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
        flex-direction: row;
        max-width: 85%;
        margin: var(--spacing-2xl) auto 0 auto;
    }
      .hero-content .hero-container {
        width: 500px;
        max-width: 400px;
        height: 400px;
        justify-content: center;
    }

    /* Left column - Text content and actions */
    .hero-actions {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Center column - Hero image */
    .hero-center {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    /* Right column - Social icons */
    .hero-right {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
    }

    .hero-socials--desktop {
        flex-direction: row;
        gap: 14px;
    }

    .hero-greeting {
        margin-bottom: var(--spacing-lg);
    }

    .hero-title {
        font-size: 64px;
        margin-bottom: var(--spacing-lg);
    }

    .hero-role {
        font-size: var(--text-lg);
    }

    .hero-actions {
        gap: var(--spacing-xl);
    }

    .btn-chat {
        padding: 6px 10px;
        font-size: var(--text-base);
    }

    /* Hero Image - Desktop */
    .hero-image {
        object-position: center;
    }

    .hero-image-container {
        width: 100%;
        max-width: 400px;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small mobile adjustments */
@media (max-width: 375px) {
    .hero {
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-role {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .hero-image {
        margin-top: var(--spacing-2xl);
        margin-left: 2.5%;
    }
}
