#hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero:before {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-left: 30px;  /* Move o texto para a direita */
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 0;
    object-fit: cover;
    display: block;
}

/* Botão do Portfolio */
.portfolio-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Ajuste da largura do menu lateral */
.header {
    width: 250px !important;
}

@media (min-width: 1200px) {
    .header~main,
    .header~#footer {
        margin-left: 250px !important;
    }
}

/* Matched Rule from regular */
section, .section {
    padding-bottom: 60px;
}

/* Portfolio items - proporção 16:9 para todos */
.portfolio-item .portfolio-content video,
.portfolio-item .portfolio-content img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Remover animações de transição do Isotope */
.isotope,
.isotope .isotope-item {
    transition-duration: 0s !important;
}

.isotope-item {
    transition: none !important;
}

/* Adjust padding for the Stats section */
#stats {
    padding-top: 0px !important;
    padding-bottom: 20px !important;
}

/* Adjust bottom padding for the Habilidades section */
#skills {
    padding-bottom: 50px; /* Increase bottom padding */
}

/* Adjust bottom padding for the Resumo section */
.section-title {
    padding-bottom: 20px; /* Reduced bottom padding */
}

/* Skills section - garantir alinhamento das estrelas em mobile */
.skill-item {
    margin-bottom: 1.5rem !important;
}

.skill-item .d-flex {
    flex-wrap: nowrap !important;
}

.skill-name {
    flex: 0 1 auto;
    max-width: calc(100% - 150px);
    word-wrap: break-word;
    line-height: 1.3;
}

.skill-stars {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 2px;
}

.skill-stars i {
    font-size: 14px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .skill-name {
        font-size: 0.9rem;
        max-width: calc(100% - 140px);
    }
    
    .skill-stars i {
        font-size: 12px;
    }
    
    .badge {
        font-size: 0.75em !important;
        padding: 0.25rem 0.4rem !important;
        min-width: 65px !important;
        text-align: center;
        white-space: nowrap;
    }
}

/* Article icons in portfolio - fixed size across breakpoints */
.portfolio .portfolio-item.filter-articles i.bi-journal-text {
        font-size: 32px; /* Consistent icon size */
        line-height: 1; /* Avoid extra vertical space */
        display: inline-block; /* Prevent unexpected scaling */
}

@media (max-width: 576px) {
    .portfolio .portfolio-item.filter-articles i.bi-journal-text {
        font-size: 30px; /* Slightly smaller on very small screens if desired */
    }
}

/* Article cards: enforce same 16:9 height as image/video items */
.portfolio .portfolio-item.filter-articles .article-card {
    width: 100%;
    aspect-ratio: 16 / 9; /* Match other portfolio media */
    background: var(--surface-color);
    border: 1px solid rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 20px; /* Inner spacing without altering height ratio */
    box-sizing: border-box;
}

/* Prevent shrinking icon vertically inside flex */
.portfolio .portfolio-item.filter-articles .article-card i.bi-journal-text {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

/* Title styling tweak for multi-line truncation consistency */
.portfolio .portfolio-item.filter-articles .article-card .article-title-visible {
    line-height: 1.25;
}

@media (max-width: 576px) {
    .portfolio .portfolio-item.filter-articles .article-card {
        padding: 8px 14px;
    }
}